diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 000000000..37e64472f --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:ee698481139bf3df35cd83d2f17f9670ee914d6184f8909a81d672a6abaf0e72 + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 000000000..2061fbd84 --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,30 @@ +# 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. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src/main/java/com/google/cloud/aiplatform/v1" +- "/google-.*/src/main/java/com/google/cloud/aiplatform/v1beta1" + +deep-copy-regex: +- source: "/google/cloud/aiplatform/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-aiplatform-$1/src" +- source: "/google/cloud/aiplatform/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-aiplatform-$1/src" +- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-aiplatform/src" diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 47c2ba132..c644a24e1 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -9,3 +9,4 @@ ignoreAuthors: - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' +- 'gcf-owl-bot[bot]' diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 3afa47fcc..a532fb863 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": "931c3bbfa9fa523a3152d2a9a885ae62b3fca65b" + "sha": "348a87fb714f7be84befe57d461857b0409a804f" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" } } ] diff --git a/.github/release-please.yml b/.github/release-please.yml index dce2c8450..8ca7f9cab 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,2 +1,3 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index def8b3a2c..0195b32f0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,6 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test - - name: coverage - uses: codecov/codecov-action@v1 - with: - name: actions ${{matrix.java}} windows: runs-on: windows-latest steps: @@ -80,4 +76,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index c8c307e0f..803b45ac9 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -42,6 +42,8 @@ mvn clean site -B -q -P docFX # copy README to docfx-yml dir and rename index.md cp README.md target/docfx-yml/index.md +# copy CHANGELOG to docfx-yml dir and rename history.md +cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml @@ -49,6 +51,13 @@ pushd target/docfx-yml python3 -m docuploader create-metadata \ --name ${NAME} \ --version ${VERSION} \ + --xrefs devsite://java/gax \ + --xrefs devsite://java/google-cloud-core \ + --xrefs devsite://java/api-common \ + --xrefs devsite://java/proto-google-common-protos \ + --xrefs devsite://java/google-api-client \ + --xrefs devsite://java/google-http-client \ + --xrefs devsite://java/protobuf \ --language java # upload yml to production bucket diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh index 098168a73..1f55b7702 100755 --- a/.kokoro/release/snapshot.sh +++ b/.kokoro/release/snapshot.sh @@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ +mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DperformRelease=true \ -Dgpg.executable=gpg \ diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 16126d2eb..8a1033843 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml" # attempt to stage 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn clean install deploy -B \ + mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ -DperformRelease=true \ diff --git a/.repo-metadata.json b/.repo-metadata.json index 5cab2c497..80fe7ee75 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,10 +1,10 @@ { "name": "aiplatform", - "name_pretty": "Cloud AI Platform", - "product_documentation": "https://cloud.google.com/ai-platform-unified/docs", + "name_pretty": "Vertex AI", + "product_documentation": "https://cloud.google.com/vertex-ai/docs", "api_description": "is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle.", "client_documentation": "https://googleapis.dev/java/google-cloud-aiplatform/latest/index.html", - "release_level": "beta", + "release_level": "ga", "transport": "grpc", "language": "java", "repo": "googleapis/java-aiplatform", diff --git a/CHANGELOG.md b/CHANGELOG.md index e413e73a4..aedb5145c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## [1.0.0](https://www.github.com/googleapis/java-aiplatform/compare/v0.4.1...v1.0.0) (2021-06-09) + + +### ⚠ BREAKING CHANGES + +* remove display_name from FeatureStore + +### Features + +* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#362](https://www.github.com/googleapis/java-aiplatform/issues/362)) ([778f54a](https://www.github.com/googleapis/java-aiplatform/commit/778f54afcf852da2cdb371fc1b2303ce54589e02)) +* add aiplatform API Vizier service ([fee522f](https://www.github.com/googleapis/java-aiplatform/commit/fee522f6184de7ae89c1cc471142fbab44116aff)) +* add featurestore, index, metadata, monitoring, pipeline, and tensorboard services to aiplatform v1beta1 ([#341](https://www.github.com/googleapis/java-aiplatform/issues/341)) ([ca54151](https://www.github.com/googleapis/java-aiplatform/commit/ca541512ffd89f43d236eab8a657f7b8f4bade3d)) +* add invalid_row_count to ImportFeatureValuesResponse and ImportFeatureValuesOperationMetadata ([d73ec5a](https://www.github.com/googleapis/java-aiplatform/commit/d73ec5afeb71ce752dbec975ac7562b92ef2ceef)) +* adds enhanced protos for time series forecasting ([#356](https://www.github.com/googleapis/java-aiplatform/issues/356)) ([d73ec5a](https://www.github.com/googleapis/java-aiplatform/commit/d73ec5afeb71ce752dbec975ac7562b92ef2ceef)) +* promote to 1.0.0 ([#402](https://www.github.com/googleapis/java-aiplatform/issues/402)) ([b22d40b](https://www.github.com/googleapis/java-aiplatform/commit/b22d40ba091698eb14ed9f421a8749ba62a1c6fd)) +* remove unsupported accelerator types ([fee522f](https://www.github.com/googleapis/java-aiplatform/commit/fee522f6184de7ae89c1cc471142fbab44116aff)) +* removes unneeded protos and files from v1beta1 ([#198](https://www.github.com/googleapis/java-aiplatform/issues/198)) ([5c0de9f](https://www.github.com/googleapis/java-aiplatform/commit/5c0de9f6ac27685170644f467610dc89d2f0e34b)) + + +### Bug Fixes + +* configuring timeouts for aiplatform v1 methods ([fee522f](https://www.github.com/googleapis/java-aiplatform/commit/fee522f6184de7ae89c1cc471142fbab44116aff)) +* release scripts from issuing overlapping phases ([#245](https://www.github.com/googleapis/java-aiplatform/issues/245)) ([43ec06b](https://www.github.com/googleapis/java-aiplatform/commit/43ec06bd4809bc97dda6f5a913452381389541d1)) +* remove display_name from FeatureStore ([d73ec5a](https://www.github.com/googleapis/java-aiplatform/commit/d73ec5afeb71ce752dbec975ac7562b92ef2ceef)) + + +### Documentation + +* changes product name to 'Vertex AI' ([#367](https://www.github.com/googleapis/java-aiplatform/issues/367)) ([0141e15](https://www.github.com/googleapis/java-aiplatform/commit/0141e15e6cdd0428d65ebd99842ee66fd917d627)) +* changes product name to 'Vertex AI' ([#397](https://www.github.com/googleapis/java-aiplatform/issues/397)) ([348a87f](https://www.github.com/googleapis/java-aiplatform/commit/348a87fb714f7be84befe57d461857b0409a804f)) +* correct link to fieldmask ([0141e15](https://www.github.com/googleapis/java-aiplatform/commit/0141e15e6cdd0428d65ebd99842ee66fd917d627)) +* removes tinyurl links ([348a87f](https://www.github.com/googleapis/java-aiplatform/commit/348a87fb714f7be84befe57d461857b0409a804f)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#253](https://www.github.com/googleapis/java-aiplatform/issues/253)) ([f8e020f](https://www.github.com/googleapis/java-aiplatform/commit/f8e020f7750511bfc3358dd44d465c03d9becf62)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#329](https://www.github.com/googleapis/java-aiplatform/issues/329)) ([591c274](https://www.github.com/googleapis/java-aiplatform/commit/591c274ff3ffca5e0d964148eaeebaca5551ecaa)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#346](https://www.github.com/googleapis/java-aiplatform/issues/346)) ([d2aec6c](https://www.github.com/googleapis/java-aiplatform/commit/d2aec6c92e56362a5bfb2601dc1558bc081f3dae)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#361](https://www.github.com/googleapis/java-aiplatform/issues/361)) ([e1506a8](https://www.github.com/googleapis/java-aiplatform/commit/e1506a804d82f1289c60a9d5056f20df1cd6c11f)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#398](https://www.github.com/googleapis/java-aiplatform/issues/398)) ([dafca5d](https://www.github.com/googleapis/java-aiplatform/commit/dafca5d9fc1c0d77fc0c3f26c08c6827e53492a3)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.16 ([#334](https://www.github.com/googleapis/java-aiplatform/issues/334)) ([5659ceb](https://www.github.com/googleapis/java-aiplatform/commit/5659cebd87fd1ccd730a817049c05865b8ce240c)) +* update dependency com.google.cloud:google-cloud-storage to v1.114.0 ([#349](https://www.github.com/googleapis/java-aiplatform/issues/349)) ([596eb79](https://www.github.com/googleapis/java-aiplatform/commit/596eb795a30cfe319daed0dde7492ea55b1737a2)) +* update dependency com.google.cloud:google-cloud-storage to v1.115.0 ([#396](https://www.github.com/googleapis/java-aiplatform/issues/396)) ([8e2f7cc](https://www.github.com/googleapis/java-aiplatform/commit/8e2f7cc9b83fbd2f3cc326f1370b27d30cde636a)) +* update dependency com.google.code.gson:gson to v2.8.7 ([#382](https://www.github.com/googleapis/java-aiplatform/issues/382)) ([90bfc56](https://www.github.com/googleapis/java-aiplatform/commit/90bfc56459cf1da02b9c6efde01791742b5e5161)) + ### [0.4.1](https://www.github.com/googleapis/java-aiplatform/compare/v0.4.0...v0.4.1) (2021-04-15) diff --git a/README.md b/README.md index c054105aa..77d0ee164 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Google Cloud AI Platform Client for Java +# Google Vertex AI Client for Java -Java idiomatic client for [Cloud AI Platform][product-docs]. +Java idiomatic client for [Vertex AI][product-docs]. [![Maven][maven-version-image]][maven-version-link] ![Stability][stability-image] @@ -8,9 +8,6 @@ Java idiomatic client for [Cloud AI Platform][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] -> Note: This client is a work-in-progress, and may occasionally -> make backwards-incompatible changes. - ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file @@ -37,18 +34,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.0.0') +implementation platform('com.google.cloud:libraries-bom:20.6.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:0.4.0' +compile 'com.google.cloud:google-cloud-aiplatform:0.4.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "0.4.1" ``` ## Authentication @@ -59,8 +56,8 @@ See the [Authentication][authentication] section in the base directory's README. ### Prerequisites -You will need a [Google Cloud Platform Console][developer-console] project with the Cloud AI Platform [API enabled][enable-api]. -You will need to [enable billing][enable-billing] to use Google Cloud AI Platform. +You will need a [Google Cloud Platform Console][developer-console] project with the Vertex AI [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Vertex AI. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -70,13 +67,13 @@ You will need to [enable billing][enable-billing] to use Google Cloud AI Platfor You'll need to obtain the `google-cloud-aiplatform` library. See the [Quickstart](#quickstart) section to add `google-cloud-aiplatform` as a dependency in your code. -## About Cloud AI Platform +## About Vertex AI -[Cloud AI Platform][product-docs] is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle. +[Vertex AI][product-docs] is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle. -See the [Cloud AI Platform client library docs][javadocs] to learn how to -use this Cloud AI Platform Client Library. +See the [Vertex AI client library docs][javadocs] to learn how to +use this Vertex AI Client Library. @@ -94,6 +91,9 @@ has instructions for running the samples. | Cancel Training Pipeline Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java) | | Create Batch Prediction Job Bigquery Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobBigquerySample.java) | | Create Batch Prediction Job Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobSample.java) | +| Create Batch Prediction Job Text Classification Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextClassificationSample.java) | +| Create Batch Prediction Job Text Entity Extraction Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextEntityExtractionSample.java) | +| Create Batch Prediction Job Text Sentiment Analysis Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobTextSentimentAnalysisSample.java) | | Create Batch Prediction Job Video Action Recognition Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoActionRecognitionSample.java) | | Create Batch Prediction Job Video Classification Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoClassificationSample.java) | | Create Batch Prediction Job Video Object Tracking Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/master/samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateBatchPredictionJobVideoObjectTrackingSample.java) | @@ -180,7 +180,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Cloud AI Platform uses gRPC for the transport layer. +Vertex AI uses gRPC for the transport layer. ## Java Versions @@ -192,9 +192,6 @@ Java 7 or above is required for using this client. This library follows [Semantic Versioning](http://semver.org/). -It is currently in major version zero (``0.y.z``), which means that anything may change at any time -and the public API should not be considered stable. - ## Contributing @@ -222,7 +219,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] Java is a registered trademark of Oracle and/or its affiliates. -[product-docs]: https://cloud.google.com/ai-platform-unified/docs +[product-docs]: https://cloud.google.com/vertex-ai/docs [javadocs]: https://googleapis.dev/java/google-cloud-aiplatform/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-aiplatform/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-aiplatform/java7.html @@ -234,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-aiplatform/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-aiplatform/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-aiplatform/java11.html -[stability-image]: https://img.shields.io/badge/stability-beta-yellow +[stability-image]: https://img.shields.io/badge/stability-ga-green [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 diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..8b58ae9c0 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 0372b7037..d3d6f7bb6 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -1,20 +1,20 @@ - + 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 0.4.1 + 1.0.0 pom com.google.cloud google-cloud-shared-config - 0.11.1 + 0.12.0 - Google AI Platform BOM + Google Cloud Vertex AI BOM https://github.com/googleapis/java-aiplatform - BOM for AI Platform + BOM for Vertex AI. @@ -64,31 +64,30 @@ - com.google.cloud google-cloud-aiplatform - 0.4.1 + 1.0.0 com.google.api.grpc - proto-google-cloud-aiplatform-v1beta1 - 0.4.1 + grpc-google-cloud-aiplatform-v1 + 1.0.0 com.google.api.grpc - proto-google-cloud-aiplatform-v1 - 0.4.1 + grpc-google-cloud-aiplatform-v1beta1 + 0.5.0 com.google.api.grpc - grpc-google-cloud-aiplatform-v1beta1 - 0.4.1 + proto-google-cloud-aiplatform-v1 + 1.0.0 com.google.api.grpc - grpc-google-cloud-aiplatform-v1 - 0.4.1 + proto-google-cloud-aiplatform-v1beta1 + 0.5.0 @@ -104,4 +103,4 @@ - \ No newline at end of file + diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index 6daa0cc40..537738dbd 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -1,17 +1,17 @@ - + 4.0.0 com.google.cloud google-cloud-aiplatform - 0.4.1 + 1.0.0 jar - Google AI Platform + Google Cloud Vertex AI https://github.com/googleapis/java-aiplatform - brings AutoML and AI Platform (Legacy) together into a unified API, client library, and user interface. + Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 1.0.0 google-cloud-aiplatform @@ -126,4 +126,4 @@ - \ No newline at end of file + 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 a2453f430..6f9d2e147 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -397,8 +397,7 @@ public final UnaryCallable getDatasetCallable() { * * @param dataset Required. The Dataset which replaces the resource on the server. * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` - * definition, see [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). - * Updatable fields: + * definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields: *

* `display_name` * `description` * `labels` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -575,6 +574,15 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request) * *

{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListDatasetsRequest request =
+   *       ListDatasetsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request);
    *     for (Dataset element : response.getResponsesList()) {
@@ -1089,6 +1097,15 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *
    * 
{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListDataItemsRequest request =
+   *       ListDataItemsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request);
    *     for (DataItem element : response.getResponsesList()) {
@@ -1123,7 +1140,7 @@ public final UnaryCallable listData
    * }
* * @param name Required. The name of the AnnotationSpec resource. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { @@ -1150,7 +1167,7 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { * }

* * @param name Required. The name of the AnnotationSpec resource. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpec getAnnotationSpec(String name) { @@ -1226,7 +1243,7 @@ public final UnaryCallable getAnnotati * } * * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { @@ -1254,7 +1271,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { * } * * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotationsPagedResponse listAnnotations(String parent) { @@ -1333,6 +1350,16 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest * *

{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListAnnotationsRequest request =
+   *       ListAnnotationsRequest.newBuilder()
+   *           .setParent(
+   *               DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListAnnotationsResponse response =
    *         datasetServiceClient.listAnnotationsCallable().call(request);
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 31e905828..56665ea03 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
@@ -1,5 +1,5 @@
 /*
- * 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/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 b677f6e99..9cfa4a8c6 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
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -505,6 +505,15 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    *
    * 
{@code
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListEndpointsRequest request =
+   *       ListEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListEndpointsResponse response =
    *         endpointServiceClient.listEndpointsCallable().call(request);
@@ -541,7 +550,7 @@ public final UnaryCallable listEndp
    *
    * @param endpoint Required. The Endpoint which replaces the resource on the server.
    * @param updateMask Required. The update mask applies to the resource. See
-   *     [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   *     [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) {
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 533f2f4b4..d350c3cc8 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
@@ -1,5 +1,5 @@
 /*
- * 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/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 77f96ee3d..ca48e36ae 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
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -41,7 +41,7 @@
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
 /**
- * Service Description: A service for creating and managing AI Platform's jobs.
+ * Service Description: A service for creating and managing Vertex AI's jobs.
  *
  * 

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -470,6 +470,14 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListCustomJobsRequest request =
+   *       ListCustomJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListCustomJobsResponse response = jobServiceClient.listCustomJobsCallable().call(request);
    *     for (CustomJob element : response.getResponsesList()) {
@@ -846,7 +854,7 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * }
* * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { @@ -872,7 +880,7 @@ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { * }

* * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob getDataLabelingJob(String name) { @@ -1054,6 +1062,15 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListDataLabelingJobsRequest request =
+   *       ListDataLabelingJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDataLabelingJobsResponse response =
    *         jobServiceClient.listDataLabelingJobsCallable().call(request);
@@ -1090,7 +1107,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * }
* * @param name Required. The name of the DataLabelingJob to be deleted. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( @@ -1117,7 +1134,7 @@ public final OperationFuture deleteDataLabelingJ * }

* * @param name Required. The name of the DataLabelingJob to be deleted. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( @@ -1220,7 +1237,7 @@ public final OperationFuture deleteDataLabelingJ * } * * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelDataLabelingJob(DataLabelingJobName name) { @@ -1246,7 +1263,7 @@ public final void cancelDataLabelingJob(DataLabelingJobName name) { * } * * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelDataLabelingJob(String name) { @@ -1432,7 +1449,7 @@ public final HyperparameterTuningJob createHyperparameterTuningJob( * } * * @param name Required. The name of the HyperparameterTuningJob resource. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob( @@ -1460,7 +1477,7 @@ public final HyperparameterTuningJob getHyperparameterTuningJob( * } * * @param name Required. The name of the HyperparameterTuningJob resource. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob(String name) { @@ -1649,6 +1666,14 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListHyperparameterTuningJobsRequest request =
+   *       ListHyperparameterTuningJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListHyperparameterTuningJobsResponse response =
    *         jobServiceClient.listHyperparameterTuningJobsCallable().call(request);
@@ -1686,7 +1711,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * }
* * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( @@ -1714,7 +1739,7 @@ public final OperationFuture deleteHyperparamete * } * * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( @@ -1832,7 +1857,7 @@ public final OperationFuture deleteHyperparamete * } * * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name) { @@ -1870,7 +1895,7 @@ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name * } * * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelHyperparameterTuningJob(String name) { @@ -2083,7 +2108,7 @@ public final BatchPredictionJob createBatchPredictionJob( * } * * @param name Required. The name of the BatchPredictionJob resource. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName name) { @@ -2109,7 +2134,7 @@ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName nam * } * * @param name Required. The name of the BatchPredictionJob resource. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob getBatchPredictionJob(String name) { @@ -2292,6 +2317,14 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListBatchPredictionJobsRequest request =
+   *       ListBatchPredictionJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListBatchPredictionJobsResponse response =
    *         jobServiceClient.listBatchPredictionJobsCallable().call(request);
@@ -2328,7 +2361,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * }
* * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( @@ -2355,7 +2388,7 @@ public final OperationFuture deleteBatchPredicti * } * * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( @@ -2467,7 +2500,7 @@ public final OperationFuture deleteBatchPredicti * } * * @param name Required. The name of the BatchPredictionJob to cancel. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelBatchPredictionJob(BatchPredictionJobName name) { @@ -2502,7 +2535,7 @@ public final void cancelBatchPredictionJob(BatchPredictionJobName name) { * } * * @param name Required. The name of the BatchPredictionJob to cancel. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelBatchPredictionJob(String name) { 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 279a21ffb..d06a6f630 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 @@ -1,5 +1,5 @@ /* - * 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/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 2fe2ed227..d2985d171 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -41,7 +41,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: A service that migrates resources from automl.googleapis.com, - * datalabeling.googleapis.com and ml.googleapis.com to AI Platform. + * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -172,7 +172,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -187,7 +187,7 @@ public final OperationsClient getOperationsClient() { * } * * @param parent Required. The location that the migratable resources should be searched from. - * It's the AI Platform location that the resources can be migrated to, not the resources' + * It's the Vertex AI location that the resources can be migrated to, not the resources' * original location. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -203,7 +203,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -218,7 +218,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( * } * * @param parent Required. The location that the migratable resources should be searched from. - * It's the AI Platform location that the resources can be migrated to, not the resources' + * It's the Vertex AI location that the resources can be migrated to, not the resources' * original location. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -231,7 +231,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -262,7 +262,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -293,12 +293,19 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * *

{@code
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SearchMigratableResourcesRequest request =
+   *       SearchMigratableResourcesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
    *   while (true) {
    *     SearchMigratableResourcesResponse response =
    *         migrationServiceClient.searchMigratableResourcesCallable().call(request);
@@ -323,7 +330,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
    * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
-   * datalabeling.googleapis.com to AI Platform (Unified).
+   * datalabeling.googleapis.com to Vertex AI.
    *
    * 

Sample code: * @@ -358,7 +365,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -393,7 +400,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -421,7 +428,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -451,7 +458,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * 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 db19d116a..681ee3f81 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 @@ -1,5 +1,5 @@ /* - * 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/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 9fb1ca376..677ad942b 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -42,7 +42,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: A service for managing AI Platform's machine learning Models. + * Service Description: A service for managing Vertex AI's machine learning Models. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -165,7 +165,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -194,7 +194,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -220,7 +220,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -245,7 +245,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -271,7 +271,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -498,6 +498,15 @@ public final UnaryCallable listModel * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelsRequest request =
+   *       ListModelsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
    *     for (Model element : response.getResponsesList()) {
@@ -533,7 +542,7 @@ public final UnaryCallable listModelsCall
    *
    * @param model Required. The Model which replaces the resource on the server.
    * @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
-   *     definition, see [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   *     definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Model updateModel(Model model, FieldMask updateMask) {
@@ -865,7 +874,7 @@ public final UnaryCallable exportModelCallable()
    * }
* * @param name Required. The name of the ModelEvaluation resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { @@ -891,7 +900,7 @@ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { * }

* * @param name Required. The name of the ModelEvaluation resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation getModelEvaluation(String name) { @@ -1072,6 +1081,14 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations( * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationsRequest request =
+   *       ListModelEvaluationsRequest.newBuilder()
+   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListModelEvaluationsResponse response =
    *         modelServiceClient.listModelEvaluationsCallable().call(request);
@@ -1109,7 +1126,7 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * }
* * @param name Required. The name of the ModelEvaluationSlice resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { @@ -1137,7 +1154,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceNa * } * * @param name Required. The name of the ModelEvaluationSlice resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluationSlice getModelEvaluationSlice(String name) { @@ -1219,7 +1236,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice( * * @param parent Required. The resource name of the ModelEvaluation to list the * ModelEvaluationSlices from. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( @@ -1250,7 +1267,7 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( * * @param parent Required. The resource name of the ModelEvaluation to list the * ModelEvaluationSlices from. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(String parent) { @@ -1333,6 +1350,16 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationSlicesRequest request =
+   *       ListModelEvaluationSlicesRequest.newBuilder()
+   *           .setParent(
+   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListModelEvaluationSlicesResponse response =
    *         modelServiceClient.listModelEvaluationSlicesCallable().call(request);
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 463e2e324..105a8809b 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
@@ -1,5 +1,5 @@
 /*
- * 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/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 c9b3a0ae8..f99d84536 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
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -41,7 +41,9 @@
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
 /**
- * Service Description: A service for creating and managing AI Platform's pipelines.
+ * Service Description: A service for creating and managing Vertex AI's pipelines. This includes
+ * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob`
+ * resources (used for Vertex Pipelines).
  *
  * 

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -292,7 +294,7 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque * }

* * @param name Required. The name of the TrainingPipeline resource. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { @@ -318,7 +320,7 @@ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { * } * * @param name Required. The name of the TrainingPipeline resource. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline getTrainingPipeline(String name) { @@ -501,6 +503,14 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines( * *

{@code
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListTrainingPipelinesRequest request =
+   *       ListTrainingPipelinesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListTrainingPipelinesResponse response =
    *         pipelineServiceClient.listTrainingPipelinesCallable().call(request);
@@ -537,7 +547,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * }
* * @param name Required. The name of the TrainingPipeline resource to be deleted. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( @@ -564,7 +574,7 @@ public final OperationFuture deleteTrainingPipel * } * * @param name Required. The name of the TrainingPipeline resource to be deleted. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( @@ -677,7 +687,7 @@ public final OperationFuture deleteTrainingPipel * } * * @param name Required. The name of the TrainingPipeline to cancel. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelTrainingPipeline(TrainingPipelineName name) { @@ -713,7 +723,7 @@ public final void cancelTrainingPipeline(TrainingPipelineName name) { * } * * @param name Required. The name of the TrainingPipeline to cancel. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelTrainingPipeline(String name) { 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 5b30d3709..362490ee6 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java index 75fd35e55..72af930d0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java @@ -1,5 +1,5 @@ /* - * 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/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 c2947a287..912152a44 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 @@ -1,5 +1,5 @@ /* - * 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/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 3e340b129..52400fdf2 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -331,7 +331,7 @@ public final OperationsClient getOperationsClient() { * } * * @param name Required. The name of the SpecialistPool resource. The form is - *

`projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { @@ -358,7 +358,7 @@ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { * } * * @param name Required. The name of the SpecialistPool resource. The form is - *

`projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SpecialistPool getSpecialistPool(String name) { @@ -542,6 +542,13 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools( *

{@code
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
+   *   ListSpecialistPoolsRequest request =
+   *       ListSpecialistPoolsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListSpecialistPoolsResponse response =
    *         specialistPoolServiceClient.listSpecialistPoolsCallable().call(request);
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 e21e2506d..fb702d153 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
@@ -1,5 +1,5 @@
 /*
- * 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/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
new file mode 100644
index 000000000..b22619036
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -0,0 +1,261 @@
+{
+  "schema": "1.0",
+  "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+  "language": "java",
+  "protoPackage": "google.cloud.aiplatform.v1",
+  "libraryPackage": "com.google.cloud.aiplatform.v1",
+  "services": {
+    "DatasetService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "DatasetServiceClient",
+          "rpcs": {
+            "CreateDataset": {
+              "methods": ["createDatasetAsync", "createDatasetAsync", "createDatasetAsync", "createDatasetOperationCallable", "createDatasetCallable"]
+            },
+            "DeleteDataset": {
+              "methods": ["deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetOperationCallable", "deleteDatasetCallable"]
+            },
+            "ExportData": {
+              "methods": ["exportDataAsync", "exportDataAsync", "exportDataAsync", "exportDataOperationCallable", "exportDataCallable"]
+            },
+            "GetAnnotationSpec": {
+              "methods": ["getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpecCallable"]
+            },
+            "GetDataset": {
+              "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"]
+            },
+            "ImportData": {
+              "methods": ["importDataAsync", "importDataAsync", "importDataAsync", "importDataOperationCallable", "importDataCallable"]
+            },
+            "ListAnnotations": {
+              "methods": ["listAnnotations", "listAnnotations", "listAnnotations", "listAnnotationsPagedCallable", "listAnnotationsCallable"]
+            },
+            "ListDataItems": {
+              "methods": ["listDataItems", "listDataItems", "listDataItems", "listDataItemsPagedCallable", "listDataItemsCallable"]
+            },
+            "ListDatasets": {
+              "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"]
+            },
+            "UpdateDataset": {
+              "methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
+            }
+          }
+        }
+      }
+    },
+    "EndpointService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "EndpointServiceClient",
+          "rpcs": {
+            "CreateEndpoint": {
+              "methods": ["createEndpointAsync", "createEndpointAsync", "createEndpointAsync", "createEndpointOperationCallable", "createEndpointCallable"]
+            },
+            "DeleteEndpoint": {
+              "methods": ["deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointOperationCallable", "deleteEndpointCallable"]
+            },
+            "DeployModel": {
+              "methods": ["deployModelAsync", "deployModelAsync", "deployModelAsync", "deployModelOperationCallable", "deployModelCallable"]
+            },
+            "GetEndpoint": {
+              "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"]
+            },
+            "ListEndpoints": {
+              "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"]
+            },
+            "UndeployModel": {
+              "methods": ["undeployModelAsync", "undeployModelAsync", "undeployModelAsync", "undeployModelOperationCallable", "undeployModelCallable"]
+            },
+            "UpdateEndpoint": {
+              "methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"]
+            }
+          }
+        }
+      }
+    },
+    "JobService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "JobServiceClient",
+          "rpcs": {
+            "CancelBatchPredictionJob": {
+              "methods": ["cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJobCallable"]
+            },
+            "CancelCustomJob": {
+              "methods": ["cancelCustomJob", "cancelCustomJob", "cancelCustomJob", "cancelCustomJobCallable"]
+            },
+            "CancelDataLabelingJob": {
+              "methods": ["cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJobCallable"]
+            },
+            "CancelHyperparameterTuningJob": {
+              "methods": ["cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJobCallable"]
+            },
+            "CreateBatchPredictionJob": {
+              "methods": ["createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJobCallable"]
+            },
+            "CreateCustomJob": {
+              "methods": ["createCustomJob", "createCustomJob", "createCustomJob", "createCustomJobCallable"]
+            },
+            "CreateDataLabelingJob": {
+              "methods": ["createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJobCallable"]
+            },
+            "CreateHyperparameterTuningJob": {
+              "methods": ["createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJobCallable"]
+            },
+            "DeleteBatchPredictionJob": {
+              "methods": ["deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobOperationCallable", "deleteBatchPredictionJobCallable"]
+            },
+            "DeleteCustomJob": {
+              "methods": ["deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobOperationCallable", "deleteCustomJobCallable"]
+            },
+            "DeleteDataLabelingJob": {
+              "methods": ["deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobOperationCallable", "deleteDataLabelingJobCallable"]
+            },
+            "DeleteHyperparameterTuningJob": {
+              "methods": ["deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobOperationCallable", "deleteHyperparameterTuningJobCallable"]
+            },
+            "GetBatchPredictionJob": {
+              "methods": ["getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJobCallable"]
+            },
+            "GetCustomJob": {
+              "methods": ["getCustomJob", "getCustomJob", "getCustomJob", "getCustomJobCallable"]
+            },
+            "GetDataLabelingJob": {
+              "methods": ["getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJobCallable"]
+            },
+            "GetHyperparameterTuningJob": {
+              "methods": ["getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJobCallable"]
+            },
+            "ListBatchPredictionJobs": {
+              "methods": ["listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobsPagedCallable", "listBatchPredictionJobsCallable"]
+            },
+            "ListCustomJobs": {
+              "methods": ["listCustomJobs", "listCustomJobs", "listCustomJobs", "listCustomJobsPagedCallable", "listCustomJobsCallable"]
+            },
+            "ListDataLabelingJobs": {
+              "methods": ["listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobsPagedCallable", "listDataLabelingJobsCallable"]
+            },
+            "ListHyperparameterTuningJobs": {
+              "methods": ["listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobsPagedCallable", "listHyperparameterTuningJobsCallable"]
+            }
+          }
+        }
+      }
+    },
+    "MigrationService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "MigrationServiceClient",
+          "rpcs": {
+            "BatchMigrateResources": {
+              "methods": ["batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesOperationCallable", "batchMigrateResourcesCallable"]
+            },
+            "SearchMigratableResources": {
+              "methods": ["searchMigratableResources", "searchMigratableResources", "searchMigratableResources", "searchMigratableResourcesPagedCallable", "searchMigratableResourcesCallable"]
+            }
+          }
+        }
+      }
+    },
+    "ModelService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "ModelServiceClient",
+          "rpcs": {
+            "DeleteModel": {
+              "methods": ["deleteModelAsync", "deleteModelAsync", "deleteModelAsync", "deleteModelOperationCallable", "deleteModelCallable"]
+            },
+            "ExportModel": {
+              "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"]
+            },
+            "GetModel": {
+              "methods": ["getModel", "getModel", "getModel", "getModelCallable"]
+            },
+            "GetModelEvaluation": {
+              "methods": ["getModelEvaluation", "getModelEvaluation", "getModelEvaluation", "getModelEvaluationCallable"]
+            },
+            "GetModelEvaluationSlice": {
+              "methods": ["getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSliceCallable"]
+            },
+            "ListModelEvaluationSlices": {
+              "methods": ["listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlicesPagedCallable", "listModelEvaluationSlicesCallable"]
+            },
+            "ListModelEvaluations": {
+              "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"]
+            },
+            "ListModels": {
+              "methods": ["listModels", "listModels", "listModels", "listModelsPagedCallable", "listModelsCallable"]
+            },
+            "UpdateModel": {
+              "methods": ["updateModel", "updateModel", "updateModelCallable"]
+            },
+            "UploadModel": {
+              "methods": ["uploadModelAsync", "uploadModelAsync", "uploadModelAsync", "uploadModelOperationCallable", "uploadModelCallable"]
+            }
+          }
+        }
+      }
+    },
+    "PipelineService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "PipelineServiceClient",
+          "rpcs": {
+            "CancelTrainingPipeline": {
+              "methods": ["cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipelineCallable"]
+            },
+            "CreateTrainingPipeline": {
+              "methods": ["createTrainingPipeline", "createTrainingPipeline", "createTrainingPipeline", "createTrainingPipelineCallable"]
+            },
+            "DeleteTrainingPipeline": {
+              "methods": ["deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineOperationCallable", "deleteTrainingPipelineCallable"]
+            },
+            "GetTrainingPipeline": {
+              "methods": ["getTrainingPipeline", "getTrainingPipeline", "getTrainingPipeline", "getTrainingPipelineCallable"]
+            },
+            "ListTrainingPipelines": {
+              "methods": ["listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelinesPagedCallable", "listTrainingPipelinesCallable"]
+            }
+          }
+        }
+      }
+    },
+    "PredictionService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "PredictionServiceClient",
+          "rpcs": {
+            "Predict": {
+              "methods": ["predict", "predict", "predict", "predictCallable"]
+            }
+          }
+        }
+      }
+    },
+    "SpecialistPoolService": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "SpecialistPoolServiceClient",
+          "rpcs": {
+            "CreateSpecialistPool": {
+              "methods": ["createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolOperationCallable", "createSpecialistPoolCallable"]
+            },
+            "DeleteSpecialistPool": {
+              "methods": ["deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolOperationCallable", "deleteSpecialistPoolCallable"]
+            },
+            "GetSpecialistPool": {
+              "methods": ["getSpecialistPool", "getSpecialistPool", "getSpecialistPool", "getSpecialistPoolCallable"]
+            },
+            "ListSpecialistPools": {
+              "methods": ["listSpecialistPools", "listSpecialistPools", "listSpecialistPools", "listSpecialistPoolsPagedCallable", "listSpecialistPoolsCallable"]
+            },
+            "UpdateSpecialistPool": {
+              "methods": ["updateSpecialistPoolAsync", "updateSpecialistPoolAsync", "updateSpecialistPoolOperationCallable", "updateSpecialistPoolCallable"]
+            }
+          }
+        }
+      }
+    }
+  }
+}
\ No newline at end of file
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
index 8d67171cc..465d2254f 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -41,7 +41,7 @@
  *
  * 

======================= JobServiceClient ======================= * - *

Service Description: A service for creating and managing AI Platform's jobs. + *

Service Description: A service for creating and managing Vertex AI's jobs. * *

Sample for JobServiceClient: * @@ -56,7 +56,7 @@ *

======================= MigrationServiceClient ======================= * *

Service Description: A service that migrates resources from automl.googleapis.com, - * datalabeling.googleapis.com and ml.googleapis.com to AI Platform. + * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * *

Sample for MigrationServiceClient: * @@ -72,7 +72,7 @@ * *

======================= ModelServiceClient ======================= * - *

Service Description: A service for managing AI Platform's machine learning Models. + *

Service Description: A service for managing Vertex AI's machine learning Models. * *

Sample for ModelServiceClient: * @@ -85,7 +85,9 @@ * *

======================= PipelineServiceClient ======================= * - *

Service Description: A service for creating and managing AI Platform's pipelines. + *

Service Description: A service for creating and managing Vertex AI's pipelines. This includes + * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob` + * resources (used for Vertex Pipelines). * *

Sample for PipelineServiceClient: * diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java index bc5ff2d39..2e8bb32ce 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 5faa30878..b2b3eb16f 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -509,7 +509,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -518,8 +519,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -606,61 +613,61 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .getDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .updateDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .listDatasetsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .deleteDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .importDataSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .exportDataSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .listDataItemsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .getAnnotationSpecSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .listAnnotationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .createDatasetOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Dataset.class)) @@ -684,8 +691,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -707,8 +714,8 @@ private static Builder initDefaults(Builder builder) { .importDataOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportDataResponse.class)) @@ -731,8 +738,8 @@ private static Builder initDefaults(Builder builder) { .exportDataOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ExportDataResponse.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java index e64b38ddc..1904849dc 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 285c56852..b75c7295f 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -358,7 +358,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -367,8 +368,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_1_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -443,46 +450,46 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createEndpointSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getEndpointSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listEndpointsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateEndpointSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteEndpointSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deployModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .undeployModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createEndpointOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Endpoint.class)) @@ -506,8 +513,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -529,8 +536,8 @@ private static Builder initDefaults(Builder builder) { .deployModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(DeployModelResponse.class)) @@ -554,8 +561,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(UndeployModelResponse.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java index cc347b760..0b57ca860 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 c7ec877b0..da638eb17 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java index cf0e0f1a7..cbb057f87 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 43f103873..df0fa2cf0 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java index ec4f19008..6fce34332 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 f42279d82..2db26b4da 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java index 3f4f18f4d..7c4963a3a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 95c837a57..a037ea74d 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java index 854c51d31..101a7d825 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 0661fc459..73fc68bab 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java index ba200e5ca..b0dd7042a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 a557d1a79..6c1507a64 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java index f9246d98b..67b0251e9 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 81945ce07..5a09e9519 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java index f4ecb2bc1..420a3f22b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 5b0b80664..b22c01c75 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java index 59ed98c1c..888ca2485 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 63c24a135..64fe76f3f 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -776,7 +776,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -785,8 +786,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_2_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -923,111 +930,111 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .getCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listCustomJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .deleteCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .cancelCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .createDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .getDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listDataLabelingJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .deleteDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .cancelDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .createHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .getHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listHyperparameterTuningJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .deleteHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .cancelHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .createBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .getBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listBatchPredictionJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .deleteBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .cancelBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .deleteCustomJobOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1050,8 +1057,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1075,8 +1082,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1099,8 +1106,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java index 5264e6ac9..c399210d6 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 0cbac617c..95963e144 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java index 78a3533f5..0b2a7a47c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 acf8fbc1f..259e106f7 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -543,7 +543,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -552,8 +553,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_3_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -640,60 +647,60 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .uploadModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .getModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .listModelsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .updateModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .deleteModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .exportModelSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .getModelEvaluationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .listModelEvaluationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .getModelEvaluationSliceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .listModelEvaluationSlicesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .uploadModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(UploadModelResponse.class)) @@ -716,8 +723,8 @@ private static Builder initDefaults(Builder builder) { .deleteModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -739,8 +746,8 @@ private static Builder initDefaults(Builder builder) { .exportModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ExportModelResponse.class)) 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 40fcd232b..9941dc0d3 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 @@ -1,5 +1,5 @@ /* - * 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/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 90791989c..3bdd4fa63 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -323,7 +323,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -332,8 +333,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_4_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -396,36 +403,36 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .getTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .listTrainingPipelinesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .cancelTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteTrainingPipelineOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java index fe95183c8..bad71ae8b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 9637382e1..40db5e342 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -40,6 +40,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,7 +170,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -178,8 +180,14 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_5_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -220,8 +228,8 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .predictSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); return builder; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java index bd9792df0..7af9751a2 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 b9bf03dee..5a8015416 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -347,7 +347,8 @@ public static class Builder static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -356,8 +357,14 @@ public static class Builder static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_6_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -426,36 +433,36 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); builder .getSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); builder .listSpecialistPoolsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); builder .deleteSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); builder .updateSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); builder .createSpecialistPoolOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SpecialistPool.class)) @@ -479,8 +486,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -503,8 +510,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SpecialistPool.class)) 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 f23b81c29..347e673b3 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -398,8 +398,7 @@ public final UnaryCallable getDatasetCallable() { * * @param dataset Required. The Dataset which replaces the resource on the server. * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` - * definition, see [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). - * Updatable fields: + * definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields: *

* `display_name` * `description` * `labels` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -576,6 +575,15 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request) * *

{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListDatasetsRequest request =
+   *       ListDatasetsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request);
    *     for (Dataset element : response.getResponsesList()) {
@@ -1090,6 +1098,15 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *
    * 
{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListDataItemsRequest request =
+   *       ListDataItemsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request);
    *     for (DataItem element : response.getResponsesList()) {
@@ -1124,7 +1141,7 @@ public final UnaryCallable listData
    * }
* * @param name Required. The name of the AnnotationSpec resource. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { @@ -1151,7 +1168,7 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { * }

* * @param name Required. The name of the AnnotationSpec resource. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpec getAnnotationSpec(String name) { @@ -1227,7 +1244,7 @@ public final UnaryCallable getAnnotati * }

* * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { @@ -1255,7 +1272,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { * } * * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - *

`projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotationsPagedResponse listAnnotations(String parent) { @@ -1334,6 +1351,16 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest * *

{@code
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListAnnotationsRequest request =
+   *       ListAnnotationsRequest.newBuilder()
+   *           .setParent(
+   *               DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListAnnotationsResponse response =
    *         datasetServiceClient.listAnnotationsCallable().call(request);
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 1f03ae479..973fb97fc 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
@@ -1,5 +1,5 @@
 /*
- * 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/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 5b5723f92..e237f3f9c 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
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -504,6 +504,14 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    *
    * 
{@code
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListEndpointsRequest request =
+   *       ListEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListEndpointsResponse response =
    *         endpointServiceClient.listEndpointsCallable().call(request);
@@ -540,7 +548,7 @@ public final UnaryCallable listEndp
    *
    * @param endpoint Required. The Endpoint which replaces the resource on the server.
    * @param updateMask Required. The update mask applies to the resource. See
-   *     [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   *     [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) {
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 2a6a8584a..dbc08549b 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
@@ -1,5 +1,5 @@
 /*
- * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java
new file mode 100644
index 000000000..2b86ff3a8
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java
@@ -0,0 +1,335 @@
+/*
+ * 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.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStub;
+import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStubSettings;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: A service for serving online feature values.
+ *
+ * 

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ *     FeaturestoreOnlineServingServiceClient.create()) {
+ *   EntityTypeName entityType =
+ *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ *   ReadFeatureValuesResponse response =
+ *       featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the FeaturestoreOnlineServingServiceClient object to clean + * up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * FeaturestoreOnlineServingServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ *     FeaturestoreOnlineServingServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ *     FeaturestoreOnlineServingServiceClient.create(featurestoreOnlineServingServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ *     FeaturestoreOnlineServingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ *     FeaturestoreOnlineServingServiceClient.create(featurestoreOnlineServingServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreOnlineServingServiceClient implements BackgroundResource { + private final FeaturestoreOnlineServingServiceSettings settings; + private final FeaturestoreOnlineServingServiceStub stub; + + /** Constructs an instance of FeaturestoreOnlineServingServiceClient with default settings. */ + public static final FeaturestoreOnlineServingServiceClient create() throws IOException { + return create(FeaturestoreOnlineServingServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FeaturestoreOnlineServingServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final FeaturestoreOnlineServingServiceClient create( + FeaturestoreOnlineServingServiceSettings settings) throws IOException { + return new FeaturestoreOnlineServingServiceClient(settings); + } + + /** + * Constructs an instance of FeaturestoreOnlineServingServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer using + * create(FeaturestoreOnlineServingServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final FeaturestoreOnlineServingServiceClient create( + FeaturestoreOnlineServingServiceStub stub) { + return new FeaturestoreOnlineServingServiceClient(stub); + } + + /** + * Constructs an instance of FeaturestoreOnlineServingServiceClient, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected FeaturestoreOnlineServingServiceClient( + FeaturestoreOnlineServingServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((FeaturestoreOnlineServingServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final FeaturestoreOnlineServingServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FeaturestoreOnlineServingServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   EntityTypeName entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   ReadFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType for the entity being read. + * Value format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be "user". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityType) { + ReadFeatureValuesRequest request = + ReadFeatureValuesRequest.newBuilder() + .setEntityType(entityType == null ? null : entityType.toString()) + .build(); + return readFeatureValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   String entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   ReadFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType for the entity being read. + * Value format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be "user". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadFeatureValuesResponse readFeatureValues(String entityType) { + ReadFeatureValuesRequest request = + ReadFeatureValuesRequest.newBuilder().setEntityType(entityType).build(); + return readFeatureValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ReadFeatureValuesRequest request =
+   *       ReadFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setEntityId("entityId-2102099874")
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .build();
+   *   ReadFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.readFeatureValues(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 ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesRequest request) { + return readFeatureValuesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ReadFeatureValuesRequest request =
+   *       ReadFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setEntityId("entityId-2102099874")
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.readFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   ReadFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + readFeatureValuesCallable() { + return stub.readFeatureValuesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads Feature values for multiple entities. Depending on their size, data for different + * entities may be broken up across multiple responses. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   StreamingReadFeatureValuesRequest request =
+   *       StreamingReadFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllEntityIds(new ArrayList())
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .build();
+   *   ServerStream stream =
+   *       featurestoreOnlineServingServiceClient.streamingReadFeatureValuesCallable().call(request);
+   *   for (ReadFeatureValuesResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamingReadFeatureValuesCallable() { + return stub.streamingReadFeatureValuesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} 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 new file mode 100644 index 000000000..0ee6132f1 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java @@ -0,0 +1,205 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturestoreOnlineServingServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * FeaturestoreOnlineServingServiceSettings.Builder
+ *     featurestoreOnlineServingServiceSettingsBuilder =
+ *         FeaturestoreOnlineServingServiceSettings.newBuilder();
+ * featurestoreOnlineServingServiceSettingsBuilder
+ *     .readFeatureValuesSettings()
+ *     .setRetrySettings(
+ *         featurestoreOnlineServingServiceSettingsBuilder
+ *             .readFeatureValuesSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ *     featurestoreOnlineServingServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreOnlineServingServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to readFeatureValues. */ + public UnaryCallSettings + readFeatureValuesSettings() { + return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()) + .readFeatureValuesSettings(); + } + + /** Returns the object with the settings used for calls to streamingReadFeatureValues. */ + public ServerStreamingCallSettings + streamingReadFeatureValuesSettings() { + return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()) + .streamingReadFeatureValuesSettings(); + } + + public static final FeaturestoreOnlineServingServiceSettings create( + FeaturestoreOnlineServingServiceStubSettings stub) throws IOException { + return new FeaturestoreOnlineServingServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FeaturestoreOnlineServingServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FeaturestoreOnlineServingServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FeaturestoreOnlineServingServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FeaturestoreOnlineServingServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FeaturestoreOnlineServingServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FeaturestoreOnlineServingServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FeaturestoreOnlineServingServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturestoreOnlineServingServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FeaturestoreOnlineServingServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FeaturestoreOnlineServingServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(FeaturestoreOnlineServingServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FeaturestoreOnlineServingServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FeaturestoreOnlineServingServiceStubSettings.newBuilder()); + } + + public FeaturestoreOnlineServingServiceStubSettings.Builder getStubSettingsBuilder() { + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to readFeatureValues. */ + public UnaryCallSettings.Builder + readFeatureValuesSettings() { + return getStubSettingsBuilder().readFeatureValuesSettings(); + } + + /** Returns the builder for the settings used for calls to streamingReadFeatureValues. */ + public ServerStreamingCallSettings.Builder< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesSettings() { + return getStubSettingsBuilder().streamingReadFeatureValuesSettings(); + } + + @Override + public FeaturestoreOnlineServingServiceSettings build() throws IOException { + return new FeaturestoreOnlineServingServiceSettings(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 new file mode 100644 index 000000000..37c34e356 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java @@ -0,0 +1,3222 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The service that handles CRUD and List for resources for Featurestore. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the FeaturestoreServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of FeaturestoreServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ *     FeaturestoreServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * FeaturestoreServiceClient featurestoreServiceClient =
+ *     FeaturestoreServiceClient.create(featurestoreServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ *     FeaturestoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeaturestoreServiceClient featurestoreServiceClient =
+ *     FeaturestoreServiceClient.create(featurestoreServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreServiceClient implements BackgroundResource { + private final FeaturestoreServiceSettings settings; + private final FeaturestoreServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of FeaturestoreServiceClient with default settings. */ + public static final FeaturestoreServiceClient create() throws IOException { + return create(FeaturestoreServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FeaturestoreServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final FeaturestoreServiceClient create(FeaturestoreServiceSettings settings) + throws IOException { + return new FeaturestoreServiceClient(settings); + } + + /** + * Constructs an instance of FeaturestoreServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(FeaturestoreServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final FeaturestoreServiceClient create(FeaturestoreServiceStub stub) { + return new FeaturestoreServiceClient(stub); + } + + /** + * Constructs an instance of FeaturestoreServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected FeaturestoreServiceClient(FeaturestoreServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((FeaturestoreServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final FeaturestoreServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FeaturestoreServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Featurestore in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Featurestore featurestore = Featurestore.newBuilder().build();
+   *   Featurestore response =
+   *       featurestoreServiceClient.createFeaturestoreAsync(parent, featurestore).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create Featurestores. Format: + * `projects/{project}/locations/{location}'` + * @param featurestore Required. The Featurestore to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFeaturestoreAsync(LocationName parent, Featurestore featurestore) { + CreateFeaturestoreRequest request = + CreateFeaturestoreRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFeaturestore(featurestore) + .build(); + return createFeaturestoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Featurestore in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   Featurestore featurestore = Featurestore.newBuilder().build();
+   *   Featurestore response =
+   *       featurestoreServiceClient.createFeaturestoreAsync(parent, featurestore).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create Featurestores. Format: + * `projects/{project}/locations/{location}'` + * @param featurestore Required. The Featurestore to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFeaturestoreAsync(String parent, Featurestore featurestore) { + CreateFeaturestoreRequest request = + CreateFeaturestoreRequest.newBuilder() + .setParent(parent) + .setFeaturestore(featurestore) + .build(); + return createFeaturestoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Featurestore in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeaturestoreRequest request =
+   *       CreateFeaturestoreRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setFeaturestoreId("featurestoreId-1315851738")
+   *           .build();
+   *   Featurestore response = featurestoreServiceClient.createFeaturestoreAsync(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 + createFeaturestoreAsync(CreateFeaturestoreRequest request) { + return createFeaturestoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Featurestore in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeaturestoreRequest request =
+   *       CreateFeaturestoreRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setFeaturestoreId("featurestoreId-1315851738")
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.createFeaturestoreOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Featurestore response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationCallable() { + return stub.createFeaturestoreOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Featurestore in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeaturestoreRequest request =
+   *       CreateFeaturestoreRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setFeaturestoreId("featurestoreId-1315851738")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.createFeaturestoreCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createFeaturestoreCallable() { + return stub.createFeaturestoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+   *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Featurestore resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Featurestore getFeaturestore(FeaturestoreName name) { + GetFeaturestoreRequest request = + GetFeaturestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFeaturestore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Featurestore resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Featurestore getFeaturestore(String name) { + GetFeaturestoreRequest request = GetFeaturestoreRequest.newBuilder().setName(name).build(); + return getFeaturestore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetFeaturestoreRequest request =
+   *       GetFeaturestoreRequest.newBuilder()
+   *           .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .build();
+   *   Featurestore response = featurestoreServiceClient.getFeaturestore(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 Featurestore getFeaturestore(GetFeaturestoreRequest request) { + return getFeaturestoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetFeaturestoreRequest request =
+   *       GetFeaturestoreRequest.newBuilder()
+   *           .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getFeaturestoreCallable().futureCall(request);
+   *   // Do something.
+   *   Featurestore response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getFeaturestoreCallable() { + return stub.getFeaturestoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Featurestores in a given project and location. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   for (Featurestore element :
+   *       featurestoreServiceClient.listFeaturestores(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list Featurestores. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturestoresPagedResponse listFeaturestores(String parent) { + ListFeaturestoresRequest request = + ListFeaturestoresRequest.newBuilder().setParent(parent).build(); + return listFeaturestores(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Featurestores in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturestoresRequest request =
+   *       ListFeaturestoresRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (Featurestore element :
+   *       featurestoreServiceClient.listFeaturestores(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 ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresRequest request) { + return listFeaturestoresPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Featurestores in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturestoresRequest request =
+   *       ListFeaturestoresRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.listFeaturestoresPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Featurestore element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listFeaturestoresPagedCallable() { + return stub.listFeaturestoresPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Featurestores in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturestoresRequest request =
+   *       ListFeaturestoresRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListFeaturestoresResponse response =
+   *         featurestoreServiceClient.listFeaturestoresCallable().call(request);
+   *     for (Featurestore element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listFeaturestoresCallable() { + return stub.listFeaturestoresCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   Featurestore featurestore = Featurestore.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Featurestore response =
+   *       featurestoreServiceClient.updateFeaturestoreAsync(featurestore, updateMask).get();
+   * }
+   * }
+ * + * @param featurestore Required. The Featurestore's `name` field is used to identify the + * Featurestore to be updated. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param updateMask Field mask is used to specify the fields to be overwritten in the + * Featurestore resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the request will + * be overwritten. Set the update_mask to `*` to override all fields. + *

Updatable fields: + *

* `labels` * `online_serving_config.fixed_node_count` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateFeaturestoreAsync(Featurestore featurestore, FieldMask updateMask) { + UpdateFeaturestoreRequest request = + UpdateFeaturestoreRequest.newBuilder() + .setFeaturestore(featurestore) + .setUpdateMask(updateMask) + .build(); + return updateFeaturestoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateFeaturestoreRequest request =
+   *       UpdateFeaturestoreRequest.newBuilder()
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Featurestore response = featurestoreServiceClient.updateFeaturestoreAsync(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 + updateFeaturestoreAsync(UpdateFeaturestoreRequest request) { + return updateFeaturestoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateFeaturestoreRequest request =
+   *       UpdateFeaturestoreRequest.newBuilder()
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.updateFeaturestoreOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Featurestore response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationCallable() { + return stub.updateFeaturestoreOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateFeaturestoreRequest request =
+   *       UpdateFeaturestoreRequest.newBuilder()
+   *           .setFeaturestore(Featurestore.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.updateFeaturestoreCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateFeaturestoreCallable() { + return stub.updateFeaturestoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+   *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeaturestoreAsync( + FeaturestoreName name) { + DeleteFeaturestoreRequest request = + DeleteFeaturestoreRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteFeaturestoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeaturestoreAsync( + String name) { + DeleteFeaturestoreRequest request = + DeleteFeaturestoreRequest.newBuilder().setName(name).build(); + return deleteFeaturestoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeaturestoreRequest request =
+   *       DeleteFeaturestoreRequest.newBuilder()
+   *           .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   featurestoreServiceClient.deleteFeaturestoreAsync(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 deleteFeaturestoreAsync( + DeleteFeaturestoreRequest request) { + return deleteFeaturestoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeaturestoreRequest request =
+   *       DeleteFeaturestoreRequest.newBuilder()
+   *           .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.deleteFeaturestoreOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteFeaturestoreOperationCallable() { + return stub.deleteFeaturestoreOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeaturestoreRequest request =
+   *       DeleteFeaturestoreRequest.newBuilder()
+   *           .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.deleteFeaturestoreCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteFeaturestoreCallable() { + return stub.deleteFeaturestoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EntityType in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+   *   EntityType entityType = EntityType.newBuilder().build();
+   *   EntityType response =
+   *       featurestoreServiceClient.createEntityTypeAsync(parent, entityType).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param entityType The EntityType to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEntityTypeAsync( + FeaturestoreName parent, EntityType entityType) { + CreateEntityTypeRequest request = + CreateEntityTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEntityType(entityType) + .build(); + return createEntityTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EntityType in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   EntityType entityType = EntityType.newBuilder().build();
+   *   EntityType response =
+   *       featurestoreServiceClient.createEntityTypeAsync(parent, entityType).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param entityType The EntityType to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEntityTypeAsync( + String parent, EntityType entityType) { + CreateEntityTypeRequest request = + CreateEntityTypeRequest.newBuilder().setParent(parent).setEntityType(entityType).build(); + return createEntityTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EntityType in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateEntityTypeRequest request =
+   *       CreateEntityTypeRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setEntityType(EntityType.newBuilder().build())
+   *           .setEntityTypeId("entityTypeId767740856")
+   *           .build();
+   *   EntityType response = featurestoreServiceClient.createEntityTypeAsync(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 createEntityTypeAsync( + CreateEntityTypeRequest request) { + return createEntityTypeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EntityType in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateEntityTypeRequest request =
+   *       CreateEntityTypeRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setEntityType(EntityType.newBuilder().build())
+   *           .setEntityTypeId("entityTypeId767740856")
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.createEntityTypeOperationCallable().futureCall(request);
+   *   // Do something.
+   *   EntityType response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationCallable() { + return stub.createEntityTypeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EntityType in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateEntityTypeRequest request =
+   *       CreateEntityTypeRequest.newBuilder()
+   *           .setParent(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setEntityType(EntityType.newBuilder().build())
+   *           .setEntityTypeId("entityTypeId767740856")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.createEntityTypeCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createEntityTypeCallable() { + return stub.createEntityTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName name =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   EntityType response = featurestoreServiceClient.getEntityType(name);
+   * }
+   * }
+ * + * @param name Required. The name of the EntityType resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EntityType getEntityType(EntityTypeName name) { + GetEntityTypeRequest request = + GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEntityType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   EntityType response = featurestoreServiceClient.getEntityType(name);
+   * }
+   * }
+ * + * @param name Required. The name of the EntityType resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EntityType getEntityType(String name) { + GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name).build(); + return getEntityType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetEntityTypeRequest request =
+   *       GetEntityTypeRequest.newBuilder()
+   *           .setName(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   EntityType response = featurestoreServiceClient.getEntityType(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 EntityType getEntityType(GetEntityTypeRequest request) { + return getEntityTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetEntityTypeRequest request =
+   *       GetEntityTypeRequest.newBuilder()
+   *           .setName(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getEntityTypeCallable().futureCall(request);
+   *   // Do something.
+   *   EntityType response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getEntityTypeCallable() { + return stub.getEntityTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EntityTypes in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+   *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName parent) { + ListEntityTypesRequest request = + ListEntityTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEntityTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EntityTypes in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntityTypesPagedResponse listEntityTypes(String parent) { + ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build(); + return listEntityTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EntityTypes in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListEntityTypesRequest request =
+   *       ListEntityTypesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (EntityType element : featurestoreServiceClient.listEntityTypes(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 ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) { + return listEntityTypesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EntityTypes in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListEntityTypesRequest request =
+   *       ListEntityTypesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.listEntityTypesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (EntityType element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEntityTypesPagedCallable() { + return stub.listEntityTypesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EntityTypes in a given Featurestore. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListEntityTypesRequest request =
+   *       ListEntityTypesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListEntityTypesResponse response =
+   *         featurestoreServiceClient.listEntityTypesCallable().call(request);
+   *     for (EntityType element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEntityTypesCallable() { + return stub.listEntityTypesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityType entityType = EntityType.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   EntityType response = featurestoreServiceClient.updateEntityType(entityType, updateMask);
+   * }
+   * }
+ * + * @param entityType Required. The EntityType's `name` field is used to identify the EntityType to + * be updated. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @param updateMask Field mask is used to specify the fields to be overwritten in the EntityType + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. + *

Updatable fields: + *

* `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` + * * `monitoring_config.snapshot_analysis.monitoring_interval` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EntityType updateEntityType(EntityType entityType, FieldMask updateMask) { + UpdateEntityTypeRequest request = + UpdateEntityTypeRequest.newBuilder() + .setEntityType(entityType) + .setUpdateMask(updateMask) + .build(); + return updateEntityType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateEntityTypeRequest request =
+   *       UpdateEntityTypeRequest.newBuilder()
+   *           .setEntityType(EntityType.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   EntityType response = featurestoreServiceClient.updateEntityType(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 EntityType updateEntityType(UpdateEntityTypeRequest request) { + return updateEntityTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateEntityTypeRequest request =
+   *       UpdateEntityTypeRequest.newBuilder()
+   *           .setEntityType(EntityType.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.updateEntityTypeCallable().futureCall(request);
+   *   // Do something.
+   *   EntityType response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateEntityTypeCallable() { + return stub.updateEntityTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName name =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   featurestoreServiceClient.deleteEntityTypeAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the EntityType to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEntityTypeAsync( + EntityTypeName name) { + DeleteEntityTypeRequest request = + DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteEntityTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   featurestoreServiceClient.deleteEntityTypeAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the EntityType to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEntityTypeAsync(String name) { + DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name).build(); + return deleteEntityTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteEntityTypeRequest request =
+   *       DeleteEntityTypeRequest.newBuilder()
+   *           .setName(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   featurestoreServiceClient.deleteEntityTypeAsync(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 deleteEntityTypeAsync( + DeleteEntityTypeRequest request) { + return deleteEntityTypeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteEntityTypeRequest request =
+   *       DeleteEntityTypeRequest.newBuilder()
+   *           .setName(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.deleteEntityTypeOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteEntityTypeOperationCallable() { + return stub.deleteEntityTypeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteEntityTypeRequest request =
+   *       DeleteEntityTypeRequest.newBuilder()
+   *           .setName(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.deleteEntityTypeCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteEntityTypeCallable() { + return stub.deleteEntityTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Feature in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   Feature feature = Feature.newBuilder().build();
+   *   Feature response = featurestoreServiceClient.createFeatureAsync(parent, feature).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the EntityType to create a Feature. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @param feature Required. The Feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + EntityTypeName parent, Feature feature) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFeature(feature) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Feature in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   Feature feature = Feature.newBuilder().build();
+   *   Feature response = featurestoreServiceClient.createFeatureAsync(parent, feature).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the EntityType to create a Feature. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @param feature Required. The Feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + String parent, Feature feature) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder().setParent(parent).setFeature(feature).build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Feature in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeatureRequest request =
+   *       CreateFeatureRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFeature(Feature.newBuilder().build())
+   *           .setFeatureId("featureId-420503887")
+   *           .build();
+   *   Feature response = featurestoreServiceClient.createFeatureAsync(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 createFeatureAsync( + CreateFeatureRequest request) { + return createFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Feature in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeatureRequest request =
+   *       CreateFeatureRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFeature(Feature.newBuilder().build())
+   *           .setFeatureId("featureId-420503887")
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.createFeatureOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Feature response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createFeatureOperationCallable() { + return stub.createFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Feature in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   CreateFeatureRequest request =
+   *       CreateFeatureRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setFeature(Feature.newBuilder().build())
+   *           .setFeatureId("featureId-420503887")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.createFeatureCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createFeatureCallable() { + return stub.createFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch of Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreateFeaturesResponse response =
+   *       featurestoreServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the EntityType to create the batch of Features + * under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @param requests Required. The request message specifying the Features to create. All Features + * must be created under the same parent EntityType. The `parent` field in each child request + * message can be omitted. If `parent` is set in a child request, then the value must match + * the `parent` value in this request message. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchCreateFeaturesAsync(EntityTypeName parent, List requests) { + BatchCreateFeaturesRequest request = + BatchCreateFeaturesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateFeaturesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch of Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreateFeaturesResponse response =
+   *       featurestoreServiceClient.batchCreateFeaturesAsync(parent, requests).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the EntityType to create the batch of Features + * under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @param requests Required. The request message specifying the Features to create. All Features + * must be created under the same parent EntityType. The `parent` field in each child request + * message can be omitted. If `parent` is set in a child request, then the value must match + * the `parent` value in this request message. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchCreateFeaturesAsync(String parent, List requests) { + BatchCreateFeaturesRequest request = + BatchCreateFeaturesRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchCreateFeaturesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch of Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchCreateFeaturesRequest request =
+   *       BatchCreateFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateFeaturesResponse response =
+   *       featurestoreServiceClient.batchCreateFeaturesAsync(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 + batchCreateFeaturesAsync(BatchCreateFeaturesRequest request) { + return batchCreateFeaturesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch of Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchCreateFeaturesRequest request =
+   *       BatchCreateFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.batchCreateFeaturesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreateFeaturesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationCallable() { + return stub.batchCreateFeaturesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch of Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchCreateFeaturesRequest request =
+   *       BatchCreateFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.batchCreateFeaturesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchCreateFeaturesCallable() { + return stub.batchCreateFeaturesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeatureName name =
+   *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
+   *   Feature response = featurestoreServiceClient.getFeature(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Feature resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(FeatureName name) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name =
+   *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *           .toString();
+   *   Feature response = featurestoreServiceClient.getFeature(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Feature resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(String name) { + GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetFeatureRequest request =
+   *       GetFeatureRequest.newBuilder()
+   *           .setName(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .build();
+   *   Feature response = featurestoreServiceClient.getFeature(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 Feature getFeature(GetFeatureRequest request) { + return getFeatureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetFeatureRequest request =
+   *       GetFeatureRequest.newBuilder()
+   *           .setName(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getFeatureCallable().futureCall(request);
+   *   // Do something.
+   *   Feature response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getFeatureCallable() { + return stub.getFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName parent =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   for (Feature element : featurestoreServiceClient.listFeatures(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list Features. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String parent =
+   *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *           .toString();
+   *   for (Feature element : featurestoreServiceClient.listFeatures(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list Features. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(String parent) { + ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturesRequest request =
+   *       ListFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setLatestStatsCount(-878108489)
+   *           .build();
+   *   for (Feature element : featurestoreServiceClient.listFeatures(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) { + return listFeaturesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturesRequest request =
+   *       ListFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setLatestStatsCount(-878108489)
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.listFeaturesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Feature element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listFeaturesPagedCallable() { + return stub.listFeaturesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListFeaturesRequest request =
+   *       ListFeaturesRequest.newBuilder()
+   *           .setParent(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setLatestStatsCount(-878108489)
+   *           .build();
+   *   while (true) {
+   *     ListFeaturesResponse response =
+   *         featurestoreServiceClient.listFeaturesCallable().call(request);
+   *     for (Feature element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listFeaturesCallable() { + return stub.listFeaturesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   Feature feature = Feature.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Feature response = featurestoreServiceClient.updateFeature(feature, updateMask);
+   * }
+   * }
+ * + * @param feature Required. The Feature's `name` field is used to identify the Feature to be + * updated. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * @param updateMask Field mask is used to specify the fields to be overwritten in the Features + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. + *

Updatable fields: + *

* `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` + * * `monitoring_config.snapshot_analysis.monitoring_interval` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature updateFeature(Feature feature, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder().setFeature(feature).setUpdateMask(updateMask).build(); + return updateFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateFeatureRequest request =
+   *       UpdateFeatureRequest.newBuilder()
+   *           .setFeature(Feature.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Feature response = featurestoreServiceClient.updateFeature(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 Feature updateFeature(UpdateFeatureRequest request) { + return updateFeatureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   UpdateFeatureRequest request =
+   *       UpdateFeatureRequest.newBuilder()
+   *           .setFeature(Feature.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.updateFeatureCallable().futureCall(request);
+   *   // Do something.
+   *   Feature response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateFeatureCallable() { + return stub.updateFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeatureName name =
+   *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
+   *   featurestoreServiceClient.deleteFeatureAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Features to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync( + FeatureName name) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String name =
+   *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *           .toString();
+   *   featurestoreServiceClient.deleteFeatureAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Features to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(String name) { + DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureRequest request =
+   *       DeleteFeatureRequest.newBuilder()
+   *           .setName(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .build();
+   *   featurestoreServiceClient.deleteFeatureAsync(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 deleteFeatureAsync( + DeleteFeatureRequest request) { + return deleteFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureRequest request =
+   *       DeleteFeatureRequest.newBuilder()
+   *           .setName(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.deleteFeatureOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteFeatureOperationCallable() { + return stub.deleteFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureRequest request =
+   *       DeleteFeatureRequest.newBuilder()
+   *           .setName(
+   *               FeatureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.deleteFeatureCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteFeatureCallable() { + return stub.deleteFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports Feature values into the Featurestore from a source storage. + * + *

The progress of the import is tracked by the returned operation. The imported features are + * guaranteed to be visible to subsequent read operations after the operation is marked as + * successfully done. + * + *

If an import operation fails, the Feature values returned from reads and exports may be + * inconsistent. If consistency is required, the caller must retry the same import request again + * and wait till the new operation returned is marked as successfully done. + * + *

There are also scenarios where the caller can cause inconsistency. + * + *

- Source data for import contains multiple distinct Feature values for the same entity ID + * and timestamp. - Source is modified during an import. This includes adding, updating, or + * removing source data and/or metadata. Examples of updating metadata include but are not limited + * to changing storage location, storage class, or retention policy. - Online serving cluster is + * under-provisioned. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   ImportFeatureValuesResponse response =
+   *       featurestoreServiceClient.importFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which + * values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importFeatureValuesAsync(EntityTypeName entityType) { + ImportFeatureValuesRequest request = + ImportFeatureValuesRequest.newBuilder() + .setEntityType(entityType == null ? null : entityType.toString()) + .build(); + return importFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports Feature values into the Featurestore from a source storage. + * + *

The progress of the import is tracked by the returned operation. The imported features are + * guaranteed to be visible to subsequent read operations after the operation is marked as + * successfully done. + * + *

If an import operation fails, the Feature values returned from reads and exports may be + * inconsistent. If consistency is required, the caller must retry the same import request again + * and wait till the new operation returned is marked as successfully done. + * + *

There are also scenarios where the caller can cause inconsistency. + * + *

- Source data for import contains multiple distinct Feature values for the same entity ID + * and timestamp. - Source is modified during an import. This includes adding, updating, or + * removing source data and/or metadata. Examples of updating metadata include but are not limited + * to changing storage location, storage class, or retention policy. - Online serving cluster is + * under-provisioned. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   ImportFeatureValuesResponse response =
+   *       featurestoreServiceClient.importFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which + * values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importFeatureValuesAsync(String entityType) { + ImportFeatureValuesRequest request = + ImportFeatureValuesRequest.newBuilder().setEntityType(entityType).build(); + return importFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports Feature values into the Featurestore from a source storage. + * + *

The progress of the import is tracked by the returned operation. The imported features are + * guaranteed to be visible to subsequent read operations after the operation is marked as + * successfully done. + * + *

If an import operation fails, the Feature values returned from reads and exports may be + * inconsistent. If consistency is required, the caller must retry the same import request again + * and wait till the new operation returned is marked as successfully done. + * + *

There are also scenarios where the caller can cause inconsistency. + * + *

- Source data for import contains multiple distinct Feature values for the same entity ID + * and timestamp. - Source is modified during an import. This includes adding, updating, or + * removing source data and/or metadata. Examples of updating metadata include but are not limited + * to changing storage location, storage class, or retention policy. - Online serving cluster is + * under-provisioned. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ImportFeatureValuesRequest request =
+   *       ImportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setEntityIdField("entityIdField512670524")
+   *           .addAllFeatureSpecs(new ArrayList())
+   *           .setDisableOnlineServing(true)
+   *           .setWorkerCount(372044046)
+   *           .build();
+   *   ImportFeatureValuesResponse response =
+   *       featurestoreServiceClient.importFeatureValuesAsync(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 + importFeatureValuesAsync(ImportFeatureValuesRequest request) { + return importFeatureValuesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports Feature values into the Featurestore from a source storage. + * + *

The progress of the import is tracked by the returned operation. The imported features are + * guaranteed to be visible to subsequent read operations after the operation is marked as + * successfully done. + * + *

If an import operation fails, the Feature values returned from reads and exports may be + * inconsistent. If consistency is required, the caller must retry the same import request again + * and wait till the new operation returned is marked as successfully done. + * + *

There are also scenarios where the caller can cause inconsistency. + * + *

- Source data for import contains multiple distinct Feature values for the same entity ID + * and timestamp. - Source is modified during an import. This includes adding, updating, or + * removing source data and/or metadata. Examples of updating metadata include but are not limited + * to changing storage location, storage class, or retention policy. - Online serving cluster is + * under-provisioned. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ImportFeatureValuesRequest request =
+   *       ImportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setEntityIdField("entityIdField512670524")
+   *           .addAllFeatureSpecs(new ArrayList())
+   *           .setDisableOnlineServing(true)
+   *           .setWorkerCount(372044046)
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.importFeatureValuesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationCallable() { + return stub.importFeatureValuesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports Feature values into the Featurestore from a source storage. + * + *

The progress of the import is tracked by the returned operation. The imported features are + * guaranteed to be visible to subsequent read operations after the operation is marked as + * successfully done. + * + *

If an import operation fails, the Feature values returned from reads and exports may be + * inconsistent. If consistency is required, the caller must retry the same import request again + * and wait till the new operation returned is marked as successfully done. + * + *

There are also scenarios where the caller can cause inconsistency. + * + *

- Source data for import contains multiple distinct Feature values for the same entity ID + * and timestamp. - Source is modified during an import. This includes adding, updating, or + * removing source data and/or metadata. Examples of updating metadata include but are not limited + * to changing storage location, storage class, or retention policy. - Online serving cluster is + * under-provisioned. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ImportFeatureValuesRequest request =
+   *       ImportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setEntityIdField("entityIdField512670524")
+   *           .addAllFeatureSpecs(new ArrayList())
+   *           .setDisableOnlineServing(true)
+   *           .setWorkerCount(372044046)
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.importFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importFeatureValuesCallable() { + return stub.importFeatureValuesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch reads Feature values from a Featurestore. + * + *

This API enables batch reading Feature values, where each read instance in the batch may + * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is + * guaranteed for Feature values of each read instance as of each instance's read timestamp. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   FeaturestoreName featurestore =
+   *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+   *   BatchReadFeatureValuesResponse response =
+   *       featurestoreServiceClient.batchReadFeatureValuesAsync(featurestore).get();
+   * }
+   * }
+ * + * @param featurestore Required. The resource name of the Featurestore from which to query Feature + * values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesAsync(FeaturestoreName featurestore) { + BatchReadFeatureValuesRequest request = + BatchReadFeatureValuesRequest.newBuilder() + .setFeaturestore(featurestore == null ? null : featurestore.toString()) + .build(); + return batchReadFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch reads Feature values from a Featurestore. + * + *

This API enables batch reading Feature values, where each read instance in the batch may + * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is + * guaranteed for Feature values of each read instance as of each instance's read timestamp. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String featurestore =
+   *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+   *   BatchReadFeatureValuesResponse response =
+   *       featurestoreServiceClient.batchReadFeatureValuesAsync(featurestore).get();
+   * }
+   * }
+ * + * @param featurestore Required. The resource name of the Featurestore from which to query Feature + * values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesAsync(String featurestore) { + BatchReadFeatureValuesRequest request = + BatchReadFeatureValuesRequest.newBuilder().setFeaturestore(featurestore).build(); + return batchReadFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch reads Feature values from a Featurestore. + * + *

This API enables batch reading Feature values, where each read instance in the batch may + * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is + * guaranteed for Feature values of each read instance as of each instance's read timestamp. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchReadFeatureValuesRequest request =
+   *       BatchReadFeatureValuesRequest.newBuilder()
+   *           .setFeaturestore(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .addAllEntityTypeSpecs(new ArrayList())
+   *           .build();
+   *   BatchReadFeatureValuesResponse response =
+   *       featurestoreServiceClient.batchReadFeatureValuesAsync(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< + BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesAsync(BatchReadFeatureValuesRequest request) { + return batchReadFeatureValuesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch reads Feature values from a Featurestore. + * + *

This API enables batch reading Feature values, where each read instance in the batch may + * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is + * guaranteed for Feature values of each read instance as of each instance's read timestamp. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchReadFeatureValuesRequest request =
+   *       BatchReadFeatureValuesRequest.newBuilder()
+   *           .setFeaturestore(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .addAllEntityTypeSpecs(new ArrayList())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           featurestoreServiceClient
+   *               .batchReadFeatureValuesOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   BatchReadFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationCallable() { + return stub.batchReadFeatureValuesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch reads Feature values from a Featurestore. + * + *

This API enables batch reading Feature values, where each read instance in the batch may + * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is + * guaranteed for Feature values of each read instance as of each instance's read timestamp. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   BatchReadFeatureValuesRequest request =
+   *       BatchReadFeatureValuesRequest.newBuilder()
+   *           .setFeaturestore(
+   *               FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .addAllEntityTypeSpecs(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.batchReadFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchReadFeatureValuesCallable() { + return stub.batchReadFeatureValuesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Feature values from all the entities of a target EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   ExportFeatureValuesResponse response =
+   *       featurestoreServiceClient.exportFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportFeatureValuesAsync(EntityTypeName entityType) { + ExportFeatureValuesRequest request = + ExportFeatureValuesRequest.newBuilder() + .setEntityType(entityType == null ? null : entityType.toString()) + .build(); + return exportFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Feature values from all the entities of a target EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   ExportFeatureValuesResponse response =
+   *       featurestoreServiceClient.exportFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportFeatureValuesAsync(String entityType) { + ExportFeatureValuesRequest request = + ExportFeatureValuesRequest.newBuilder().setEntityType(entityType).build(); + return exportFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Feature values from all the entities of a target EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ExportFeatureValuesRequest request =
+   *       ExportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .addAllSettings(new ArrayList())
+   *           .build();
+   *   ExportFeatureValuesResponse response =
+   *       featurestoreServiceClient.exportFeatureValuesAsync(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 + exportFeatureValuesAsync(ExportFeatureValuesRequest request) { + return exportFeatureValuesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Feature values from all the entities of a target EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ExportFeatureValuesRequest request =
+   *       ExportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .addAllSettings(new ArrayList())
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.exportFeatureValuesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationCallable() { + return stub.exportFeatureValuesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Feature values from all the entities of a target EntityType. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ExportFeatureValuesRequest request =
+   *       ExportFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setDestination(FeatureValueDestination.newBuilder().build())
+   *           .setFeatureSelector(FeatureSelector.newBuilder().build())
+   *           .addAllSettings(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.exportFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportFeatureValuesCallable() { + return stub.exportFeatureValuesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Features matching a query in a given project. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param location Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchFeaturesPagedResponse searchFeatures(LocationName location) { + SearchFeaturesRequest request = + SearchFeaturesRequest.newBuilder() + .setLocation(location == null ? null : location.toString()) + .build(); + return searchFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Features matching a query in a given project. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param location Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchFeaturesPagedResponse searchFeatures(String location) { + SearchFeaturesRequest request = + SearchFeaturesRequest.newBuilder().setLocation(location).build(); + return searchFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Features matching a query in a given project. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SearchFeaturesRequest request =
+   *       SearchFeaturesRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Feature element : featurestoreServiceClient.searchFeatures(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 SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest request) { + return searchFeaturesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Features matching a query in a given project. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SearchFeaturesRequest request =
+   *       SearchFeaturesRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.searchFeaturesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Feature element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchFeaturesPagedCallable() { + return stub.searchFeaturesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Features matching a query in a given project. + * + *

Sample code: + * + *

{@code
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SearchFeaturesRequest request =
+   *       SearchFeaturesRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchFeaturesResponse response =
+   *         featurestoreServiceClient.searchFeaturesCallable().call(request);
+   *     for (Feature element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchFeaturesCallable() { + return stub.searchFeaturesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFeaturestoresPagedResponse + extends AbstractPagedListResponse< + ListFeaturestoresRequest, + ListFeaturestoresResponse, + Featurestore, + ListFeaturestoresPage, + ListFeaturestoresFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFeaturestoresPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListFeaturestoresPagedResponse apply(ListFeaturestoresPage input) { + return new ListFeaturestoresPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListFeaturestoresPagedResponse(ListFeaturestoresPage page) { + super(page, ListFeaturestoresFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFeaturestoresPage + extends AbstractPage< + ListFeaturestoresRequest, + ListFeaturestoresResponse, + Featurestore, + ListFeaturestoresPage> { + + private ListFeaturestoresPage( + PageContext context, + ListFeaturestoresResponse response) { + super(context, response); + } + + private static ListFeaturestoresPage createEmptyPage() { + return new ListFeaturestoresPage(null, null); + } + + @Override + protected ListFeaturestoresPage createPage( + PageContext context, + ListFeaturestoresResponse response) { + return new ListFeaturestoresPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFeaturestoresFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFeaturestoresRequest, + ListFeaturestoresResponse, + Featurestore, + ListFeaturestoresPage, + ListFeaturestoresFixedSizeCollection> { + + private ListFeaturestoresFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFeaturestoresFixedSizeCollection createEmptyCollection() { + return new ListFeaturestoresFixedSizeCollection(null, 0); + } + + @Override + protected ListFeaturestoresFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFeaturestoresFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEntityTypesPagedResponse + extends AbstractPagedListResponse< + ListEntityTypesRequest, + ListEntityTypesResponse, + EntityType, + ListEntityTypesPage, + ListEntityTypesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEntityTypesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListEntityTypesPagedResponse apply(ListEntityTypesPage input) { + return new ListEntityTypesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListEntityTypesPagedResponse(ListEntityTypesPage page) { + super(page, ListEntityTypesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEntityTypesPage + extends AbstractPage< + ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { + + private ListEntityTypesPage( + PageContext context, + ListEntityTypesResponse response) { + super(context, response); + } + + private static ListEntityTypesPage createEmptyPage() { + return new ListEntityTypesPage(null, null); + } + + @Override + protected ListEntityTypesPage createPage( + PageContext context, + ListEntityTypesResponse response) { + return new ListEntityTypesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEntityTypesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEntityTypesRequest, + ListEntityTypesResponse, + EntityType, + ListEntityTypesPage, + ListEntityTypesFixedSizeCollection> { + + private ListEntityTypesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEntityTypesFixedSizeCollection createEmptyCollection() { + return new ListEntityTypesFixedSizeCollection(null, 0); + } + + @Override + protected ListEntityTypesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEntityTypesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFeaturesPagedResponse + extends AbstractPagedListResponse< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListFeaturesPagedResponse apply(ListFeaturesPage input) { + return new ListFeaturesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListFeaturesPagedResponse(ListFeaturesPage page) { + super(page, ListFeaturesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFeaturesPage + extends AbstractPage { + + private ListFeaturesPage( + PageContext context, + ListFeaturesResponse response) { + super(context, response); + } + + private static ListFeaturesPage createEmptyPage() { + return new ListFeaturesPage(null, null); + } + + @Override + protected ListFeaturesPage createPage( + PageContext context, + ListFeaturesResponse response) { + return new ListFeaturesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFeaturesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFeaturesFixedSizeCollection createEmptyCollection() { + return new ListFeaturesFixedSizeCollection(null, 0); + } + + @Override + protected ListFeaturesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFeaturesFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchFeaturesPagedResponse + extends AbstractPagedListResponse< + SearchFeaturesRequest, + SearchFeaturesResponse, + Feature, + SearchFeaturesPage, + SearchFeaturesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchFeaturesPagedResponse apply(SearchFeaturesPage input) { + return new SearchFeaturesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchFeaturesPagedResponse(SearchFeaturesPage page) { + super(page, SearchFeaturesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchFeaturesPage + extends AbstractPage< + SearchFeaturesRequest, SearchFeaturesResponse, Feature, SearchFeaturesPage> { + + private SearchFeaturesPage( + PageContext context, + SearchFeaturesResponse response) { + super(context, response); + } + + private static SearchFeaturesPage createEmptyPage() { + return new SearchFeaturesPage(null, null); + } + + @Override + protected SearchFeaturesPage createPage( + PageContext context, + SearchFeaturesResponse response) { + return new SearchFeaturesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchFeaturesFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchFeaturesRequest, + SearchFeaturesResponse, + Feature, + SearchFeaturesPage, + SearchFeaturesFixedSizeCollection> { + + private SearchFeaturesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchFeaturesFixedSizeCollection createEmptyCollection() { + return new SearchFeaturesFixedSizeCollection(null, 0); + } + + @Override + protected SearchFeaturesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchFeaturesFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..1bf74bb3b --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java @@ -0,0 +1,582 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturestoreServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * FeaturestoreServiceSettings.Builder featurestoreServiceSettingsBuilder =
+ *     FeaturestoreServiceSettings.newBuilder();
+ * featurestoreServiceSettingsBuilder
+ *     .getFeaturestoreSettings()
+ *     .setRetrySettings(
+ *         featurestoreServiceSettingsBuilder
+ *             .getFeaturestoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ *     featurestoreServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createFeaturestore. */ + public UnaryCallSettings createFeaturestoreSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).createFeaturestoreSettings(); + } + + /** Returns the object with the settings used for calls to createFeaturestore. */ + public OperationCallSettings< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .createFeaturestoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to getFeaturestore. */ + public UnaryCallSettings getFeaturestoreSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).getFeaturestoreSettings(); + } + + /** Returns the object with the settings used for calls to listFeaturestores. */ + public PagedCallSettings< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).listFeaturestoresSettings(); + } + + /** Returns the object with the settings used for calls to updateFeaturestore. */ + public UnaryCallSettings updateFeaturestoreSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).updateFeaturestoreSettings(); + } + + /** Returns the object with the settings used for calls to updateFeaturestore. */ + public OperationCallSettings< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .updateFeaturestoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFeaturestore. */ + public UnaryCallSettings deleteFeaturestoreSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeaturestoreSettings(); + } + + /** Returns the object with the settings used for calls to deleteFeaturestore. */ + public OperationCallSettings + deleteFeaturestoreOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .deleteFeaturestoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to createEntityType. */ + public UnaryCallSettings createEntityTypeSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).createEntityTypeSettings(); + } + + /** Returns the object with the settings used for calls to createEntityType. */ + public OperationCallSettings< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .createEntityTypeOperationSettings(); + } + + /** Returns the object with the settings used for calls to getEntityType. */ + public UnaryCallSettings getEntityTypeSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).getEntityTypeSettings(); + } + + /** Returns the object with the settings used for calls to listEntityTypes. */ + public PagedCallSettings< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).listEntityTypesSettings(); + } + + /** Returns the object with the settings used for calls to updateEntityType. */ + public UnaryCallSettings updateEntityTypeSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).updateEntityTypeSettings(); + } + + /** Returns the object with the settings used for calls to deleteEntityType. */ + public UnaryCallSettings deleteEntityTypeSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteEntityTypeSettings(); + } + + /** Returns the object with the settings used for calls to deleteEntityType. */ + public OperationCallSettings + deleteEntityTypeOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .deleteEntityTypeOperationSettings(); + } + + /** Returns the object with the settings used for calls to createFeature. */ + public UnaryCallSettings createFeatureSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).createFeatureSettings(); + } + + /** Returns the object with the settings used for calls to createFeature. */ + public OperationCallSettings + createFeatureOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).createFeatureOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateFeatures. */ + public UnaryCallSettings batchCreateFeaturesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).batchCreateFeaturesSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateFeatures. */ + public OperationCallSettings< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .batchCreateFeaturesOperationSettings(); + } + + /** Returns the object with the settings used for calls to getFeature. */ + public UnaryCallSettings getFeatureSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).getFeatureSettings(); + } + + /** Returns the object with the settings used for calls to listFeatures. */ + public PagedCallSettings + listFeaturesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).listFeaturesSettings(); + } + + /** Returns the object with the settings used for calls to updateFeature. */ + public UnaryCallSettings updateFeatureSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).updateFeatureSettings(); + } + + /** Returns the object with the settings used for calls to deleteFeature. */ + public UnaryCallSettings deleteFeatureSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureSettings(); + } + + /** Returns the object with the settings used for calls to deleteFeature. */ + public OperationCallSettings + deleteFeatureOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureOperationSettings(); + } + + /** Returns the object with the settings used for calls to importFeatureValues. */ + public UnaryCallSettings importFeatureValuesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).importFeatureValuesSettings(); + } + + /** Returns the object with the settings used for calls to importFeatureValues. */ + public OperationCallSettings< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .importFeatureValuesOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchReadFeatureValues. */ + public UnaryCallSettings + batchReadFeatureValuesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).batchReadFeatureValuesSettings(); + } + + /** Returns the object with the settings used for calls to batchReadFeatureValues. */ + public OperationCallSettings< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .batchReadFeatureValuesOperationSettings(); + } + + /** Returns the object with the settings used for calls to exportFeatureValues. */ + public UnaryCallSettings exportFeatureValuesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).exportFeatureValuesSettings(); + } + + /** Returns the object with the settings used for calls to exportFeatureValues. */ + public OperationCallSettings< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .exportFeatureValuesOperationSettings(); + } + + /** Returns the object with the settings used for calls to searchFeatures. */ + public PagedCallSettings< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).searchFeaturesSettings(); + } + + public static final FeaturestoreServiceSettings create(FeaturestoreServiceStubSettings stub) + throws IOException { + return new FeaturestoreServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FeaturestoreServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FeaturestoreServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FeaturestoreServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FeaturestoreServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FeaturestoreServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FeaturestoreServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FeaturestoreServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturestoreServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FeaturestoreServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FeaturestoreServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(FeaturestoreServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FeaturestoreServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FeaturestoreServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createFeaturestore. */ + public UnaryCallSettings.Builder + createFeaturestoreSettings() { + return getStubSettingsBuilder().createFeaturestoreSettings(); + } + + /** Returns the builder for the settings used for calls to createFeaturestore. */ + public OperationCallSettings.Builder< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings() { + return getStubSettingsBuilder().createFeaturestoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getFeaturestore. */ + public UnaryCallSettings.Builder + getFeaturestoreSettings() { + return getStubSettingsBuilder().getFeaturestoreSettings(); + } + + /** Returns the builder for the settings used for calls to listFeaturestores. */ + public PagedCallSettings.Builder< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings() { + return getStubSettingsBuilder().listFeaturestoresSettings(); + } + + /** Returns the builder for the settings used for calls to updateFeaturestore. */ + public UnaryCallSettings.Builder + updateFeaturestoreSettings() { + return getStubSettingsBuilder().updateFeaturestoreSettings(); + } + + /** Returns the builder for the settings used for calls to updateFeaturestore. */ + public OperationCallSettings.Builder< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings() { + return getStubSettingsBuilder().updateFeaturestoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFeaturestore. */ + public UnaryCallSettings.Builder + deleteFeaturestoreSettings() { + return getStubSettingsBuilder().deleteFeaturestoreSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFeaturestore. */ + public OperationCallSettings.Builder + deleteFeaturestoreOperationSettings() { + return getStubSettingsBuilder().deleteFeaturestoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createEntityType. */ + public UnaryCallSettings.Builder + createEntityTypeSettings() { + return getStubSettingsBuilder().createEntityTypeSettings(); + } + + /** Returns the builder for the settings used for calls to createEntityType. */ + public OperationCallSettings.Builder< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings() { + return getStubSettingsBuilder().createEntityTypeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getEntityType. */ + public UnaryCallSettings.Builder getEntityTypeSettings() { + return getStubSettingsBuilder().getEntityTypeSettings(); + } + + /** Returns the builder for the settings used for calls to listEntityTypes. */ + public PagedCallSettings.Builder< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings() { + return getStubSettingsBuilder().listEntityTypesSettings(); + } + + /** Returns the builder for the settings used for calls to updateEntityType. */ + public UnaryCallSettings.Builder + updateEntityTypeSettings() { + return getStubSettingsBuilder().updateEntityTypeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntityType. */ + public UnaryCallSettings.Builder + deleteEntityTypeSettings() { + return getStubSettingsBuilder().deleteEntityTypeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntityType. */ + public OperationCallSettings.Builder + deleteEntityTypeOperationSettings() { + return getStubSettingsBuilder().deleteEntityTypeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createFeature. */ + public UnaryCallSettings.Builder createFeatureSettings() { + return getStubSettingsBuilder().createFeatureSettings(); + } + + /** Returns the builder for the settings used for calls to createFeature. */ + public OperationCallSettings.Builder< + CreateFeatureRequest, Feature, CreateFeatureOperationMetadata> + createFeatureOperationSettings() { + return getStubSettingsBuilder().createFeatureOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateFeatures. */ + public UnaryCallSettings.Builder + batchCreateFeaturesSettings() { + return getStubSettingsBuilder().batchCreateFeaturesSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateFeatures. */ + public OperationCallSettings.Builder< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings() { + return getStubSettingsBuilder().batchCreateFeaturesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getFeature. */ + public UnaryCallSettings.Builder getFeatureSettings() { + return getStubSettingsBuilder().getFeatureSettings(); + } + + /** Returns the builder for the settings used for calls to listFeatures. */ + public PagedCallSettings.Builder< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> + listFeaturesSettings() { + return getStubSettingsBuilder().listFeaturesSettings(); + } + + /** Returns the builder for the settings used for calls to updateFeature. */ + public UnaryCallSettings.Builder updateFeatureSettings() { + return getStubSettingsBuilder().updateFeatureSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFeature. */ + public UnaryCallSettings.Builder deleteFeatureSettings() { + return getStubSettingsBuilder().deleteFeatureSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFeature. */ + public OperationCallSettings.Builder + deleteFeatureOperationSettings() { + return getStubSettingsBuilder().deleteFeatureOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importFeatureValues. */ + public UnaryCallSettings.Builder + importFeatureValuesSettings() { + return getStubSettingsBuilder().importFeatureValuesSettings(); + } + + /** Returns the builder for the settings used for calls to importFeatureValues. */ + public OperationCallSettings.Builder< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings() { + return getStubSettingsBuilder().importFeatureValuesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchReadFeatureValues. */ + public UnaryCallSettings.Builder + batchReadFeatureValuesSettings() { + return getStubSettingsBuilder().batchReadFeatureValuesSettings(); + } + + /** Returns the builder for the settings used for calls to batchReadFeatureValues. */ + public OperationCallSettings.Builder< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings() { + return getStubSettingsBuilder().batchReadFeatureValuesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to exportFeatureValues. */ + public UnaryCallSettings.Builder + exportFeatureValuesSettings() { + return getStubSettingsBuilder().exportFeatureValuesSettings(); + } + + /** Returns the builder for the settings used for calls to exportFeatureValues. */ + public OperationCallSettings.Builder< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings() { + return getStubSettingsBuilder().exportFeatureValuesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to searchFeatures. */ + public PagedCallSettings.Builder< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings() { + return getStubSettingsBuilder().searchFeaturesSettings(); + } + + @Override + public FeaturestoreServiceSettings build() throws IOException { + return new FeaturestoreServiceSettings(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 new file mode 100644 index 000000000..a7fc69a1a --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java @@ -0,0 +1,1193 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service for managing Vertex AI's IndexEndpoints. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ *     IndexEndpointServiceClient.create()) {
+ *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ *   IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the IndexEndpointServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of IndexEndpointServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ *     IndexEndpointServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * IndexEndpointServiceClient indexEndpointServiceClient =
+ *     IndexEndpointServiceClient.create(indexEndpointServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ *     IndexEndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IndexEndpointServiceClient indexEndpointServiceClient =
+ *     IndexEndpointServiceClient.create(indexEndpointServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexEndpointServiceClient implements BackgroundResource { + private final IndexEndpointServiceSettings settings; + private final IndexEndpointServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of IndexEndpointServiceClient with default settings. */ + public static final IndexEndpointServiceClient create() throws IOException { + return create(IndexEndpointServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of IndexEndpointServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final IndexEndpointServiceClient create(IndexEndpointServiceSettings settings) + throws IOException { + return new IndexEndpointServiceClient(settings); + } + + /** + * Constructs an instance of IndexEndpointServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(IndexEndpointServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final IndexEndpointServiceClient create(IndexEndpointServiceStub stub) { + return new IndexEndpointServiceClient(stub); + } + + /** + * Constructs an instance of IndexEndpointServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected IndexEndpointServiceClient(IndexEndpointServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((IndexEndpointServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final IndexEndpointServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public IndexEndpointServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+   *   IndexEndpoint response =
+   *       indexEndpointServiceClient.createIndexEndpointAsync(parent, indexEndpoint).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * @param indexEndpoint Required. The IndexEndpoint to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createIndexEndpointAsync(LocationName parent, IndexEndpoint indexEndpoint) { + CreateIndexEndpointRequest request = + CreateIndexEndpointRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIndexEndpoint(indexEndpoint) + .build(); + return createIndexEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+   *   IndexEndpoint response =
+   *       indexEndpointServiceClient.createIndexEndpointAsync(parent, indexEndpoint).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * @param indexEndpoint Required. The IndexEndpoint to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createIndexEndpointAsync(String parent, IndexEndpoint indexEndpoint) { + CreateIndexEndpointRequest request = + CreateIndexEndpointRequest.newBuilder() + .setParent(parent) + .setIndexEndpoint(indexEndpoint) + .build(); + return createIndexEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   CreateIndexEndpointRequest request =
+   *       CreateIndexEndpointRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+   *           .build();
+   *   IndexEndpoint response = indexEndpointServiceClient.createIndexEndpointAsync(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 + createIndexEndpointAsync(CreateIndexEndpointRequest request) { + return createIndexEndpointOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   CreateIndexEndpointRequest request =
+   *       CreateIndexEndpointRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       indexEndpointServiceClient.createIndexEndpointOperationCallable().futureCall(request);
+   *   // Do something.
+   *   IndexEndpoint response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationCallable() { + return stub.createIndexEndpointOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   CreateIndexEndpointRequest request =
+   *       CreateIndexEndpointRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.createIndexEndpointCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createIndexEndpointCallable() { + return stub.createIndexEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+   *   IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) { + GetIndexEndpointRequest request = + GetIndexEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getIndexEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+   *   IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IndexEndpoint getIndexEndpoint(String name) { + GetIndexEndpointRequest request = GetIndexEndpointRequest.newBuilder().setName(name).build(); + return getIndexEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIndexEndpointRequest request =
+   *       GetIndexEndpointRequest.newBuilder()
+   *           .setName(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .build();
+   *   IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(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 IndexEndpoint getIndexEndpoint(GetIndexEndpointRequest request) { + return getIndexEndpointCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIndexEndpointRequest request =
+   *       GetIndexEndpointRequest.newBuilder()
+   *           .setName(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.getIndexEndpointCallable().futureCall(request);
+   *   // Do something.
+   *   IndexEndpoint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIndexEndpointCallable() { + return stub.getIndexEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists IndexEndpoints in a Location. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListIndexEndpointsRequest request =
+   *       ListIndexEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (IndexEndpoint element :
+   *       indexEndpointServiceClient.listIndexEndpoints(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 ListIndexEndpointsPagedResponse listIndexEndpoints( + ListIndexEndpointsRequest request) { + return listIndexEndpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists IndexEndpoints in a Location. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListIndexEndpointsRequest request =
+   *       ListIndexEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListIndexEndpointsResponse response =
+   *         indexEndpointServiceClient.listIndexEndpointsCallable().call(request);
+   *     for (IndexEndpoint element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listIndexEndpointsCallable() { + return stub.listIndexEndpointsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   IndexEndpoint response =
+   *       indexEndpointServiceClient.updateIndexEndpoint(indexEndpoint, updateMask);
+   * }
+   * }
+ * + * @param indexEndpoint Required. The IndexEndpoint which replaces the resource on the server. + * @param updateMask Required. The update mask applies to the resource. See + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IndexEndpoint updateIndexEndpoint( + IndexEndpoint indexEndpoint, FieldMask updateMask) { + UpdateIndexEndpointRequest request = + UpdateIndexEndpointRequest.newBuilder() + .setIndexEndpoint(indexEndpoint) + .setUpdateMask(updateMask) + .build(); + return updateIndexEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   UpdateIndexEndpointRequest request =
+   *       UpdateIndexEndpointRequest.newBuilder()
+   *           .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   IndexEndpoint response = indexEndpointServiceClient.updateIndexEndpoint(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 IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest request) { + return updateIndexEndpointCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   UpdateIndexEndpointRequest request =
+   *       UpdateIndexEndpointRequest.newBuilder()
+   *           .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.updateIndexEndpointCallable().futureCall(request);
+   *   // Do something.
+   *   IndexEndpoint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateIndexEndpointCallable() { + return stub.updateIndexEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+   *   indexEndpointServiceClient.deleteIndexEndpointAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteIndexEndpointAsync( + IndexEndpointName name) { + DeleteIndexEndpointRequest request = + DeleteIndexEndpointRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteIndexEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+   *   indexEndpointServiceClient.deleteIndexEndpointAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteIndexEndpointAsync( + String name) { + DeleteIndexEndpointRequest request = + DeleteIndexEndpointRequest.newBuilder().setName(name).build(); + return deleteIndexEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeleteIndexEndpointRequest request =
+   *       DeleteIndexEndpointRequest.newBuilder()
+   *           .setName(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .build();
+   *   indexEndpointServiceClient.deleteIndexEndpointAsync(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 deleteIndexEndpointAsync( + DeleteIndexEndpointRequest request) { + return deleteIndexEndpointOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeleteIndexEndpointRequest request =
+   *       DeleteIndexEndpointRequest.newBuilder()
+   *           .setName(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       indexEndpointServiceClient.deleteIndexEndpointOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteIndexEndpointOperationCallable() { + return stub.deleteIndexEndpointOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an IndexEndpoint. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeleteIndexEndpointRequest request =
+   *       DeleteIndexEndpointRequest.newBuilder()
+   *           .setName(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.deleteIndexEndpointCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteIndexEndpointCallable() { + return stub.deleteIndexEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty + * Indexes can be deployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   IndexEndpointName indexEndpoint =
+   *       IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+   *   DeployedIndex deployedIndex = DeployedIndex.newBuilder().build();
+   *   DeployIndexResponse response =
+   *       indexEndpointServiceClient.deployIndexAsync(indexEndpoint, deployedIndex).get();
+   * }
+   * }
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param deployedIndex Required. The DeployedIndex to be created within the IndexEndpoint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deployIndexAsync( + IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { + DeployIndexRequest request = + DeployIndexRequest.newBuilder() + .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) + .setDeployedIndex(deployedIndex) + .build(); + return deployIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty + * Indexes can be deployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   String indexEndpoint =
+   *       IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+   *   DeployedIndex deployedIndex = DeployedIndex.newBuilder().build();
+   *   DeployIndexResponse response =
+   *       indexEndpointServiceClient.deployIndexAsync(indexEndpoint, deployedIndex).get();
+   * }
+   * }
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param deployedIndex Required. The DeployedIndex to be created within the IndexEndpoint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deployIndexAsync( + String indexEndpoint, DeployedIndex deployedIndex) { + DeployIndexRequest request = + DeployIndexRequest.newBuilder() + .setIndexEndpoint(indexEndpoint) + .setDeployedIndex(deployedIndex) + .build(); + return deployIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty + * Indexes can be deployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeployIndexRequest request =
+   *       DeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndex(DeployedIndex.newBuilder().build())
+   *           .build();
+   *   DeployIndexResponse response = indexEndpointServiceClient.deployIndexAsync(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 deployIndexAsync( + DeployIndexRequest request) { + return deployIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty + * Indexes can be deployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeployIndexRequest request =
+   *       DeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndex(DeployedIndex.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       indexEndpointServiceClient.deployIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeployIndexResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationCallable() { + return stub.deployIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty + * Indexes can be deployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   DeployIndexRequest request =
+   *       DeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndex(DeployedIndex.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.deployIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deployIndexCallable() { + return stub.deployIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   IndexEndpointName indexEndpoint =
+   *       IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+   *   String deployedIndexId = "deployedIndexId-1101212953";
+   *   UndeployIndexResponse response =
+   *       indexEndpointServiceClient.undeployIndexAsync(indexEndpoint, deployedIndexId).get();
+   * }
+   * }
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an + * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param deployedIndexId Required. The ID of the DeployedIndex to be undeployed from the + * IndexEndpoint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + undeployIndexAsync(IndexEndpointName indexEndpoint, String deployedIndexId) { + UndeployIndexRequest request = + UndeployIndexRequest.newBuilder() + .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) + .setDeployedIndexId(deployedIndexId) + .build(); + return undeployIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   String indexEndpoint =
+   *       IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+   *   String deployedIndexId = "deployedIndexId-1101212953";
+   *   UndeployIndexResponse response =
+   *       indexEndpointServiceClient.undeployIndexAsync(indexEndpoint, deployedIndexId).get();
+   * }
+   * }
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an + * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param deployedIndexId Required. The ID of the DeployedIndex to be undeployed from the + * IndexEndpoint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + undeployIndexAsync(String indexEndpoint, String deployedIndexId) { + UndeployIndexRequest request = + UndeployIndexRequest.newBuilder() + .setIndexEndpoint(indexEndpoint) + .setDeployedIndexId(deployedIndexId) + .build(); + return undeployIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   UndeployIndexRequest request =
+   *       UndeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndexId("deployedIndexId-1101212953")
+   *           .build();
+   *   UndeployIndexResponse response = indexEndpointServiceClient.undeployIndexAsync(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 + undeployIndexAsync(UndeployIndexRequest request) { + return undeployIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   UndeployIndexRequest request =
+   *       UndeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndexId("deployedIndexId-1101212953")
+   *           .build();
+   *   OperationFuture future =
+   *       indexEndpointServiceClient.undeployIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UndeployIndexResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationCallable() { + return stub.undeployIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + *

Sample code: + * + *

{@code
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   UndeployIndexRequest request =
+   *       UndeployIndexRequest.newBuilder()
+   *           .setIndexEndpoint(
+   *               IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+   *           .setDeployedIndexId("deployedIndexId-1101212953")
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.undeployIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable undeployIndexCallable() { + return stub.undeployIndexCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListIndexEndpointsPagedResponse + extends AbstractPagedListResponse< + ListIndexEndpointsRequest, + ListIndexEndpointsResponse, + IndexEndpoint, + ListIndexEndpointsPage, + ListIndexEndpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIndexEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListIndexEndpointsPagedResponse apply(ListIndexEndpointsPage input) { + return new ListIndexEndpointsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListIndexEndpointsPagedResponse(ListIndexEndpointsPage page) { + super(page, ListIndexEndpointsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIndexEndpointsPage + extends AbstractPage< + ListIndexEndpointsRequest, + ListIndexEndpointsResponse, + IndexEndpoint, + ListIndexEndpointsPage> { + + private ListIndexEndpointsPage( + PageContext context, + ListIndexEndpointsResponse response) { + super(context, response); + } + + private static ListIndexEndpointsPage createEmptyPage() { + return new ListIndexEndpointsPage(null, null); + } + + @Override + protected ListIndexEndpointsPage createPage( + PageContext context, + ListIndexEndpointsResponse response) { + return new ListIndexEndpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIndexEndpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIndexEndpointsRequest, + ListIndexEndpointsResponse, + IndexEndpoint, + ListIndexEndpointsPage, + ListIndexEndpointsFixedSizeCollection> { + + private ListIndexEndpointsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIndexEndpointsFixedSizeCollection createEmptyCollection() { + return new ListIndexEndpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListIndexEndpointsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..85e777f72 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java @@ -0,0 +1,316 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IndexEndpointServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * IndexEndpointServiceSettings.Builder indexEndpointServiceSettingsBuilder =
+ *     IndexEndpointServiceSettings.newBuilder();
+ * indexEndpointServiceSettingsBuilder
+ *     .getIndexEndpointSettings()
+ *     .setRetrySettings(
+ *         indexEndpointServiceSettingsBuilder
+ *             .getIndexEndpointSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ *     indexEndpointServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexEndpointServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createIndexEndpoint. */ + public UnaryCallSettings createIndexEndpointSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).createIndexEndpointSettings(); + } + + /** Returns the object with the settings used for calls to createIndexEndpoint. */ + public OperationCallSettings< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()) + .createIndexEndpointOperationSettings(); + } + + /** Returns the object with the settings used for calls to getIndexEndpoint. */ + public UnaryCallSettings getIndexEndpointSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).getIndexEndpointSettings(); + } + + /** Returns the object with the settings used for calls to listIndexEndpoints. */ + public PagedCallSettings< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).listIndexEndpointsSettings(); + } + + /** Returns the object with the settings used for calls to updateIndexEndpoint. */ + public UnaryCallSettings + updateIndexEndpointSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).updateIndexEndpointSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndexEndpoint. */ + public UnaryCallSettings deleteIndexEndpointSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).deleteIndexEndpointSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndexEndpoint. */ + public OperationCallSettings + deleteIndexEndpointOperationSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()) + .deleteIndexEndpointOperationSettings(); + } + + /** Returns the object with the settings used for calls to deployIndex. */ + public UnaryCallSettings deployIndexSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).deployIndexSettings(); + } + + /** Returns the object with the settings used for calls to deployIndex. */ + public OperationCallSettings< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).deployIndexOperationSettings(); + } + + /** Returns the object with the settings used for calls to undeployIndex. */ + public UnaryCallSettings undeployIndexSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).undeployIndexSettings(); + } + + /** Returns the object with the settings used for calls to undeployIndex. */ + public OperationCallSettings< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings() { + return ((IndexEndpointServiceStubSettings) getStubSettings()).undeployIndexOperationSettings(); + } + + public static final IndexEndpointServiceSettings create(IndexEndpointServiceStubSettings stub) + throws IOException { + return new IndexEndpointServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return IndexEndpointServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return IndexEndpointServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return IndexEndpointServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return IndexEndpointServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return IndexEndpointServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return IndexEndpointServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IndexEndpointServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IndexEndpointServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for IndexEndpointServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(IndexEndpointServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(IndexEndpointServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(IndexEndpointServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(IndexEndpointServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createIndexEndpoint. */ + public UnaryCallSettings.Builder + createIndexEndpointSettings() { + return getStubSettingsBuilder().createIndexEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to createIndexEndpoint. */ + public OperationCallSettings.Builder< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings() { + return getStubSettingsBuilder().createIndexEndpointOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getIndexEndpoint. */ + public UnaryCallSettings.Builder + getIndexEndpointSettings() { + return getStubSettingsBuilder().getIndexEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to listIndexEndpoints. */ + public PagedCallSettings.Builder< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings() { + return getStubSettingsBuilder().listIndexEndpointsSettings(); + } + + /** Returns the builder for the settings used for calls to updateIndexEndpoint. */ + public UnaryCallSettings.Builder + updateIndexEndpointSettings() { + return getStubSettingsBuilder().updateIndexEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndexEndpoint. */ + public UnaryCallSettings.Builder + deleteIndexEndpointSettings() { + return getStubSettingsBuilder().deleteIndexEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndexEndpoint. */ + public OperationCallSettings.Builder + deleteIndexEndpointOperationSettings() { + return getStubSettingsBuilder().deleteIndexEndpointOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deployIndex. */ + public UnaryCallSettings.Builder deployIndexSettings() { + return getStubSettingsBuilder().deployIndexSettings(); + } + + /** Returns the builder for the settings used for calls to deployIndex. */ + public OperationCallSettings.Builder< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings() { + return getStubSettingsBuilder().deployIndexOperationSettings(); + } + + /** Returns the builder for the settings used for calls to undeployIndex. */ + public UnaryCallSettings.Builder undeployIndexSettings() { + return getStubSettingsBuilder().undeployIndexSettings(); + } + + /** Returns the builder for the settings used for calls to undeployIndex. */ + public OperationCallSettings.Builder< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings() { + return getStubSettingsBuilder().undeployIndexOperationSettings(); + } + + @Override + public IndexEndpointServiceSettings build() throws IOException { + return new IndexEndpointServiceSettings(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 new file mode 100644 index 000000000..4df42d587 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java @@ -0,0 +1,857 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service for creating and managing Vertex AI's Index resources. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+ *   Index response = indexServiceClient.getIndex(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the IndexServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of IndexServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * IndexServiceSettings indexServiceSettings =
+ *     IndexServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * IndexServiceSettings indexServiceSettings =
+ *     IndexServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexServiceClient implements BackgroundResource { + private final IndexServiceSettings settings; + private final IndexServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of IndexServiceClient with default settings. */ + public static final IndexServiceClient create() throws IOException { + return create(IndexServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of IndexServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final IndexServiceClient create(IndexServiceSettings settings) throws IOException { + return new IndexServiceClient(settings); + } + + /** + * Constructs an instance of IndexServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(IndexServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final IndexServiceClient create(IndexServiceStub stub) { + return new IndexServiceClient(stub); + } + + /** + * Constructs an instance of IndexServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected IndexServiceClient(IndexServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((IndexServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected IndexServiceClient(IndexServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final IndexServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public IndexServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Index index = Index.newBuilder().build();
+   *   Index response = indexServiceClient.createIndexAsync(parent, index).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the Index in. Format: + * `projects/{project}/locations/{location}` + * @param index Required. The Index to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createIndexAsync( + LocationName parent, Index index) { + CreateIndexRequest request = + CreateIndexRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIndex(index) + .build(); + return createIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Index index = Index.newBuilder().build();
+   *   Index response = indexServiceClient.createIndexAsync(parent, index).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the Index in. Format: + * `projects/{project}/locations/{location}` + * @param index Required. The Index to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createIndexAsync( + String parent, Index index) { + CreateIndexRequest request = + CreateIndexRequest.newBuilder().setParent(parent).setIndex(index).build(); + return createIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   Index response = indexServiceClient.createIndexAsync(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 createIndexAsync( + CreateIndexRequest request) { + return createIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       indexServiceClient.createIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createIndexOperationCallable() { + return stub.createIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   CreateIndexRequest request =
+   *       CreateIndexRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setIndex(Index.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.createIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createIndexCallable() { + return stub.createIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+   *   Index response = indexServiceClient.getIndex(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Index getIndex(IndexName name) { + GetIndexRequest request = + GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getIndex(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
+   *   Index response = indexServiceClient.getIndex(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Index getIndex(String name) { + GetIndexRequest request = GetIndexRequest.newBuilder().setName(name).build(); + return getIndex(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIndexRequest request =
+   *       GetIndexRequest.newBuilder()
+   *           .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+   *           .build();
+   *   Index response = indexServiceClient.getIndex(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 Index getIndex(GetIndexRequest request) { + return getIndexCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIndexRequest request =
+   *       GetIndexRequest.newBuilder()
+   *           .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.getIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIndexCallable() { + return stub.getIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Indexes in a Location. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListIndexesRequest request =
+   *       ListIndexesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (Index element : indexServiceClient.listIndexes(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 ListIndexesPagedResponse listIndexes(ListIndexesRequest request) { + return listIndexesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Indexes in a Location. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListIndexesRequest request =
+   *       ListIndexesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListIndexesResponse response = indexServiceClient.listIndexesCallable().call(request);
+   *     for (Index element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listIndexesCallable() { + return stub.listIndexesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   Index index = Index.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Index response = indexServiceClient.updateIndexAsync(index, updateMask).get();
+   * }
+   * }
+ * + * @param index Required. The Index which updates the resource on the server. + * @param updateMask The update mask applies to the resource. For the `FieldMask` definition, see + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateIndexAsync( + Index index, FieldMask updateMask) { + UpdateIndexRequest request = + UpdateIndexRequest.newBuilder().setIndex(index).setUpdateMask(updateMask).build(); + return updateIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   UpdateIndexRequest request =
+   *       UpdateIndexRequest.newBuilder()
+   *           .setIndex(Index.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Index response = indexServiceClient.updateIndexAsync(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 updateIndexAsync( + UpdateIndexRequest request) { + return updateIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   UpdateIndexRequest request =
+   *       UpdateIndexRequest.newBuilder()
+   *           .setIndex(Index.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       indexServiceClient.updateIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Index response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateIndexOperationCallable() { + return stub.updateIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Index. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   UpdateIndexRequest request =
+   *       UpdateIndexRequest.newBuilder()
+   *           .setIndex(Index.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.updateIndexCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateIndexCallable() { + return stub.updateIndexCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Index. An Index can only be deleted when all its + * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+   *   indexServiceClient.deleteIndexAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteIndexAsync(IndexName name) { + DeleteIndexRequest request = + DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Index. An Index can only be deleted when all its + * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
+   *   indexServiceClient.deleteIndexAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteIndexAsync(String name) { + DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name).build(); + return deleteIndexAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Index. An Index can only be deleted when all its + * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+   *           .build();
+   *   indexServiceClient.deleteIndexAsync(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 deleteIndexAsync( + DeleteIndexRequest request) { + return deleteIndexOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Index. An Index can only be deleted when all its + * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       indexServiceClient.deleteIndexOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteIndexOperationCallable() { + return stub.deleteIndexOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Index. An Index can only be deleted when all its + * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + * + *

Sample code: + * + *

{@code
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   DeleteIndexRequest request =
+   *       DeleteIndexRequest.newBuilder()
+   *           .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.deleteIndexCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteIndexCallable() { + return stub.deleteIndexCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListIndexesPagedResponse + extends AbstractPagedListResponse< + ListIndexesRequest, + ListIndexesResponse, + Index, + ListIndexesPage, + ListIndexesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + 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()); + } + + private ListIndexesPagedResponse(ListIndexesPage page) { + super(page, ListIndexesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIndexesPage + extends AbstractPage { + + private ListIndexesPage( + PageContext context, + ListIndexesResponse response) { + super(context, response); + } + + private static ListIndexesPage createEmptyPage() { + return new ListIndexesPage(null, null); + } + + @Override + protected ListIndexesPage createPage( + PageContext context, + ListIndexesResponse response) { + return new ListIndexesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIndexesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIndexesRequest, + ListIndexesResponse, + Index, + ListIndexesPage, + ListIndexesFixedSizeCollection> { + + private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIndexesFixedSizeCollection createEmptyCollection() { + return new ListIndexesFixedSizeCollection(null, 0); + } + + @Override + protected ListIndexesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIndexesFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..351159be2 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java @@ -0,0 +1,267 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IndexServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * IndexServiceSettings.Builder indexServiceSettingsBuilder = IndexServiceSettings.newBuilder();
+ * indexServiceSettingsBuilder
+ *     .getIndexSettings()
+ *     .setRetrySettings(
+ *         indexServiceSettingsBuilder
+ *             .getIndexSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * IndexServiceSettings indexServiceSettings = indexServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return ((IndexServiceStubSettings) getStubSettings()).createIndexSettings(); + } + + /** Returns the object with the settings used for calls to createIndex. */ + public OperationCallSettings + createIndexOperationSettings() { + return ((IndexServiceStubSettings) getStubSettings()).createIndexOperationSettings(); + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return ((IndexServiceStubSettings) getStubSettings()).getIndexSettings(); + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return ((IndexServiceStubSettings) getStubSettings()).listIndexesSettings(); + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public UnaryCallSettings updateIndexSettings() { + return ((IndexServiceStubSettings) getStubSettings()).updateIndexSettings(); + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public OperationCallSettings + updateIndexOperationSettings() { + return ((IndexServiceStubSettings) getStubSettings()).updateIndexOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return ((IndexServiceStubSettings) getStubSettings()).deleteIndexSettings(); + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public OperationCallSettings + deleteIndexOperationSettings() { + return ((IndexServiceStubSettings) getStubSettings()).deleteIndexOperationSettings(); + } + + public static final IndexServiceSettings create(IndexServiceStubSettings stub) + throws IOException { + return new IndexServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return IndexServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return IndexServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return IndexServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return IndexServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return IndexServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return IndexServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IndexServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IndexServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for IndexServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(IndexServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(IndexServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(IndexServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(IndexServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public UnaryCallSettings.Builder createIndexSettings() { + return getStubSettingsBuilder().createIndexSettings(); + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public OperationCallSettings.Builder + createIndexOperationSettings() { + return getStubSettingsBuilder().createIndexOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getIndex. */ + public UnaryCallSettings.Builder getIndexSettings() { + return getStubSettingsBuilder().getIndexSettings(); + } + + /** Returns the builder for the settings used for calls to listIndexes. */ + public PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings() { + return getStubSettingsBuilder().listIndexesSettings(); + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + public UnaryCallSettings.Builder updateIndexSettings() { + return getStubSettingsBuilder().updateIndexSettings(); + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + public OperationCallSettings.Builder + updateIndexOperationSettings() { + return getStubSettingsBuilder().updateIndexOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public UnaryCallSettings.Builder deleteIndexSettings() { + return getStubSettingsBuilder().deleteIndexSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public OperationCallSettings.Builder + deleteIndexOperationSettings() { + return getStubSettingsBuilder().deleteIndexOperationSettings(); + } + + @Override + public IndexServiceSettings build() throws IOException { + return new IndexServiceSettings(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 3512c29cc..7c641931b 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -41,7 +42,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: A service for creating and managing AI Platform's jobs. + * Service Description: A service for creating and managing Vertex AI's jobs. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -471,6 +472,14 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListCustomJobsRequest request =
+   *       ListCustomJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListCustomJobsResponse response = jobServiceClient.listCustomJobsCallable().call(request);
    *     for (CustomJob element : response.getResponsesList()) {
@@ -847,7 +856,7 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * }
* * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { @@ -873,7 +882,7 @@ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { * }

* * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob getDataLabelingJob(String name) { @@ -1055,6 +1064,15 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListDataLabelingJobsRequest request =
+   *       ListDataLabelingJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
    *   while (true) {
    *     ListDataLabelingJobsResponse response =
    *         jobServiceClient.listDataLabelingJobsCallable().call(request);
@@ -1091,7 +1109,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * }
* * @param name Required. The name of the DataLabelingJob to be deleted. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( @@ -1118,7 +1136,7 @@ public final OperationFuture deleteDataLabelingJ * }

* * @param name Required. The name of the DataLabelingJob to be deleted. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( @@ -1221,7 +1239,7 @@ public final OperationFuture deleteDataLabelingJ * } * * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelDataLabelingJob(DataLabelingJobName name) { @@ -1247,7 +1265,7 @@ public final void cancelDataLabelingJob(DataLabelingJobName name) { * } * * @param name Required. The name of the DataLabelingJob. Format: - *

`projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelDataLabelingJob(String name) { @@ -1433,7 +1451,7 @@ public final HyperparameterTuningJob createHyperparameterTuningJob( * } * * @param name Required. The name of the HyperparameterTuningJob resource. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob( @@ -1461,7 +1479,7 @@ public final HyperparameterTuningJob getHyperparameterTuningJob( * } * * @param name Required. The name of the HyperparameterTuningJob resource. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob(String name) { @@ -1650,6 +1668,14 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListHyperparameterTuningJobsRequest request =
+   *       ListHyperparameterTuningJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListHyperparameterTuningJobsResponse response =
    *         jobServiceClient.listHyperparameterTuningJobsCallable().call(request);
@@ -1687,7 +1713,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * }
* * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( @@ -1715,7 +1741,7 @@ public final OperationFuture deleteHyperparamete * } * * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( @@ -1833,7 +1859,7 @@ public final OperationFuture deleteHyperparamete * } * * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name) { @@ -1871,7 +1897,7 @@ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name * } * * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - *

`projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelHyperparameterTuningJob(String name) { @@ -2084,7 +2110,7 @@ public final BatchPredictionJob createBatchPredictionJob( * } * * @param name Required. The name of the BatchPredictionJob resource. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName name) { @@ -2110,7 +2136,7 @@ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName nam * } * * @param name Required. The name of the BatchPredictionJob resource. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob getBatchPredictionJob(String name) { @@ -2293,6 +2319,14 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( * *

{@code
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListBatchPredictionJobsRequest request =
+   *       ListBatchPredictionJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListBatchPredictionJobsResponse response =
    *         jobServiceClient.listBatchPredictionJobsCallable().call(request);
@@ -2329,7 +2363,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * }
* * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( @@ -2356,7 +2390,7 @@ public final OperationFuture deleteBatchPredicti * } * * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( @@ -2468,7 +2502,7 @@ public final OperationFuture deleteBatchPredicti * } * * @param name Required. The name of the BatchPredictionJob to cancel. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelBatchPredictionJob(BatchPredictionJobName name) { @@ -2503,7 +2537,7 @@ public final void cancelBatchPredictionJob(BatchPredictionJobName name) { * } * * @param name Required. The name of the BatchPredictionJob to cancel. Format: - *

`projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelBatchPredictionJob(String name) { @@ -2581,74 +2615,1159 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque return stub.cancelBatchPredictionJobCallable(); } - @Override - public final void close() { - stub.close(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
+   *       ModelDeploymentMonitoringJob.newBuilder().build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob);
+   * }
+   * }
+ * + * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @param modelDeploymentMonitoringJob Required. The ModelDeploymentMonitoringJob to create + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( + LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { + CreateModelDeploymentMonitoringJobRequest request = + CreateModelDeploymentMonitoringJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .build(); + return createModelDeploymentMonitoringJob(request); } - @Override - public void shutdown() { - stub.shutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
+   *       ModelDeploymentMonitoringJob.newBuilder().build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob);
+   * }
+   * }
+ * + * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @param modelDeploymentMonitoringJob Required. The ModelDeploymentMonitoringJob to create + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( + String parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { + CreateModelDeploymentMonitoringJobRequest request = + CreateModelDeploymentMonitoringJobRequest.newBuilder() + .setParent(parent) + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .build(); + return createModelDeploymentMonitoringJob(request); } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   CreateModelDeploymentMonitoringJobRequest request =
+   *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob.newBuilder().build())
+   *           .build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.createModelDeploymentMonitoringJob(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 ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( + CreateModelDeploymentMonitoringJobRequest request) { + return createModelDeploymentMonitoringJobCallable().call(request); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   CreateModelDeploymentMonitoringJobRequest request =
+   *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.createModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   ModelDeploymentMonitoringJob response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobCallable() { + return stub.createModelDeploymentMonitoringJobCallable(); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Model Monitoring Statistics generated within a given time window. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob =
+   *       ModelDeploymentMonitoringJobName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
+   *   String deployedModelId = "deployedModelId-1817547906";
+   *   for (ModelMonitoringStatsAnomalies element :
+   *       jobServiceClient
+   *           .searchModelDeploymentMonitoringStatsAnomalies(
+   *               modelDeploymentMonitoringJob, deployedModelId)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job} + * @param deployedModelId Required. The DeployedModel ID of the + * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse + searchModelDeploymentMonitoringStatsAnomalies( + ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, String deployedModelId) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest request = + SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() + .setModelDeploymentMonitoringJob( + modelDeploymentMonitoringJob == null + ? null + : modelDeploymentMonitoringJob.toString()) + .setDeployedModelId(deployedModelId) + .build(); + return searchModelDeploymentMonitoringStatsAnomalies(request); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Model Monitoring Statistics generated within a given time window. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String modelDeploymentMonitoringJob =
+   *       ModelDeploymentMonitoringJobName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *           .toString();
+   *   String deployedModelId = "deployedModelId-1817547906";
+   *   for (ModelMonitoringStatsAnomalies element :
+   *       jobServiceClient
+   *           .searchModelDeploymentMonitoringStatsAnomalies(
+   *               modelDeploymentMonitoringJob, deployedModelId)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job} + * @param deployedModelId Required. The DeployedModel ID of the + * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse + searchModelDeploymentMonitoringStatsAnomalies( + String modelDeploymentMonitoringJob, String deployedModelId) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest request = + SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .setDeployedModelId(deployedModelId) + .build(); + return searchModelDeploymentMonitoringStatsAnomalies(request); } - public static class ListCustomJobsPagedResponse - extends AbstractPagedListResponse< - ListCustomJobsRequest, - ListCustomJobsResponse, - CustomJob, - ListCustomJobsPage, - ListCustomJobsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) { - return new ListCustomJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Model Monitoring Statistics generated within a given time window. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
+   *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .setDeployedModelId("deployedModelId-1817547906")
+   *           .setFeatureDisplayName("featureDisplayName-1741181545")
+   *           .addAllObjectives(
+   *               new ArrayList<
+   *                   SearchModelDeploymentMonitoringStatsAnomaliesRequest
+   *                       .StatsAnomaliesObjective>())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   for (ModelMonitoringStatsAnomalies element :
+   *       jobServiceClient.searchModelDeploymentMonitoringStatsAnomalies(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 SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse + searchModelDeploymentMonitoringStatsAnomalies( + SearchModelDeploymentMonitoringStatsAnomaliesRequest request) { + return searchModelDeploymentMonitoringStatsAnomaliesPagedCallable().call(request); + } - private ListCustomJobsPagedResponse(ListCustomJobsPage page) { - super(page, ListCustomJobsFixedSizeCollection.createEmptyCollection()); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Model Monitoring Statistics generated within a given time window. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
+   *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .setDeployedModelId("deployedModelId-1817547906")
+   *           .setFeatureDisplayName("featureDisplayName-1741181545")
+   *           .addAllObjectives(
+   *               new ArrayList<
+   *                   SearchModelDeploymentMonitoringStatsAnomaliesRequest
+   *                       .StatsAnomaliesObjective>())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient
+   *           .searchModelDeploymentMonitoringStatsAnomaliesPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (ModelMonitoringStatsAnomalies element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesPagedCallable() { + return stub.searchModelDeploymentMonitoringStatsAnomaliesPagedCallable(); } - public static class ListCustomJobsPage - extends AbstractPage< - ListCustomJobsRequest, ListCustomJobsResponse, CustomJob, ListCustomJobsPage> { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Model Monitoring Statistics generated within a given time window. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
+   *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .setDeployedModelId("deployedModelId-1817547906")
+   *           .setFeatureDisplayName("featureDisplayName-1741181545")
+   *           .addAllObjectives(
+   *               new ArrayList<
+   *                   SearchModelDeploymentMonitoringStatsAnomaliesRequest
+   *                       .StatsAnomaliesObjective>())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     SearchModelDeploymentMonitoringStatsAnomaliesResponse response =
+   *         jobServiceClient.searchModelDeploymentMonitoringStatsAnomaliesCallable().call(request);
+   *     for (ModelMonitoringStatsAnomalies element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesCallable() { + return stub.searchModelDeploymentMonitoringStatsAnomaliesCallable(); + } - private ListCustomJobsPage( - PageContext context, - ListCustomJobsResponse response) { - super(context, response); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJobName name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.getModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( + ModelDeploymentMonitoringJobName name) { + GetModelDeploymentMonitoringJobRequest request = + GetModelDeploymentMonitoringJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *           .toString();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.getModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(String name) { + GetModelDeploymentMonitoringJobRequest request = + GetModelDeploymentMonitoringJobRequest.newBuilder().setName(name).build(); + return getModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetModelDeploymentMonitoringJobRequest request =
+   *       GetModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.getModelDeploymentMonitoringJob(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 ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( + GetModelDeploymentMonitoringJobRequest request) { + return getModelDeploymentMonitoringJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetModelDeploymentMonitoringJobRequest request =
+   *       GetModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.getModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   ModelDeploymentMonitoringJob response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getModelDeploymentMonitoringJobCallable() { + return stub.getModelDeploymentMonitoringJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelDeploymentMonitoringJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (ModelDeploymentMonitoringJob element :
+   *       jobServiceClient.listModelDeploymentMonitoringJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentMonitoringJobs( + LocationName parent) { + ListModelDeploymentMonitoringJobsRequest request = + ListModelDeploymentMonitoringJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listModelDeploymentMonitoringJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelDeploymentMonitoringJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (ModelDeploymentMonitoringJob element :
+   *       jobServiceClient.listModelDeploymentMonitoringJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentMonitoringJobs( + String parent) { + ListModelDeploymentMonitoringJobsRequest request = + ListModelDeploymentMonitoringJobsRequest.newBuilder().setParent(parent).build(); + return listModelDeploymentMonitoringJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelDeploymentMonitoringJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListModelDeploymentMonitoringJobsRequest request =
+   *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (ModelDeploymentMonitoringJob element :
+   *       jobServiceClient.listModelDeploymentMonitoringJobs(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 ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentMonitoringJobs( + ListModelDeploymentMonitoringJobsRequest request) { + return listModelDeploymentMonitoringJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelDeploymentMonitoringJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListModelDeploymentMonitoringJobsRequest request =
+   *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.listModelDeploymentMonitoringJobsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ModelDeploymentMonitoringJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsPagedCallable() { + return stub.listModelDeploymentMonitoringJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelDeploymentMonitoringJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListModelDeploymentMonitoringJobsRequest request =
+   *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListModelDeploymentMonitoringJobsResponse response =
+   *         jobServiceClient.listModelDeploymentMonitoringJobsCallable().call(request);
+   *     for (ModelDeploymentMonitoringJob element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsCallable() { + return stub.listModelDeploymentMonitoringJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
+   *       ModelDeploymentMonitoringJob.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient
+   *           .updateModelDeploymentMonitoringJobAsync(modelDeploymentMonitoringJob, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param modelDeploymentMonitoringJob Required. The model monitoring configuration which replaces + * the resource on the server. + * @param updateMask Required. The update mask applies to the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobAsync( + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob, FieldMask updateMask) { + UpdateModelDeploymentMonitoringJobRequest request = + UpdateModelDeploymentMonitoringJobRequest.newBuilder() + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .setUpdateMask(updateMask) + .build(); + return updateModelDeploymentMonitoringJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   UpdateModelDeploymentMonitoringJobRequest request =
+   *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ModelDeploymentMonitoringJob response =
+   *       jobServiceClient.updateModelDeploymentMonitoringJobAsync(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< + ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobAsync(UpdateModelDeploymentMonitoringJobRequest request) { + return updateModelDeploymentMonitoringJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   UpdateModelDeploymentMonitoringJobRequest request =
+   *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture<
+   *           ModelDeploymentMonitoringJob, UpdateModelDeploymentMonitoringJobOperationMetadata>
+   *       future =
+   *           jobServiceClient
+   *               .updateModelDeploymentMonitoringJobOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   ModelDeploymentMonitoringJob response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationCallable() { + return stub.updateModelDeploymentMonitoringJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   UpdateModelDeploymentMonitoringJobRequest request =
+   *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.updateModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateModelDeploymentMonitoringJobCallable() { + return stub.updateModelDeploymentMonitoringJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJobName name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
+   *   jobServiceClient.deleteModelDeploymentMonitoringJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the model monitoring job to delete. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name) { + DeleteModelDeploymentMonitoringJobRequest request = + DeleteModelDeploymentMonitoringJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteModelDeploymentMonitoringJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *           .toString();
+   *   jobServiceClient.deleteModelDeploymentMonitoringJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the model monitoring job to delete. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteModelDeploymentMonitoringJobAsync(String name) { + DeleteModelDeploymentMonitoringJobRequest request = + DeleteModelDeploymentMonitoringJobRequest.newBuilder().setName(name).build(); + return deleteModelDeploymentMonitoringJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   DeleteModelDeploymentMonitoringJobRequest request =
+   *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   jobServiceClient.deleteModelDeploymentMonitoringJobAsync(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 + deleteModelDeploymentMonitoringJobAsync(DeleteModelDeploymentMonitoringJobRequest request) { + return deleteModelDeploymentMonitoringJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   DeleteModelDeploymentMonitoringJobRequest request =
+   *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       jobServiceClient
+   *           .deleteModelDeploymentMonitoringJobOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationCallable() { + return stub.deleteModelDeploymentMonitoringJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ModelDeploymentMonitoringJob. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   DeleteModelDeploymentMonitoringJobRequest request =
+   *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.deleteModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteModelDeploymentMonitoringJobCallable() { + return stub.deleteModelDeploymentMonitoringJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark + * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + * to 'PAUSED'. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJobName name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
+   *   jobServiceClient.pauseModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void pauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + PauseModelDeploymentMonitoringJobRequest request = + PauseModelDeploymentMonitoringJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + pauseModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark + * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + * to 'PAUSED'. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *           .toString();
+   *   jobServiceClient.pauseModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void pauseModelDeploymentMonitoringJob(String name) { + PauseModelDeploymentMonitoringJobRequest request = + PauseModelDeploymentMonitoringJobRequest.newBuilder().setName(name).build(); + pauseModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark + * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + * to 'PAUSED'. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   PauseModelDeploymentMonitoringJobRequest request =
+   *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   jobServiceClient.pauseModelDeploymentMonitoringJob(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 pauseModelDeploymentMonitoringJob( + PauseModelDeploymentMonitoringJobRequest request) { + pauseModelDeploymentMonitoringJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark + * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + * to 'PAUSED'. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   PauseModelDeploymentMonitoringJobRequest request =
+   *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.pauseModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + pauseModelDeploymentMonitoringJobCallable() { + return stub.pauseModelDeploymentMonitoringJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ModelDeploymentMonitoringJobName name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]");
+   *   jobServiceClient.resumeModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void resumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + ResumeModelDeploymentMonitoringJobRequest request = + ResumeModelDeploymentMonitoringJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + resumeModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   String name =
+   *       ModelDeploymentMonitoringJobName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *           .toString();
+   *   jobServiceClient.resumeModelDeploymentMonitoringJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void resumeModelDeploymentMonitoringJob(String name) { + ResumeModelDeploymentMonitoringJobRequest request = + ResumeModelDeploymentMonitoringJobRequest.newBuilder().setName(name).build(); + resumeModelDeploymentMonitoringJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ResumeModelDeploymentMonitoringJobRequest request =
+   *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   jobServiceClient.resumeModelDeploymentMonitoringJob(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 resumeModelDeploymentMonitoringJob( + ResumeModelDeploymentMonitoringJobRequest request) { + resumeModelDeploymentMonitoringJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. + * + *

Sample code: + * + *

{@code
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ResumeModelDeploymentMonitoringJobRequest request =
+   *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
+   *           .setName(
+   *               ModelDeploymentMonitoringJobName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.resumeModelDeploymentMonitoringJobCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + resumeModelDeploymentMonitoringJobCallable() { + return stub.resumeModelDeploymentMonitoringJobCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCustomJobsPagedResponse + extends AbstractPagedListResponse< + ListCustomJobsRequest, + ListCustomJobsResponse, + CustomJob, + ListCustomJobsPage, + ListCustomJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) { + return new ListCustomJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListCustomJobsPagedResponse(ListCustomJobsPage page) { + super(page, ListCustomJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCustomJobsPage + extends AbstractPage< + ListCustomJobsRequest, ListCustomJobsResponse, CustomJob, ListCustomJobsPage> { + + private ListCustomJobsPage( + PageContext context, + ListCustomJobsResponse response) { + super(context, response); + } private static ListCustomJobsPage createEmptyPage() { return new ListCustomJobsPage(null, null); @@ -2977,4 +4096,220 @@ protected ListBatchPredictionJobsFixedSizeCollection createCollection( return new ListBatchPredictionJobsFixedSizeCollection(pages, collectionSize); } } + + public static class SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse + extends AbstractPagedListResponse< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies, + SearchModelDeploymentMonitoringStatsAnomaliesPage, + SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchModelDeploymentMonitoringStatsAnomaliesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction< + SearchModelDeploymentMonitoringStatsAnomaliesPage, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse>() { + @Override + public SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse apply( + SearchModelDeploymentMonitoringStatsAnomaliesPage input) { + return new SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse( + SearchModelDeploymentMonitoringStatsAnomaliesPage page) { + super( + page, + SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchModelDeploymentMonitoringStatsAnomaliesPage + extends AbstractPage< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies, + SearchModelDeploymentMonitoringStatsAnomaliesPage> { + + private SearchModelDeploymentMonitoringStatsAnomaliesPage( + PageContext< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + context, + SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + super(context, response); + } + + private static SearchModelDeploymentMonitoringStatsAnomaliesPage createEmptyPage() { + return new SearchModelDeploymentMonitoringStatsAnomaliesPage(null, null); + } + + @Override + protected SearchModelDeploymentMonitoringStatsAnomaliesPage createPage( + PageContext< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + context, + SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + return new SearchModelDeploymentMonitoringStatsAnomaliesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies, + SearchModelDeploymentMonitoringStatsAnomaliesPage, + SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection> { + + private SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection + createEmptyCollection() { + return new SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection(null, 0); + } + + @Override + protected SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( + pages, collectionSize); + } + } + + public static class ListModelDeploymentMonitoringJobsPagedResponse + extends AbstractPagedListResponse< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob, + ListModelDeploymentMonitoringJobsPage, + ListModelDeploymentMonitoringJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListModelDeploymentMonitoringJobsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction< + ListModelDeploymentMonitoringJobsPage, + ListModelDeploymentMonitoringJobsPagedResponse>() { + @Override + public ListModelDeploymentMonitoringJobsPagedResponse apply( + ListModelDeploymentMonitoringJobsPage input) { + return new ListModelDeploymentMonitoringJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListModelDeploymentMonitoringJobsPagedResponse( + ListModelDeploymentMonitoringJobsPage page) { + super(page, ListModelDeploymentMonitoringJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListModelDeploymentMonitoringJobsPage + extends AbstractPage< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob, + ListModelDeploymentMonitoringJobsPage> { + + private ListModelDeploymentMonitoringJobsPage( + PageContext< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + context, + ListModelDeploymentMonitoringJobsResponse response) { + super(context, response); + } + + private static ListModelDeploymentMonitoringJobsPage createEmptyPage() { + return new ListModelDeploymentMonitoringJobsPage(null, null); + } + + @Override + protected ListModelDeploymentMonitoringJobsPage createPage( + PageContext< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + context, + ListModelDeploymentMonitoringJobsResponse response) { + return new ListModelDeploymentMonitoringJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListModelDeploymentMonitoringJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob, + ListModelDeploymentMonitoringJobsPage, + ListModelDeploymentMonitoringJobsFixedSizeCollection> { + + private ListModelDeploymentMonitoringJobsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListModelDeploymentMonitoringJobsFixedSizeCollection createEmptyCollection() { + return new ListModelDeploymentMonitoringJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListModelDeploymentMonitoringJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListModelDeploymentMonitoringJobsFixedSizeCollection(pages, collectionSize); + } + } } 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 643c8a2db..e624e9d01 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -20,6 +20,8 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -225,6 +227,86 @@ public UnaryCallSettings cancelDataLabeling return ((JobServiceStubSettings) getStubSettings()).cancelBatchPredictionJobSettings(); } + /** Returns the object with the settings used for calls to createModelDeploymentMonitoringJob. */ + public UnaryCallSettings + createModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .createModelDeploymentMonitoringJobSettings(); + } + + /** + * Returns the object with the settings used for calls to + * searchModelDeploymentMonitoringStatsAnomalies. + */ + public PagedCallSettings< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .searchModelDeploymentMonitoringStatsAnomaliesSettings(); + } + + /** Returns the object with the settings used for calls to getModelDeploymentMonitoringJob. */ + public UnaryCallSettings + getModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).getModelDeploymentMonitoringJobSettings(); + } + + /** Returns the object with the settings used for calls to listModelDeploymentMonitoringJobs. */ + public PagedCallSettings< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).listModelDeploymentMonitoringJobsSettings(); + } + + /** Returns the object with the settings used for calls to updateModelDeploymentMonitoringJob. */ + public UnaryCallSettings + updateModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .updateModelDeploymentMonitoringJobSettings(); + } + + /** Returns the object with the settings used for calls to updateModelDeploymentMonitoringJob. */ + public OperationCallSettings< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .updateModelDeploymentMonitoringJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob. */ + public UnaryCallSettings + deleteModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .deleteModelDeploymentMonitoringJobSettings(); + } + + /** Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob. */ + public OperationCallSettings< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .deleteModelDeploymentMonitoringJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to pauseModelDeploymentMonitoringJob. */ + public UnaryCallSettings + pauseModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).pauseModelDeploymentMonitoringJobSettings(); + } + + /** Returns the object with the settings used for calls to resumeModelDeploymentMonitoringJob. */ + public UnaryCallSettings + resumeModelDeploymentMonitoringJobSettings() { + return ((JobServiceStubSettings) getStubSettings()) + .resumeModelDeploymentMonitoringJobSettings(); + } + public static final JobServiceSettings create(JobServiceStubSettings stub) throws IOException { return new JobServiceSettings.Builder(stub.toBuilder()).build(); } @@ -475,6 +557,93 @@ public UnaryCallSettings.Builder cancelCustomJobS return getStubSettingsBuilder().cancelBatchPredictionJobSettings(); } + /** + * Returns the builder for the settings used for calls to createModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().createModelDeploymentMonitoringJobSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * searchModelDeploymentMonitoringStatsAnomalies. + */ + public PagedCallSettings.Builder< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings() { + return getStubSettingsBuilder().searchModelDeploymentMonitoringStatsAnomaliesSettings(); + } + + /** Returns the builder for the settings used for calls to getModelDeploymentMonitoringJob. */ + public UnaryCallSettings.Builder< + GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().getModelDeploymentMonitoringJobSettings(); + } + + /** Returns the builder for the settings used for calls to listModelDeploymentMonitoringJobs. */ + public PagedCallSettings.Builder< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings() { + return getStubSettingsBuilder().listModelDeploymentMonitoringJobsSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + updateModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().updateModelDeploymentMonitoringJobSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateModelDeploymentMonitoringJob. + */ + public OperationCallSettings.Builder< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings() { + return getStubSettingsBuilder().updateModelDeploymentMonitoringJobOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + deleteModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().deleteModelDeploymentMonitoringJobSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteModelDeploymentMonitoringJob. + */ + public OperationCallSettings.Builder< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings() { + return getStubSettingsBuilder().deleteModelDeploymentMonitoringJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to pauseModelDeploymentMonitoringJob. */ + public UnaryCallSettings.Builder + pauseModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().pauseModelDeploymentMonitoringJobSettings(); + } + + /** + * Returns the builder for the settings used for calls to resumeModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + resumeModelDeploymentMonitoringJobSettings() { + return getStubSettingsBuilder().resumeModelDeploymentMonitoringJobSettings(); + } + @Override public JobServiceSettings build() throws IOException { return new JobServiceSettings(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 new file mode 100644 index 000000000..949601a5c --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java @@ -0,0 +1,3741 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for reading and writing metadata entries. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+ *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+ *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the MetadataServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of MetadataServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * MetadataServiceSettings metadataServiceSettings =
+ *     MetadataServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MetadataServiceClient metadataServiceClient =
+ *     MetadataServiceClient.create(metadataServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * MetadataServiceSettings metadataServiceSettings =
+ *     MetadataServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MetadataServiceClient metadataServiceClient =
+ *     MetadataServiceClient.create(metadataServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class MetadataServiceClient implements BackgroundResource { + private final MetadataServiceSettings settings; + private final MetadataServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of MetadataServiceClient with default settings. */ + public static final MetadataServiceClient create() throws IOException { + return create(MetadataServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MetadataServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MetadataServiceClient create(MetadataServiceSettings settings) + throws IOException { + return new MetadataServiceClient(settings); + } + + /** + * Constructs an instance of MetadataServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(MetadataServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final MetadataServiceClient create(MetadataServiceStub stub) { + return new MetadataServiceClient(stub); + } + + /** + * Constructs an instance of MetadataServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected MetadataServiceClient(MetadataServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MetadataServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected MetadataServiceClient(MetadataServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final MetadataServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MetadataServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes a MetadataStore, including allocation of resources. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
+   *   String metadataStoreId = "metadataStoreId-1811789907";
+   *   MetadataStore response =
+   *       metadataServiceClient
+   *           .createMetadataStoreAsync(parent, metadataStore, metadataStoreId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location where the MetadataStore should be + * created. Format: projects/{project}/locations/{location}/ + * @param metadataStore Required. The MetadataStore to create. + * @param metadataStoreId The {metadatastore} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} If not provided, the + * MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in + * length. Valid characters are /[a-z][0-9]-/. Must be unique across all MetadataStores in the + * parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMetadataStoreAsync( + LocationName parent, MetadataStore metadataStore, String metadataStoreId) { + CreateMetadataStoreRequest request = + CreateMetadataStoreRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMetadataStore(metadataStore) + .setMetadataStoreId(metadataStoreId) + .build(); + return createMetadataStoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes a MetadataStore, including allocation of resources. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
+   *   String metadataStoreId = "metadataStoreId-1811789907";
+   *   MetadataStore response =
+   *       metadataServiceClient
+   *           .createMetadataStoreAsync(parent, metadataStore, metadataStoreId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location where the MetadataStore should be + * created. Format: projects/{project}/locations/{location}/ + * @param metadataStore Required. The MetadataStore to create. + * @param metadataStoreId The {metadatastore} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} If not provided, the + * MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in + * length. Valid characters are /[a-z][0-9]-/. Must be unique across all MetadataStores in the + * parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMetadataStoreAsync(String parent, MetadataStore metadataStore, String metadataStoreId) { + CreateMetadataStoreRequest request = + CreateMetadataStoreRequest.newBuilder() + .setParent(parent) + .setMetadataStore(metadataStore) + .setMetadataStoreId(metadataStoreId) + .build(); + return createMetadataStoreAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes a MetadataStore, including allocation of resources. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateMetadataStoreRequest request =
+   *       CreateMetadataStoreRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setMetadataStore(MetadataStore.newBuilder().build())
+   *           .setMetadataStoreId("metadataStoreId-1811789907")
+   *           .build();
+   *   MetadataStore response = metadataServiceClient.createMetadataStoreAsync(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 + createMetadataStoreAsync(CreateMetadataStoreRequest request) { + return createMetadataStoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes a MetadataStore, including allocation of resources. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateMetadataStoreRequest request =
+   *       CreateMetadataStoreRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setMetadataStore(MetadataStore.newBuilder().build())
+   *           .setMetadataStoreId("metadataStoreId-1811789907")
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.createMetadataStoreOperationCallable().futureCall(request);
+   *   // Do something.
+   *   MetadataStore response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationCallable() { + return stub.createMetadataStoreOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes a MetadataStore, including allocation of resources. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateMetadataStoreRequest request =
+   *       CreateMetadataStoreRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setMetadataStore(MetadataStore.newBuilder().build())
+   *           .setMetadataStoreId("metadataStoreId-1811789907")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.createMetadataStoreCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createMetadataStoreCallable() { + return stub.createMetadataStoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MetadataStore to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataStore getMetadataStore(MetadataStoreName name) { + GetMetadataStoreRequest request = + GetMetadataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMetadataStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
+   *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MetadataStore to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataStore getMetadataStore(String name) { + GetMetadataStoreRequest request = GetMetadataStoreRequest.newBuilder().setName(name).build(); + return getMetadataStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetMetadataStoreRequest request =
+   *       GetMetadataStoreRequest.newBuilder()
+   *           .setName(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .build();
+   *   MetadataStore response = metadataServiceClient.getMetadataStore(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 MetadataStore getMetadataStore(GetMetadataStoreRequest request) { + return getMetadataStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetMetadataStoreRequest request =
+   *       GetMetadataStoreRequest.newBuilder()
+   *           .setName(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.getMetadataStoreCallable().futureCall(request);
+   *   // Do something.
+   *   MetadataStore response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMetadataStoreCallable() { + return stub.getMetadataStoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataStores for a Location. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Location whose MetadataStores should be listed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetadataStoresPagedResponse listMetadataStores(LocationName parent) { + ListMetadataStoresRequest request = + ListMetadataStoresRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMetadataStores(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataStores for a Location. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Location whose MetadataStores should be listed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetadataStoresPagedResponse listMetadataStores(String parent) { + ListMetadataStoresRequest request = + ListMetadataStoresRequest.newBuilder().setParent(parent).build(); + return listMetadataStores(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataStores for a Location. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataStoresRequest request =
+   *       ListMetadataStoresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MetadataStore element : metadataServiceClient.listMetadataStores(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 ListMetadataStoresPagedResponse listMetadataStores( + ListMetadataStoresRequest request) { + return listMetadataStoresPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataStores for a Location. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataStoresRequest request =
+   *       ListMetadataStoresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listMetadataStoresPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MetadataStore element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMetadataStoresPagedCallable() { + return stub.listMetadataStoresPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataStores for a Location. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataStoresRequest request =
+   *       ListMetadataStoresRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMetadataStoresResponse response =
+   *         metadataServiceClient.listMetadataStoresCallable().call(request);
+   *     for (MetadataStore element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMetadataStoresCallable() { + return stub.listMetadataStoresCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single MetadataStore. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteMetadataStoreRequest request =
+   *       DeleteMetadataStoreRequest.newBuilder()
+   *           .setName(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   metadataServiceClient.deleteMetadataStoreAsync(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 + deleteMetadataStoreAsync(DeleteMetadataStoreRequest request) { + return deleteMetadataStoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteMetadataStoreRequest request =
+   *       DeleteMetadataStoreRequest.newBuilder()
+   *           .setName(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.deleteMetadataStoreOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationCallable() { + return stub.deleteMetadataStoreOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteMetadataStoreRequest request =
+   *       DeleteMetadataStoreRequest.newBuilder()
+   *           .setName(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.deleteMetadataStoreCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteMetadataStoreCallable() { + return stub.deleteMetadataStoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Artifact associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   Artifact artifact = Artifact.newBuilder().build();
+   *   String artifactId = "artifactId240640653";
+   *   Artifact response = metadataServiceClient.createArtifact(parent, artifact, artifactId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Artifact should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param artifact Required. The Artifact to create. + * @param artifactId The {artifact} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Artifacts in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Artifact createArtifact( + MetadataStoreName parent, Artifact artifact, String artifactId) { + CreateArtifactRequest request = + CreateArtifactRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setArtifact(artifact) + .setArtifactId(artifactId) + .build(); + return createArtifact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Artifact associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
+   *   Artifact artifact = Artifact.newBuilder().build();
+   *   String artifactId = "artifactId240640653";
+   *   Artifact response = metadataServiceClient.createArtifact(parent, artifact, artifactId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Artifact should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param artifact Required. The Artifact to create. + * @param artifactId The {artifact} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Artifacts in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Artifact createArtifact(String parent, Artifact artifact, String artifactId) { + CreateArtifactRequest request = + CreateArtifactRequest.newBuilder() + .setParent(parent) + .setArtifact(artifact) + .setArtifactId(artifactId) + .build(); + return createArtifact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Artifact associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateArtifactRequest request =
+   *       CreateArtifactRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setArtifact(Artifact.newBuilder().build())
+   *           .setArtifactId("artifactId240640653")
+   *           .build();
+   *   Artifact response = metadataServiceClient.createArtifact(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 Artifact createArtifact(CreateArtifactRequest request) { + return createArtifactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Artifact associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateArtifactRequest request =
+   *       CreateArtifactRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setArtifact(Artifact.newBuilder().build())
+   *           .setArtifactId("artifactId240640653")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.createArtifactCallable().futureCall(request);
+   *   // Do something.
+   *   Artifact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createArtifactCallable() { + return stub.createArtifactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Artifact. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetArtifactRequest request =
+   *       GetArtifactRequest.newBuilder()
+   *           .setName(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .build();
+   *   Artifact response = metadataServiceClient.getArtifact(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 Artifact getArtifact(GetArtifactRequest request) { + return getArtifactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetArtifactRequest request =
+   *       GetArtifactRequest.newBuilder()
+   *           .setName(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.getArtifactCallable().futureCall(request);
+   *   // Do something.
+   *   Artifact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getArtifactCallable() { + return stub.getArtifactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Artifacts in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   for (Artifact element : metadataServiceClient.listArtifacts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Artifacts should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent) { + ListArtifactsRequest request = + ListArtifactsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listArtifacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Artifacts in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+   *   for (Artifact element : metadataServiceClient.listArtifacts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Artifacts should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListArtifactsPagedResponse listArtifacts(String parent) { + ListArtifactsRequest request = ListArtifactsRequest.newBuilder().setParent(parent).build(); + return listArtifacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Artifacts in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListArtifactsRequest request =
+   *       ListArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Artifact element : metadataServiceClient.listArtifacts(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 ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest request) { + return listArtifactsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Artifacts in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListArtifactsRequest request =
+   *       ListArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listArtifactsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Artifact element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listArtifactsPagedCallable() { + return stub.listArtifactsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Artifacts in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListArtifactsRequest request =
+   *       ListArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListArtifactsResponse response =
+   *         metadataServiceClient.listArtifactsCallable().call(request);
+   *     for (Artifact element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listArtifactsCallable() { + return stub.listArtifactsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   Artifact artifact = Artifact.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Artifact response = metadataServiceClient.updateArtifact(artifact, updateMask);
+   * }
+   * }
+ * + * @param artifact Required. The Artifact containing updates. The Artifact's + * [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify + * the Artifact to be updated. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Artifact updateArtifact(Artifact artifact, FieldMask updateMask) { + UpdateArtifactRequest request = + UpdateArtifactRequest.newBuilder().setArtifact(artifact).setUpdateMask(updateMask).build(); + return updateArtifact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateArtifactRequest request =
+   *       UpdateArtifactRequest.newBuilder()
+   *           .setArtifact(Artifact.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Artifact response = metadataServiceClient.updateArtifact(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 Artifact updateArtifact(UpdateArtifactRequest request) { + return updateArtifactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateArtifactRequest request =
+   *       UpdateArtifactRequest.newBuilder()
+   *           .setArtifact(Artifact.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.updateArtifactCallable().futureCall(request);
+   *   // Do something.
+   *   Artifact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateArtifactCallable() { + return stub.updateArtifactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Context associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   Context context = Context.newBuilder().build();
+   *   String contextId = "contextId-406810838";
+   *   Context response = metadataServiceClient.createContext(parent, context, contextId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Context should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param context Required. The Context to create. + * @param contextId The {context} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}. + * If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, + * or PERMISSION_DENIED if the caller can't view the preexisting Context.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Context createContext(MetadataStoreName parent, Context context, String contextId) { + CreateContextRequest request = + CreateContextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setContext(context) + .setContextId(contextId) + .build(); + return createContext(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Context associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
+   *   Context context = Context.newBuilder().build();
+   *   String contextId = "contextId-406810838";
+   *   Context response = metadataServiceClient.createContext(parent, context, contextId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Context should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param context Required. The Context to create. + * @param contextId The {context} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}. + * If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, + * or PERMISSION_DENIED if the caller can't view the preexisting Context.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Context createContext(String parent, Context context, String contextId) { + CreateContextRequest request = + CreateContextRequest.newBuilder() + .setParent(parent) + .setContext(context) + .setContextId(contextId) + .build(); + return createContext(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Context associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateContextRequest request =
+   *       CreateContextRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setContext(Context.newBuilder().build())
+   *           .setContextId("contextId-406810838")
+   *           .build();
+   *   Context response = metadataServiceClient.createContext(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 Context createContext(CreateContextRequest request) { + return createContextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Context associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateContextRequest request =
+   *       CreateContextRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setContext(Context.newBuilder().build())
+   *           .setContextId("contextId-406810838")
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.createContextCallable().futureCall(request);
+   *   // Do something.
+   *   Context response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createContextCallable() { + return stub.createContextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
+   *   Context response = metadataServiceClient.getContext(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Context to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Context getContext(ContextName name) { + GetContextRequest request = + GetContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getContext(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   Context response = metadataServiceClient.getContext(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Context to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Context getContext(String name) { + GetContextRequest request = GetContextRequest.newBuilder().setName(name).build(); + return getContext(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetContextRequest request =
+   *       GetContextRequest.newBuilder()
+   *           .setName(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .build();
+   *   Context response = metadataServiceClient.getContext(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 Context getContext(GetContextRequest request) { + return getContextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetContextRequest request =
+   *       GetContextRequest.newBuilder()
+   *           .setName(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.getContextCallable().futureCall(request);
+   *   // Do something.
+   *   Context response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getContextCallable() { + return stub.getContextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Contexts on the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   for (Context element : metadataServiceClient.listContexts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Contexts should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContextsPagedResponse listContexts(MetadataStoreName parent) { + ListContextsRequest request = + ListContextsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContexts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Contexts on the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   for (Context element : metadataServiceClient.listContexts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Contexts should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContextsPagedResponse listContexts(String parent) { + ListContextsRequest request = ListContextsRequest.newBuilder().setParent(parent).build(); + return listContexts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Contexts on the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListContextsRequest request =
+   *       ListContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Context element : metadataServiceClient.listContexts(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 ListContextsPagedResponse listContexts(ListContextsRequest request) { + return listContextsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Contexts on the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListContextsRequest request =
+   *       ListContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listContextsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Context element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContextsPagedCallable() { + return stub.listContextsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Contexts on the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListContextsRequest request =
+   *       ListContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListContextsResponse response = metadataServiceClient.listContextsCallable().call(request);
+   *     for (Context element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listContextsCallable() { + return stub.listContextsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   Context context = Context.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Context response = metadataServiceClient.updateContext(context, updateMask);
+   * }
+   * }
+ * + * @param context Required. The Context containing updates. The Context's + * [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the + * Context to be updated. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Context updateContext(Context context, FieldMask updateMask) { + UpdateContextRequest request = + UpdateContextRequest.newBuilder().setContext(context).setUpdateMask(updateMask).build(); + return updateContext(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateContextRequest request =
+   *       UpdateContextRequest.newBuilder()
+   *           .setContext(Context.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Context response = metadataServiceClient.updateContext(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 Context updateContext(UpdateContextRequest request) { + return updateContextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateContextRequest request =
+   *       UpdateContextRequest.newBuilder()
+   *           .setContext(Context.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.updateContextCallable().futureCall(request);
+   *   // Do something.
+   *   Context response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateContextCallable() { + return stub.updateContextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
+   *   metadataServiceClient.deleteContextAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Context to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteContextAsync( + ContextName name) { + DeleteContextRequest request = + DeleteContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteContextAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   metadataServiceClient.deleteContextAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Context to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteContextAsync(String name) { + DeleteContextRequest request = DeleteContextRequest.newBuilder().setName(name).build(); + return deleteContextAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteContextRequest request =
+   *       DeleteContextRequest.newBuilder()
+   *           .setName(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   metadataServiceClient.deleteContextAsync(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 deleteContextAsync( + DeleteContextRequest request) { + return deleteContextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteContextRequest request =
+   *       DeleteContextRequest.newBuilder()
+   *           .setName(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.deleteContextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteContextOperationCallable() { + return stub.deleteContextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a stored Context. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteContextRequest request =
+   *       DeleteContextRequest.newBuilder()
+   *           .setName(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.deleteContextCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteContextCallable() { + return stub.deleteContextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ContextName context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
+   *   List artifacts = new ArrayList<>();
+   *   List executions = new ArrayList<>();
+   *   AddContextArtifactsAndExecutionsResponse response =
+   *       metadataServiceClient.addContextArtifactsAndExecutions(context, artifacts, executions);
+   * }
+   * }
+ * + * @param context Required. The resource name of the Context that the Artifacts and Executions + * belong to. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @param artifacts The resource names of the Artifacts to attribute to the Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * @param executions The resource names of the Executions to associate with the Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( + ContextName context, List artifacts, List executions) { + AddContextArtifactsAndExecutionsRequest request = + AddContextArtifactsAndExecutionsRequest.newBuilder() + .setContext(context == null ? null : context.toString()) + .addAllArtifacts(artifacts) + .addAllExecutions(executions) + .build(); + return addContextArtifactsAndExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   List artifacts = new ArrayList<>();
+   *   List executions = new ArrayList<>();
+   *   AddContextArtifactsAndExecutionsResponse response =
+   *       metadataServiceClient.addContextArtifactsAndExecutions(context, artifacts, executions);
+   * }
+   * }
+ * + * @param context Required. The resource name of the Context that the Artifacts and Executions + * belong to. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @param artifacts The resource names of the Artifacts to attribute to the Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * @param executions The resource names of the Executions to associate with the Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( + String context, List artifacts, List executions) { + AddContextArtifactsAndExecutionsRequest request = + AddContextArtifactsAndExecutionsRequest.newBuilder() + .setContext(context) + .addAllArtifacts(artifacts) + .addAllExecutions(executions) + .build(); + return addContextArtifactsAndExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddContextArtifactsAndExecutionsRequest request =
+   *       AddContextArtifactsAndExecutionsRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .addAllArtifacts(new ArrayList())
+   *           .addAllExecutions(new ArrayList())
+   *           .build();
+   *   AddContextArtifactsAndExecutionsResponse response =
+   *       metadataServiceClient.addContextArtifactsAndExecutions(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 AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( + AddContextArtifactsAndExecutionsRequest request) { + return addContextArtifactsAndExecutionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddContextArtifactsAndExecutionsRequest request =
+   *       AddContextArtifactsAndExecutionsRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .addAllArtifacts(new ArrayList())
+   *           .addAllExecutions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.addContextArtifactsAndExecutionsCallable().futureCall(request);
+   *   // Do something.
+   *   AddContextArtifactsAndExecutionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsCallable() { + return stub.addContextArtifactsAndExecutionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have + * already been added to the parent Context, they are simply skipped. If this call would create a + * cycle or cause any Context to have more than 10 parents, the request will fail with an + * INVALID_ARGUMENT error. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ContextName context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
+   *   List childContexts = new ArrayList<>();
+   *   AddContextChildrenResponse response =
+   *       metadataServiceClient.addContextChildren(context, childContexts);
+   * }
+   * }
+ * + * @param context Required. The resource name of the parent Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @param childContexts The resource names of the child Contexts. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddContextChildrenResponse addContextChildren( + ContextName context, List childContexts) { + AddContextChildrenRequest request = + AddContextChildrenRequest.newBuilder() + .setContext(context == null ? null : context.toString()) + .addAllChildContexts(childContexts) + .build(); + return addContextChildren(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have + * already been added to the parent Context, they are simply skipped. If this call would create a + * cycle or cause any Context to have more than 10 parents, the request will fail with an + * INVALID_ARGUMENT error. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   List childContexts = new ArrayList<>();
+   *   AddContextChildrenResponse response =
+   *       metadataServiceClient.addContextChildren(context, childContexts);
+   * }
+   * }
+ * + * @param context Required. The resource name of the parent Context. + *

Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * @param childContexts The resource names of the child Contexts. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddContextChildrenResponse addContextChildren( + String context, List childContexts) { + AddContextChildrenRequest request = + AddContextChildrenRequest.newBuilder() + .setContext(context) + .addAllChildContexts(childContexts) + .build(); + return addContextChildren(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have + * already been added to the parent Context, they are simply skipped. If this call would create a + * cycle or cause any Context to have more than 10 parents, the request will fail with an + * INVALID_ARGUMENT error. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddContextChildrenRequest request =
+   *       AddContextChildrenRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .addAllChildContexts(new ArrayList())
+   *           .build();
+   *   AddContextChildrenResponse response = metadataServiceClient.addContextChildren(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 AddContextChildrenResponse addContextChildren(AddContextChildrenRequest request) { + return addContextChildrenCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have + * already been added to the parent Context, they are simply skipped. If this call would create a + * cycle or cause any Context to have more than 10 parents, the request will fail with an + * INVALID_ARGUMENT error. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddContextChildrenRequest request =
+   *       AddContextChildrenRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .addAllChildContexts(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.addContextChildrenCallable().futureCall(request);
+   *   // Do something.
+   *   AddContextChildrenResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + addContextChildrenCallable() { + return stub.addContextChildrenCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ContextName context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
+   *   LineageSubgraph response = metadataServiceClient.queryContextLineageSubgraph(context);
+   * }
+   * }
+ * + * @param context Required. The resource name of the Context whose Artifacts and Executions should + * be retrieved as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + *

The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of + * Executions, or the number of Events that would be returned for the Context exceeds 1000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryContextLineageSubgraph(ContextName context) { + QueryContextLineageSubgraphRequest request = + QueryContextLineageSubgraphRequest.newBuilder() + .setContext(context == null ? null : context.toString()) + .build(); + return queryContextLineageSubgraph(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String context =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   LineageSubgraph response = metadataServiceClient.queryContextLineageSubgraph(context);
+   * }
+   * }
+ * + * @param context Required. The resource name of the Context whose Artifacts and Executions should + * be retrieved as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + *

The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of + * Executions, or the number of Events that would be returned for the Context exceeds 1000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryContextLineageSubgraph(String context) { + QueryContextLineageSubgraphRequest request = + QueryContextLineageSubgraphRequest.newBuilder().setContext(context).build(); + return queryContextLineageSubgraph(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryContextLineageSubgraphRequest request =
+   *       QueryContextLineageSubgraphRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .build();
+   *   LineageSubgraph response = metadataServiceClient.queryContextLineageSubgraph(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 LineageSubgraph queryContextLineageSubgraph( + QueryContextLineageSubgraphRequest request) { + return queryContextLineageSubgraphCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryContextLineageSubgraphRequest request =
+   *       QueryContextLineageSubgraphRequest.newBuilder()
+   *           .setContext(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.queryContextLineageSubgraphCallable().futureCall(request);
+   *   // Do something.
+   *   LineageSubgraph response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + queryContextLineageSubgraphCallable() { + return stub.queryContextLineageSubgraphCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Execution associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   Execution execution = Execution.newBuilder().build();
+   *   String executionId = "executionId-454906285";
+   *   Execution response = metadataServiceClient.createExecution(parent, execution, executionId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Execution should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param execution Required. The Execution to create. + * @param executionId The {execution} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Executions in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution createExecution( + MetadataStoreName parent, Execution execution, String executionId) { + CreateExecutionRequest request = + CreateExecutionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExecution(execution) + .setExecutionId(executionId) + .build(); + return createExecution(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Execution associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
+   *   Execution execution = Execution.newBuilder().build();
+   *   String executionId = "executionId-454906285";
+   *   Execution response = metadataServiceClient.createExecution(parent, execution, executionId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the Execution should be + * created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param execution Required. The Execution to create. + * @param executionId The {execution} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * Executions in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution createExecution(String parent, Execution execution, String executionId) { + CreateExecutionRequest request = + CreateExecutionRequest.newBuilder() + .setParent(parent) + .setExecution(execution) + .setExecutionId(executionId) + .build(); + return createExecution(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Execution associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateExecutionRequest request =
+   *       CreateExecutionRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setExecutionId("executionId-454906285")
+   *           .build();
+   *   Execution response = metadataServiceClient.createExecution(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 Execution createExecution(CreateExecutionRequest request) { + return createExecutionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Execution associated with a MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateExecutionRequest request =
+   *       CreateExecutionRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setExecutionId("executionId-454906285")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.createExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createExecutionCallable() { + return stub.createExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Execution. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   Execution response = metadataServiceClient.getExecution(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 Execution getExecution(GetExecutionRequest request) { + return getExecutionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.getExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getExecutionCallable() { + return stub.getExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   for (Execution element : metadataServiceClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Executions should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+   *   for (Execution element : metadataServiceClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose Executions should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(String parent) { + ListExecutionsRequest request = ListExecutionsRequest.newBuilder().setParent(parent).build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Execution element : metadataServiceClient.listExecutions(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 ListExecutionsPagedResponse listExecutions(ListExecutionsRequest request) { + return listExecutionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listExecutionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Execution element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsPagedCallable() { + return stub.listExecutionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions in the MetadataStore. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListExecutionsResponse response =
+   *         metadataServiceClient.listExecutionsCallable().call(request);
+   *     for (Execution element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsCallable() { + return stub.listExecutionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   Execution execution = Execution.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Execution response = metadataServiceClient.updateExecution(execution, updateMask);
+   * }
+   * }
+ * + * @param execution Required. The Execution containing updates. The Execution's + * [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify + * the Execution to be updated. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @param updateMask Required. A FieldMask indicating which fields should be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution updateExecution(Execution execution, FieldMask updateMask) { + UpdateExecutionRequest request = + UpdateExecutionRequest.newBuilder() + .setExecution(execution) + .setUpdateMask(updateMask) + .build(); + return updateExecution(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateExecutionRequest request =
+   *       UpdateExecutionRequest.newBuilder()
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Execution response = metadataServiceClient.updateExecution(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 Execution updateExecution(UpdateExecutionRequest request) { + return updateExecutionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a stored Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   UpdateExecutionRequest request =
+   *       UpdateExecutionRequest.newBuilder()
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.updateExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateExecutionCallable() { + return stub.updateExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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 skipped. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ExecutionName execution =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
+   *   List events = new ArrayList<>();
+   *   AddExecutionEventsResponse response =
+   *       metadataServiceClient.addExecutionEvents(execution, events);
+   * }
+   * }
+ * + * @param execution Required. The resource name of the Execution that the Events connect Artifacts + * with. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @param events The Events to create and add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddExecutionEventsResponse addExecutionEvents( + ExecutionName execution, List events) { + AddExecutionEventsRequest request = + AddExecutionEventsRequest.newBuilder() + .setExecution(execution == null ? null : execution.toString()) + .addAllEvents(events) + .build(); + return addExecutionEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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 skipped. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String execution =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+   *   List events = new ArrayList<>();
+   *   AddExecutionEventsResponse response =
+   *       metadataServiceClient.addExecutionEvents(execution, events);
+   * }
+   * }
+ * + * @param execution Required. The resource name of the Execution that the Events connect Artifacts + * with. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @param events The Events to create and add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddExecutionEventsResponse addExecutionEvents(String execution, List events) { + AddExecutionEventsRequest request = + AddExecutionEventsRequest.newBuilder().setExecution(execution).addAllEvents(events).build(); + return addExecutionEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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 skipped. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddExecutionEventsRequest request =
+   *       AddExecutionEventsRequest.newBuilder()
+   *           .setExecution(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .addAllEvents(new ArrayList())
+   *           .build();
+   *   AddExecutionEventsResponse response = metadataServiceClient.addExecutionEvents(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 AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsRequest request) { + return addExecutionEventsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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 skipped. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   AddExecutionEventsRequest request =
+   *       AddExecutionEventsRequest.newBuilder()
+   *           .setExecution(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .addAllEvents(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.addExecutionEventsCallable().futureCall(request);
+   *   // Do something.
+   *   AddExecutionEventsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + addExecutionEventsCallable() { + return stub.addExecutionEventsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Obtains the set of input and output Artifacts for this Execution, in the form of + * LineageSubgraph that also contains the Execution and connecting Events. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ExecutionName execution =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
+   *   LineageSubgraph response = metadataServiceClient.queryExecutionInputsAndOutputs(execution);
+   * }
+   * }
+ * + * @param execution Required. The resource name of the Execution whose input and output Artifacts + * should be retrieved as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryExecutionInputsAndOutputs(ExecutionName execution) { + QueryExecutionInputsAndOutputsRequest request = + QueryExecutionInputsAndOutputsRequest.newBuilder() + .setExecution(execution == null ? null : execution.toString()) + .build(); + return queryExecutionInputsAndOutputs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Obtains the set of input and output Artifacts for this Execution, in the form of + * LineageSubgraph that also contains the Execution and connecting Events. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String execution =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+   *   LineageSubgraph response = metadataServiceClient.queryExecutionInputsAndOutputs(execution);
+   * }
+   * }
+ * + * @param execution Required. The resource name of the Execution whose input and output Artifacts + * should be retrieved as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryExecutionInputsAndOutputs(String execution) { + QueryExecutionInputsAndOutputsRequest request = + QueryExecutionInputsAndOutputsRequest.newBuilder().setExecution(execution).build(); + return queryExecutionInputsAndOutputs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Obtains the set of input and output Artifacts for this Execution, in the form of + * LineageSubgraph that also contains the Execution and connecting Events. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryExecutionInputsAndOutputsRequest request =
+   *       QueryExecutionInputsAndOutputsRequest.newBuilder()
+   *           .setExecution(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   LineageSubgraph response = metadataServiceClient.queryExecutionInputsAndOutputs(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 LineageSubgraph queryExecutionInputsAndOutputs( + QueryExecutionInputsAndOutputsRequest request) { + return queryExecutionInputsAndOutputsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Obtains the set of input and output Artifacts for this Execution, in the form of + * LineageSubgraph that also contains the Execution and connecting Events. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryExecutionInputsAndOutputsRequest request =
+   *       QueryExecutionInputsAndOutputsRequest.newBuilder()
+   *           .setExecution(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.queryExecutionInputsAndOutputsCallable().futureCall(request);
+   *   // Do something.
+   *   LineageSubgraph response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + queryExecutionInputsAndOutputsCallable() { + return stub.queryExecutionInputsAndOutputsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   MetadataSchema metadataSchema = MetadataSchema.newBuilder().build();
+   *   String metadataSchemaId = "metadataSchemaId1549245163";
+   *   MetadataSchema response =
+   *       metadataServiceClient.createMetadataSchema(parent, metadataSchema, metadataSchemaId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should + * be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param metadataSchema Required. The MetadataSchema to create. + * @param metadataSchemaId The {metadata_schema} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + * If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be + * 4-128 characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * MetadataSchemas in the parent Location. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataSchema.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataSchema createMetadataSchema( + MetadataStoreName parent, MetadataSchema metadataSchema, String metadataSchemaId) { + CreateMetadataSchemaRequest request = + CreateMetadataSchemaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMetadataSchema(metadataSchema) + .setMetadataSchemaId(metadataSchemaId) + .build(); + return createMetadataSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
+   *   MetadataSchema metadataSchema = MetadataSchema.newBuilder().build();
+   *   String metadataSchemaId = "metadataSchemaId1549245163";
+   *   MetadataSchema response =
+   *       metadataServiceClient.createMetadataSchema(parent, metadataSchema, metadataSchemaId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should + * be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @param metadataSchema Required. The MetadataSchema to create. + * @param metadataSchemaId The {metadata_schema} portion of the resource name with the format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + * If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be + * 4-128 characters in length. Valid characters are /[a-z][0-9]-/. Must be unique across all + * MetadataSchemas in the parent Location. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataSchema.) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataSchema createMetadataSchema( + String parent, MetadataSchema metadataSchema, String metadataSchemaId) { + CreateMetadataSchemaRequest request = + CreateMetadataSchemaRequest.newBuilder() + .setParent(parent) + .setMetadataSchema(metadataSchema) + .setMetadataSchemaId(metadataSchemaId) + .build(); + return createMetadataSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateMetadataSchemaRequest request =
+   *       CreateMetadataSchemaRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setMetadataSchema(MetadataSchema.newBuilder().build())
+   *           .setMetadataSchemaId("metadataSchemaId1549245163")
+   *           .build();
+   *   MetadataSchema response = metadataServiceClient.createMetadataSchema(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 MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest request) { + return createMetadataSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   CreateMetadataSchemaRequest request =
+   *       CreateMetadataSchemaRequest.newBuilder()
+   *           .setParent(
+   *               MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
+   *           .setMetadataSchema(MetadataSchema.newBuilder().build())
+   *           .setMetadataSchemaId("metadataSchemaId1549245163")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.createMetadataSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   MetadataSchema response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createMetadataSchemaCallable() { + return stub.createMetadataSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataSchemaName name =
+   *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]");
+   *   MetadataSchema response = metadataServiceClient.getMetadataSchema(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MetadataSchema to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataSchema getMetadataSchema(MetadataSchemaName name) { + GetMetadataSchemaRequest request = + GetMetadataSchemaRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMetadataSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name =
+   *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *           .toString();
+   *   MetadataSchema response = metadataServiceClient.getMetadataSchema(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MetadataSchema to retrieve. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MetadataSchema getMetadataSchema(String name) { + GetMetadataSchemaRequest request = GetMetadataSchemaRequest.newBuilder().setName(name).build(); + return getMetadataSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetMetadataSchemaRequest request =
+   *       GetMetadataSchemaRequest.newBuilder()
+   *           .setName(
+   *               MetadataSchemaName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   MetadataSchema response = metadataServiceClient.getMetadataSchema(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 MetadataSchema getMetadataSchema(GetMetadataSchemaRequest request) { + return getMetadataSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a specific MetadataSchema. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetMetadataSchemaRequest request =
+   *       GetMetadataSchemaRequest.newBuilder()
+   *           .setName(
+   *               MetadataSchemaName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.getMetadataSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   MetadataSchema response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMetadataSchemaCallable() { + return stub.getMetadataSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataSchemas. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   for (MetadataSchema element :
+   *       metadataServiceClient.listMetadataSchemas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose MetadataSchemas should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreName parent) { + ListMetadataSchemasRequest request = + ListMetadataSchemasRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMetadataSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataSchemas. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *           .toString();
+   *   for (MetadataSchema element :
+   *       metadataServiceClient.listMetadataSchemas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The MetadataStore whose MetadataSchemas should be listed. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMetadataSchemasPagedResponse listMetadataSchemas(String parent) { + ListMetadataSchemasRequest request = + ListMetadataSchemasRequest.newBuilder().setParent(parent).build(); + return listMetadataSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataSchemas. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataSchemasRequest request =
+   *       ListMetadataSchemasRequest.newBuilder()
+   *           .setParent(
+   *               MetadataSchemaName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (MetadataSchema element :
+   *       metadataServiceClient.listMetadataSchemas(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 ListMetadataSchemasPagedResponse listMetadataSchemas( + ListMetadataSchemasRequest request) { + return listMetadataSchemasPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataSchemas. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataSchemasRequest request =
+   *       ListMetadataSchemasRequest.newBuilder()
+   *           .setParent(
+   *               MetadataSchemaName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listMetadataSchemasPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MetadataSchema element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMetadataSchemasPagedCallable() { + return stub.listMetadataSchemasPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MetadataSchemas. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListMetadataSchemasRequest request =
+   *       ListMetadataSchemasRequest.newBuilder()
+   *           .setParent(
+   *               MetadataSchemaName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListMetadataSchemasResponse response =
+   *         metadataServiceClient.listMetadataSchemasCallable().call(request);
+   *     for (MetadataSchema element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMetadataSchemasCallable() { + return stub.listMetadataSchemasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by + * Event edges and returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ArtifactName artifact =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
+   *   LineageSubgraph response = metadataServiceClient.queryArtifactLineageSubgraph(artifact);
+   * }
+   * }
+ * + * @param artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved + * as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + *

The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of + * Executions, or the number of Events that would be returned for the Context exceeds 1000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryArtifactLineageSubgraph(ArtifactName artifact) { + QueryArtifactLineageSubgraphRequest request = + QueryArtifactLineageSubgraphRequest.newBuilder() + .setArtifact(artifact == null ? null : artifact.toString()) + .build(); + return queryArtifactLineageSubgraph(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by + * Event edges and returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String artifact =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+   *   LineageSubgraph response = metadataServiceClient.queryArtifactLineageSubgraph(artifact);
+   * }
+   * }
+ * + * @param artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved + * as a LineageSubgraph. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + *

The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of + * Executions, or the number of Events that would be returned for the Context exceeds 1000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineageSubgraph queryArtifactLineageSubgraph(String artifact) { + QueryArtifactLineageSubgraphRequest request = + QueryArtifactLineageSubgraphRequest.newBuilder().setArtifact(artifact).build(); + return queryArtifactLineageSubgraph(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by + * Event edges and returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryArtifactLineageSubgraphRequest request =
+   *       QueryArtifactLineageSubgraphRequest.newBuilder()
+   *           .setArtifact(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setMaxHops(407750469)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   LineageSubgraph response = metadataServiceClient.queryArtifactLineageSubgraph(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 LineageSubgraph queryArtifactLineageSubgraph( + QueryArtifactLineageSubgraphRequest request) { + return queryArtifactLineageSubgraphCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by + * Event edges and returned as a LineageSubgraph. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   QueryArtifactLineageSubgraphRequest request =
+   *       QueryArtifactLineageSubgraphRequest.newBuilder()
+   *           .setArtifact(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setMaxHops(407750469)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.queryArtifactLineageSubgraphCallable().futureCall(request);
+   *   // Do something.
+   *   LineageSubgraph response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + queryArtifactLineageSubgraphCallable() { + return stub.queryArtifactLineageSubgraphCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMetadataStoresPagedResponse + extends AbstractPagedListResponse< + ListMetadataStoresRequest, + ListMetadataStoresResponse, + MetadataStore, + ListMetadataStoresPage, + ListMetadataStoresFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMetadataStoresPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListMetadataStoresPagedResponse apply(ListMetadataStoresPage input) { + return new ListMetadataStoresPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListMetadataStoresPagedResponse(ListMetadataStoresPage page) { + super(page, ListMetadataStoresFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMetadataStoresPage + extends AbstractPage< + ListMetadataStoresRequest, + ListMetadataStoresResponse, + MetadataStore, + ListMetadataStoresPage> { + + private ListMetadataStoresPage( + PageContext context, + ListMetadataStoresResponse response) { + super(context, response); + } + + private static ListMetadataStoresPage createEmptyPage() { + return new ListMetadataStoresPage(null, null); + } + + @Override + protected ListMetadataStoresPage createPage( + PageContext context, + ListMetadataStoresResponse response) { + return new ListMetadataStoresPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMetadataStoresFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMetadataStoresRequest, + ListMetadataStoresResponse, + MetadataStore, + ListMetadataStoresPage, + ListMetadataStoresFixedSizeCollection> { + + private ListMetadataStoresFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMetadataStoresFixedSizeCollection createEmptyCollection() { + return new ListMetadataStoresFixedSizeCollection(null, 0); + } + + @Override + protected ListMetadataStoresFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMetadataStoresFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListArtifactsPagedResponse + extends AbstractPagedListResponse< + ListArtifactsRequest, + ListArtifactsResponse, + Artifact, + ListArtifactsPage, + ListArtifactsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListArtifactsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListArtifactsPagedResponse apply(ListArtifactsPage input) { + return new ListArtifactsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListArtifactsPagedResponse(ListArtifactsPage page) { + super(page, ListArtifactsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListArtifactsPage + extends AbstractPage< + ListArtifactsRequest, ListArtifactsResponse, Artifact, ListArtifactsPage> { + + private ListArtifactsPage( + PageContext context, + ListArtifactsResponse response) { + super(context, response); + } + + private static ListArtifactsPage createEmptyPage() { + return new ListArtifactsPage(null, null); + } + + @Override + protected ListArtifactsPage createPage( + PageContext context, + ListArtifactsResponse response) { + return new ListArtifactsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListArtifactsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListArtifactsRequest, + ListArtifactsResponse, + Artifact, + ListArtifactsPage, + ListArtifactsFixedSizeCollection> { + + private ListArtifactsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListArtifactsFixedSizeCollection createEmptyCollection() { + return new ListArtifactsFixedSizeCollection(null, 0); + } + + @Override + protected ListArtifactsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListArtifactsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListContextsPagedResponse + extends AbstractPagedListResponse< + ListContextsRequest, + ListContextsResponse, + Context, + ListContextsPage, + ListContextsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContextsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListContextsPagedResponse apply(ListContextsPage input) { + return new ListContextsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListContextsPagedResponse(ListContextsPage page) { + super(page, ListContextsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContextsPage + extends AbstractPage { + + private ListContextsPage( + PageContext context, + ListContextsResponse response) { + super(context, response); + } + + private static ListContextsPage createEmptyPage() { + return new ListContextsPage(null, null); + } + + @Override + protected ListContextsPage createPage( + PageContext context, + ListContextsResponse response) { + return new ListContextsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContextsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContextsRequest, + ListContextsResponse, + Context, + ListContextsPage, + ListContextsFixedSizeCollection> { + + private ListContextsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContextsFixedSizeCollection createEmptyCollection() { + return new ListContextsFixedSizeCollection(null, 0); + } + + @Override + protected ListContextsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContextsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExecutionsPagedResponse + extends AbstractPagedListResponse< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExecutionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListExecutionsPagedResponse apply(ListExecutionsPage input) { + return new ListExecutionsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListExecutionsPagedResponse(ListExecutionsPage page) { + super(page, ListExecutionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExecutionsPage + extends AbstractPage< + ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { + + private ListExecutionsPage( + PageContext context, + ListExecutionsResponse response) { + super(context, response); + } + + private static ListExecutionsPage createEmptyPage() { + return new ListExecutionsPage(null, null); + } + + @Override + protected ListExecutionsPage createPage( + PageContext context, + ListExecutionsResponse response) { + return new ListExecutionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExecutionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExecutionsFixedSizeCollection createEmptyCollection() { + return new ListExecutionsFixedSizeCollection(null, 0); + } + + @Override + protected ListExecutionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExecutionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMetadataSchemasPagedResponse + extends AbstractPagedListResponse< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + MetadataSchema, + ListMetadataSchemasPage, + ListMetadataSchemasFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMetadataSchemasPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListMetadataSchemasPagedResponse apply(ListMetadataSchemasPage input) { + return new ListMetadataSchemasPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListMetadataSchemasPagedResponse(ListMetadataSchemasPage page) { + super(page, ListMetadataSchemasFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMetadataSchemasPage + extends AbstractPage< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + MetadataSchema, + ListMetadataSchemasPage> { + + private ListMetadataSchemasPage( + PageContext + context, + ListMetadataSchemasResponse response) { + super(context, response); + } + + private static ListMetadataSchemasPage createEmptyPage() { + return new ListMetadataSchemasPage(null, null); + } + + @Override + protected ListMetadataSchemasPage createPage( + PageContext + context, + ListMetadataSchemasResponse response) { + return new ListMetadataSchemasPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMetadataSchemasFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + MetadataSchema, + ListMetadataSchemasPage, + ListMetadataSchemasFixedSizeCollection> { + + private ListMetadataSchemasFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMetadataSchemasFixedSizeCollection createEmptyCollection() { + return new ListMetadataSchemasFixedSizeCollection(null, 0); + } + + @Override + protected ListMetadataSchemasFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMetadataSchemasFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..83043e2af --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java @@ -0,0 +1,525 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetadataServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * MetadataServiceSettings.Builder metadataServiceSettingsBuilder =
+ *     MetadataServiceSettings.newBuilder();
+ * metadataServiceSettingsBuilder
+ *     .getMetadataStoreSettings()
+ *     .setRetrySettings(
+ *         metadataServiceSettingsBuilder
+ *             .getMetadataStoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * MetadataServiceSettings metadataServiceSettings = metadataServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class MetadataServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createMetadataStore. */ + public UnaryCallSettings createMetadataStoreSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createMetadataStoreSettings(); + } + + /** Returns the object with the settings used for calls to createMetadataStore. */ + public OperationCallSettings< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createMetadataStoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to getMetadataStore. */ + public UnaryCallSettings getMetadataStoreSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).getMetadataStoreSettings(); + } + + /** Returns the object with the settings used for calls to listMetadataStores. */ + public PagedCallSettings< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).listMetadataStoresSettings(); + } + + /** Returns the object with the settings used for calls to deleteMetadataStore. */ + public UnaryCallSettings deleteMetadataStoreSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteMetadataStoreSettings(); + } + + /** Returns the object with the settings used for calls to deleteMetadataStore. */ + public OperationCallSettings< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteMetadataStoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to createArtifact. */ + public UnaryCallSettings createArtifactSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createArtifactSettings(); + } + + /** Returns the object with the settings used for calls to getArtifact. */ + public UnaryCallSettings getArtifactSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).getArtifactSettings(); + } + + /** Returns the object with the settings used for calls to listArtifacts. */ + public PagedCallSettings + listArtifactsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).listArtifactsSettings(); + } + + /** Returns the object with the settings used for calls to updateArtifact. */ + public UnaryCallSettings updateArtifactSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).updateArtifactSettings(); + } + + /** Returns the object with the settings used for calls to createContext. */ + public UnaryCallSettings createContextSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createContextSettings(); + } + + /** Returns the object with the settings used for calls to getContext. */ + public UnaryCallSettings getContextSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).getContextSettings(); + } + + /** Returns the object with the settings used for calls to listContexts. */ + public PagedCallSettings + listContextsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).listContextsSettings(); + } + + /** Returns the object with the settings used for calls to updateContext. */ + public UnaryCallSettings updateContextSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).updateContextSettings(); + } + + /** Returns the object with the settings used for calls to deleteContext. */ + public UnaryCallSettings deleteContextSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteContextSettings(); + } + + /** Returns the object with the settings used for calls to deleteContext. */ + public OperationCallSettings + deleteContextOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteContextOperationSettings(); + } + + /** Returns the object with the settings used for calls to addContextArtifactsAndExecutions. */ + public UnaryCallSettings< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()) + .addContextArtifactsAndExecutionsSettings(); + } + + /** Returns the object with the settings used for calls to addContextChildren. */ + public UnaryCallSettings + addContextChildrenSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).addContextChildrenSettings(); + } + + /** Returns the object with the settings used for calls to queryContextLineageSubgraph. */ + public UnaryCallSettings + queryContextLineageSubgraphSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).queryContextLineageSubgraphSettings(); + } + + /** Returns the object with the settings used for calls to createExecution. */ + public UnaryCallSettings createExecutionSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createExecutionSettings(); + } + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).getExecutionSettings(); + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).listExecutionsSettings(); + } + + /** Returns the object with the settings used for calls to updateExecution. */ + public UnaryCallSettings updateExecutionSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).updateExecutionSettings(); + } + + /** Returns the object with the settings used for calls to addExecutionEvents. */ + public UnaryCallSettings + addExecutionEventsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).addExecutionEventsSettings(); + } + + /** Returns the object with the settings used for calls to queryExecutionInputsAndOutputs. */ + public UnaryCallSettings + queryExecutionInputsAndOutputsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()) + .queryExecutionInputsAndOutputsSettings(); + } + + /** Returns the object with the settings used for calls to createMetadataSchema. */ + public UnaryCallSettings + createMetadataSchemaSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).createMetadataSchemaSettings(); + } + + /** Returns the object with the settings used for calls to getMetadataSchema. */ + public UnaryCallSettings getMetadataSchemaSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).getMetadataSchemaSettings(); + } + + /** Returns the object with the settings used for calls to listMetadataSchemas. */ + public PagedCallSettings< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).listMetadataSchemasSettings(); + } + + /** Returns the object with the settings used for calls to queryArtifactLineageSubgraph. */ + public UnaryCallSettings + queryArtifactLineageSubgraphSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).queryArtifactLineageSubgraphSettings(); + } + + public static final MetadataServiceSettings create(MetadataServiceStubSettings stub) + throws IOException { + return new MetadataServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MetadataServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MetadataServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MetadataServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MetadataServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MetadataServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MetadataServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MetadataServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetadataServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MetadataServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MetadataServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(MetadataServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MetadataServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MetadataServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createMetadataStore. */ + public UnaryCallSettings.Builder + createMetadataStoreSettings() { + return getStubSettingsBuilder().createMetadataStoreSettings(); + } + + /** Returns the builder for the settings used for calls to createMetadataStore. */ + public OperationCallSettings.Builder< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings() { + return getStubSettingsBuilder().createMetadataStoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getMetadataStore. */ + public UnaryCallSettings.Builder + getMetadataStoreSettings() { + return getStubSettingsBuilder().getMetadataStoreSettings(); + } + + /** Returns the builder for the settings used for calls to listMetadataStores. */ + public PagedCallSettings.Builder< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings() { + return getStubSettingsBuilder().listMetadataStoresSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMetadataStore. */ + public UnaryCallSettings.Builder + deleteMetadataStoreSettings() { + return getStubSettingsBuilder().deleteMetadataStoreSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMetadataStore. */ + public OperationCallSettings.Builder< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings() { + return getStubSettingsBuilder().deleteMetadataStoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createArtifact. */ + public UnaryCallSettings.Builder createArtifactSettings() { + return getStubSettingsBuilder().createArtifactSettings(); + } + + /** Returns the builder for the settings used for calls to getArtifact. */ + public UnaryCallSettings.Builder getArtifactSettings() { + return getStubSettingsBuilder().getArtifactSettings(); + } + + /** Returns the builder for the settings used for calls to listArtifacts. */ + public PagedCallSettings.Builder< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse> + listArtifactsSettings() { + return getStubSettingsBuilder().listArtifactsSettings(); + } + + /** Returns the builder for the settings used for calls to updateArtifact. */ + public UnaryCallSettings.Builder updateArtifactSettings() { + return getStubSettingsBuilder().updateArtifactSettings(); + } + + /** Returns the builder for the settings used for calls to createContext. */ + public UnaryCallSettings.Builder createContextSettings() { + return getStubSettingsBuilder().createContextSettings(); + } + + /** Returns the builder for the settings used for calls to getContext. */ + public UnaryCallSettings.Builder getContextSettings() { + return getStubSettingsBuilder().getContextSettings(); + } + + /** Returns the builder for the settings used for calls to listContexts. */ + public PagedCallSettings.Builder< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> + listContextsSettings() { + return getStubSettingsBuilder().listContextsSettings(); + } + + /** Returns the builder for the settings used for calls to updateContext. */ + public UnaryCallSettings.Builder updateContextSettings() { + return getStubSettingsBuilder().updateContextSettings(); + } + + /** Returns the builder for the settings used for calls to deleteContext. */ + public UnaryCallSettings.Builder deleteContextSettings() { + return getStubSettingsBuilder().deleteContextSettings(); + } + + /** Returns the builder for the settings used for calls to deleteContext. */ + public OperationCallSettings.Builder + deleteContextOperationSettings() { + return getStubSettingsBuilder().deleteContextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to addContextArtifactsAndExecutions. */ + public UnaryCallSettings.Builder< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings() { + return getStubSettingsBuilder().addContextArtifactsAndExecutionsSettings(); + } + + /** Returns the builder for the settings used for calls to addContextChildren. */ + public UnaryCallSettings.Builder + addContextChildrenSettings() { + return getStubSettingsBuilder().addContextChildrenSettings(); + } + + /** Returns the builder for the settings used for calls to queryContextLineageSubgraph. */ + public UnaryCallSettings.Builder + queryContextLineageSubgraphSettings() { + return getStubSettingsBuilder().queryContextLineageSubgraphSettings(); + } + + /** Returns the builder for the settings used for calls to createExecution. */ + public UnaryCallSettings.Builder createExecutionSettings() { + return getStubSettingsBuilder().createExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getStubSettingsBuilder().getExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return getStubSettingsBuilder().listExecutionsSettings(); + } + + /** Returns the builder for the settings used for calls to updateExecution. */ + public UnaryCallSettings.Builder updateExecutionSettings() { + return getStubSettingsBuilder().updateExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to addExecutionEvents. */ + public UnaryCallSettings.Builder + addExecutionEventsSettings() { + return getStubSettingsBuilder().addExecutionEventsSettings(); + } + + /** Returns the builder for the settings used for calls to queryExecutionInputsAndOutputs. */ + public UnaryCallSettings.Builder + queryExecutionInputsAndOutputsSettings() { + return getStubSettingsBuilder().queryExecutionInputsAndOutputsSettings(); + } + + /** Returns the builder for the settings used for calls to createMetadataSchema. */ + public UnaryCallSettings.Builder + createMetadataSchemaSettings() { + return getStubSettingsBuilder().createMetadataSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to getMetadataSchema. */ + public UnaryCallSettings.Builder + getMetadataSchemaSettings() { + return getStubSettingsBuilder().getMetadataSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to listMetadataSchemas. */ + public PagedCallSettings.Builder< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings() { + return getStubSettingsBuilder().listMetadataSchemasSettings(); + } + + /** Returns the builder for the settings used for calls to queryArtifactLineageSubgraph. */ + public UnaryCallSettings.Builder + queryArtifactLineageSubgraphSettings() { + return getStubSettingsBuilder().queryArtifactLineageSubgraphSettings(); + } + + @Override + public MetadataServiceSettings build() throws IOException { + return new MetadataServiceSettings(this); + } + } +} 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 b71de9648..e97aa781a 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -41,7 +41,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: A service that migrates resources from automl.googleapis.com, - * datalabeling.googleapis.com and ml.googleapis.com to AI Platform. + * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -173,7 +173,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -188,7 +188,7 @@ public final OperationsClient getOperationsClient() { * } * * @param parent Required. The location that the migratable resources should be searched from. - * It's the AI Platform location that the resources can be migrated to, not the resources' + * It's the Vertex AI location that the resources can be migrated to, not the resources' * original location. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -204,7 +204,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -219,7 +219,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( * } * * @param parent Required. The location that the migratable resources should be searched from. - * It's the AI Platform location that the resources can be migrated to, not the resources' + * It's the Vertex AI location that the resources can be migrated to, not the resources' * original location. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -232,7 +232,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -263,7 +263,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * @@ -294,12 +294,19 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to AI Platform's given location. + * ml.googleapis.com that can be migrated to Vertex AI's given location. * *

Sample code: * *

{@code
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SearchMigratableResourcesRequest request =
+   *       SearchMigratableResourcesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
    *   while (true) {
    *     SearchMigratableResourcesResponse response =
    *         migrationServiceClient.searchMigratableResourcesCallable().call(request);
@@ -324,7 +331,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
    * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
-   * datalabeling.googleapis.com to AI Platform (Unified).
+   * datalabeling.googleapis.com to Vertex AI.
    *
    * 

Sample code: * @@ -359,7 +366,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -394,7 +401,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -422,7 +429,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * @@ -452,7 +459,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to AI Platform (Unified). + * datalabeling.googleapis.com to Vertex AI. * *

Sample code: * 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 8f084e1e6..c35fd9dd7 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 @@ -1,5 +1,5 @@ /* - * 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/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 b64a4d615..381fe1c9d 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -42,7 +42,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: A service for managing AI Platform's machine learning Models. + * Service Description: A service for managing Vertex AI's machine learning Models. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -166,7 +166,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -195,7 +195,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -221,7 +221,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -246,7 +246,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -272,7 +272,7 @@ public final OperationFuture // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into AI Platform. + * Uploads a Model artifact into Vertex AI. * *

Sample code: * @@ -497,6 +497,14 @@ public final UnaryCallable listModel * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelsRequest request =
+   *       ListModelsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
    *     for (Model element : response.getResponsesList()) {
@@ -532,7 +540,7 @@ public final UnaryCallable listModelsCall
    *
    * @param model Required. The Model which replaces the resource on the server.
    * @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
-   *     definition, see [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   *     definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Model updateModel(Model model, FieldMask updateMask) {
@@ -864,7 +872,7 @@ public final UnaryCallable exportModelCallable()
    * }
* * @param name Required. The name of the ModelEvaluation resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { @@ -890,7 +898,7 @@ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { * }

* * @param name Required. The name of the ModelEvaluation resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation getModelEvaluation(String name) { @@ -1071,6 +1079,14 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations( * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationsRequest request =
+   *       ListModelEvaluationsRequest.newBuilder()
+   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListModelEvaluationsResponse response =
    *         modelServiceClient.listModelEvaluationsCallable().call(request);
@@ -1108,7 +1124,7 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * }
* * @param name Required. The name of the ModelEvaluationSlice resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { @@ -1136,7 +1152,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceNa * } * * @param name Required. The name of the ModelEvaluationSlice resource. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluationSlice getModelEvaluationSlice(String name) { @@ -1218,7 +1234,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice( * * @param parent Required. The resource name of the ModelEvaluation to list the * ModelEvaluationSlices from. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( @@ -1249,7 +1265,7 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( * * @param parent Required. The resource name of the ModelEvaluation to list the * ModelEvaluationSlices from. Format: - *

`projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(String parent) { @@ -1332,6 +1348,16 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( * *

{@code
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationSlicesRequest request =
+   *       ListModelEvaluationSlicesRequest.newBuilder()
+   *           .setParent(
+   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListModelEvaluationSlicesResponse response =
    *         modelServiceClient.listModelEvaluationSlicesCallable().call(request);
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 8c7dbb2c3..e81d29546 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
@@ -1,5 +1,5 @@
 /*
- * 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/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 c4e20c14e..a9f65f986 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
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -41,7 +41,9 @@
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
 /**
- * Service Description: A service for creating and managing AI Platform's pipelines.
+ * Service Description: A service for creating and managing Vertex AI's pipelines. This includes
+ * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob`
+ * resources (used for Vertex Pipelines).
  *
  * 

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -293,7 +295,7 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque * }

* * @param name Required. The name of the TrainingPipeline resource. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { @@ -319,7 +321,7 @@ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { * } * * @param name Required. The name of the TrainingPipeline resource. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline getTrainingPipeline(String name) { @@ -502,6 +504,14 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines( * *

{@code
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListTrainingPipelinesRequest request =
+   *       ListTrainingPipelinesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListTrainingPipelinesResponse response =
    *         pipelineServiceClient.listTrainingPipelinesCallable().call(request);
@@ -538,7 +548,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * }
* * @param name Required. The name of the TrainingPipeline resource to be deleted. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( @@ -565,7 +575,7 @@ public final OperationFuture deleteTrainingPipel * } * * @param name Required. The name of the TrainingPipeline resource to be deleted. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( @@ -678,7 +688,7 @@ public final OperationFuture deleteTrainingPipel * } * * @param name Required. The name of the TrainingPipeline to cancel. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelTrainingPipeline(TrainingPipelineName name) { @@ -714,7 +724,7 @@ public final void cancelTrainingPipeline(TrainingPipelineName name) { * } * * @param name Required. The name of the TrainingPipeline to cancel. Format: - *

`projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelTrainingPipeline(String name) { @@ -794,6 +804,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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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(); @@ -912,4 +1522,86 @@ 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, + new ApiFunction() { + @Override + public ListPipelineJobsPagedResponse apply(ListPipelineJobsPage input) { + return 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/v1beta1/PipelineServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java index 4f1e9d135..d59df4cb5 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.core.ApiFunction; @@ -112,6 +113,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(); @@ -250,6 +284,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/v1beta1/PredictionServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java index fd0edc1ad..345eef727 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java @@ -1,5 +1,5 @@ /* - * 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/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 403cd46ce..34cdd9a56 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 @@ -1,5 +1,5 @@ /* - * 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/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 be259ff39..e53a0d4ca 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -332,7 +332,7 @@ public final OperationsClient getOperationsClient() { * } * * @param name Required. The name of the SpecialistPool resource. The form is - *

`projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { @@ -359,7 +359,7 @@ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { * } * * @param name Required. The name of the SpecialistPool resource. The form is - *

`projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SpecialistPool getSpecialistPool(String name) { @@ -543,6 +543,13 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools( *

{@code
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
+   *   ListSpecialistPoolsRequest request =
+   *       ListSpecialistPoolsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListSpecialistPoolsResponse response =
    *         specialistPoolServiceClient.listSpecialistPoolsCallable().call(request);
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 6ff9a5274..5d605ee59 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
@@ -1,5 +1,5 @@
 /*
- * 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/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
new file mode 100644
index 000000000..150f8d524
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java
@@ -0,0 +1,3756 @@
+/*
+ * 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.core.ApiFunction;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStub;
+import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.longrunning.Operation;
+import com.google.longrunning.OperationsClient;
+import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: TensorboardService
+ *
+ * 

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TensorboardServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TensorboardServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * TensorboardServiceSettings tensorboardServiceSettings =
+ *     TensorboardServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TensorboardServiceClient tensorboardServiceClient =
+ *     TensorboardServiceClient.create(tensorboardServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * TensorboardServiceSettings tensorboardServiceSettings =
+ *     TensorboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TensorboardServiceClient tensorboardServiceClient =
+ *     TensorboardServiceClient.create(tensorboardServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class TensorboardServiceClient implements BackgroundResource { + private final TensorboardServiceSettings settings; + private final TensorboardServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of TensorboardServiceClient with default settings. */ + public static final TensorboardServiceClient create() throws IOException { + return create(TensorboardServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TensorboardServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TensorboardServiceClient create(TensorboardServiceSettings settings) + throws IOException { + return new TensorboardServiceClient(settings); + } + + /** + * Constructs an instance of TensorboardServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TensorboardServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TensorboardServiceClient create(TensorboardServiceStub stub) { + return new TensorboardServiceClient(stub); + } + + /** + * Constructs an instance of TensorboardServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TensorboardServiceClient(TensorboardServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TensorboardServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TensorboardServiceClient(TensorboardServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final TensorboardServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TensorboardServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+   *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
+   *   Tensorboard response =
+   *       tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the Tensorboard in. Format: + * `projects/{project}/locations/{location}` + * @param tensorboard Required. The Tensorboard to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard) { + CreateTensorboardRequest request = + CreateTensorboardRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTensorboard(tensorboard) + .build(); + return createTensorboardAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+   *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
+   *   Tensorboard response =
+   *       tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the Tensorboard in. Format: + * `projects/{project}/locations/{location}` + * @param tensorboard Required. The Tensorboard to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createTensorboardAsync(String parent, Tensorboard tensorboard) { + CreateTensorboardRequest request = + CreateTensorboardRequest.newBuilder().setParent(parent).setTensorboard(tensorboard).build(); + return createTensorboardAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardRequest request =
+   *       CreateTensorboardRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   Tensorboard response = tensorboardServiceClient.createTensorboardAsync(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 + createTensorboardAsync(CreateTensorboardRequest request) { + return createTensorboardOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardRequest request =
+   *       CreateTensorboardRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient.createTensorboardOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Tensorboard response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationCallable() { + return stub.createTensorboardOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardRequest request =
+   *       CreateTensorboardRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.createTensorboardCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createTensorboardCallable() { + return stub.createTensorboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+   *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Tensorboard resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tensorboard getTensorboard(TensorboardName name) { + GetTensorboardRequest request = + GetTensorboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTensorboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+   *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Tensorboard resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tensorboard getTensorboard(String name) { + GetTensorboardRequest request = GetTensorboardRequest.newBuilder().setName(name).build(); + return getTensorboard(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardRequest request =
+   *       GetTensorboardRequest.newBuilder()
+   *           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   Tensorboard response = tensorboardServiceClient.getTensorboard(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 Tensorboard getTensorboard(GetTensorboardRequest request) { + return getTensorboardCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardRequest request =
+   *       GetTensorboardRequest.newBuilder()
+   *           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getTensorboardCallable().futureCall(request);
+   *   // Do something.
+   *   Tensorboard response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTensorboardCallable() { + return stub.getTensorboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Tensorboard response =
+   *       tensorboardServiceClient.updateTensorboardAsync(tensorboard, updateMask).get();
+   * }
+   * }
+ * + * @param tensorboard Required. The Tensorboard's `name` field is used to identify the Tensorboard + * to be updated. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * Tensorboard resource by the update. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten if new values are + * specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateTensorboardAsync(Tensorboard tensorboard, FieldMask updateMask) { + UpdateTensorboardRequest request = + UpdateTensorboardRequest.newBuilder() + .setTensorboard(tensorboard) + .setUpdateMask(updateMask) + .build(); + return updateTensorboardAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardRequest request =
+   *       UpdateTensorboardRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   Tensorboard response = tensorboardServiceClient.updateTensorboardAsync(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 + updateTensorboardAsync(UpdateTensorboardRequest request) { + return updateTensorboardOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardRequest request =
+   *       UpdateTensorboardRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient.updateTensorboardOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Tensorboard response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationCallable() { + return stub.updateTensorboardOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardRequest request =
+   *       UpdateTensorboardRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboard(Tensorboard.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.updateTensorboardCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateTensorboardCallable() { + return stub.updateTensorboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tensorboards in a Location. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+   *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list Tensorboards. Format: + * 'projects/{project}/locations/{location}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardsPagedResponse listTensorboards(String parent) { + ListTensorboardsRequest request = + ListTensorboardsRequest.newBuilder().setParent(parent).build(); + return listTensorboards(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tensorboards in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardsRequest request =
+   *       ListTensorboardsRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(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 ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequest request) { + return listTensorboardsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tensorboards in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardsRequest request =
+   *       ListTensorboardsRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listTensorboardsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Tensorboard element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardsPagedCallable() { + return stub.listTensorboardsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tensorboards in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardsRequest request =
+   *       ListTensorboardsRequest.newBuilder()
+   *           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListTensorboardsResponse response =
+   *         tensorboardServiceClient.listTensorboardsCallable().call(request);
+   *     for (Tensorboard element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardsCallable() { + return stub.listTensorboardsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+   *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Tensorboard to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardAsync( + TensorboardName name) { + DeleteTensorboardRequest request = + DeleteTensorboardRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteTensorboardAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+   *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Tensorboard to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardAsync(String name) { + DeleteTensorboardRequest request = DeleteTensorboardRequest.newBuilder().setName(name).build(); + return deleteTensorboardAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRequest request =
+   *       DeleteTensorboardRequest.newBuilder()
+   *           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   tensorboardServiceClient.deleteTensorboardAsync(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 deleteTensorboardAsync( + DeleteTensorboardRequest request) { + return deleteTensorboardOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRequest request =
+   *       DeleteTensorboardRequest.newBuilder()
+   *           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient.deleteTensorboardOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteTensorboardOperationCallable() { + return stub.deleteTensorboardOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Tensorboard. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRequest request =
+   *       DeleteTensorboardRequest.newBuilder()
+   *           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.deleteTensorboardCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteTensorboardCallable() { + return stub.deleteTensorboardCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardExperimentName parent =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+   *   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
+   *   String tensorboardExperimentId = "tensorboardExperimentId1267328197";
+   *   TensorboardExperiment response =
+   *       tensorboardServiceClient.createTensorboardExperiment(
+   *           parent, tensorboardExperiment, tensorboardExperimentId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @param tensorboardExperiment The TensorboardExperiment to create. + * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which + * will become the final component of the Tensorboard experiment's resource name. + *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardExperiment createTensorboardExperiment( + TensorboardExperimentName parent, + TensorboardExperiment tensorboardExperiment, + String tensorboardExperimentId) { + CreateTensorboardExperimentRequest request = + CreateTensorboardExperimentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTensorboardExperiment(tensorboardExperiment) + .setTensorboardExperimentId(tensorboardExperimentId) + .build(); + return createTensorboardExperiment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *           .toString();
+   *   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
+   *   String tensorboardExperimentId = "tensorboardExperimentId1267328197";
+   *   TensorboardExperiment response =
+   *       tensorboardServiceClient.createTensorboardExperiment(
+   *           parent, tensorboardExperiment, tensorboardExperimentId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @param tensorboardExperiment The TensorboardExperiment to create. + * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which + * will become the final component of the Tensorboard experiment's resource name. + *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardExperiment createTensorboardExperiment( + String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId) { + CreateTensorboardExperimentRequest request = + CreateTensorboardExperimentRequest.newBuilder() + .setParent(parent) + .setTensorboardExperiment(tensorboardExperiment) + .setTensorboardExperimentId(tensorboardExperimentId) + .build(); + return createTensorboardExperiment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardExperimentRequest request =
+   *       CreateTensorboardExperimentRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+   *           .setTensorboardExperimentId("tensorboardExperimentId1267328197")
+   *           .build();
+   *   TensorboardExperiment response =
+   *       tensorboardServiceClient.createTensorboardExperiment(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 TensorboardExperiment createTensorboardExperiment( + CreateTensorboardExperimentRequest request) { + return createTensorboardExperimentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardExperimentRequest request =
+   *       CreateTensorboardExperimentRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+   *           .setTensorboardExperimentId("tensorboardExperimentId1267328197")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.createTensorboardExperimentCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardExperiment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createTensorboardExperimentCallable() { + return stub.createTensorboardExperimentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardExperimentName name =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+   *   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardExperiment resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name) { + GetTensorboardExperimentRequest request = + GetTensorboardExperimentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTensorboardExperiment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *           .toString();
+   *   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardExperiment resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardExperiment getTensorboardExperiment(String name) { + GetTensorboardExperimentRequest request = + GetTensorboardExperimentRequest.newBuilder().setName(name).build(); + return getTensorboardExperiment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardExperimentRequest request =
+   *       GetTensorboardExperimentRequest.newBuilder()
+   *           .setName(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .build();
+   *   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(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 TensorboardExperiment getTensorboardExperiment( + GetTensorboardExperimentRequest request) { + return getTensorboardExperimentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardExperimentRequest request =
+   *       GetTensorboardExperimentRequest.newBuilder()
+   *           .setName(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getTensorboardExperimentCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardExperiment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getTensorboardExperimentCallable() { + return stub.getTensorboardExperimentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   TensorboardExperiment response =
+   *       tensorboardServiceClient.updateTensorboardExperiment(tensorboardExperiment, updateMask);
+   * }
+   * }
+ * + * @param tensorboardExperiment Required. The TensorboardExperiment's `name` field is used to + * identify the TensorboardExperiment to be updated. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * TensorboardExperiment resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten if new values + * are specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardExperiment updateTensorboardExperiment( + TensorboardExperiment tensorboardExperiment, FieldMask updateMask) { + UpdateTensorboardExperimentRequest request = + UpdateTensorboardExperimentRequest.newBuilder() + .setTensorboardExperiment(tensorboardExperiment) + .setUpdateMask(updateMask) + .build(); + return updateTensorboardExperiment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardExperimentRequest request =
+   *       UpdateTensorboardExperimentRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+   *           .build();
+   *   TensorboardExperiment response =
+   *       tensorboardServiceClient.updateTensorboardExperiment(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 TensorboardExperiment updateTensorboardExperiment( + UpdateTensorboardExperimentRequest request) { + return updateTensorboardExperimentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardExperimentRequest request =
+   *       UpdateTensorboardExperimentRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.updateTensorboardExperimentCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardExperiment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateTensorboardExperimentCallable() { + return stub.updateTensorboardExperimentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardExperiments in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+   *   for (TensorboardExperiment element :
+   *       tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments. + * Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments( + TensorboardName parent) { + ListTensorboardExperimentsRequest request = + ListTensorboardExperimentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTensorboardExperiments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardExperiments in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *           .toString();
+   *   for (TensorboardExperiment element :
+   *       tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments. + * Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) { + ListTensorboardExperimentsRequest request = + ListTensorboardExperimentsRequest.newBuilder().setParent(parent).build(); + return listTensorboardExperiments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardExperiments in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardExperimentsRequest request =
+   *       ListTensorboardExperimentsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (TensorboardExperiment element :
+   *       tensorboardServiceClient.listTensorboardExperiments(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 ListTensorboardExperimentsPagedResponse listTensorboardExperiments( + ListTensorboardExperimentsRequest request) { + return listTensorboardExperimentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardExperiments in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardExperimentsRequest request =
+   *       ListTensorboardExperimentsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listTensorboardExperimentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (TensorboardExperiment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListTensorboardExperimentsRequest, ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsPagedCallable() { + return stub.listTensorboardExperimentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardExperiments in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardExperimentsRequest request =
+   *       ListTensorboardExperimentsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListTensorboardExperimentsResponse response =
+   *         tensorboardServiceClient.listTensorboardExperimentsCallable().call(request);
+   *     for (TensorboardExperiment element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardExperimentsCallable() { + return stub.listTensorboardExperimentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardExperimentName name =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+   *   tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardExperiment to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardExperimentAsync( + TensorboardExperimentName name) { + DeleteTensorboardExperimentRequest request = + DeleteTensorboardExperimentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteTensorboardExperimentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *           .toString();
+   *   tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardExperiment to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardExperimentAsync( + String name) { + DeleteTensorboardExperimentRequest request = + DeleteTensorboardExperimentRequest.newBuilder().setName(name).build(); + return deleteTensorboardExperimentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardExperimentRequest request =
+   *       DeleteTensorboardExperimentRequest.newBuilder()
+   *           .setName(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .build();
+   *   tensorboardServiceClient.deleteTensorboardExperimentAsync(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 deleteTensorboardExperimentAsync( + DeleteTensorboardExperimentRequest request) { + return deleteTensorboardExperimentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardExperimentRequest request =
+   *       DeleteTensorboardExperimentRequest.newBuilder()
+   *           .setName(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient
+   *           .deleteTensorboardExperimentOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteTensorboardExperimentOperationCallable() { + return stub.deleteTensorboardExperimentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardExperiment. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardExperimentRequest request =
+   *       DeleteTensorboardExperimentRequest.newBuilder()
+   *           .setName(
+   *               TensorboardExperimentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.deleteTensorboardExperimentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteTensorboardExperimentCallable() { + return stub.deleteTensorboardExperimentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRunName parent =
+   *       TensorboardRunName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+   *   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
+   *   String tensorboardRunId = "tensorboardRunId-407822631";
+   *   TensorboardRun response =
+   *       tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to create the TensorboardRun in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @param tensorboardRun Required. The TensorboardRun to create. + * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which will become the + * final component of the Tensorboard run's resource name. + *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardRun createTensorboardRun( + TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) { + CreateTensorboardRunRequest request = + CreateTensorboardRunRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTensorboardRun(tensorboardRun) + .setTensorboardRunId(tensorboardRunId) + .build(); + return createTensorboardRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *           .toString();
+   *   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
+   *   String tensorboardRunId = "tensorboardRunId-407822631";
+   *   TensorboardRun response =
+   *       tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to create the TensorboardRun in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @param tensorboardRun Required. The TensorboardRun to create. + * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which will become the + * final component of the Tensorboard run's resource name. + *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardRun createTensorboardRun( + String parent, TensorboardRun tensorboardRun, String tensorboardRunId) { + CreateTensorboardRunRequest request = + CreateTensorboardRunRequest.newBuilder() + .setParent(parent) + .setTensorboardRun(tensorboardRun) + .setTensorboardRunId(tensorboardRunId) + .build(); + return createTensorboardRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardRunRequest request =
+   *       CreateTensorboardRunRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .setTensorboardRun(TensorboardRun.newBuilder().build())
+   *           .setTensorboardRunId("tensorboardRunId-407822631")
+   *           .build();
+   *   TensorboardRun response = tensorboardServiceClient.createTensorboardRun(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 TensorboardRun createTensorboardRun(CreateTensorboardRunRequest request) { + return createTensorboardRunCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardRunRequest request =
+   *       CreateTensorboardRunRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .setTensorboardRun(TensorboardRun.newBuilder().build())
+   *           .setTensorboardRunId("tensorboardRunId-407822631")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.createTensorboardRunCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardRun response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createTensorboardRunCallable() { + return stub.createTensorboardRunCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRunName name =
+   *       TensorboardRunName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+   *   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardRun resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardRun getTensorboardRun(TensorboardRunName name) { + GetTensorboardRunRequest request = + GetTensorboardRunRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTensorboardRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *           .toString();
+   *   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardRun resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardRun getTensorboardRun(String name) { + GetTensorboardRunRequest request = GetTensorboardRunRequest.newBuilder().setName(name).build(); + return getTensorboardRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardRunRequest request =
+   *       GetTensorboardRunRequest.newBuilder()
+   *           .setName(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .build();
+   *   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(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 TensorboardRun getTensorboardRun(GetTensorboardRunRequest request) { + return getTensorboardRunCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardRunRequest request =
+   *       GetTensorboardRunRequest.newBuilder()
+   *           .setName(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getTensorboardRunCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardRun response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTensorboardRunCallable() { + return stub.getTensorboardRunCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   TensorboardRun response =
+   *       tensorboardServiceClient.updateTensorboardRun(tensorboardRun, updateMask);
+   * }
+   * }
+ * + * @param tensorboardRun Required. The TensorboardRun's `name` field is used to identify the + * TensorboardRun to be updated. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * TensorboardRun resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten if new values are + * specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardRun updateTensorboardRun( + TensorboardRun tensorboardRun, FieldMask updateMask) { + UpdateTensorboardRunRequest request = + UpdateTensorboardRunRequest.newBuilder() + .setTensorboardRun(tensorboardRun) + .setUpdateMask(updateMask) + .build(); + return updateTensorboardRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardRunRequest request =
+   *       UpdateTensorboardRunRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardRun(TensorboardRun.newBuilder().build())
+   *           .build();
+   *   TensorboardRun response = tensorboardServiceClient.updateTensorboardRun(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 TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest request) { + return updateTensorboardRunCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardRunRequest request =
+   *       UpdateTensorboardRunRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardRun(TensorboardRun.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.updateTensorboardRunCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardRun response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateTensorboardRunCallable() { + return stub.updateTensorboardRunCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardRuns in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardExperimentName parent =
+   *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+   *   for (TensorboardRun element :
+   *       tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to list TensorboardRuns. Format: + * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardRunsPagedResponse listTensorboardRuns( + TensorboardExperimentName parent) { + ListTensorboardRunsRequest request = + ListTensorboardRunsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTensorboardRuns(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardRuns in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *           .toString();
+   *   for (TensorboardRun element :
+   *       tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Tensorboard to list TensorboardRuns. Format: + * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) { + ListTensorboardRunsRequest request = + ListTensorboardRunsRequest.newBuilder().setParent(parent).build(); + return listTensorboardRuns(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardRuns in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardRunsRequest request =
+   *       ListTensorboardRunsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (TensorboardRun element :
+   *       tensorboardServiceClient.listTensorboardRuns(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 ListTensorboardRunsPagedResponse listTensorboardRuns( + ListTensorboardRunsRequest request) { + return listTensorboardRunsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardRuns in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardRunsRequest request =
+   *       ListTensorboardRunsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listTensorboardRunsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (TensorboardRun element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardRunsPagedCallable() { + return stub.listTensorboardRunsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardRuns in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardRunsRequest request =
+   *       ListTensorboardRunsRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListTensorboardRunsResponse response =
+   *         tensorboardServiceClient.listTensorboardRunsCallable().call(request);
+   *     for (TensorboardRun element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardRunsCallable() { + return stub.listTensorboardRunsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRunName name =
+   *       TensorboardRunName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+   *   tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardRun to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardRunAsync( + TensorboardRunName name) { + DeleteTensorboardRunRequest request = + DeleteTensorboardRunRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteTensorboardRunAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *           .toString();
+   *   tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardRun to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardRunAsync( + String name) { + DeleteTensorboardRunRequest request = + DeleteTensorboardRunRequest.newBuilder().setName(name).build(); + return deleteTensorboardRunAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRunRequest request =
+   *       DeleteTensorboardRunRequest.newBuilder()
+   *           .setName(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .build();
+   *   tensorboardServiceClient.deleteTensorboardRunAsync(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 deleteTensorboardRunAsync( + DeleteTensorboardRunRequest request) { + return deleteTensorboardRunOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRunRequest request =
+   *       DeleteTensorboardRunRequest.newBuilder()
+   *           .setName(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient.deleteTensorboardRunOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteTensorboardRunOperationCallable() { + return stub.deleteTensorboardRunOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardRun. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardRunRequest request =
+   *       DeleteTensorboardRunRequest.newBuilder()
+   *           .setName(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.deleteTensorboardRunCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteTensorboardRunCallable() { + return stub.deleteTensorboardRunCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeriesName parent =
+   *       TensorboardTimeSeriesName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+   *   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
+   *   TensorboardTimeSeries response =
+   *       tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @param tensorboardTimeSeries Required. The TensorboardTimeSeries to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardTimeSeries createTensorboardTimeSeries( + TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) { + CreateTensorboardTimeSeriesRequest request = + CreateTensorboardTimeSeriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTensorboardTimeSeries(tensorboardTimeSeries) + .build(); + return createTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
+   *   TensorboardTimeSeries response =
+   *       tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @param tensorboardTimeSeries Required. The TensorboardTimeSeries to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardTimeSeries createTensorboardTimeSeries( + String parent, TensorboardTimeSeries tensorboardTimeSeries) { + CreateTensorboardTimeSeriesRequest request = + CreateTensorboardTimeSeriesRequest.newBuilder() + .setParent(parent) + .setTensorboardTimeSeries(tensorboardTimeSeries) + .build(); + return createTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardTimeSeriesRequest request =
+   *       CreateTensorboardTimeSeriesRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
+   *           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+   *           .build();
+   *   TensorboardTimeSeries response =
+   *       tensorboardServiceClient.createTensorboardTimeSeries(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 TensorboardTimeSeries createTensorboardTimeSeries( + CreateTensorboardTimeSeriesRequest request) { + return createTensorboardTimeSeriesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   CreateTensorboardTimeSeriesRequest request =
+   *       CreateTensorboardTimeSeriesRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
+   *           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.createTensorboardTimeSeriesCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardTimeSeries response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createTensorboardTimeSeriesCallable() { + return stub.createTensorboardTimeSeriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeriesName name =
+   *       TensorboardTimeSeriesName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+   *   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardTimeSeries resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSeriesName name) { + GetTensorboardTimeSeriesRequest request = + GetTensorboardTimeSeriesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardTimeSeries resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardTimeSeries getTensorboardTimeSeries(String name) { + GetTensorboardTimeSeriesRequest request = + GetTensorboardTimeSeriesRequest.newBuilder().setName(name).build(); + return getTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardTimeSeriesRequest request =
+   *       GetTensorboardTimeSeriesRequest.newBuilder()
+   *           .setName(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .build();
+   *   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(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 TensorboardTimeSeries getTensorboardTimeSeries( + GetTensorboardTimeSeriesRequest request) { + return getTensorboardTimeSeriesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetTensorboardTimeSeriesRequest request =
+   *       GetTensorboardTimeSeriesRequest.newBuilder()
+   *           .setName(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getTensorboardTimeSeriesCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardTimeSeries response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getTensorboardTimeSeriesCallable() { + return stub.getTensorboardTimeSeriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   TensorboardTimeSeries response =
+   *       tensorboardServiceClient.updateTensorboardTimeSeries(tensorboardTimeSeries, updateMask);
+   * }
+   * }
+ * + * @param tensorboardTimeSeries Required. The TensorboardTimeSeries' `name` field is used to + * identify the TensorboardTimeSeries to be updated. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * TensorboardTimeSeries resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten if new values + * are specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TensorboardTimeSeries updateTensorboardTimeSeries( + TensorboardTimeSeries tensorboardTimeSeries, FieldMask updateMask) { + UpdateTensorboardTimeSeriesRequest request = + UpdateTensorboardTimeSeriesRequest.newBuilder() + .setTensorboardTimeSeries(tensorboardTimeSeries) + .setUpdateMask(updateMask) + .build(); + return updateTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardTimeSeriesRequest request =
+   *       UpdateTensorboardTimeSeriesRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+   *           .build();
+   *   TensorboardTimeSeries response =
+   *       tensorboardServiceClient.updateTensorboardTimeSeries(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 TensorboardTimeSeries updateTensorboardTimeSeries( + UpdateTensorboardTimeSeriesRequest request) { + return updateTensorboardTimeSeriesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   UpdateTensorboardTimeSeriesRequest request =
+   *       UpdateTensorboardTimeSeriesRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.updateTensorboardTimeSeriesCallable().futureCall(request);
+   *   // Do something.
+   *   TensorboardTimeSeries response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateTensorboardTimeSeriesCallable() { + return stub.updateTensorboardTimeSeriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardTimeSeries in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRunName parent =
+   *       TensorboardRunName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+   *   for (TensorboardTimeSeries element :
+   *       tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. + * Format: + * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( + TensorboardRunName parent) { + ListTensorboardTimeSeriesRequest request = + ListTensorboardTimeSeriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardTimeSeries in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String parent =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   for (TensorboardTimeSeries element :
+   *       tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. + * Format: + * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) { + ListTensorboardTimeSeriesRequest request = + ListTensorboardTimeSeriesRequest.newBuilder().setParent(parent).build(); + return listTensorboardTimeSeries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardTimeSeries in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardTimeSeriesRequest request =
+   *       ListTensorboardTimeSeriesRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (TensorboardTimeSeries element :
+   *       tensorboardServiceClient.listTensorboardTimeSeries(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 ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( + ListTensorboardTimeSeriesRequest request) { + return listTensorboardTimeSeriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardTimeSeries in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardTimeSeriesRequest request =
+   *       ListTensorboardTimeSeriesRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listTensorboardTimeSeriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (TensorboardTimeSeries element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesPagedCallable() { + return stub.listTensorboardTimeSeriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists TensorboardTimeSeries in a Location. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListTensorboardTimeSeriesRequest request =
+   *       ListTensorboardTimeSeriesRequest.newBuilder()
+   *           .setParent(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListTensorboardTimeSeriesResponse response =
+   *         tensorboardServiceClient.listTensorboardTimeSeriesCallable().call(request);
+   *     for (TensorboardTimeSeries element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTensorboardTimeSeriesCallable() { + return stub.listTensorboardTimeSeriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeriesName name =
+   *       TensorboardTimeSeriesName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+   *   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardTimeSeries to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardTimeSeriesAsync( + TensorboardTimeSeriesName name) { + DeleteTensorboardTimeSeriesRequest request = + DeleteTensorboardTimeSeriesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteTensorboardTimeSeriesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String name =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the TensorboardTimeSeries to be deleted. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTensorboardTimeSeriesAsync( + String name) { + DeleteTensorboardTimeSeriesRequest request = + DeleteTensorboardTimeSeriesRequest.newBuilder().setName(name).build(); + return deleteTensorboardTimeSeriesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardTimeSeriesRequest request =
+   *       DeleteTensorboardTimeSeriesRequest.newBuilder()
+   *           .setName(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .build();
+   *   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(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 deleteTensorboardTimeSeriesAsync( + DeleteTensorboardTimeSeriesRequest request) { + return deleteTensorboardTimeSeriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardTimeSeriesRequest request =
+   *       DeleteTensorboardTimeSeriesRequest.newBuilder()
+   *           .setName(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       tensorboardServiceClient
+   *           .deleteTensorboardTimeSeriesOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteTensorboardTimeSeriesOperationCallable() { + return stub.deleteTensorboardTimeSeriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TensorboardTimeSeries. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   DeleteTensorboardTimeSeriesRequest request =
+   *       DeleteTensorboardTimeSeriesRequest.newBuilder()
+   *           .setName(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.deleteTensorboardTimeSeriesCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteTensorboardTimeSeriesCallable() { + return stub.deleteTensorboardTimeSeriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads a TensorboardTimeSeries' data. Data is returned in paginated responses. By default, if + * the number of data points stored is less than 1000, all data will be returned. Otherwise, 1000 + * data points will be randomly selected from this time series and returned. This value can be + * changed by changing max_data_points. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeriesName tensorboardTimeSeries =
+   *       TensorboardTimeSeriesName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+   *   ReadTensorboardTimeSeriesDataResponse response =
+   *       tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
+   * }
+   * }
+ * + * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to read + * data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( + TensorboardTimeSeriesName tensorboardTimeSeries) { + ReadTensorboardTimeSeriesDataRequest request = + ReadTensorboardTimeSeriesDataRequest.newBuilder() + .setTensorboardTimeSeries( + tensorboardTimeSeries == null ? null : tensorboardTimeSeries.toString()) + .build(); + return readTensorboardTimeSeriesData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads a TensorboardTimeSeries' data. Data is returned in paginated responses. By default, if + * the number of data points stored is less than 1000, all data will be returned. Otherwise, 1000 + * data points will be randomly selected from this time series and returned. This value can be + * changed by changing max_data_points. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String tensorboardTimeSeries =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   ReadTensorboardTimeSeriesDataResponse response =
+   *       tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
+   * }
+   * }
+ * + * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to read + * data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( + String tensorboardTimeSeries) { + ReadTensorboardTimeSeriesDataRequest request = + ReadTensorboardTimeSeriesDataRequest.newBuilder() + .setTensorboardTimeSeries(tensorboardTimeSeries) + .build(); + return readTensorboardTimeSeriesData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads a TensorboardTimeSeries' data. Data is returned in paginated responses. By default, if + * the number of data points stored is less than 1000, all data will be returned. Otherwise, 1000 + * data points will be randomly selected from this time series and returned. This value can be + * changed by changing max_data_points. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ReadTensorboardTimeSeriesDataRequest request =
+   *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
+   *           .setTensorboardTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setMaxDataPoints(724001981)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ReadTensorboardTimeSeriesDataResponse response =
+   *       tensorboardServiceClient.readTensorboardTimeSeriesData(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 ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( + ReadTensorboardTimeSeriesDataRequest request) { + return readTensorboardTimeSeriesDataCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reads a TensorboardTimeSeries' data. Data is returned in paginated responses. By default, if + * the number of data points stored is less than 1000, all data will be returned. Otherwise, 1000 + * data points will be randomly selected from this time series and returned. This value can be + * changed by changing max_data_points. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ReadTensorboardTimeSeriesDataRequest request =
+   *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
+   *           .setTensorboardTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setMaxDataPoints(724001981)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.readTensorboardTimeSeriesDataCallable().futureCall(request);
+   *   // Do something.
+   *   ReadTensorboardTimeSeriesDataResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataCallable() { + return stub.readTensorboardTimeSeriesDataCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's + * Cloud Storage bucket without users having to obtain Cloud Storage access permission. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ReadTensorboardBlobDataRequest request =
+   *       ReadTensorboardBlobDataRequest.newBuilder()
+   *           .setTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .addAllBlobIds(new ArrayList())
+   *           .build();
+   *   ServerStream stream =
+   *       tensorboardServiceClient.readTensorboardBlobDataCallable().call(request);
+   *   for (ReadTensorboardBlobDataResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataCallable() { + return stub.readTensorboardBlobDataCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + * any data fail to be ingested, an error will be returned. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardRunName tensorboardRun =
+   *       TensorboardRunName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+   *   List timeSeriesData = new ArrayList<>();
+   *   WriteTensorboardRunDataResponse response =
+   *       tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
+   * }
+   * }
+ * + * @param tensorboardRun Required. The resource name of the TensorboardRun to write data to. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @param timeSeriesData Required. The TensorboardTimeSeries data to write. Values with in a time + * series are indexed by their step value. Repeated writes to the same step will overwrite the + * existing value for that step. The upper limit of data points per write request is 5000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteTensorboardRunDataResponse writeTensorboardRunData( + TensorboardRunName tensorboardRun, List timeSeriesData) { + WriteTensorboardRunDataRequest request = + WriteTensorboardRunDataRequest.newBuilder() + .setTensorboardRun(tensorboardRun == null ? null : tensorboardRun.toString()) + .addAllTimeSeriesData(timeSeriesData) + .build(); + return writeTensorboardRunData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + * any data fail to be ingested, an error will be returned. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String tensorboardRun =
+   *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *           .toString();
+   *   List timeSeriesData = new ArrayList<>();
+   *   WriteTensorboardRunDataResponse response =
+   *       tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
+   * }
+   * }
+ * + * @param tensorboardRun Required. The resource name of the TensorboardRun to write data to. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @param timeSeriesData Required. The TensorboardTimeSeries data to write. Values with in a time + * series are indexed by their step value. Repeated writes to the same step will overwrite the + * existing value for that step. The upper limit of data points per write request is 5000. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteTensorboardRunDataResponse writeTensorboardRunData( + String tensorboardRun, List timeSeriesData) { + WriteTensorboardRunDataRequest request = + WriteTensorboardRunDataRequest.newBuilder() + .setTensorboardRun(tensorboardRun) + .addAllTimeSeriesData(timeSeriesData) + .build(); + return writeTensorboardRunData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + * any data fail to be ingested, an error will be returned. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   WriteTensorboardRunDataRequest request =
+   *       WriteTensorboardRunDataRequest.newBuilder()
+   *           .setTensorboardRun(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .addAllTimeSeriesData(new ArrayList())
+   *           .build();
+   *   WriteTensorboardRunDataResponse response =
+   *       tensorboardServiceClient.writeTensorboardRunData(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 WriteTensorboardRunDataResponse writeTensorboardRunData( + WriteTensorboardRunDataRequest request) { + return writeTensorboardRunDataCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + * any data fail to be ingested, an error will be returned. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   WriteTensorboardRunDataRequest request =
+   *       WriteTensorboardRunDataRequest.newBuilder()
+   *           .setTensorboardRun(
+   *               TensorboardRunName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+   *                   .toString())
+   *           .addAllTimeSeriesData(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.writeTensorboardRunDataCallable().futureCall(request);
+   *   // Do something.
+   *   WriteTensorboardRunDataResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + writeTensorboardRunDataCallable() { + return stub.writeTensorboardRunDataCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardTimeSeriesName tensorboardTimeSeries =
+   *       TensorboardTimeSeriesName.of(
+   *           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+   *   for (TimeSeriesDataPoint element :
+   *       tensorboardServiceClient
+   *           .exportTensorboardTimeSeriesData(tensorboardTimeSeries)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to export + * data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData( + TensorboardTimeSeriesName tensorboardTimeSeries) { + ExportTensorboardTimeSeriesDataRequest request = + ExportTensorboardTimeSeriesDataRequest.newBuilder() + .setTensorboardTimeSeries( + tensorboardTimeSeries == null ? null : tensorboardTimeSeries.toString()) + .build(); + return exportTensorboardTimeSeriesData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String tensorboardTimeSeries =
+   *       TensorboardTimeSeriesName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[TENSORBOARD]",
+   *               "[EXPERIMENT]",
+   *               "[RUN]",
+   *               "[TIME_SERIES]")
+   *           .toString();
+   *   for (TimeSeriesDataPoint element :
+   *       tensorboardServiceClient
+   *           .exportTensorboardTimeSeriesData(tensorboardTimeSeries)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to export + * data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData( + String tensorboardTimeSeries) { + ExportTensorboardTimeSeriesDataRequest request = + ExportTensorboardTimeSeriesDataRequest.newBuilder() + .setTensorboardTimeSeries(tensorboardTimeSeries) + .build(); + return exportTensorboardTimeSeriesData(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ExportTensorboardTimeSeriesDataRequest request =
+   *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
+   *           .setTensorboardTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (TimeSeriesDataPoint element :
+   *       tensorboardServiceClient.exportTensorboardTimeSeriesData(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 ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData( + ExportTensorboardTimeSeriesDataRequest request) { + return exportTensorboardTimeSeriesDataPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ExportTensorboardTimeSeriesDataRequest request =
+   *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
+   *           .setTensorboardTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient
+   *           .exportTensorboardTimeSeriesDataPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (TimeSeriesDataPoint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataPagedCallable() { + return stub.exportTensorboardTimeSeriesDataPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + * + *

Sample code: + * + *

{@code
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ExportTensorboardTimeSeriesDataRequest request =
+   *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
+   *           .setTensorboardTimeSeries(
+   *               TensorboardTimeSeriesName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[TENSORBOARD]",
+   *                       "[EXPERIMENT]",
+   *                       "[RUN]",
+   *                       "[TIME_SERIES]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ExportTensorboardTimeSeriesDataResponse response =
+   *         tensorboardServiceClient.exportTensorboardTimeSeriesDataCallable().call(request);
+   *     for (TimeSeriesDataPoint element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataCallable() { + return stub.exportTensorboardTimeSeriesDataCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTensorboardsPagedResponse + extends AbstractPagedListResponse< + ListTensorboardsRequest, + ListTensorboardsResponse, + Tensorboard, + ListTensorboardsPage, + ListTensorboardsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTensorboardsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTensorboardsPagedResponse apply(ListTensorboardsPage input) { + return new ListTensorboardsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTensorboardsPagedResponse(ListTensorboardsPage page) { + super(page, ListTensorboardsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTensorboardsPage + extends AbstractPage< + ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard, ListTensorboardsPage> { + + private ListTensorboardsPage( + PageContext context, + ListTensorboardsResponse response) { + super(context, response); + } + + private static ListTensorboardsPage createEmptyPage() { + return new ListTensorboardsPage(null, null); + } + + @Override + protected ListTensorboardsPage createPage( + PageContext context, + ListTensorboardsResponse response) { + return new ListTensorboardsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTensorboardsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTensorboardsRequest, + ListTensorboardsResponse, + Tensorboard, + ListTensorboardsPage, + ListTensorboardsFixedSizeCollection> { + + private ListTensorboardsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTensorboardsFixedSizeCollection createEmptyCollection() { + return new ListTensorboardsFixedSizeCollection(null, 0); + } + + @Override + protected ListTensorboardsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTensorboardsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTensorboardExperimentsPagedResponse + extends AbstractPagedListResponse< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment, + ListTensorboardExperimentsPage, + ListTensorboardExperimentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTensorboardExperimentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction< + ListTensorboardExperimentsPage, ListTensorboardExperimentsPagedResponse>() { + @Override + public ListTensorboardExperimentsPagedResponse apply( + ListTensorboardExperimentsPage input) { + return new ListTensorboardExperimentsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTensorboardExperimentsPagedResponse(ListTensorboardExperimentsPage page) { + super(page, ListTensorboardExperimentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTensorboardExperimentsPage + extends AbstractPage< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment, + ListTensorboardExperimentsPage> { + + private ListTensorboardExperimentsPage( + PageContext< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + context, + ListTensorboardExperimentsResponse response) { + super(context, response); + } + + private static ListTensorboardExperimentsPage createEmptyPage() { + return new ListTensorboardExperimentsPage(null, null); + } + + @Override + protected ListTensorboardExperimentsPage createPage( + PageContext< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + context, + ListTensorboardExperimentsResponse response) { + return new ListTensorboardExperimentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTensorboardExperimentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment, + ListTensorboardExperimentsPage, + ListTensorboardExperimentsFixedSizeCollection> { + + private ListTensorboardExperimentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTensorboardExperimentsFixedSizeCollection createEmptyCollection() { + return new ListTensorboardExperimentsFixedSizeCollection(null, 0); + } + + @Override + protected ListTensorboardExperimentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTensorboardExperimentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTensorboardRunsPagedResponse + extends AbstractPagedListResponse< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + TensorboardRun, + ListTensorboardRunsPage, + ListTensorboardRunsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTensorboardRunsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTensorboardRunsPagedResponse apply(ListTensorboardRunsPage input) { + return new ListTensorboardRunsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTensorboardRunsPagedResponse(ListTensorboardRunsPage page) { + super(page, ListTensorboardRunsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTensorboardRunsPage + extends AbstractPage< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + TensorboardRun, + ListTensorboardRunsPage> { + + private ListTensorboardRunsPage( + PageContext + context, + ListTensorboardRunsResponse response) { + super(context, response); + } + + private static ListTensorboardRunsPage createEmptyPage() { + return new ListTensorboardRunsPage(null, null); + } + + @Override + protected ListTensorboardRunsPage createPage( + PageContext + context, + ListTensorboardRunsResponse response) { + return new ListTensorboardRunsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTensorboardRunsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + TensorboardRun, + ListTensorboardRunsPage, + ListTensorboardRunsFixedSizeCollection> { + + private ListTensorboardRunsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTensorboardRunsFixedSizeCollection createEmptyCollection() { + return new ListTensorboardRunsFixedSizeCollection(null, 0); + } + + @Override + protected ListTensorboardRunsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTensorboardRunsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTensorboardTimeSeriesPagedResponse + extends AbstractPagedListResponse< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries, + ListTensorboardTimeSeriesPage, + ListTensorboardTimeSeriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTensorboardTimeSeriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTensorboardTimeSeriesPagedResponse apply( + ListTensorboardTimeSeriesPage input) { + return new ListTensorboardTimeSeriesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTensorboardTimeSeriesPagedResponse(ListTensorboardTimeSeriesPage page) { + super(page, ListTensorboardTimeSeriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTensorboardTimeSeriesPage + extends AbstractPage< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries, + ListTensorboardTimeSeriesPage> { + + private ListTensorboardTimeSeriesPage( + PageContext< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + context, + ListTensorboardTimeSeriesResponse response) { + super(context, response); + } + + private static ListTensorboardTimeSeriesPage createEmptyPage() { + return new ListTensorboardTimeSeriesPage(null, null); + } + + @Override + protected ListTensorboardTimeSeriesPage createPage( + PageContext< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + context, + ListTensorboardTimeSeriesResponse response) { + return new ListTensorboardTimeSeriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTensorboardTimeSeriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries, + ListTensorboardTimeSeriesPage, + ListTensorboardTimeSeriesFixedSizeCollection> { + + private ListTensorboardTimeSeriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTensorboardTimeSeriesFixedSizeCollection createEmptyCollection() { + return new ListTensorboardTimeSeriesFixedSizeCollection(null, 0); + } + + @Override + protected ListTensorboardTimeSeriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTensorboardTimeSeriesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ExportTensorboardTimeSeriesDataPagedResponse + extends AbstractPagedListResponse< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint, + ExportTensorboardTimeSeriesDataPage, + ExportTensorboardTimeSeriesDataFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ExportTensorboardTimeSeriesDataPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction< + ExportTensorboardTimeSeriesDataPage, ExportTensorboardTimeSeriesDataPagedResponse>() { + @Override + public ExportTensorboardTimeSeriesDataPagedResponse apply( + ExportTensorboardTimeSeriesDataPage input) { + return new ExportTensorboardTimeSeriesDataPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ExportTensorboardTimeSeriesDataPagedResponse(ExportTensorboardTimeSeriesDataPage page) { + super(page, ExportTensorboardTimeSeriesDataFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ExportTensorboardTimeSeriesDataPage + extends AbstractPage< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint, + ExportTensorboardTimeSeriesDataPage> { + + private ExportTensorboardTimeSeriesDataPage( + PageContext< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + context, + ExportTensorboardTimeSeriesDataResponse response) { + super(context, response); + } + + private static ExportTensorboardTimeSeriesDataPage createEmptyPage() { + return new ExportTensorboardTimeSeriesDataPage(null, null); + } + + @Override + protected ExportTensorboardTimeSeriesDataPage createPage( + PageContext< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + context, + ExportTensorboardTimeSeriesDataResponse response) { + return new ExportTensorboardTimeSeriesDataPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ExportTensorboardTimeSeriesDataFixedSizeCollection + extends AbstractFixedSizeCollection< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint, + ExportTensorboardTimeSeriesDataPage, + ExportTensorboardTimeSeriesDataFixedSizeCollection> { + + private ExportTensorboardTimeSeriesDataFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ExportTensorboardTimeSeriesDataFixedSizeCollection createEmptyCollection() { + return new ExportTensorboardTimeSeriesDataFixedSizeCollection(null, 0); + } + + @Override + protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..a099e3b48 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java @@ -0,0 +1,589 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TensorboardServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * TensorboardServiceSettings.Builder tensorboardServiceSettingsBuilder =
+ *     TensorboardServiceSettings.newBuilder();
+ * tensorboardServiceSettingsBuilder
+ *     .getTensorboardSettings()
+ *     .setRetrySettings(
+ *         tensorboardServiceSettingsBuilder
+ *             .getTensorboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TensorboardServiceSettings tensorboardServiceSettings =
+ *     tensorboardServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TensorboardServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createTensorboard. */ + public UnaryCallSettings createTensorboardSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).createTensorboardSettings(); + } + + /** Returns the object with the settings used for calls to createTensorboard. */ + public OperationCallSettings< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .createTensorboardOperationSettings(); + } + + /** Returns the object with the settings used for calls to getTensorboard. */ + public UnaryCallSettings getTensorboardSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardSettings(); + } + + /** Returns the object with the settings used for calls to updateTensorboard. */ + public UnaryCallSettings updateTensorboardSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).updateTensorboardSettings(); + } + + /** Returns the object with the settings used for calls to updateTensorboard. */ + public OperationCallSettings< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .updateTensorboardOperationSettings(); + } + + /** Returns the object with the settings used for calls to listTensorboards. */ + public PagedCallSettings< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardsSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboard. */ + public UnaryCallSettings deleteTensorboardSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).deleteTensorboardSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboard. */ + public OperationCallSettings + deleteTensorboardOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardOperationSettings(); + } + + /** Returns the object with the settings used for calls to createTensorboardExperiment. */ + public UnaryCallSettings + createTensorboardExperimentSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .createTensorboardExperimentSettings(); + } + + /** Returns the object with the settings used for calls to getTensorboardExperiment. */ + public UnaryCallSettings + getTensorboardExperimentSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardExperimentSettings(); + } + + /** Returns the object with the settings used for calls to updateTensorboardExperiment. */ + public UnaryCallSettings + updateTensorboardExperimentSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .updateTensorboardExperimentSettings(); + } + + /** Returns the object with the settings used for calls to listTensorboardExperiments. */ + public PagedCallSettings< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .listTensorboardExperimentsSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */ + public UnaryCallSettings + deleteTensorboardExperimentSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardExperimentSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */ + public OperationCallSettings + deleteTensorboardExperimentOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardExperimentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createTensorboardRun. */ + public UnaryCallSettings + createTensorboardRunSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).createTensorboardRunSettings(); + } + + /** Returns the object with the settings used for calls to getTensorboardRun. */ + public UnaryCallSettings getTensorboardRunSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardRunSettings(); + } + + /** Returns the object with the settings used for calls to updateTensorboardRun. */ + public UnaryCallSettings + updateTensorboardRunSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).updateTensorboardRunSettings(); + } + + /** Returns the object with the settings used for calls to listTensorboardRuns. */ + public PagedCallSettings< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardRunsSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardRun. */ + public UnaryCallSettings deleteTensorboardRunSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).deleteTensorboardRunSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardRun. */ + public OperationCallSettings + deleteTensorboardRunOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardRunOperationSettings(); + } + + /** Returns the object with the settings used for calls to createTensorboardTimeSeries. */ + public UnaryCallSettings + createTensorboardTimeSeriesSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .createTensorboardTimeSeriesSettings(); + } + + /** Returns the object with the settings used for calls to getTensorboardTimeSeries. */ + public UnaryCallSettings + getTensorboardTimeSeriesSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardTimeSeriesSettings(); + } + + /** Returns the object with the settings used for calls to updateTensorboardTimeSeries. */ + public UnaryCallSettings + updateTensorboardTimeSeriesSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .updateTensorboardTimeSeriesSettings(); + } + + /** Returns the object with the settings used for calls to listTensorboardTimeSeries. */ + public PagedCallSettings< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardTimeSeriesSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */ + public UnaryCallSettings + deleteTensorboardTimeSeriesSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardTimeSeriesSettings(); + } + + /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */ + public OperationCallSettings + deleteTensorboardTimeSeriesOperationSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .deleteTensorboardTimeSeriesOperationSettings(); + } + + /** Returns the object with the settings used for calls to readTensorboardTimeSeriesData. */ + public UnaryCallSettings< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .readTensorboardTimeSeriesDataSettings(); + } + + /** Returns the object with the settings used for calls to readTensorboardBlobData. */ + public ServerStreamingCallSettings< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardBlobDataSettings(); + } + + /** Returns the object with the settings used for calls to writeTensorboardRunData. */ + public UnaryCallSettings + writeTensorboardRunDataSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).writeTensorboardRunDataSettings(); + } + + /** Returns the object with the settings used for calls to exportTensorboardTimeSeriesData. */ + public PagedCallSettings< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()) + .exportTensorboardTimeSeriesDataSettings(); + } + + public static final TensorboardServiceSettings create(TensorboardServiceStubSettings stub) + throws IOException { + return new TensorboardServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TensorboardServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TensorboardServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TensorboardServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TensorboardServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TensorboardServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TensorboardServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TensorboardServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TensorboardServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TensorboardServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TensorboardServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TensorboardServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TensorboardServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TensorboardServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createTensorboard. */ + public UnaryCallSettings.Builder + createTensorboardSettings() { + return getStubSettingsBuilder().createTensorboardSettings(); + } + + /** Returns the builder for the settings used for calls to createTensorboard. */ + public OperationCallSettings.Builder< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings() { + return getStubSettingsBuilder().createTensorboardOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getTensorboard. */ + public UnaryCallSettings.Builder getTensorboardSettings() { + return getStubSettingsBuilder().getTensorboardSettings(); + } + + /** Returns the builder for the settings used for calls to updateTensorboard. */ + public UnaryCallSettings.Builder + updateTensorboardSettings() { + return getStubSettingsBuilder().updateTensorboardSettings(); + } + + /** Returns the builder for the settings used for calls to updateTensorboard. */ + public OperationCallSettings.Builder< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings() { + return getStubSettingsBuilder().updateTensorboardOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listTensorboards. */ + public PagedCallSettings.Builder< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings() { + return getStubSettingsBuilder().listTensorboardsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboard. */ + public UnaryCallSettings.Builder + deleteTensorboardSettings() { + return getStubSettingsBuilder().deleteTensorboardSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboard. */ + public OperationCallSettings.Builder + deleteTensorboardOperationSettings() { + return getStubSettingsBuilder().deleteTensorboardOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createTensorboardExperiment. */ + public UnaryCallSettings.Builder + createTensorboardExperimentSettings() { + return getStubSettingsBuilder().createTensorboardExperimentSettings(); + } + + /** Returns the builder for the settings used for calls to getTensorboardExperiment. */ + public UnaryCallSettings.Builder + getTensorboardExperimentSettings() { + return getStubSettingsBuilder().getTensorboardExperimentSettings(); + } + + /** Returns the builder for the settings used for calls to updateTensorboardExperiment. */ + public UnaryCallSettings.Builder + updateTensorboardExperimentSettings() { + return getStubSettingsBuilder().updateTensorboardExperimentSettings(); + } + + /** Returns the builder for the settings used for calls to listTensorboardExperiments. */ + public PagedCallSettings.Builder< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings() { + return getStubSettingsBuilder().listTensorboardExperimentsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */ + public UnaryCallSettings.Builder + deleteTensorboardExperimentSettings() { + return getStubSettingsBuilder().deleteTensorboardExperimentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */ + public OperationCallSettings.Builder< + DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata> + deleteTensorboardExperimentOperationSettings() { + return getStubSettingsBuilder().deleteTensorboardExperimentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createTensorboardRun. */ + public UnaryCallSettings.Builder + createTensorboardRunSettings() { + return getStubSettingsBuilder().createTensorboardRunSettings(); + } + + /** Returns the builder for the settings used for calls to getTensorboardRun. */ + public UnaryCallSettings.Builder + getTensorboardRunSettings() { + return getStubSettingsBuilder().getTensorboardRunSettings(); + } + + /** Returns the builder for the settings used for calls to updateTensorboardRun. */ + public UnaryCallSettings.Builder + updateTensorboardRunSettings() { + return getStubSettingsBuilder().updateTensorboardRunSettings(); + } + + /** Returns the builder for the settings used for calls to listTensorboardRuns. */ + public PagedCallSettings.Builder< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings() { + return getStubSettingsBuilder().listTensorboardRunsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardRun. */ + public UnaryCallSettings.Builder + deleteTensorboardRunSettings() { + return getStubSettingsBuilder().deleteTensorboardRunSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardRun. */ + public OperationCallSettings.Builder< + DeleteTensorboardRunRequest, Empty, DeleteOperationMetadata> + deleteTensorboardRunOperationSettings() { + return getStubSettingsBuilder().deleteTensorboardRunOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + createTensorboardTimeSeriesSettings() { + return getStubSettingsBuilder().createTensorboardTimeSeriesSettings(); + } + + /** Returns the builder for the settings used for calls to getTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + getTensorboardTimeSeriesSettings() { + return getStubSettingsBuilder().getTensorboardTimeSeriesSettings(); + } + + /** Returns the builder for the settings used for calls to updateTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + updateTensorboardTimeSeriesSettings() { + return getStubSettingsBuilder().updateTensorboardTimeSeriesSettings(); + } + + /** Returns the builder for the settings used for calls to listTensorboardTimeSeries. */ + public PagedCallSettings.Builder< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings() { + return getStubSettingsBuilder().listTensorboardTimeSeriesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + deleteTensorboardTimeSeriesSettings() { + return getStubSettingsBuilder().deleteTensorboardTimeSeriesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */ + public OperationCallSettings.Builder< + DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata> + deleteTensorboardTimeSeriesOperationSettings() { + return getStubSettingsBuilder().deleteTensorboardTimeSeriesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to readTensorboardTimeSeriesData. */ + public UnaryCallSettings.Builder< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings() { + return getStubSettingsBuilder().readTensorboardTimeSeriesDataSettings(); + } + + /** Returns the builder for the settings used for calls to readTensorboardBlobData. */ + public ServerStreamingCallSettings.Builder< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings() { + return getStubSettingsBuilder().readTensorboardBlobDataSettings(); + } + + /** Returns the builder for the settings used for calls to writeTensorboardRunData. */ + public UnaryCallSettings.Builder< + WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse> + writeTensorboardRunDataSettings() { + return getStubSettingsBuilder().writeTensorboardRunDataSettings(); + } + + /** Returns the builder for the settings used for calls to exportTensorboardTimeSeriesData. */ + public PagedCallSettings.Builder< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings() { + return getStubSettingsBuilder().exportTensorboardTimeSeriesDataSettings(); + } + + @Override + public TensorboardServiceSettings build() throws IOException { + return new TensorboardServiceSettings(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 new file mode 100644 index 000000000..c4e86587f --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java @@ -0,0 +1,1714 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Vertex Vizier API. + * + *

Vizier service is a GCP service to solve blackbox optimization problems, such as tuning + * machine learning hyperparameters and searching over deep learning architectures. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   Study study = Study.newBuilder().build();
+ *   Study response = vizierServiceClient.createStudy(parent, study);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the VizierServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of VizierServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * VizierServiceSettings vizierServiceSettings =
+ *     VizierServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VizierServiceClient vizierServiceClient = VizierServiceClient.create(vizierServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * VizierServiceSettings vizierServiceSettings =
+ *     VizierServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VizierServiceClient vizierServiceClient = VizierServiceClient.create(vizierServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class VizierServiceClient implements BackgroundResource { + private final VizierServiceSettings settings; + private final VizierServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of VizierServiceClient with default settings. */ + public static final VizierServiceClient create() throws IOException { + return create(VizierServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VizierServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final VizierServiceClient create(VizierServiceSettings settings) + throws IOException { + return new VizierServiceClient(settings); + } + + /** + * Constructs an instance of VizierServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(VizierServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final VizierServiceClient create(VizierServiceStub stub) { + return new VizierServiceClient(stub); + } + + /** + * Constructs an instance of VizierServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected VizierServiceClient(VizierServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VizierServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected VizierServiceClient(VizierServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final VizierServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VizierServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Study. A resource name will be generated after creation of the Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Study study = Study.newBuilder().build();
+   *   Study response = vizierServiceClient.createStudy(parent, study);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param study Required. The Study configuration used to create the Study. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study createStudy(LocationName parent, Study study) { + CreateStudyRequest request = + CreateStudyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setStudy(study) + .build(); + return createStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Study. A resource name will be generated after creation of the Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Study study = Study.newBuilder().build();
+   *   Study response = vizierServiceClient.createStudy(parent, study);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param study Required. The Study configuration used to create the Study. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study createStudy(String parent, Study study) { + CreateStudyRequest request = + CreateStudyRequest.newBuilder().setParent(parent).setStudy(study).build(); + return createStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Study. A resource name will be generated after creation of the Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CreateStudyRequest request =
+   *       CreateStudyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setStudy(Study.newBuilder().build())
+   *           .build();
+   *   Study response = vizierServiceClient.createStudy(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 Study createStudy(CreateStudyRequest request) { + return createStudyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Study. A resource name will be generated after creation of the Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CreateStudyRequest request =
+   *       CreateStudyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setStudy(Study.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.createStudyCallable().futureCall(request);
+   *   // Do something.
+   *   Study response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createStudyCallable() { + return stub.createStudyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Study by name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
+   *   Study response = vizierServiceClient.getStudy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Study resource. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study getStudy(StudyName name) { + GetStudyRequest request = + GetStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Study by name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
+   *   Study response = vizierServiceClient.getStudy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Study resource. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study getStudy(String name) { + GetStudyRequest request = GetStudyRequest.newBuilder().setName(name).build(); + return getStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Study by name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetStudyRequest request =
+   *       GetStudyRequest.newBuilder()
+   *           .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   Study response = vizierServiceClient.getStudy(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 Study getStudy(GetStudyRequest request) { + return getStudyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Study by name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetStudyRequest request =
+   *       GetStudyRequest.newBuilder()
+   *           .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.getStudyCallable().futureCall(request);
+   *   // Do something.
+   *   Study response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getStudyCallable() { + return stub.getStudyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the studies in a region for an associated project. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListStudiesRequest request =
+   *       ListStudiesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Study element : vizierServiceClient.listStudies(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 ListStudiesPagedResponse listStudies(ListStudiesRequest request) { + return listStudiesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the studies in a region for an associated project. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListStudiesRequest request =
+   *       ListStudiesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.listStudiesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Study element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStudiesPagedCallable() { + return stub.listStudiesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the studies in a region for an associated project. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
+   *   vizierServiceClient.deleteStudy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Study resource to be deleted. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteStudy(StudyName name) { + DeleteStudyRequest request = + DeleteStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
+   *   vizierServiceClient.deleteStudy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Study resource to be deleted. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteStudy(String name) { + DeleteStudyRequest request = DeleteStudyRequest.newBuilder().setName(name).build(); + deleteStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   DeleteStudyRequest request =
+   *       DeleteStudyRequest.newBuilder()
+   *           .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   vizierServiceClient.deleteStudy(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 deleteStudy(DeleteStudyRequest request) { + deleteStudyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   DeleteStudyRequest request =
+   *       DeleteStudyRequest.newBuilder()
+   *           .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.deleteStudyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteStudyCallable() { + return stub.deleteStudyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks a study up using the user-defined display_name field instead of the fully qualified + * resource name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Study response = vizierServiceClient.lookupStudy(parent);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to get the Study from. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study lookupStudy(LocationName parent) { + LookupStudyRequest request = + LookupStudyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return lookupStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks a study up using the user-defined display_name field instead of the fully qualified + * resource name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Study response = vizierServiceClient.lookupStudy(parent);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to get the Study from. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Study lookupStudy(String parent) { + LookupStudyRequest request = LookupStudyRequest.newBuilder().setParent(parent).build(); + return lookupStudy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks a study up using the user-defined display_name field instead of the fully qualified + * resource name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   LookupStudyRequest request =
+   *       LookupStudyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayName("displayName1714148973")
+   *           .build();
+   *   Study response = vizierServiceClient.lookupStudy(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 Study lookupStudy(LookupStudyRequest request) { + return lookupStudyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks a study up using the user-defined display_name field instead of the fully qualified + * resource name. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   LookupStudyRequest request =
+   *       LookupStudyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayName("displayName1714148973")
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.lookupStudyCallable().futureCall(request);
+   *   // Do something.
+   *   Study response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable lookupStudyCallable() { + return stub.lookupStudyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds one or more Trials to a Study, with parameter values suggested by Vertex Vizier. Returns a + * long-running operation associated with the generation of Trial suggestions. When this + * long-running operation succeeds, it will contain a + * [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SuggestTrialsRequest request =
+   *       SuggestTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setSuggestionCount(390130452)
+   *           .setClientId("clientId908408390")
+   *           .build();
+   *   SuggestTrialsResponse response = vizierServiceClient.suggestTrialsAsync(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 suggestTrialsAsync( + SuggestTrialsRequest request) { + return suggestTrialsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds one or more Trials to a Study, with parameter values suggested by Vertex Vizier. Returns a + * long-running operation associated with the generation of Trial suggestions. When this + * long-running operation succeeds, it will contain a + * [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SuggestTrialsRequest request =
+   *       SuggestTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setSuggestionCount(390130452)
+   *           .setClientId("clientId908408390")
+   *           .build();
+   *   OperationFuture future =
+   *       vizierServiceClient.suggestTrialsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   SuggestTrialsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + suggestTrialsOperationCallable() { + return stub.suggestTrialsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds one or more Trials to a Study, with parameter values suggested by Vertex Vizier. Returns a + * long-running operation associated with the generation of Trial suggestions. When this + * long-running operation succeeds, it will contain a + * [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SuggestTrialsRequest request =
+   *       SuggestTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setSuggestionCount(390130452)
+   *           .setClientId("clientId908408390")
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.suggestTrialsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable suggestTrialsCallable() { + return stub.suggestTrialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a user provided Trial to a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
+   *   Trial trial = Trial.newBuilder().build();
+   *   Trial response = vizierServiceClient.createTrial(parent, trial);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Study to create the Trial in. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @param trial Required. The Trial to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Trial createTrial(StudyName parent, Trial trial) { + CreateTrialRequest request = + CreateTrialRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTrial(trial) + .build(); + return createTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a user provided Trial to a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
+   *   Trial trial = Trial.newBuilder().build();
+   *   Trial response = vizierServiceClient.createTrial(parent, trial);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Study to create the Trial in. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @param trial Required. The Trial to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Trial createTrial(String parent, Trial trial) { + CreateTrialRequest request = + CreateTrialRequest.newBuilder().setParent(parent).setTrial(trial).build(); + return createTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a user provided Trial to a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CreateTrialRequest request =
+   *       CreateTrialRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setTrial(Trial.newBuilder().build())
+   *           .build();
+   *   Trial response = vizierServiceClient.createTrial(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 Trial createTrial(CreateTrialRequest request) { + return createTrialCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a user provided Trial to a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CreateTrialRequest request =
+   *       CreateTrialRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setTrial(Trial.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.createTrialCallable().futureCall(request);
+   *   // Do something.
+   *   Trial response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createTrialCallable() { + return stub.createTrialCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
+   *   Trial response = vizierServiceClient.getTrial(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Trial resource. Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Trial getTrial(TrialName name) { + GetTrialRequest request = + GetTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
+   *   Trial response = vizierServiceClient.getTrial(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Trial resource. Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Trial getTrial(String name) { + GetTrialRequest request = GetTrialRequest.newBuilder().setName(name).build(); + return getTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetTrialRequest request =
+   *       GetTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   Trial response = vizierServiceClient.getTrial(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 Trial getTrial(GetTrialRequest request) { + return getTrialCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetTrialRequest request =
+   *       GetTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.getTrialCallable().futureCall(request);
+   *   // Do something.
+   *   Trial response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTrialCallable() { + return stub.getTrialCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Trials associated with a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
+   *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Study to list the Trial from. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTrialsPagedResponse listTrials(StudyName parent) { + ListTrialsRequest request = + ListTrialsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listTrials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Trials associated with a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
+   *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Study to list the Trial from. Format: + * `projects/{project}/locations/{location}/studies/{study}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTrialsPagedResponse listTrials(String parent) { + ListTrialsRequest request = ListTrialsRequest.newBuilder().setParent(parent).build(); + return listTrials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Trials associated with a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListTrialsRequest request =
+   *       ListTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Trial element : vizierServiceClient.listTrials(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 ListTrialsPagedResponse listTrials(ListTrialsRequest request) { + return listTrialsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Trials associated with a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListTrialsRequest request =
+   *       ListTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.listTrialsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Trial element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listTrialsPagedCallable() { + return stub.listTrialsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Trials associated with a Study. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListTrialsRequest request =
+   *       ListTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListTrialsResponse response = vizierServiceClient.listTrialsCallable().call(request);
+   *     for (Trial element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listTrialsCallable() { + return stub.listTrialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have + * been taken before the Trial is complete. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   AddTrialMeasurementRequest request =
+   *       AddTrialMeasurementRequest.newBuilder()
+   *           .setTrialName(
+   *               TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .setMeasurement(Measurement.newBuilder().build())
+   *           .build();
+   *   Trial response = vizierServiceClient.addTrialMeasurement(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 Trial addTrialMeasurement(AddTrialMeasurementRequest request) { + return addTrialMeasurementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have + * been taken before the Trial is complete. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   AddTrialMeasurementRequest request =
+   *       AddTrialMeasurementRequest.newBuilder()
+   *           .setTrialName(
+   *               TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .setMeasurement(Measurement.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.addTrialMeasurementCallable().futureCall(request);
+   *   // Do something.
+   *   Trial response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable addTrialMeasurementCallable() { + return stub.addTrialMeasurementCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks a Trial as complete. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CompleteTrialRequest request =
+   *       CompleteTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .setFinalMeasurement(Measurement.newBuilder().build())
+   *           .setTrialInfeasible(true)
+   *           .setInfeasibleReason("infeasibleReason1040725388")
+   *           .build();
+   *   Trial response = vizierServiceClient.completeTrial(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 Trial completeTrial(CompleteTrialRequest request) { + return completeTrialCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks a Trial as complete. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CompleteTrialRequest request =
+   *       CompleteTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .setFinalMeasurement(Measurement.newBuilder().build())
+   *           .setTrialInfeasible(true)
+   *           .setInfeasibleReason("infeasibleReason1040725388")
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.completeTrialCallable().futureCall(request);
+   *   // Do something.
+   *   Trial response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable completeTrialCallable() { + return stub.completeTrialCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
+   *   vizierServiceClient.deleteTrial(name);
+   * }
+   * }
+ * + * @param name Required. The Trial's name. Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTrial(TrialName name) { + DeleteTrialRequest request = + DeleteTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
+   *   vizierServiceClient.deleteTrial(name);
+   * }
+   * }
+ * + * @param name Required. The Trial's name. Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTrial(String name) { + DeleteTrialRequest request = DeleteTrialRequest.newBuilder().setName(name).build(); + deleteTrial(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   DeleteTrialRequest request =
+   *       DeleteTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   vizierServiceClient.deleteTrial(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 deleteTrial(DeleteTrialRequest request) { + deleteTrialCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   DeleteTrialRequest request =
+   *       DeleteTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.deleteTrialCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteTrialCallable() { + return stub.deleteTrialCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Checks whether a Trial should stop or not. Returns a long-running operation. When the operation + * is successful, it will contain a + * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CheckTrialEarlyStoppingStateRequest request =
+   *       CheckTrialEarlyStoppingStateRequest.newBuilder()
+   *           .setTrialName(
+   *               TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   CheckTrialEarlyStoppingStateResponse response =
+   *       vizierServiceClient.checkTrialEarlyStoppingStateAsync(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< + CheckTrialEarlyStoppingStateResponse, CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateAsync(CheckTrialEarlyStoppingStateRequest request) { + return checkTrialEarlyStoppingStateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Checks whether a Trial should stop or not. Returns a long-running operation. When the operation + * is successful, it will contain a + * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CheckTrialEarlyStoppingStateRequest request =
+   *       CheckTrialEarlyStoppingStateRequest.newBuilder()
+   *           .setTrialName(
+   *               TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           vizierServiceClient
+   *               .checkTrialEarlyStoppingStateOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   CheckTrialEarlyStoppingStateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationCallable() { + return stub.checkTrialEarlyStoppingStateOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Checks whether a Trial should stop or not. Returns a long-running operation. When the operation + * is successful, it will contain a + * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse]. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   CheckTrialEarlyStoppingStateRequest request =
+   *       CheckTrialEarlyStoppingStateRequest.newBuilder()
+   *           .setTrialName(
+   *               TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.checkTrialEarlyStoppingStateCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + checkTrialEarlyStoppingStateCallable() { + return stub.checkTrialEarlyStoppingStateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StopTrialRequest request =
+   *       StopTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   Trial response = vizierServiceClient.stopTrial(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 Trial stopTrial(StopTrialRequest request) { + return stopTrialCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops a Trial. + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StopTrialRequest request =
+   *       StopTrialRequest.newBuilder()
+   *           .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.stopTrialCallable().futureCall(request);
+   *   // Do something.
+   *   Trial response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable stopTrialCallable() { + return stub.stopTrialCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + * single-objective Study. The definition of pareto-optimal can be checked in wiki page. + * https://en.wikipedia.org/wiki/Pareto_efficiency + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
+   *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
+   * }
+   * }
+ * + * @param parent Required. The name of the Study that the optimal Trial belongs to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOptimalTrialsResponse listOptimalTrials(StudyName parent) { + ListOptimalTrialsRequest request = + ListOptimalTrialsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOptimalTrials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + * single-objective Study. The definition of pareto-optimal can be checked in wiki page. + * https://en.wikipedia.org/wiki/Pareto_efficiency + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
+   *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
+   * }
+   * }
+ * + * @param parent Required. The name of the Study that the optimal Trial belongs to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOptimalTrialsResponse listOptimalTrials(String parent) { + ListOptimalTrialsRequest request = + ListOptimalTrialsRequest.newBuilder().setParent(parent).build(); + return listOptimalTrials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + * single-objective Study. The definition of pareto-optimal can be checked in wiki page. + * https://en.wikipedia.org/wiki/Pareto_efficiency + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListOptimalTrialsRequest request =
+   *       ListOptimalTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(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 ListOptimalTrialsResponse listOptimalTrials(ListOptimalTrialsRequest request) { + return listOptimalTrialsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + * single-objective Study. The definition of pareto-optimal can be checked in wiki page. + * https://en.wikipedia.org/wiki/Pareto_efficiency + * + *

Sample code: + * + *

{@code
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListOptimalTrialsRequest request =
+   *       ListOptimalTrialsRequest.newBuilder()
+   *           .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.listOptimalTrialsCallable().futureCall(request);
+   *   // Do something.
+   *   ListOptimalTrialsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + listOptimalTrialsCallable() { + return stub.listOptimalTrialsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListStudiesPagedResponse + extends AbstractPagedListResponse< + ListStudiesRequest, + ListStudiesResponse, + Study, + ListStudiesPage, + ListStudiesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + 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()); + } + + private ListStudiesPagedResponse(ListStudiesPage page) { + super(page, ListStudiesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListStudiesPage + extends AbstractPage { + + private ListStudiesPage( + PageContext context, + ListStudiesResponse response) { + super(context, response); + } + + private static ListStudiesPage createEmptyPage() { + return new ListStudiesPage(null, null); + } + + @Override + protected ListStudiesPage createPage( + PageContext context, + ListStudiesResponse response) { + return new ListStudiesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListStudiesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListStudiesRequest, + ListStudiesResponse, + Study, + ListStudiesPage, + ListStudiesFixedSizeCollection> { + + private ListStudiesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListStudiesFixedSizeCollection createEmptyCollection() { + return new ListStudiesFixedSizeCollection(null, 0); + } + + @Override + protected ListStudiesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListStudiesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTrialsPagedResponse + extends AbstractPagedListResponse< + ListTrialsRequest, + ListTrialsResponse, + Trial, + ListTrialsPage, + ListTrialsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + 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()); + } + + private ListTrialsPagedResponse(ListTrialsPage page) { + super(page, ListTrialsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTrialsPage + extends AbstractPage { + + private ListTrialsPage( + PageContext context, + ListTrialsResponse response) { + super(context, response); + } + + private static ListTrialsPage createEmptyPage() { + return new ListTrialsPage(null, null); + } + + @Override + protected ListTrialsPage createPage( + PageContext context, + ListTrialsResponse response) { + return new ListTrialsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTrialsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTrialsRequest, + ListTrialsResponse, + Trial, + ListTrialsPage, + ListTrialsFixedSizeCollection> { + + private ListTrialsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTrialsFixedSizeCollection createEmptyCollection() { + return new ListTrialsFixedSizeCollection(null, 0); + } + + @Override + protected ListTrialsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTrialsFixedSizeCollection(pages, collectionSize); + } + } +} 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 new file mode 100644 index 000000000..dd4ff542a --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java @@ -0,0 +1,371 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link VizierServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * VizierServiceSettings.Builder vizierServiceSettingsBuilder = VizierServiceSettings.newBuilder();
+ * vizierServiceSettingsBuilder
+ *     .createStudySettings()
+ *     .setRetrySettings(
+ *         vizierServiceSettingsBuilder
+ *             .createStudySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * VizierServiceSettings vizierServiceSettings = vizierServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class VizierServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createStudy. */ + public UnaryCallSettings createStudySettings() { + return ((VizierServiceStubSettings) getStubSettings()).createStudySettings(); + } + + /** Returns the object with the settings used for calls to getStudy. */ + public UnaryCallSettings getStudySettings() { + return ((VizierServiceStubSettings) getStubSettings()).getStudySettings(); + } + + /** Returns the object with the settings used for calls to listStudies. */ + public PagedCallSettings + listStudiesSettings() { + return ((VizierServiceStubSettings) getStubSettings()).listStudiesSettings(); + } + + /** Returns the object with the settings used for calls to deleteStudy. */ + public UnaryCallSettings deleteStudySettings() { + return ((VizierServiceStubSettings) getStubSettings()).deleteStudySettings(); + } + + /** Returns the object with the settings used for calls to lookupStudy. */ + public UnaryCallSettings lookupStudySettings() { + return ((VizierServiceStubSettings) getStubSettings()).lookupStudySettings(); + } + + /** Returns the object with the settings used for calls to suggestTrials. */ + public UnaryCallSettings suggestTrialsSettings() { + return ((VizierServiceStubSettings) getStubSettings()).suggestTrialsSettings(); + } + + /** Returns the object with the settings used for calls to suggestTrials. */ + public OperationCallSettings + suggestTrialsOperationSettings() { + return ((VizierServiceStubSettings) getStubSettings()).suggestTrialsOperationSettings(); + } + + /** Returns the object with the settings used for calls to createTrial. */ + public UnaryCallSettings createTrialSettings() { + return ((VizierServiceStubSettings) getStubSettings()).createTrialSettings(); + } + + /** Returns the object with the settings used for calls to getTrial. */ + public UnaryCallSettings getTrialSettings() { + return ((VizierServiceStubSettings) getStubSettings()).getTrialSettings(); + } + + /** Returns the object with the settings used for calls to listTrials. */ + public PagedCallSettings + listTrialsSettings() { + return ((VizierServiceStubSettings) getStubSettings()).listTrialsSettings(); + } + + /** Returns the object with the settings used for calls to addTrialMeasurement. */ + public UnaryCallSettings addTrialMeasurementSettings() { + return ((VizierServiceStubSettings) getStubSettings()).addTrialMeasurementSettings(); + } + + /** Returns the object with the settings used for calls to completeTrial. */ + public UnaryCallSettings completeTrialSettings() { + return ((VizierServiceStubSettings) getStubSettings()).completeTrialSettings(); + } + + /** Returns the object with the settings used for calls to deleteTrial. */ + public UnaryCallSettings deleteTrialSettings() { + return ((VizierServiceStubSettings) getStubSettings()).deleteTrialSettings(); + } + + /** Returns the object with the settings used for calls to checkTrialEarlyStoppingState. */ + public UnaryCallSettings + checkTrialEarlyStoppingStateSettings() { + return ((VizierServiceStubSettings) getStubSettings()).checkTrialEarlyStoppingStateSettings(); + } + + /** Returns the object with the settings used for calls to checkTrialEarlyStoppingState. */ + public OperationCallSettings< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings() { + return ((VizierServiceStubSettings) getStubSettings()) + .checkTrialEarlyStoppingStateOperationSettings(); + } + + /** Returns the object with the settings used for calls to stopTrial. */ + public UnaryCallSettings stopTrialSettings() { + return ((VizierServiceStubSettings) getStubSettings()).stopTrialSettings(); + } + + /** Returns the object with the settings used for calls to listOptimalTrials. */ + public UnaryCallSettings + listOptimalTrialsSettings() { + return ((VizierServiceStubSettings) getStubSettings()).listOptimalTrialsSettings(); + } + + public static final VizierServiceSettings create(VizierServiceStubSettings stub) + throws IOException { + return new VizierServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VizierServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VizierServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VizierServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VizierServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VizierServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VizierServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VizierServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VizierServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VizierServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(VizierServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(VizierServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VizierServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(VizierServiceStubSettings.newBuilder()); + } + + 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 { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createStudy. */ + public UnaryCallSettings.Builder createStudySettings() { + return getStubSettingsBuilder().createStudySettings(); + } + + /** Returns the builder for the settings used for calls to getStudy. */ + public UnaryCallSettings.Builder getStudySettings() { + return getStubSettingsBuilder().getStudySettings(); + } + + /** Returns the builder for the settings used for calls to listStudies. */ + public PagedCallSettings.Builder< + ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse> + listStudiesSettings() { + return getStubSettingsBuilder().listStudiesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteStudy. */ + public UnaryCallSettings.Builder deleteStudySettings() { + return getStubSettingsBuilder().deleteStudySettings(); + } + + /** Returns the builder for the settings used for calls to lookupStudy. */ + public UnaryCallSettings.Builder lookupStudySettings() { + return getStubSettingsBuilder().lookupStudySettings(); + } + + /** Returns the builder for the settings used for calls to suggestTrials. */ + public UnaryCallSettings.Builder suggestTrialsSettings() { + return getStubSettingsBuilder().suggestTrialsSettings(); + } + + /** Returns the builder for the settings used for calls to suggestTrials. */ + public OperationCallSettings.Builder< + SuggestTrialsRequest, SuggestTrialsResponse, SuggestTrialsMetadata> + suggestTrialsOperationSettings() { + return getStubSettingsBuilder().suggestTrialsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createTrial. */ + public UnaryCallSettings.Builder createTrialSettings() { + return getStubSettingsBuilder().createTrialSettings(); + } + + /** Returns the builder for the settings used for calls to getTrial. */ + public UnaryCallSettings.Builder getTrialSettings() { + return getStubSettingsBuilder().getTrialSettings(); + } + + /** Returns the builder for the settings used for calls to listTrials. */ + public PagedCallSettings.Builder + listTrialsSettings() { + return getStubSettingsBuilder().listTrialsSettings(); + } + + /** Returns the builder for the settings used for calls to addTrialMeasurement. */ + public UnaryCallSettings.Builder + addTrialMeasurementSettings() { + return getStubSettingsBuilder().addTrialMeasurementSettings(); + } + + /** Returns the builder for the settings used for calls to completeTrial. */ + public UnaryCallSettings.Builder completeTrialSettings() { + return getStubSettingsBuilder().completeTrialSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTrial. */ + public UnaryCallSettings.Builder deleteTrialSettings() { + return getStubSettingsBuilder().deleteTrialSettings(); + } + + /** Returns the builder for the settings used for calls to checkTrialEarlyStoppingState. */ + public UnaryCallSettings.Builder + checkTrialEarlyStoppingStateSettings() { + return getStubSettingsBuilder().checkTrialEarlyStoppingStateSettings(); + } + + /** Returns the builder for the settings used for calls to checkTrialEarlyStoppingState. */ + public OperationCallSettings.Builder< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings() { + return getStubSettingsBuilder().checkTrialEarlyStoppingStateOperationSettings(); + } + + /** Returns the builder for the settings used for calls to stopTrial. */ + public UnaryCallSettings.Builder stopTrialSettings() { + return getStubSettingsBuilder().stopTrialSettings(); + } + + /** Returns the builder for the settings used for calls to listOptimalTrials. */ + public UnaryCallSettings.Builder + listOptimalTrialsSettings() { + return getStubSettingsBuilder().listOptimalTrialsSettings(); + } + + @Override + public VizierServiceSettings build() throws IOException { + return new VizierServiceSettings(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 new file mode 100644 index 000000000..2fa48c7ac --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -0,0 +1,663 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.aiplatform.v1beta1", + "libraryPackage": "com.google.cloud.aiplatform.v1beta1", + "services": { + "DatasetService": { + "clients": { + "grpc": { + "libraryClient": "DatasetServiceClient", + "rpcs": { + "CreateDataset": { + "methods": ["createDatasetAsync", "createDatasetAsync", "createDatasetAsync", "createDatasetOperationCallable", "createDatasetCallable"] + }, + "DeleteDataset": { + "methods": ["deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetOperationCallable", "deleteDatasetCallable"] + }, + "ExportData": { + "methods": ["exportDataAsync", "exportDataAsync", "exportDataAsync", "exportDataOperationCallable", "exportDataCallable"] + }, + "GetAnnotationSpec": { + "methods": ["getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpecCallable"] + }, + "GetDataset": { + "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"] + }, + "ImportData": { + "methods": ["importDataAsync", "importDataAsync", "importDataAsync", "importDataOperationCallable", "importDataCallable"] + }, + "ListAnnotations": { + "methods": ["listAnnotations", "listAnnotations", "listAnnotations", "listAnnotationsPagedCallable", "listAnnotationsCallable"] + }, + "ListDataItems": { + "methods": ["listDataItems", "listDataItems", "listDataItems", "listDataItemsPagedCallable", "listDataItemsCallable"] + }, + "ListDatasets": { + "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"] + }, + "UpdateDataset": { + "methods": ["updateDataset", "updateDataset", "updateDatasetCallable"] + } + } + } + } + }, + "EndpointService": { + "clients": { + "grpc": { + "libraryClient": "EndpointServiceClient", + "rpcs": { + "CreateEndpoint": { + "methods": ["createEndpointAsync", "createEndpointAsync", "createEndpointAsync", "createEndpointOperationCallable", "createEndpointCallable"] + }, + "DeleteEndpoint": { + "methods": ["deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointOperationCallable", "deleteEndpointCallable"] + }, + "DeployModel": { + "methods": ["deployModelAsync", "deployModelAsync", "deployModelAsync", "deployModelOperationCallable", "deployModelCallable"] + }, + "GetEndpoint": { + "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"] + }, + "ListEndpoints": { + "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"] + }, + "UndeployModel": { + "methods": ["undeployModelAsync", "undeployModelAsync", "undeployModelAsync", "undeployModelOperationCallable", "undeployModelCallable"] + }, + "UpdateEndpoint": { + "methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"] + } + } + } + } + }, + "FeaturestoreOnlineServingService": { + "clients": { + "grpc": { + "libraryClient": "FeaturestoreOnlineServingServiceClient", + "rpcs": { + "ReadFeatureValues": { + "methods": ["readFeatureValues", "readFeatureValues", "readFeatureValues", "readFeatureValuesCallable"] + }, + "StreamingReadFeatureValues": { + "methods": ["streamingReadFeatureValuesCallable"] + } + } + } + } + }, + "FeaturestoreService": { + "clients": { + "grpc": { + "libraryClient": "FeaturestoreServiceClient", + "rpcs": { + "BatchCreateFeatures": { + "methods": ["batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesAsync", "batchCreateFeaturesOperationCallable", "batchCreateFeaturesCallable"] + }, + "BatchReadFeatureValues": { + "methods": ["batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesAsync", "batchReadFeatureValuesOperationCallable", "batchReadFeatureValuesCallable"] + }, + "CreateEntityType": { + "methods": ["createEntityTypeAsync", "createEntityTypeAsync", "createEntityTypeAsync", "createEntityTypeOperationCallable", "createEntityTypeCallable"] + }, + "CreateFeature": { + "methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"] + }, + "CreateFeaturestore": { + "methods": ["createFeaturestoreAsync", "createFeaturestoreAsync", "createFeaturestoreAsync", "createFeaturestoreOperationCallable", "createFeaturestoreCallable"] + }, + "DeleteEntityType": { + "methods": ["deleteEntityTypeAsync", "deleteEntityTypeAsync", "deleteEntityTypeAsync", "deleteEntityTypeOperationCallable", "deleteEntityTypeCallable"] + }, + "DeleteFeature": { + "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] + }, + "DeleteFeaturestore": { + "methods": ["deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreOperationCallable", "deleteFeaturestoreCallable"] + }, + "ExportFeatureValues": { + "methods": ["exportFeatureValuesAsync", "exportFeatureValuesAsync", "exportFeatureValuesAsync", "exportFeatureValuesOperationCallable", "exportFeatureValuesCallable"] + }, + "GetEntityType": { + "methods": ["getEntityType", "getEntityType", "getEntityType", "getEntityTypeCallable"] + }, + "GetFeature": { + "methods": ["getFeature", "getFeature", "getFeature", "getFeatureCallable"] + }, + "GetFeaturestore": { + "methods": ["getFeaturestore", "getFeaturestore", "getFeaturestore", "getFeaturestoreCallable"] + }, + "ImportFeatureValues": { + "methods": ["importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesOperationCallable", "importFeatureValuesCallable"] + }, + "ListEntityTypes": { + "methods": ["listEntityTypes", "listEntityTypes", "listEntityTypes", "listEntityTypesPagedCallable", "listEntityTypesCallable"] + }, + "ListFeatures": { + "methods": ["listFeatures", "listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"] + }, + "ListFeaturestores": { + "methods": ["listFeaturestores", "listFeaturestores", "listFeaturestores", "listFeaturestoresPagedCallable", "listFeaturestoresCallable"] + }, + "SearchFeatures": { + "methods": ["searchFeatures", "searchFeatures", "searchFeatures", "searchFeaturesPagedCallable", "searchFeaturesCallable"] + }, + "UpdateEntityType": { + "methods": ["updateEntityType", "updateEntityType", "updateEntityTypeCallable"] + }, + "UpdateFeature": { + "methods": ["updateFeature", "updateFeature", "updateFeatureCallable"] + }, + "UpdateFeaturestore": { + "methods": ["updateFeaturestoreAsync", "updateFeaturestoreAsync", "updateFeaturestoreOperationCallable", "updateFeaturestoreCallable"] + } + } + } + } + }, + "IndexEndpointService": { + "clients": { + "grpc": { + "libraryClient": "IndexEndpointServiceClient", + "rpcs": { + "CreateIndexEndpoint": { + "methods": ["createIndexEndpointAsync", "createIndexEndpointAsync", "createIndexEndpointAsync", "createIndexEndpointOperationCallable", "createIndexEndpointCallable"] + }, + "DeleteIndexEndpoint": { + "methods": ["deleteIndexEndpointAsync", "deleteIndexEndpointAsync", "deleteIndexEndpointAsync", "deleteIndexEndpointOperationCallable", "deleteIndexEndpointCallable"] + }, + "DeployIndex": { + "methods": ["deployIndexAsync", "deployIndexAsync", "deployIndexAsync", "deployIndexOperationCallable", "deployIndexCallable"] + }, + "GetIndexEndpoint": { + "methods": ["getIndexEndpoint", "getIndexEndpoint", "getIndexEndpoint", "getIndexEndpointCallable"] + }, + "ListIndexEndpoints": { + "methods": ["listIndexEndpoints", "listIndexEndpoints", "listIndexEndpoints", "listIndexEndpointsPagedCallable", "listIndexEndpointsCallable"] + }, + "UndeployIndex": { + "methods": ["undeployIndexAsync", "undeployIndexAsync", "undeployIndexAsync", "undeployIndexOperationCallable", "undeployIndexCallable"] + }, + "UpdateIndexEndpoint": { + "methods": ["updateIndexEndpoint", "updateIndexEndpoint", "updateIndexEndpointCallable"] + } + } + } + } + }, + "IndexService": { + "clients": { + "grpc": { + "libraryClient": "IndexServiceClient", + "rpcs": { + "CreateIndex": { + "methods": ["createIndexAsync", "createIndexAsync", "createIndexAsync", "createIndexOperationCallable", "createIndexCallable"] + }, + "DeleteIndex": { + "methods": ["deleteIndexAsync", "deleteIndexAsync", "deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"] + }, + "GetIndex": { + "methods": ["getIndex", "getIndex", "getIndex", "getIndexCallable"] + }, + "ListIndexes": { + "methods": ["listIndexes", "listIndexes", "listIndexes", "listIndexesPagedCallable", "listIndexesCallable"] + }, + "UpdateIndex": { + "methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"] + } + } + } + } + }, + "JobService": { + "clients": { + "grpc": { + "libraryClient": "JobServiceClient", + "rpcs": { + "CancelBatchPredictionJob": { + "methods": ["cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJobCallable"] + }, + "CancelCustomJob": { + "methods": ["cancelCustomJob", "cancelCustomJob", "cancelCustomJob", "cancelCustomJobCallable"] + }, + "CancelDataLabelingJob": { + "methods": ["cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJobCallable"] + }, + "CancelHyperparameterTuningJob": { + "methods": ["cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJobCallable"] + }, + "CreateBatchPredictionJob": { + "methods": ["createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJobCallable"] + }, + "CreateCustomJob": { + "methods": ["createCustomJob", "createCustomJob", "createCustomJob", "createCustomJobCallable"] + }, + "CreateDataLabelingJob": { + "methods": ["createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJobCallable"] + }, + "CreateHyperparameterTuningJob": { + "methods": ["createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJobCallable"] + }, + "CreateModelDeploymentMonitoringJob": { + "methods": ["createModelDeploymentMonitoringJob", "createModelDeploymentMonitoringJob", "createModelDeploymentMonitoringJob", "createModelDeploymentMonitoringJobCallable"] + }, + "DeleteBatchPredictionJob": { + "methods": ["deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobOperationCallable", "deleteBatchPredictionJobCallable"] + }, + "DeleteCustomJob": { + "methods": ["deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobOperationCallable", "deleteCustomJobCallable"] + }, + "DeleteDataLabelingJob": { + "methods": ["deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobOperationCallable", "deleteDataLabelingJobCallable"] + }, + "DeleteHyperparameterTuningJob": { + "methods": ["deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobOperationCallable", "deleteHyperparameterTuningJobCallable"] + }, + "DeleteModelDeploymentMonitoringJob": { + "methods": ["deleteModelDeploymentMonitoringJobAsync", "deleteModelDeploymentMonitoringJobAsync", "deleteModelDeploymentMonitoringJobAsync", "deleteModelDeploymentMonitoringJobOperationCallable", "deleteModelDeploymentMonitoringJobCallable"] + }, + "GetBatchPredictionJob": { + "methods": ["getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJobCallable"] + }, + "GetCustomJob": { + "methods": ["getCustomJob", "getCustomJob", "getCustomJob", "getCustomJobCallable"] + }, + "GetDataLabelingJob": { + "methods": ["getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJobCallable"] + }, + "GetHyperparameterTuningJob": { + "methods": ["getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJobCallable"] + }, + "GetModelDeploymentMonitoringJob": { + "methods": ["getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJobCallable"] + }, + "ListBatchPredictionJobs": { + "methods": ["listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobsPagedCallable", "listBatchPredictionJobsCallable"] + }, + "ListCustomJobs": { + "methods": ["listCustomJobs", "listCustomJobs", "listCustomJobs", "listCustomJobsPagedCallable", "listCustomJobsCallable"] + }, + "ListDataLabelingJobs": { + "methods": ["listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobsPagedCallable", "listDataLabelingJobsCallable"] + }, + "ListHyperparameterTuningJobs": { + "methods": ["listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobsPagedCallable", "listHyperparameterTuningJobsCallable"] + }, + "ListModelDeploymentMonitoringJobs": { + "methods": ["listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobsPagedCallable", "listModelDeploymentMonitoringJobsCallable"] + }, + "PauseModelDeploymentMonitoringJob": { + "methods": ["pauseModelDeploymentMonitoringJob", "pauseModelDeploymentMonitoringJob", "pauseModelDeploymentMonitoringJob", "pauseModelDeploymentMonitoringJobCallable"] + }, + "ResumeModelDeploymentMonitoringJob": { + "methods": ["resumeModelDeploymentMonitoringJob", "resumeModelDeploymentMonitoringJob", "resumeModelDeploymentMonitoringJob", "resumeModelDeploymentMonitoringJobCallable"] + }, + "SearchModelDeploymentMonitoringStatsAnomalies": { + "methods": ["searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomaliesPagedCallable", "searchModelDeploymentMonitoringStatsAnomaliesCallable"] + }, + "UpdateModelDeploymentMonitoringJob": { + "methods": ["updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobOperationCallable", "updateModelDeploymentMonitoringJobCallable"] + } + } + } + } + }, + "MetadataService": { + "clients": { + "grpc": { + "libraryClient": "MetadataServiceClient", + "rpcs": { + "AddContextArtifactsAndExecutions": { + "methods": ["addContextArtifactsAndExecutions", "addContextArtifactsAndExecutions", "addContextArtifactsAndExecutions", "addContextArtifactsAndExecutionsCallable"] + }, + "AddContextChildren": { + "methods": ["addContextChildren", "addContextChildren", "addContextChildren", "addContextChildrenCallable"] + }, + "AddExecutionEvents": { + "methods": ["addExecutionEvents", "addExecutionEvents", "addExecutionEvents", "addExecutionEventsCallable"] + }, + "CreateArtifact": { + "methods": ["createArtifact", "createArtifact", "createArtifact", "createArtifactCallable"] + }, + "CreateContext": { + "methods": ["createContext", "createContext", "createContext", "createContextCallable"] + }, + "CreateExecution": { + "methods": ["createExecution", "createExecution", "createExecution", "createExecutionCallable"] + }, + "CreateMetadataSchema": { + "methods": ["createMetadataSchema", "createMetadataSchema", "createMetadataSchema", "createMetadataSchemaCallable"] + }, + "CreateMetadataStore": { + "methods": ["createMetadataStoreAsync", "createMetadataStoreAsync", "createMetadataStoreAsync", "createMetadataStoreOperationCallable", "createMetadataStoreCallable"] + }, + "DeleteContext": { + "methods": ["deleteContextAsync", "deleteContextAsync", "deleteContextAsync", "deleteContextOperationCallable", "deleteContextCallable"] + }, + "DeleteMetadataStore": { + "methods": ["deleteMetadataStoreAsync", "deleteMetadataStoreAsync", "deleteMetadataStoreAsync", "deleteMetadataStoreOperationCallable", "deleteMetadataStoreCallable"] + }, + "GetArtifact": { + "methods": ["getArtifact", "getArtifact", "getArtifact", "getArtifactCallable"] + }, + "GetContext": { + "methods": ["getContext", "getContext", "getContext", "getContextCallable"] + }, + "GetExecution": { + "methods": ["getExecution", "getExecution", "getExecution", "getExecutionCallable"] + }, + "GetMetadataSchema": { + "methods": ["getMetadataSchema", "getMetadataSchema", "getMetadataSchema", "getMetadataSchemaCallable"] + }, + "GetMetadataStore": { + "methods": ["getMetadataStore", "getMetadataStore", "getMetadataStore", "getMetadataStoreCallable"] + }, + "ListArtifacts": { + "methods": ["listArtifacts", "listArtifacts", "listArtifacts", "listArtifactsPagedCallable", "listArtifactsCallable"] + }, + "ListContexts": { + "methods": ["listContexts", "listContexts", "listContexts", "listContextsPagedCallable", "listContextsCallable"] + }, + "ListExecutions": { + "methods": ["listExecutions", "listExecutions", "listExecutions", "listExecutionsPagedCallable", "listExecutionsCallable"] + }, + "ListMetadataSchemas": { + "methods": ["listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemasPagedCallable", "listMetadataSchemasCallable"] + }, + "ListMetadataStores": { + "methods": ["listMetadataStores", "listMetadataStores", "listMetadataStores", "listMetadataStoresPagedCallable", "listMetadataStoresCallable"] + }, + "QueryArtifactLineageSubgraph": { + "methods": ["queryArtifactLineageSubgraph", "queryArtifactLineageSubgraph", "queryArtifactLineageSubgraph", "queryArtifactLineageSubgraphCallable"] + }, + "QueryContextLineageSubgraph": { + "methods": ["queryContextLineageSubgraph", "queryContextLineageSubgraph", "queryContextLineageSubgraph", "queryContextLineageSubgraphCallable"] + }, + "QueryExecutionInputsAndOutputs": { + "methods": ["queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputsCallable"] + }, + "UpdateArtifact": { + "methods": ["updateArtifact", "updateArtifact", "updateArtifactCallable"] + }, + "UpdateContext": { + "methods": ["updateContext", "updateContext", "updateContextCallable"] + }, + "UpdateExecution": { + "methods": ["updateExecution", "updateExecution", "updateExecutionCallable"] + } + } + } + } + }, + "MigrationService": { + "clients": { + "grpc": { + "libraryClient": "MigrationServiceClient", + "rpcs": { + "BatchMigrateResources": { + "methods": ["batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesOperationCallable", "batchMigrateResourcesCallable"] + }, + "SearchMigratableResources": { + "methods": ["searchMigratableResources", "searchMigratableResources", "searchMigratableResources", "searchMigratableResourcesPagedCallable", "searchMigratableResourcesCallable"] + } + } + } + } + }, + "ModelService": { + "clients": { + "grpc": { + "libraryClient": "ModelServiceClient", + "rpcs": { + "DeleteModel": { + "methods": ["deleteModelAsync", "deleteModelAsync", "deleteModelAsync", "deleteModelOperationCallable", "deleteModelCallable"] + }, + "ExportModel": { + "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"] + }, + "GetModel": { + "methods": ["getModel", "getModel", "getModel", "getModelCallable"] + }, + "GetModelEvaluation": { + "methods": ["getModelEvaluation", "getModelEvaluation", "getModelEvaluation", "getModelEvaluationCallable"] + }, + "GetModelEvaluationSlice": { + "methods": ["getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSliceCallable"] + }, + "ListModelEvaluationSlices": { + "methods": ["listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlicesPagedCallable", "listModelEvaluationSlicesCallable"] + }, + "ListModelEvaluations": { + "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"] + }, + "ListModels": { + "methods": ["listModels", "listModels", "listModels", "listModelsPagedCallable", "listModelsCallable"] + }, + "UpdateModel": { + "methods": ["updateModel", "updateModel", "updateModelCallable"] + }, + "UploadModel": { + "methods": ["uploadModelAsync", "uploadModelAsync", "uploadModelAsync", "uploadModelOperationCallable", "uploadModelCallable"] + } + } + } + } + }, + "PipelineService": { + "clients": { + "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"] + } + } + } + } + }, + "PredictionService": { + "clients": { + "grpc": { + "libraryClient": "PredictionServiceClient", + "rpcs": { + "Explain": { + "methods": ["explain", "explain", "explain", "explainCallable"] + }, + "Predict": { + "methods": ["predict", "predict", "predict", "predictCallable"] + } + } + } + } + }, + "SpecialistPoolService": { + "clients": { + "grpc": { + "libraryClient": "SpecialistPoolServiceClient", + "rpcs": { + "CreateSpecialistPool": { + "methods": ["createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolOperationCallable", "createSpecialistPoolCallable"] + }, + "DeleteSpecialistPool": { + "methods": ["deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolOperationCallable", "deleteSpecialistPoolCallable"] + }, + "GetSpecialistPool": { + "methods": ["getSpecialistPool", "getSpecialistPool", "getSpecialistPool", "getSpecialistPoolCallable"] + }, + "ListSpecialistPools": { + "methods": ["listSpecialistPools", "listSpecialistPools", "listSpecialistPools", "listSpecialistPoolsPagedCallable", "listSpecialistPoolsCallable"] + }, + "UpdateSpecialistPool": { + "methods": ["updateSpecialistPoolAsync", "updateSpecialistPoolAsync", "updateSpecialistPoolOperationCallable", "updateSpecialistPoolCallable"] + } + } + } + } + }, + "TensorboardService": { + "clients": { + "grpc": { + "libraryClient": "TensorboardServiceClient", + "rpcs": { + "CreateTensorboard": { + "methods": ["createTensorboardAsync", "createTensorboardAsync", "createTensorboardAsync", "createTensorboardOperationCallable", "createTensorboardCallable"] + }, + "CreateTensorboardExperiment": { + "methods": ["createTensorboardExperiment", "createTensorboardExperiment", "createTensorboardExperiment", "createTensorboardExperimentCallable"] + }, + "CreateTensorboardRun": { + "methods": ["createTensorboardRun", "createTensorboardRun", "createTensorboardRun", "createTensorboardRunCallable"] + }, + "CreateTensorboardTimeSeries": { + "methods": ["createTensorboardTimeSeries", "createTensorboardTimeSeries", "createTensorboardTimeSeries", "createTensorboardTimeSeriesCallable"] + }, + "DeleteTensorboard": { + "methods": ["deleteTensorboardAsync", "deleteTensorboardAsync", "deleteTensorboardAsync", "deleteTensorboardOperationCallable", "deleteTensorboardCallable"] + }, + "DeleteTensorboardExperiment": { + "methods": ["deleteTensorboardExperimentAsync", "deleteTensorboardExperimentAsync", "deleteTensorboardExperimentAsync", "deleteTensorboardExperimentOperationCallable", "deleteTensorboardExperimentCallable"] + }, + "DeleteTensorboardRun": { + "methods": ["deleteTensorboardRunAsync", "deleteTensorboardRunAsync", "deleteTensorboardRunAsync", "deleteTensorboardRunOperationCallable", "deleteTensorboardRunCallable"] + }, + "DeleteTensorboardTimeSeries": { + "methods": ["deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesOperationCallable", "deleteTensorboardTimeSeriesCallable"] + }, + "ExportTensorboardTimeSeriesData": { + "methods": ["exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesDataPagedCallable", "exportTensorboardTimeSeriesDataCallable"] + }, + "GetTensorboard": { + "methods": ["getTensorboard", "getTensorboard", "getTensorboard", "getTensorboardCallable"] + }, + "GetTensorboardExperiment": { + "methods": ["getTensorboardExperiment", "getTensorboardExperiment", "getTensorboardExperiment", "getTensorboardExperimentCallable"] + }, + "GetTensorboardRun": { + "methods": ["getTensorboardRun", "getTensorboardRun", "getTensorboardRun", "getTensorboardRunCallable"] + }, + "GetTensorboardTimeSeries": { + "methods": ["getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeriesCallable"] + }, + "ListTensorboardExperiments": { + "methods": ["listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperimentsPagedCallable", "listTensorboardExperimentsCallable"] + }, + "ListTensorboardRuns": { + "methods": ["listTensorboardRuns", "listTensorboardRuns", "listTensorboardRuns", "listTensorboardRunsPagedCallable", "listTensorboardRunsCallable"] + }, + "ListTensorboardTimeSeries": { + "methods": ["listTensorboardTimeSeries", "listTensorboardTimeSeries", "listTensorboardTimeSeries", "listTensorboardTimeSeriesPagedCallable", "listTensorboardTimeSeriesCallable"] + }, + "ListTensorboards": { + "methods": ["listTensorboards", "listTensorboards", "listTensorboards", "listTensorboardsPagedCallable", "listTensorboardsCallable"] + }, + "ReadTensorboardBlobData": { + "methods": ["readTensorboardBlobDataCallable"] + }, + "ReadTensorboardTimeSeriesData": { + "methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"] + }, + "UpdateTensorboard": { + "methods": ["updateTensorboardAsync", "updateTensorboardAsync", "updateTensorboardOperationCallable", "updateTensorboardCallable"] + }, + "UpdateTensorboardExperiment": { + "methods": ["updateTensorboardExperiment", "updateTensorboardExperiment", "updateTensorboardExperimentCallable"] + }, + "UpdateTensorboardRun": { + "methods": ["updateTensorboardRun", "updateTensorboardRun", "updateTensorboardRunCallable"] + }, + "UpdateTensorboardTimeSeries": { + "methods": ["updateTensorboardTimeSeries", "updateTensorboardTimeSeries", "updateTensorboardTimeSeriesCallable"] + }, + "WriteTensorboardRunData": { + "methods": ["writeTensorboardRunData", "writeTensorboardRunData", "writeTensorboardRunData", "writeTensorboardRunDataCallable"] + } + } + } + } + }, + "VizierService": { + "clients": { + "grpc": { + "libraryClient": "VizierServiceClient", + "rpcs": { + "AddTrialMeasurement": { + "methods": ["addTrialMeasurement", "addTrialMeasurementCallable"] + }, + "CheckTrialEarlyStoppingState": { + "methods": ["checkTrialEarlyStoppingStateAsync", "checkTrialEarlyStoppingStateOperationCallable", "checkTrialEarlyStoppingStateCallable"] + }, + "CompleteTrial": { + "methods": ["completeTrial", "completeTrialCallable"] + }, + "CreateStudy": { + "methods": ["createStudy", "createStudy", "createStudy", "createStudyCallable"] + }, + "CreateTrial": { + "methods": ["createTrial", "createTrial", "createTrial", "createTrialCallable"] + }, + "DeleteStudy": { + "methods": ["deleteStudy", "deleteStudy", "deleteStudy", "deleteStudyCallable"] + }, + "DeleteTrial": { + "methods": ["deleteTrial", "deleteTrial", "deleteTrial", "deleteTrialCallable"] + }, + "GetStudy": { + "methods": ["getStudy", "getStudy", "getStudy", "getStudyCallable"] + }, + "GetTrial": { + "methods": ["getTrial", "getTrial", "getTrial", "getTrialCallable"] + }, + "ListOptimalTrials": { + "methods": ["listOptimalTrials", "listOptimalTrials", "listOptimalTrials", "listOptimalTrialsCallable"] + }, + "ListStudies": { + "methods": ["listStudies", "listStudies", "listStudies", "listStudiesPagedCallable", "listStudiesCallable"] + }, + "ListTrials": { + "methods": ["listTrials", "listTrials", "listTrials", "listTrialsPagedCallable", "listTrialsCallable"] + }, + "LookupStudy": { + "methods": ["lookupStudy", "lookupStudy", "lookupStudy", "lookupStudyCallable"] + }, + "StopTrial": { + "methods": ["stopTrial", "stopTrialCallable"] + }, + "SuggestTrials": { + "methods": ["suggestTrialsAsync", "suggestTrialsOperationCallable", "suggestTrialsCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java index 03c35f17b..7752fb681 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java @@ -1,5 +1,5 @@ /* - * 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. @@ -39,9 +39,65 @@ * } * }

* + *

======================= FeaturestoreOnlineServingServiceClient ======================= + * + *

Service Description: A service for serving online feature values. + * + *

Sample for FeaturestoreOnlineServingServiceClient: + * + *

{@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ *     FeaturestoreOnlineServingServiceClient.create()) {
+ *   EntityTypeName entityType =
+ *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ *   ReadFeatureValuesResponse response =
+ *       featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+ * }
+ * }
+ * + *

======================= FeaturestoreServiceClient ======================= + * + *

Service Description: The service that handles CRUD and List for resources for Featurestore. + * + *

Sample for FeaturestoreServiceClient: + * + *

{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+ * }
+ * }
+ * + *

======================= IndexEndpointServiceClient ======================= + * + *

Service Description: A service for managing Vertex AI's IndexEndpoints. + * + *

Sample for IndexEndpointServiceClient: + * + *

{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ *     IndexEndpointServiceClient.create()) {
+ *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ *   IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+ * }
+ * }
+ * + *

======================= IndexServiceClient ======================= + * + *

Service Description: A service for creating and managing Vertex AI's Index resources. + * + *

Sample for IndexServiceClient: + * + *

{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+ *   Index response = indexServiceClient.getIndex(name);
+ * }
+ * }
+ * *

======================= JobServiceClient ======================= * - *

Service Description: A service for creating and managing AI Platform's jobs. + *

Service Description: A service for creating and managing Vertex AI's jobs. * *

Sample for JobServiceClient: * @@ -53,10 +109,23 @@ * } * } * + *

======================= MetadataServiceClient ======================= + * + *

Service Description: Service for reading and writing metadata entries. + * + *

Sample for MetadataServiceClient: + * + *

{@code
+ * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+ *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+ *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
+ * }
+ * }
+ * *

======================= MigrationServiceClient ======================= * *

Service Description: A service that migrates resources from automl.googleapis.com, - * datalabeling.googleapis.com and ml.googleapis.com to AI Platform. + * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * *

Sample for MigrationServiceClient: * @@ -72,7 +141,7 @@ * *

======================= ModelServiceClient ======================= * - *

Service Description: A service for managing AI Platform's machine learning Models. + *

Service Description: A service for managing Vertex AI's machine learning Models. * *

Sample for ModelServiceClient: * @@ -85,7 +154,9 @@ * *

======================= PipelineServiceClient ======================= * - *

Service Description: A service for creating and managing AI Platform's pipelines. + *

Service Description: A service for creating and managing Vertex AI's pipelines. This includes + * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob` + * resources (used for Vertex Pipelines). * *

Sample for PipelineServiceClient: * @@ -131,6 +202,36 @@ * SpecialistPool response = specialistPoolServiceClient.getSpecialistPool(name); * } * } + * + *

======================= TensorboardServiceClient ======================= + * + *

Service Description: TensorboardService + * + *

Sample for TensorboardServiceClient: + * + *

{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+ * }
+ * }
+ * + *

======================= VizierServiceClient ======================= + * + *

Service Description: Vertex Vizier API. + * + *

Vizier service is a GCP service to solve blackbox optimization problems, such as tuning + * machine learning hyperparameters and searching over deep learning architectures. + * + *

Sample for VizierServiceClient: + * + *

{@code
+ * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   Study study = Study.newBuilder().build();
+ *   Study response = vizierServiceClient.createStudy(parent, study);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.aiplatform.v1beta1; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java index 45de98a21..3760bc11d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 26f986eb2..5c1efb877 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java index 77a61562b..5ef512103 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 b48013d5c..af54e838b 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java new file mode 100644 index 000000000..d09d09c11 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java @@ -0,0 +1,51 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the FeaturestoreOnlineServingService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class FeaturestoreOnlineServingServiceStub implements BackgroundResource { + + public UnaryCallable + readFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: readFeatureValuesCallable()"); + } + + public ServerStreamingCallable + streamingReadFeatureValuesCallable() { + throw new UnsupportedOperationException( + "Not implemented: streamingReadFeatureValuesCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..8742c2015 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java @@ -0,0 +1,303 @@ +/* + * 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.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturestoreOnlineServingServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * FeaturestoreOnlineServingServiceStubSettings.Builder
+ *     featurestoreOnlineServingServiceSettingsBuilder =
+ *         FeaturestoreOnlineServingServiceStubSettings.newBuilder();
+ * featurestoreOnlineServingServiceSettingsBuilder
+ *     .readFeatureValuesSettings()
+ *     .setRetrySettings(
+ *         featurestoreOnlineServingServiceSettingsBuilder
+ *             .readFeatureValuesSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * FeaturestoreOnlineServingServiceStubSettings featurestoreOnlineServingServiceSettings =
+ *     featurestoreOnlineServingServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreOnlineServingServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + readFeatureValuesSettings; + private final ServerStreamingCallSettings< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesSettings; + + /** Returns the object with the settings used for calls to readFeatureValues. */ + public UnaryCallSettings + readFeatureValuesSettings() { + return readFeatureValuesSettings; + } + + /** Returns the object with the settings used for calls to streamingReadFeatureValues. */ + public ServerStreamingCallSettings + streamingReadFeatureValuesSettings() { + return streamingReadFeatureValuesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FeaturestoreOnlineServingServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFeaturestoreOnlineServingServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(FeaturestoreOnlineServingServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturestoreOnlineServingServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + readFeatureValuesSettings = settingsBuilder.readFeatureValuesSettings().build(); + streamingReadFeatureValuesSettings = + settingsBuilder.streamingReadFeatureValuesSettings().build(); + } + + /** Builder for FeaturestoreOnlineServingServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + readFeatureValuesSettings; + private final ServerStreamingCallSettings.Builder< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_13_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_13_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamingReadFeatureValuesSettings = ServerStreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(readFeatureValuesSettings); + initDefaults(this); + } + + protected Builder(FeaturestoreOnlineServingServiceStubSettings settings) { + super(settings); + + readFeatureValuesSettings = settings.readFeatureValuesSettings.toBuilder(); + streamingReadFeatureValuesSettings = settings.streamingReadFeatureValuesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(readFeatureValuesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .readFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_13_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_13_params")); + + builder + .streamingReadFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_13_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_13_params")); + + 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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to readFeatureValues. */ + public UnaryCallSettings.Builder + readFeatureValuesSettings() { + return readFeatureValuesSettings; + } + + /** Returns the builder for the settings used for calls to streamingReadFeatureValues. */ + public ServerStreamingCallSettings.Builder< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesSettings() { + return streamingReadFeatureValuesSettings; + } + + @Override + public FeaturestoreOnlineServingServiceStubSettings build() throws IOException { + return new FeaturestoreOnlineServingServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java new file mode 100644 index 000000000..e08b8601e --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java @@ -0,0 +1,265 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; + +import com.google.api.core.BetaApi; +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.v1beta1.BatchCreateFeaturesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.EntityType; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.Feature; +import com.google.cloud.aiplatform.v1beta1.Featurestore; +import com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the FeaturestoreService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class FeaturestoreServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createFeaturestoreOperationCallable()"); + } + + public UnaryCallable createFeaturestoreCallable() { + throw new UnsupportedOperationException("Not implemented: createFeaturestoreCallable()"); + } + + public UnaryCallable getFeaturestoreCallable() { + throw new UnsupportedOperationException("Not implemented: getFeaturestoreCallable()"); + } + + public UnaryCallable + listFeaturestoresPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFeaturestoresPagedCallable()"); + } + + public UnaryCallable + listFeaturestoresCallable() { + throw new UnsupportedOperationException("Not implemented: listFeaturestoresCallable()"); + } + + public OperationCallable< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFeaturestoreOperationCallable()"); + } + + public UnaryCallable updateFeaturestoreCallable() { + throw new UnsupportedOperationException("Not implemented: updateFeaturestoreCallable()"); + } + + public OperationCallable + deleteFeaturestoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFeaturestoreOperationCallable()"); + } + + public UnaryCallable deleteFeaturestoreCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFeaturestoreCallable()"); + } + + public OperationCallable + createEntityTypeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEntityTypeOperationCallable()"); + } + + public UnaryCallable createEntityTypeCallable() { + throw new UnsupportedOperationException("Not implemented: createEntityTypeCallable()"); + } + + public UnaryCallable getEntityTypeCallable() { + throw new UnsupportedOperationException("Not implemented: getEntityTypeCallable()"); + } + + public UnaryCallable + listEntityTypesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEntityTypesPagedCallable()"); + } + + public UnaryCallable listEntityTypesCallable() { + throw new UnsupportedOperationException("Not implemented: listEntityTypesCallable()"); + } + + public UnaryCallable updateEntityTypeCallable() { + throw new UnsupportedOperationException("Not implemented: updateEntityTypeCallable()"); + } + + public OperationCallable + deleteEntityTypeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEntityTypeOperationCallable()"); + } + + public UnaryCallable deleteEntityTypeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEntityTypeCallable()"); + } + + public OperationCallable + createFeatureOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createFeatureOperationCallable()"); + } + + public UnaryCallable createFeatureCallable() { + throw new UnsupportedOperationException("Not implemented: createFeatureCallable()"); + } + + public OperationCallable< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchCreateFeaturesOperationCallable()"); + } + + public UnaryCallable batchCreateFeaturesCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateFeaturesCallable()"); + } + + public UnaryCallable getFeatureCallable() { + throw new UnsupportedOperationException("Not implemented: getFeatureCallable()"); + } + + public UnaryCallable listFeaturesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFeaturesPagedCallable()"); + } + + public UnaryCallable listFeaturesCallable() { + throw new UnsupportedOperationException("Not implemented: listFeaturesCallable()"); + } + + public UnaryCallable updateFeatureCallable() { + throw new UnsupportedOperationException("Not implemented: updateFeatureCallable()"); + } + + public OperationCallable + deleteFeatureOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFeatureOperationCallable()"); + } + + public UnaryCallable deleteFeatureCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFeatureCallable()"); + } + + public OperationCallable< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importFeatureValuesOperationCallable()"); + } + + public UnaryCallable importFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: importFeatureValuesCallable()"); + } + + public OperationCallable< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchReadFeatureValuesOperationCallable()"); + } + + public UnaryCallable batchReadFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: batchReadFeatureValuesCallable()"); + } + + public OperationCallable< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportFeatureValuesOperationCallable()"); + } + + public UnaryCallable exportFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: exportFeatureValuesCallable()"); + } + + public UnaryCallable + searchFeaturesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchFeaturesPagedCallable()"); + } + + public UnaryCallable searchFeaturesCallable() { + throw new UnsupportedOperationException("Not implemented: searchFeaturesCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..9675f52ea --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java @@ -0,0 +1,1612 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.EntityType; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.Feature; +import com.google.cloud.aiplatform.v1beta1.Featurestore; +import com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FeaturestoreServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * FeaturestoreServiceStubSettings.Builder featurestoreServiceSettingsBuilder =
+ *     FeaturestoreServiceStubSettings.newBuilder();
+ * featurestoreServiceSettingsBuilder
+ *     .getFeaturestoreSettings()
+ *     .setRetrySettings(
+ *         featurestoreServiceSettingsBuilder
+ *             .getFeaturestoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * FeaturestoreServiceStubSettings featurestoreServiceSettings =
+ *     featurestoreServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class FeaturestoreServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createFeaturestoreSettings; + private final OperationCallSettings< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings; + private final UnaryCallSettings getFeaturestoreSettings; + private final PagedCallSettings< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings; + private final UnaryCallSettings updateFeaturestoreSettings; + private final OperationCallSettings< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings; + private final UnaryCallSettings deleteFeaturestoreSettings; + private final OperationCallSettings + deleteFeaturestoreOperationSettings; + private final UnaryCallSettings createEntityTypeSettings; + private final OperationCallSettings< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings; + private final UnaryCallSettings getEntityTypeSettings; + private final PagedCallSettings< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings; + private final UnaryCallSettings updateEntityTypeSettings; + private final UnaryCallSettings deleteEntityTypeSettings; + private final OperationCallSettings + deleteEntityTypeOperationSettings; + private final UnaryCallSettings createFeatureSettings; + private final OperationCallSettings + createFeatureOperationSettings; + private final UnaryCallSettings + batchCreateFeaturesSettings; + private final OperationCallSettings< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings; + private final UnaryCallSettings getFeatureSettings; + private final PagedCallSettings< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> + listFeaturesSettings; + private final UnaryCallSettings updateFeatureSettings; + private final UnaryCallSettings deleteFeatureSettings; + private final OperationCallSettings + deleteFeatureOperationSettings; + private final UnaryCallSettings + importFeatureValuesSettings; + private final OperationCallSettings< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings; + private final UnaryCallSettings + batchReadFeatureValuesSettings; + private final OperationCallSettings< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings; + private final UnaryCallSettings + exportFeatureValuesSettings; + private final OperationCallSettings< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings; + private final PagedCallSettings< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings; + + private static final PagedListDescriptor< + ListFeaturestoresRequest, ListFeaturestoresResponse, Featurestore> + LIST_FEATURESTORES_PAGE_STR_DESC = + new PagedListDescriptor< + ListFeaturestoresRequest, ListFeaturestoresResponse, Featurestore>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFeaturestoresRequest injectToken( + ListFeaturestoresRequest payload, String token) { + return ListFeaturestoresRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFeaturestoresRequest injectPageSize( + ListFeaturestoresRequest payload, int pageSize) { + return ListFeaturestoresRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFeaturestoresRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFeaturestoresResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFeaturestoresResponse payload) { + return payload.getFeaturestoresList() == null + ? ImmutableList.of() + : payload.getFeaturestoresList(); + } + }; + + private static final PagedListDescriptor< + ListEntityTypesRequest, ListEntityTypesResponse, EntityType> + LIST_ENTITY_TYPES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEntityTypesRequest injectToken( + ListEntityTypesRequest payload, String token) { + return ListEntityTypesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEntityTypesRequest injectPageSize( + ListEntityTypesRequest payload, int pageSize) { + return ListEntityTypesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEntityTypesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEntityTypesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEntityTypesResponse payload) { + return payload.getEntityTypesList() == null + ? ImmutableList.of() + : payload.getEntityTypesList(); + } + }; + + private static final PagedListDescriptor + LIST_FEATURES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFeaturesRequest injectToken(ListFeaturesRequest payload, String token) { + return ListFeaturesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFeaturesRequest injectPageSize(ListFeaturesRequest payload, int pageSize) { + return ListFeaturesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFeaturesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFeaturesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFeaturesResponse payload) { + return payload.getFeaturesList() == null + ? ImmutableList.of() + : payload.getFeaturesList(); + } + }; + + private static final PagedListDescriptor + SEARCH_FEATURES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchFeaturesRequest injectToken(SearchFeaturesRequest payload, String token) { + return SearchFeaturesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchFeaturesRequest injectPageSize( + SearchFeaturesRequest payload, int pageSize) { + return SearchFeaturesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchFeaturesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchFeaturesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchFeaturesResponse payload) { + return payload.getFeaturesList() == null + ? ImmutableList.of() + : payload.getFeaturesList(); + } + }; + + private static final PagedListResponseFactory< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + LIST_FEATURESTORES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFeaturestoresRequest, + ListFeaturestoresResponse, + ListFeaturestoresPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFeaturestoresRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_FEATURESTORES_PAGE_STR_DESC, request, context); + return ListFeaturestoresPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + LIST_ENTITY_TYPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEntityTypesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ENTITY_TYPES_PAGE_STR_DESC, request, context); + return ListEntityTypesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> + LIST_FEATURES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFeaturesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FEATURES_PAGE_STR_DESC, request, context); + return ListFeaturesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + SEARCH_FEATURES_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchFeaturesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, SEARCH_FEATURES_PAGE_STR_DESC, request, context); + return SearchFeaturesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createFeaturestore. */ + public UnaryCallSettings createFeaturestoreSettings() { + return createFeaturestoreSettings; + } + + /** Returns the object with the settings used for calls to createFeaturestore. */ + public OperationCallSettings< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings() { + return createFeaturestoreOperationSettings; + } + + /** Returns the object with the settings used for calls to getFeaturestore. */ + public UnaryCallSettings getFeaturestoreSettings() { + return getFeaturestoreSettings; + } + + /** Returns the object with the settings used for calls to listFeaturestores. */ + public PagedCallSettings< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings() { + return listFeaturestoresSettings; + } + + /** Returns the object with the settings used for calls to updateFeaturestore. */ + public UnaryCallSettings updateFeaturestoreSettings() { + return updateFeaturestoreSettings; + } + + /** Returns the object with the settings used for calls to updateFeaturestore. */ + public OperationCallSettings< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings() { + return updateFeaturestoreOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFeaturestore. */ + public UnaryCallSettings deleteFeaturestoreSettings() { + return deleteFeaturestoreSettings; + } + + /** Returns the object with the settings used for calls to deleteFeaturestore. */ + public OperationCallSettings + deleteFeaturestoreOperationSettings() { + return deleteFeaturestoreOperationSettings; + } + + /** Returns the object with the settings used for calls to createEntityType. */ + public UnaryCallSettings createEntityTypeSettings() { + return createEntityTypeSettings; + } + + /** Returns the object with the settings used for calls to createEntityType. */ + public OperationCallSettings< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings() { + return createEntityTypeOperationSettings; + } + + /** Returns the object with the settings used for calls to getEntityType. */ + public UnaryCallSettings getEntityTypeSettings() { + return getEntityTypeSettings; + } + + /** Returns the object with the settings used for calls to listEntityTypes. */ + public PagedCallSettings< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings() { + return listEntityTypesSettings; + } + + /** Returns the object with the settings used for calls to updateEntityType. */ + public UnaryCallSettings updateEntityTypeSettings() { + return updateEntityTypeSettings; + } + + /** Returns the object with the settings used for calls to deleteEntityType. */ + public UnaryCallSettings deleteEntityTypeSettings() { + return deleteEntityTypeSettings; + } + + /** Returns the object with the settings used for calls to deleteEntityType. */ + public OperationCallSettings + deleteEntityTypeOperationSettings() { + return deleteEntityTypeOperationSettings; + } + + /** Returns the object with the settings used for calls to createFeature. */ + public UnaryCallSettings createFeatureSettings() { + return createFeatureSettings; + } + + /** Returns the object with the settings used for calls to createFeature. */ + public OperationCallSettings + createFeatureOperationSettings() { + return createFeatureOperationSettings; + } + + /** Returns the object with the settings used for calls to batchCreateFeatures. */ + public UnaryCallSettings batchCreateFeaturesSettings() { + return batchCreateFeaturesSettings; + } + + /** Returns the object with the settings used for calls to batchCreateFeatures. */ + public OperationCallSettings< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings() { + return batchCreateFeaturesOperationSettings; + } + + /** Returns the object with the settings used for calls to getFeature. */ + public UnaryCallSettings getFeatureSettings() { + return getFeatureSettings; + } + + /** Returns the object with the settings used for calls to listFeatures. */ + public PagedCallSettings + listFeaturesSettings() { + return listFeaturesSettings; + } + + /** Returns the object with the settings used for calls to updateFeature. */ + public UnaryCallSettings updateFeatureSettings() { + return updateFeatureSettings; + } + + /** Returns the object with the settings used for calls to deleteFeature. */ + public UnaryCallSettings deleteFeatureSettings() { + return deleteFeatureSettings; + } + + /** Returns the object with the settings used for calls to deleteFeature. */ + public OperationCallSettings + deleteFeatureOperationSettings() { + return deleteFeatureOperationSettings; + } + + /** Returns the object with the settings used for calls to importFeatureValues. */ + public UnaryCallSettings importFeatureValuesSettings() { + return importFeatureValuesSettings; + } + + /** Returns the object with the settings used for calls to importFeatureValues. */ + public OperationCallSettings< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings() { + return importFeatureValuesOperationSettings; + } + + /** Returns the object with the settings used for calls to batchReadFeatureValues. */ + public UnaryCallSettings + batchReadFeatureValuesSettings() { + return batchReadFeatureValuesSettings; + } + + /** Returns the object with the settings used for calls to batchReadFeatureValues. */ + public OperationCallSettings< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings() { + return batchReadFeatureValuesOperationSettings; + } + + /** Returns the object with the settings used for calls to exportFeatureValues. */ + public UnaryCallSettings exportFeatureValuesSettings() { + return exportFeatureValuesSettings; + } + + /** Returns the object with the settings used for calls to exportFeatureValues. */ + public OperationCallSettings< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings() { + return exportFeatureValuesOperationSettings; + } + + /** Returns the object with the settings used for calls to searchFeatures. */ + public PagedCallSettings< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings() { + return searchFeaturesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public FeaturestoreServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFeaturestoreServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FeaturestoreServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FeaturestoreServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createFeaturestoreSettings = settingsBuilder.createFeaturestoreSettings().build(); + createFeaturestoreOperationSettings = + settingsBuilder.createFeaturestoreOperationSettings().build(); + getFeaturestoreSettings = settingsBuilder.getFeaturestoreSettings().build(); + listFeaturestoresSettings = settingsBuilder.listFeaturestoresSettings().build(); + updateFeaturestoreSettings = settingsBuilder.updateFeaturestoreSettings().build(); + updateFeaturestoreOperationSettings = + settingsBuilder.updateFeaturestoreOperationSettings().build(); + deleteFeaturestoreSettings = settingsBuilder.deleteFeaturestoreSettings().build(); + deleteFeaturestoreOperationSettings = + settingsBuilder.deleteFeaturestoreOperationSettings().build(); + createEntityTypeSettings = settingsBuilder.createEntityTypeSettings().build(); + createEntityTypeOperationSettings = settingsBuilder.createEntityTypeOperationSettings().build(); + getEntityTypeSettings = settingsBuilder.getEntityTypeSettings().build(); + listEntityTypesSettings = settingsBuilder.listEntityTypesSettings().build(); + updateEntityTypeSettings = settingsBuilder.updateEntityTypeSettings().build(); + deleteEntityTypeSettings = settingsBuilder.deleteEntityTypeSettings().build(); + deleteEntityTypeOperationSettings = settingsBuilder.deleteEntityTypeOperationSettings().build(); + createFeatureSettings = settingsBuilder.createFeatureSettings().build(); + createFeatureOperationSettings = settingsBuilder.createFeatureOperationSettings().build(); + batchCreateFeaturesSettings = settingsBuilder.batchCreateFeaturesSettings().build(); + batchCreateFeaturesOperationSettings = + settingsBuilder.batchCreateFeaturesOperationSettings().build(); + getFeatureSettings = settingsBuilder.getFeatureSettings().build(); + listFeaturesSettings = settingsBuilder.listFeaturesSettings().build(); + updateFeatureSettings = settingsBuilder.updateFeatureSettings().build(); + deleteFeatureSettings = settingsBuilder.deleteFeatureSettings().build(); + deleteFeatureOperationSettings = settingsBuilder.deleteFeatureOperationSettings().build(); + importFeatureValuesSettings = settingsBuilder.importFeatureValuesSettings().build(); + importFeatureValuesOperationSettings = + settingsBuilder.importFeatureValuesOperationSettings().build(); + batchReadFeatureValuesSettings = settingsBuilder.batchReadFeatureValuesSettings().build(); + batchReadFeatureValuesOperationSettings = + settingsBuilder.batchReadFeatureValuesOperationSettings().build(); + exportFeatureValuesSettings = settingsBuilder.exportFeatureValuesSettings().build(); + exportFeatureValuesOperationSettings = + settingsBuilder.exportFeatureValuesOperationSettings().build(); + searchFeaturesSettings = settingsBuilder.searchFeaturesSettings().build(); + } + + /** Builder for FeaturestoreServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createFeaturestoreSettings; + private final OperationCallSettings.Builder< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings; + private final UnaryCallSettings.Builder + getFeaturestoreSettings; + private final PagedCallSettings.Builder< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings; + private final UnaryCallSettings.Builder + updateFeaturestoreSettings; + private final OperationCallSettings.Builder< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings; + private final UnaryCallSettings.Builder + deleteFeaturestoreSettings; + private final OperationCallSettings.Builder< + DeleteFeaturestoreRequest, Empty, DeleteOperationMetadata> + deleteFeaturestoreOperationSettings; + private final UnaryCallSettings.Builder + createEntityTypeSettings; + private final OperationCallSettings.Builder< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings; + private final UnaryCallSettings.Builder getEntityTypeSettings; + private final PagedCallSettings.Builder< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings; + private final UnaryCallSettings.Builder + updateEntityTypeSettings; + private final UnaryCallSettings.Builder + deleteEntityTypeSettings; + private final OperationCallSettings.Builder< + DeleteEntityTypeRequest, Empty, DeleteOperationMetadata> + deleteEntityTypeOperationSettings; + private final UnaryCallSettings.Builder createFeatureSettings; + private final OperationCallSettings.Builder< + CreateFeatureRequest, Feature, CreateFeatureOperationMetadata> + createFeatureOperationSettings; + private final UnaryCallSettings.Builder + batchCreateFeaturesSettings; + private final OperationCallSettings.Builder< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings; + private final UnaryCallSettings.Builder getFeatureSettings; + private final PagedCallSettings.Builder< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> + listFeaturesSettings; + private final UnaryCallSettings.Builder updateFeatureSettings; + private final UnaryCallSettings.Builder deleteFeatureSettings; + private final OperationCallSettings.Builder< + DeleteFeatureRequest, Empty, DeleteOperationMetadata> + deleteFeatureOperationSettings; + private final UnaryCallSettings.Builder + importFeatureValuesSettings; + private final OperationCallSettings.Builder< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings; + private final UnaryCallSettings.Builder + batchReadFeatureValuesSettings; + private final OperationCallSettings.Builder< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings; + private final UnaryCallSettings.Builder + exportFeatureValuesSettings; + private final OperationCallSettings.Builder< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings; + private final PagedCallSettings.Builder< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_12_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_12_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFeaturestoreOperationSettings = OperationCallSettings.newBuilder(); + getFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFeaturestoresSettings = PagedCallSettings.newBuilder(LIST_FEATURESTORES_PAGE_STR_FACT); + updateFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFeaturestoreOperationSettings = OperationCallSettings.newBuilder(); + deleteFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFeaturestoreOperationSettings = OperationCallSettings.newBuilder(); + createEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEntityTypeOperationSettings = OperationCallSettings.newBuilder(); + getEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT); + updateEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteEntityTypeOperationSettings = OperationCallSettings.newBuilder(); + createFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFeatureOperationSettings = OperationCallSettings.newBuilder(); + batchCreateFeaturesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateFeaturesOperationSettings = OperationCallSettings.newBuilder(); + getFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT); + updateFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFeatureOperationSettings = OperationCallSettings.newBuilder(); + importFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); + batchReadFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchReadFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); + exportFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); + searchFeaturesSettings = PagedCallSettings.newBuilder(SEARCH_FEATURES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createFeaturestoreSettings, + getFeaturestoreSettings, + listFeaturestoresSettings, + updateFeaturestoreSettings, + deleteFeaturestoreSettings, + createEntityTypeSettings, + getEntityTypeSettings, + listEntityTypesSettings, + updateEntityTypeSettings, + deleteEntityTypeSettings, + createFeatureSettings, + batchCreateFeaturesSettings, + getFeatureSettings, + listFeaturesSettings, + updateFeatureSettings, + deleteFeatureSettings, + importFeatureValuesSettings, + batchReadFeatureValuesSettings, + exportFeatureValuesSettings, + searchFeaturesSettings); + initDefaults(this); + } + + protected Builder(FeaturestoreServiceStubSettings settings) { + super(settings); + + createFeaturestoreSettings = settings.createFeaturestoreSettings.toBuilder(); + createFeaturestoreOperationSettings = + settings.createFeaturestoreOperationSettings.toBuilder(); + getFeaturestoreSettings = settings.getFeaturestoreSettings.toBuilder(); + listFeaturestoresSettings = settings.listFeaturestoresSettings.toBuilder(); + updateFeaturestoreSettings = settings.updateFeaturestoreSettings.toBuilder(); + updateFeaturestoreOperationSettings = + settings.updateFeaturestoreOperationSettings.toBuilder(); + deleteFeaturestoreSettings = settings.deleteFeaturestoreSettings.toBuilder(); + deleteFeaturestoreOperationSettings = + settings.deleteFeaturestoreOperationSettings.toBuilder(); + createEntityTypeSettings = settings.createEntityTypeSettings.toBuilder(); + createEntityTypeOperationSettings = settings.createEntityTypeOperationSettings.toBuilder(); + getEntityTypeSettings = settings.getEntityTypeSettings.toBuilder(); + listEntityTypesSettings = settings.listEntityTypesSettings.toBuilder(); + updateEntityTypeSettings = settings.updateEntityTypeSettings.toBuilder(); + deleteEntityTypeSettings = settings.deleteEntityTypeSettings.toBuilder(); + deleteEntityTypeOperationSettings = settings.deleteEntityTypeOperationSettings.toBuilder(); + createFeatureSettings = settings.createFeatureSettings.toBuilder(); + createFeatureOperationSettings = settings.createFeatureOperationSettings.toBuilder(); + batchCreateFeaturesSettings = settings.batchCreateFeaturesSettings.toBuilder(); + batchCreateFeaturesOperationSettings = + settings.batchCreateFeaturesOperationSettings.toBuilder(); + getFeatureSettings = settings.getFeatureSettings.toBuilder(); + listFeaturesSettings = settings.listFeaturesSettings.toBuilder(); + updateFeatureSettings = settings.updateFeatureSettings.toBuilder(); + deleteFeatureSettings = settings.deleteFeatureSettings.toBuilder(); + deleteFeatureOperationSettings = settings.deleteFeatureOperationSettings.toBuilder(); + importFeatureValuesSettings = settings.importFeatureValuesSettings.toBuilder(); + importFeatureValuesOperationSettings = + settings.importFeatureValuesOperationSettings.toBuilder(); + batchReadFeatureValuesSettings = settings.batchReadFeatureValuesSettings.toBuilder(); + batchReadFeatureValuesOperationSettings = + settings.batchReadFeatureValuesOperationSettings.toBuilder(); + exportFeatureValuesSettings = settings.exportFeatureValuesSettings.toBuilder(); + exportFeatureValuesOperationSettings = + settings.exportFeatureValuesOperationSettings.toBuilder(); + searchFeaturesSettings = settings.searchFeaturesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createFeaturestoreSettings, + getFeaturestoreSettings, + listFeaturestoresSettings, + updateFeaturestoreSettings, + deleteFeaturestoreSettings, + createEntityTypeSettings, + getEntityTypeSettings, + listEntityTypesSettings, + updateEntityTypeSettings, + deleteEntityTypeSettings, + createFeatureSettings, + batchCreateFeaturesSettings, + getFeatureSettings, + listFeaturesSettings, + updateFeatureSettings, + deleteFeatureSettings, + importFeatureValuesSettings, + batchReadFeatureValuesSettings, + exportFeatureValuesSettings, + searchFeaturesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createFeaturestoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .getFeaturestoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .listFeaturestoresSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .updateFeaturestoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .deleteFeaturestoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .createEntityTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .getEntityTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .listEntityTypesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .updateEntityTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .deleteEntityTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .createFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .batchCreateFeaturesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .getFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .listFeaturesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .updateFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .deleteFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .importFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .batchReadFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .exportFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchFeaturesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")); + + builder + .createFeaturestoreOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Featurestore.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateFeaturestoreOperationMetadata.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 + .updateFeaturestoreOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Featurestore.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateFeaturestoreOperationMetadata.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 + .deleteFeaturestoreOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_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 + .createEntityTypeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(EntityType.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateEntityTypeOperationMetadata.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 + .deleteEntityTypeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_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 + .createFeatureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateFeatureOperationMetadata.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 + .batchCreateFeaturesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchCreateFeaturesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchCreateFeaturesOperationMetadata.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 + .deleteFeatureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_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 + .importFeatureValuesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportFeatureValuesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportFeatureValuesOperationMetadata.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 + .batchReadFeatureValuesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchReadFeatureValuesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchReadFeatureValuesOperationMetadata.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 + .exportFeatureValuesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportFeatureValuesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ExportFeatureValuesOperationMetadata.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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createFeaturestore. */ + public UnaryCallSettings.Builder + createFeaturestoreSettings() { + return createFeaturestoreSettings; + } + + /** Returns the builder for the settings used for calls to createFeaturestore. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationSettings() { + return createFeaturestoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to getFeaturestore. */ + public UnaryCallSettings.Builder + getFeaturestoreSettings() { + return getFeaturestoreSettings; + } + + /** Returns the builder for the settings used for calls to listFeaturestores. */ + public PagedCallSettings.Builder< + ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse> + listFeaturestoresSettings() { + return listFeaturestoresSettings; + } + + /** Returns the builder for the settings used for calls to updateFeaturestore. */ + public UnaryCallSettings.Builder + updateFeaturestoreSettings() { + return updateFeaturestoreSettings; + } + + /** Returns the builder for the settings used for calls to updateFeaturestore. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationSettings() { + return updateFeaturestoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFeaturestore. */ + public UnaryCallSettings.Builder + deleteFeaturestoreSettings() { + return deleteFeaturestoreSettings; + } + + /** Returns the builder for the settings used for calls to deleteFeaturestore. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteFeaturestoreOperationSettings() { + return deleteFeaturestoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to createEntityType. */ + public UnaryCallSettings.Builder + createEntityTypeSettings() { + return createEntityTypeSettings; + } + + /** Returns the builder for the settings used for calls to createEntityType. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationSettings() { + return createEntityTypeOperationSettings; + } + + /** Returns the builder for the settings used for calls to getEntityType. */ + public UnaryCallSettings.Builder getEntityTypeSettings() { + return getEntityTypeSettings; + } + + /** Returns the builder for the settings used for calls to listEntityTypes. */ + public PagedCallSettings.Builder< + ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> + listEntityTypesSettings() { + return listEntityTypesSettings; + } + + /** Returns the builder for the settings used for calls to updateEntityType. */ + public UnaryCallSettings.Builder + updateEntityTypeSettings() { + return updateEntityTypeSettings; + } + + /** Returns the builder for the settings used for calls to deleteEntityType. */ + public UnaryCallSettings.Builder + deleteEntityTypeSettings() { + return deleteEntityTypeSettings; + } + + /** Returns the builder for the settings used for calls to deleteEntityType. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteEntityTypeOperationSettings() { + return deleteEntityTypeOperationSettings; + } + + /** Returns the builder for the settings used for calls to createFeature. */ + public UnaryCallSettings.Builder createFeatureSettings() { + return createFeatureSettings; + } + + /** Returns the builder for the settings used for calls to createFeature. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateFeatureRequest, Feature, CreateFeatureOperationMetadata> + createFeatureOperationSettings() { + return createFeatureOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateFeatures. */ + public UnaryCallSettings.Builder + batchCreateFeaturesSettings() { + return batchCreateFeaturesSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateFeatures. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationSettings() { + return batchCreateFeaturesOperationSettings; + } + + /** Returns the builder for the settings used for calls to getFeature. */ + public UnaryCallSettings.Builder getFeatureSettings() { + return getFeatureSettings; + } + + /** Returns the builder for the settings used for calls to listFeatures. */ + public PagedCallSettings.Builder< + ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> + listFeaturesSettings() { + return listFeaturesSettings; + } + + /** Returns the builder for the settings used for calls to updateFeature. */ + public UnaryCallSettings.Builder updateFeatureSettings() { + return updateFeatureSettings; + } + + /** Returns the builder for the settings used for calls to deleteFeature. */ + public UnaryCallSettings.Builder deleteFeatureSettings() { + return deleteFeatureSettings; + } + + /** Returns the builder for the settings used for calls to deleteFeature. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteFeatureOperationSettings() { + return deleteFeatureOperationSettings; + } + + /** Returns the builder for the settings used for calls to importFeatureValues. */ + public UnaryCallSettings.Builder + importFeatureValuesSettings() { + return importFeatureValuesSettings; + } + + /** Returns the builder for the settings used for calls to importFeatureValues. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationSettings() { + return importFeatureValuesOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchReadFeatureValues. */ + public UnaryCallSettings.Builder + batchReadFeatureValuesSettings() { + return batchReadFeatureValuesSettings; + } + + /** Returns the builder for the settings used for calls to batchReadFeatureValues. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationSettings() { + return batchReadFeatureValuesOperationSettings; + } + + /** Returns the builder for the settings used for calls to exportFeatureValues. */ + public UnaryCallSettings.Builder + exportFeatureValuesSettings() { + return exportFeatureValuesSettings; + } + + /** Returns the builder for the settings used for calls to exportFeatureValues. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationSettings() { + return exportFeatureValuesOperationSettings; + } + + /** Returns the builder for the settings used for calls to searchFeatures. */ + public PagedCallSettings.Builder< + SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> + searchFeaturesSettings() { + return searchFeaturesSettings; + } + + @Override + public FeaturestoreServiceStubSettings build() throws IOException { + return new FeaturestoreServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java index 131004953..9124c6939 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 a7b221de8..d4e857391 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java index 1433e3b21..24ec335a0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 b72344e8d..a3b19e874 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java new file mode 100644 index 000000000..c79df64da --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java @@ -0,0 +1,116 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FeaturestoreOnlineServingService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcFeaturestoreOnlineServingServiceCallableFactory + implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..c400345e2 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java @@ -0,0 +1,219 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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; +import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FeaturestoreOnlineServingService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcFeaturestoreOnlineServingServiceStub extends FeaturestoreOnlineServingServiceStub { + private static final MethodDescriptor + readFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService/ReadFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(ReadFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadFeatureValuesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService/StreamingReadFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamingReadFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadFeatureValuesResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + readFeatureValuesCallable; + private final ServerStreamingCallable< + StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> + streamingReadFeatureValuesCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFeaturestoreOnlineServingServiceStub create( + FeaturestoreOnlineServingServiceStubSettings settings) throws IOException { + return new GrpcFeaturestoreOnlineServingServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFeaturestoreOnlineServingServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcFeaturestoreOnlineServingServiceStub( + FeaturestoreOnlineServingServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFeaturestoreOnlineServingServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFeaturestoreOnlineServingServiceStub( + FeaturestoreOnlineServingServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcFeaturestoreOnlineServingServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcFeaturestoreOnlineServingServiceStub( + FeaturestoreOnlineServingServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcFeaturestoreOnlineServingServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcFeaturestoreOnlineServingServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcFeaturestoreOnlineServingServiceStub( + FeaturestoreOnlineServingServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + readFeatureValuesTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + streamingReadFeatureValuesTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + + this.readFeatureValuesCallable = + callableFactory.createUnaryCallable( + readFeatureValuesTransportSettings, + settings.readFeatureValuesSettings(), + clientContext); + this.streamingReadFeatureValuesCallable = + callableFactory.createServerStreamingCallable( + streamingReadFeatureValuesTransportSettings, + settings.streamingReadFeatureValuesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + readFeatureValuesCallable() { + return readFeatureValuesCallable; + } + + @Override + public ServerStreamingCallable + streamingReadFeatureValuesCallable() { + return streamingReadFeatureValuesCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java new file mode 100644 index 000000000..fafc3a3bb --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FeaturestoreService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcFeaturestoreServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..d106809e7 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java @@ -0,0 +1,1090 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.EntityType; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.Feature; +import com.google.cloud.aiplatform.v1beta1.Featurestore; +import com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; +import com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; +import com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FeaturestoreService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub { + private static final MethodDescriptor + createFeaturestoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateFeaturestore") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFeaturestoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getFeaturestoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/GetFeaturestore") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFeaturestoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Featurestore.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listFeaturestoresMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/ListFeaturestores") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFeaturestoresRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFeaturestoresResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateFeaturestoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateFeaturestore") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFeaturestoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFeaturestoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeaturestore") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFeaturestoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEntityTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateEntityType") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getEntityTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/GetEntityType") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EntityType.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEntityTypesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/ListEntityTypes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEntityTypesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEntityTypesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateEntityTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateEntityType") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EntityType.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteEntityTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteEntityType") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createFeatureMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateFeature") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchCreateFeaturesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/BatchCreateFeatures") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCreateFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getFeatureMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.FeaturestoreService/GetFeature") + .setRequestMarshaller(ProtoUtils.marshaller(GetFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Feature.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listFeaturesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.FeaturestoreService/ListFeatures") + .setRequestMarshaller(ProtoUtils.marshaller(ListFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFeaturesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateFeatureMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateFeature") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Feature.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFeatureMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeature") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/ImportFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchReadFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/BatchReadFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchReadFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + exportFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/ExportFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + searchFeaturesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/SearchFeatures") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchFeaturesResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createFeaturestoreCallable; + private final OperationCallable< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationCallable; + private final UnaryCallable getFeaturestoreCallable; + private final UnaryCallable + listFeaturestoresCallable; + private final UnaryCallable + listFeaturestoresPagedCallable; + private final UnaryCallable updateFeaturestoreCallable; + private final OperationCallable< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationCallable; + private final UnaryCallable deleteFeaturestoreCallable; + private final OperationCallable + deleteFeaturestoreOperationCallable; + private final UnaryCallable createEntityTypeCallable; + private final OperationCallable< + CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata> + createEntityTypeOperationCallable; + private final UnaryCallable getEntityTypeCallable; + private final UnaryCallable + listEntityTypesCallable; + private final UnaryCallable + listEntityTypesPagedCallable; + private final UnaryCallable updateEntityTypeCallable; + private final UnaryCallable deleteEntityTypeCallable; + private final OperationCallable + deleteEntityTypeOperationCallable; + private final UnaryCallable createFeatureCallable; + private final OperationCallable + createFeatureOperationCallable; + private final UnaryCallable batchCreateFeaturesCallable; + private final OperationCallable< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationCallable; + private final UnaryCallable getFeatureCallable; + private final UnaryCallable listFeaturesCallable; + private final UnaryCallable + listFeaturesPagedCallable; + private final UnaryCallable updateFeatureCallable; + private final UnaryCallable deleteFeatureCallable; + private final OperationCallable + deleteFeatureOperationCallable; + private final UnaryCallable importFeatureValuesCallable; + private final OperationCallable< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationCallable; + private final UnaryCallable + batchReadFeatureValuesCallable; + private final OperationCallable< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationCallable; + private final UnaryCallable exportFeatureValuesCallable; + private final OperationCallable< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationCallable; + private final UnaryCallable searchFeaturesCallable; + private final UnaryCallable + searchFeaturesPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFeaturestoreServiceStub create(FeaturestoreServiceStubSettings settings) + throws IOException { + return new GrpcFeaturestoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFeaturestoreServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcFeaturestoreServiceStub( + FeaturestoreServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFeaturestoreServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFeaturestoreServiceStub( + FeaturestoreServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcFeaturestoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcFeaturestoreServiceStub( + FeaturestoreServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcFeaturestoreServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcFeaturestoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcFeaturestoreServiceStub( + FeaturestoreServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createFeaturestoreTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listFeaturestoresTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listEntityTypesTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + batchReadFeatureValuesTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + searchFeaturesTransportSettings = + 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(); + } + }) + .build(); + + this.createFeaturestoreCallable = + callableFactory.createUnaryCallable( + createFeaturestoreTransportSettings, + settings.createFeaturestoreSettings(), + clientContext); + this.createFeaturestoreOperationCallable = + callableFactory.createOperationCallable( + createFeaturestoreTransportSettings, + settings.createFeaturestoreOperationSettings(), + clientContext, + operationsStub); + this.getFeaturestoreCallable = + callableFactory.createUnaryCallable( + getFeaturestoreTransportSettings, settings.getFeaturestoreSettings(), clientContext); + this.listFeaturestoresCallable = + callableFactory.createUnaryCallable( + listFeaturestoresTransportSettings, + settings.listFeaturestoresSettings(), + clientContext); + this.listFeaturestoresPagedCallable = + callableFactory.createPagedCallable( + listFeaturestoresTransportSettings, + settings.listFeaturestoresSettings(), + clientContext); + this.updateFeaturestoreCallable = + callableFactory.createUnaryCallable( + updateFeaturestoreTransportSettings, + settings.updateFeaturestoreSettings(), + clientContext); + this.updateFeaturestoreOperationCallable = + callableFactory.createOperationCallable( + updateFeaturestoreTransportSettings, + settings.updateFeaturestoreOperationSettings(), + clientContext, + operationsStub); + this.deleteFeaturestoreCallable = + callableFactory.createUnaryCallable( + deleteFeaturestoreTransportSettings, + settings.deleteFeaturestoreSettings(), + clientContext); + this.deleteFeaturestoreOperationCallable = + callableFactory.createOperationCallable( + deleteFeaturestoreTransportSettings, + settings.deleteFeaturestoreOperationSettings(), + clientContext, + operationsStub); + this.createEntityTypeCallable = + callableFactory.createUnaryCallable( + createEntityTypeTransportSettings, settings.createEntityTypeSettings(), clientContext); + this.createEntityTypeOperationCallable = + callableFactory.createOperationCallable( + createEntityTypeTransportSettings, + settings.createEntityTypeOperationSettings(), + clientContext, + operationsStub); + this.getEntityTypeCallable = + callableFactory.createUnaryCallable( + getEntityTypeTransportSettings, settings.getEntityTypeSettings(), clientContext); + this.listEntityTypesCallable = + callableFactory.createUnaryCallable( + listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext); + this.listEntityTypesPagedCallable = + callableFactory.createPagedCallable( + listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext); + this.updateEntityTypeCallable = + callableFactory.createUnaryCallable( + updateEntityTypeTransportSettings, settings.updateEntityTypeSettings(), clientContext); + this.deleteEntityTypeCallable = + callableFactory.createUnaryCallable( + deleteEntityTypeTransportSettings, settings.deleteEntityTypeSettings(), clientContext); + this.deleteEntityTypeOperationCallable = + callableFactory.createOperationCallable( + deleteEntityTypeTransportSettings, + settings.deleteEntityTypeOperationSettings(), + clientContext, + operationsStub); + this.createFeatureCallable = + callableFactory.createUnaryCallable( + createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); + this.createFeatureOperationCallable = + callableFactory.createOperationCallable( + createFeatureTransportSettings, + settings.createFeatureOperationSettings(), + clientContext, + operationsStub); + this.batchCreateFeaturesCallable = + callableFactory.createUnaryCallable( + batchCreateFeaturesTransportSettings, + settings.batchCreateFeaturesSettings(), + clientContext); + this.batchCreateFeaturesOperationCallable = + callableFactory.createOperationCallable( + batchCreateFeaturesTransportSettings, + settings.batchCreateFeaturesOperationSettings(), + clientContext, + operationsStub); + this.getFeatureCallable = + callableFactory.createUnaryCallable( + getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); + this.listFeaturesCallable = + callableFactory.createUnaryCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.listFeaturesPagedCallable = + callableFactory.createPagedCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.updateFeatureCallable = + callableFactory.createUnaryCallable( + updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); + this.deleteFeatureCallable = + callableFactory.createUnaryCallable( + deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); + this.deleteFeatureOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureTransportSettings, + settings.deleteFeatureOperationSettings(), + clientContext, + operationsStub); + this.importFeatureValuesCallable = + callableFactory.createUnaryCallable( + importFeatureValuesTransportSettings, + settings.importFeatureValuesSettings(), + clientContext); + this.importFeatureValuesOperationCallable = + callableFactory.createOperationCallable( + importFeatureValuesTransportSettings, + settings.importFeatureValuesOperationSettings(), + clientContext, + operationsStub); + this.batchReadFeatureValuesCallable = + callableFactory.createUnaryCallable( + batchReadFeatureValuesTransportSettings, + settings.batchReadFeatureValuesSettings(), + clientContext); + this.batchReadFeatureValuesOperationCallable = + callableFactory.createOperationCallable( + batchReadFeatureValuesTransportSettings, + settings.batchReadFeatureValuesOperationSettings(), + clientContext, + operationsStub); + this.exportFeatureValuesCallable = + callableFactory.createUnaryCallable( + exportFeatureValuesTransportSettings, + settings.exportFeatureValuesSettings(), + clientContext); + this.exportFeatureValuesOperationCallable = + callableFactory.createOperationCallable( + exportFeatureValuesTransportSettings, + settings.exportFeatureValuesOperationSettings(), + clientContext, + operationsStub); + this.searchFeaturesCallable = + callableFactory.createUnaryCallable( + searchFeaturesTransportSettings, settings.searchFeaturesSettings(), clientContext); + this.searchFeaturesPagedCallable = + callableFactory.createPagedCallable( + searchFeaturesTransportSettings, settings.searchFeaturesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createFeaturestoreCallable() { + return createFeaturestoreCallable; + } + + @Override + public OperationCallable< + CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata> + createFeaturestoreOperationCallable() { + return createFeaturestoreOperationCallable; + } + + @Override + public UnaryCallable getFeaturestoreCallable() { + return getFeaturestoreCallable; + } + + @Override + public UnaryCallable + listFeaturestoresCallable() { + return listFeaturestoresCallable; + } + + @Override + public UnaryCallable + listFeaturestoresPagedCallable() { + return listFeaturestoresPagedCallable; + } + + @Override + public UnaryCallable updateFeaturestoreCallable() { + return updateFeaturestoreCallable; + } + + @Override + public OperationCallable< + UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata> + updateFeaturestoreOperationCallable() { + return updateFeaturestoreOperationCallable; + } + + @Override + public UnaryCallable deleteFeaturestoreCallable() { + return deleteFeaturestoreCallable; + } + + @Override + public OperationCallable + deleteFeaturestoreOperationCallable() { + return deleteFeaturestoreOperationCallable; + } + + @Override + public UnaryCallable createEntityTypeCallable() { + return createEntityTypeCallable; + } + + @Override + public OperationCallable + createEntityTypeOperationCallable() { + return createEntityTypeOperationCallable; + } + + @Override + public UnaryCallable getEntityTypeCallable() { + return getEntityTypeCallable; + } + + @Override + public UnaryCallable listEntityTypesCallable() { + return listEntityTypesCallable; + } + + @Override + public UnaryCallable + listEntityTypesPagedCallable() { + return listEntityTypesPagedCallable; + } + + @Override + public UnaryCallable updateEntityTypeCallable() { + return updateEntityTypeCallable; + } + + @Override + public UnaryCallable deleteEntityTypeCallable() { + return deleteEntityTypeCallable; + } + + @Override + public OperationCallable + deleteEntityTypeOperationCallable() { + return deleteEntityTypeOperationCallable; + } + + @Override + public UnaryCallable createFeatureCallable() { + return createFeatureCallable; + } + + @Override + public OperationCallable + createFeatureOperationCallable() { + return createFeatureOperationCallable; + } + + @Override + public UnaryCallable batchCreateFeaturesCallable() { + return batchCreateFeaturesCallable; + } + + @Override + public OperationCallable< + BatchCreateFeaturesRequest, + BatchCreateFeaturesResponse, + BatchCreateFeaturesOperationMetadata> + batchCreateFeaturesOperationCallable() { + return batchCreateFeaturesOperationCallable; + } + + @Override + public UnaryCallable getFeatureCallable() { + return getFeatureCallable; + } + + @Override + public UnaryCallable listFeaturesCallable() { + return listFeaturesCallable; + } + + @Override + public UnaryCallable listFeaturesPagedCallable() { + return listFeaturesPagedCallable; + } + + @Override + public UnaryCallable updateFeatureCallable() { + return updateFeatureCallable; + } + + @Override + public UnaryCallable deleteFeatureCallable() { + return deleteFeatureCallable; + } + + @Override + public OperationCallable + deleteFeatureOperationCallable() { + return deleteFeatureOperationCallable; + } + + @Override + public UnaryCallable importFeatureValuesCallable() { + return importFeatureValuesCallable; + } + + @Override + public OperationCallable< + ImportFeatureValuesRequest, + ImportFeatureValuesResponse, + ImportFeatureValuesOperationMetadata> + importFeatureValuesOperationCallable() { + return importFeatureValuesOperationCallable; + } + + @Override + public UnaryCallable batchReadFeatureValuesCallable() { + return batchReadFeatureValuesCallable; + } + + @Override + public OperationCallable< + BatchReadFeatureValuesRequest, + BatchReadFeatureValuesResponse, + BatchReadFeatureValuesOperationMetadata> + batchReadFeatureValuesOperationCallable() { + return batchReadFeatureValuesOperationCallable; + } + + @Override + public UnaryCallable exportFeatureValuesCallable() { + return exportFeatureValuesCallable; + } + + @Override + public OperationCallable< + ExportFeatureValuesRequest, + ExportFeatureValuesResponse, + ExportFeatureValuesOperationMetadata> + exportFeatureValuesOperationCallable() { + return exportFeatureValuesOperationCallable; + } + + @Override + public UnaryCallable searchFeaturesCallable() { + return searchFeaturesCallable; + } + + @Override + public UnaryCallable + searchFeaturesPagedCallable() { + return searchFeaturesPagedCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java new file mode 100644 index 000000000..b8c0b074c --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the IndexEndpointService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIndexEndpointServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..7f66ae607 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java @@ -0,0 +1,467 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.IndexEndpoint; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the IndexEndpointService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIndexEndpointServiceStub extends IndexEndpointServiceStub { + private static final MethodDescriptor + createIndexEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/CreateIndexEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateIndexEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getIndexEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/GetIndexEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(GetIndexEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IndexEndpoint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listIndexEndpointsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/ListIndexEndpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListIndexEndpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIndexEndpointsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateIndexEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/UpdateIndexEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateIndexEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IndexEndpoint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteIndexEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/DeleteIndexEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteIndexEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deployIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexEndpointService/DeployIndex") + .setRequestMarshaller(ProtoUtils.marshaller(DeployIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + undeployIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.IndexEndpointService/UndeployIndex") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeployIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable createIndexEndpointCallable; + private final OperationCallable< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationCallable; + private final UnaryCallable getIndexEndpointCallable; + private final UnaryCallable + listIndexEndpointsCallable; + private final UnaryCallable + listIndexEndpointsPagedCallable; + private final UnaryCallable + updateIndexEndpointCallable; + private final UnaryCallable deleteIndexEndpointCallable; + private final OperationCallable + deleteIndexEndpointOperationCallable; + private final UnaryCallable deployIndexCallable; + private final OperationCallable< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationCallable; + private final UnaryCallable undeployIndexCallable; + private final OperationCallable< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcIndexEndpointServiceStub create(IndexEndpointServiceStubSettings settings) + throws IOException { + return new GrpcIndexEndpointServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcIndexEndpointServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcIndexEndpointServiceStub( + IndexEndpointServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcIndexEndpointServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcIndexEndpointServiceStub( + IndexEndpointServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcIndexEndpointServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIndexEndpointServiceStub( + IndexEndpointServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcIndexEndpointServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcIndexEndpointServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIndexEndpointServiceStub( + IndexEndpointServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createIndexEndpointTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listIndexEndpointsTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + updateIndexEndpointTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + + this.createIndexEndpointCallable = + callableFactory.createUnaryCallable( + createIndexEndpointTransportSettings, + settings.createIndexEndpointSettings(), + clientContext); + this.createIndexEndpointOperationCallable = + callableFactory.createOperationCallable( + createIndexEndpointTransportSettings, + settings.createIndexEndpointOperationSettings(), + clientContext, + operationsStub); + this.getIndexEndpointCallable = + callableFactory.createUnaryCallable( + getIndexEndpointTransportSettings, settings.getIndexEndpointSettings(), clientContext); + this.listIndexEndpointsCallable = + callableFactory.createUnaryCallable( + listIndexEndpointsTransportSettings, + settings.listIndexEndpointsSettings(), + clientContext); + this.listIndexEndpointsPagedCallable = + callableFactory.createPagedCallable( + listIndexEndpointsTransportSettings, + settings.listIndexEndpointsSettings(), + clientContext); + this.updateIndexEndpointCallable = + callableFactory.createUnaryCallable( + updateIndexEndpointTransportSettings, + settings.updateIndexEndpointSettings(), + clientContext); + this.deleteIndexEndpointCallable = + callableFactory.createUnaryCallable( + deleteIndexEndpointTransportSettings, + settings.deleteIndexEndpointSettings(), + clientContext); + this.deleteIndexEndpointOperationCallable = + callableFactory.createOperationCallable( + deleteIndexEndpointTransportSettings, + settings.deleteIndexEndpointOperationSettings(), + clientContext, + operationsStub); + this.deployIndexCallable = + callableFactory.createUnaryCallable( + deployIndexTransportSettings, settings.deployIndexSettings(), clientContext); + this.deployIndexOperationCallable = + callableFactory.createOperationCallable( + deployIndexTransportSettings, + settings.deployIndexOperationSettings(), + clientContext, + operationsStub); + this.undeployIndexCallable = + callableFactory.createUnaryCallable( + undeployIndexTransportSettings, settings.undeployIndexSettings(), clientContext); + this.undeployIndexOperationCallable = + callableFactory.createOperationCallable( + undeployIndexTransportSettings, + settings.undeployIndexOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createIndexEndpointCallable() { + return createIndexEndpointCallable; + } + + @Override + public OperationCallable< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationCallable() { + return createIndexEndpointOperationCallable; + } + + @Override + public UnaryCallable getIndexEndpointCallable() { + return getIndexEndpointCallable; + } + + @Override + public UnaryCallable + listIndexEndpointsCallable() { + return listIndexEndpointsCallable; + } + + @Override + public UnaryCallable + listIndexEndpointsPagedCallable() { + return listIndexEndpointsPagedCallable; + } + + @Override + public UnaryCallable updateIndexEndpointCallable() { + return updateIndexEndpointCallable; + } + + @Override + public UnaryCallable deleteIndexEndpointCallable() { + return deleteIndexEndpointCallable; + } + + @Override + public OperationCallable + deleteIndexEndpointOperationCallable() { + return deleteIndexEndpointOperationCallable; + } + + @Override + public UnaryCallable deployIndexCallable() { + return deployIndexCallable; + } + + @Override + public OperationCallable + deployIndexOperationCallable() { + return deployIndexOperationCallable; + } + + @Override + public UnaryCallable undeployIndexCallable() { + return undeployIndexCallable; + } + + @Override + public OperationCallable< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationCallable() { + return undeployIndexOperationCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java new file mode 100644 index 000000000..0d7070e1d --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the IndexService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIndexServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..1a93c0875 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java @@ -0,0 +1,346 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.GetIndexRequest; +import com.google.cloud.aiplatform.v1beta1.Index; +import com.google.cloud.aiplatform.v1beta1.ListIndexesRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the IndexService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIndexServiceStub extends IndexServiceStub { + private static final MethodDescriptor createIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexService/CreateIndex") + .setRequestMarshaller(ProtoUtils.marshaller(CreateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexService/GetIndex") + .setRequestMarshaller(ProtoUtils.marshaller(GetIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Index.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listIndexesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexService/ListIndexes") + .setRequestMarshaller(ProtoUtils.marshaller(ListIndexesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIndexesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexService/UpdateIndex") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteIndexMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.IndexService/DeleteIndex") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteIndexRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable createIndexCallable; + private final OperationCallable + createIndexOperationCallable; + private final UnaryCallable getIndexCallable; + private final UnaryCallable listIndexesCallable; + private final UnaryCallable + listIndexesPagedCallable; + private final UnaryCallable updateIndexCallable; + private final OperationCallable + updateIndexOperationCallable; + private final UnaryCallable deleteIndexCallable; + private final OperationCallable + deleteIndexOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcIndexServiceStub create(IndexServiceStubSettings settings) + throws IOException { + return new GrpcIndexServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcIndexServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcIndexServiceStub(IndexServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcIndexServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcIndexServiceStub( + IndexServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcIndexServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcIndexServiceStub(IndexServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcIndexServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcIndexServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcIndexServiceStub( + IndexServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createIndexTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + + this.createIndexCallable = + callableFactory.createUnaryCallable( + createIndexTransportSettings, settings.createIndexSettings(), clientContext); + this.createIndexOperationCallable = + callableFactory.createOperationCallable( + createIndexTransportSettings, + settings.createIndexOperationSettings(), + clientContext, + operationsStub); + this.getIndexCallable = + callableFactory.createUnaryCallable( + getIndexTransportSettings, settings.getIndexSettings(), clientContext); + this.listIndexesCallable = + callableFactory.createUnaryCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.listIndexesPagedCallable = + callableFactory.createPagedCallable( + listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); + this.updateIndexCallable = + callableFactory.createUnaryCallable( + updateIndexTransportSettings, settings.updateIndexSettings(), clientContext); + this.updateIndexOperationCallable = + callableFactory.createOperationCallable( + updateIndexTransportSettings, + settings.updateIndexOperationSettings(), + clientContext, + operationsStub); + this.deleteIndexCallable = + callableFactory.createUnaryCallable( + deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); + this.deleteIndexOperationCallable = + callableFactory.createOperationCallable( + deleteIndexTransportSettings, + settings.deleteIndexOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createIndexCallable() { + return createIndexCallable; + } + + @Override + public OperationCallable + createIndexOperationCallable() { + return createIndexOperationCallable; + } + + @Override + public UnaryCallable getIndexCallable() { + return getIndexCallable; + } + + @Override + public UnaryCallable listIndexesCallable() { + return listIndexesCallable; + } + + @Override + public UnaryCallable listIndexesPagedCallable() { + return listIndexesPagedCallable; + } + + @Override + public UnaryCallable updateIndexCallable() { + return updateIndexCallable; + } + + @Override + public OperationCallable + updateIndexOperationCallable() { + return updateIndexOperationCallable; + } + + @Override + public UnaryCallable deleteIndexCallable() { + return deleteIndexCallable; + } + + @Override + public OperationCallable + deleteIndexOperationCallable() { + return deleteIndexOperationCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java index 6d7e9dbde..6ffaa7d11 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 def0c8d7f..506812fdf 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -20,6 +20,8 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -39,17 +41,20 @@ import com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.CustomJob; import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; import com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; @@ -59,6 +64,15 @@ import com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; +import com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -300,6 +314,120 @@ public class GrpcJobServiceStub extends JobServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/CreateModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ModelDeploymentMonitoringJob.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/SearchModelDeploymentMonitoringStatsAnomalies") + .setRequestMarshaller( + ProtoUtils.marshaller( + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/GetModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ModelDeploymentMonitoringJob.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/ListModelDeploymentMonitoringJobs") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListModelDeploymentMonitoringJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListModelDeploymentMonitoringJobsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/UpdateModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/DeleteModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + pauseModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/PauseModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + PauseModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + resumeModelDeploymentMonitoringJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.JobService/ResumeModelDeploymentMonitoringJob") + .setRequestMarshaller( + ProtoUtils.marshaller( + ResumeModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable createCustomJobCallable; private final UnaryCallable getCustomJobCallable; private final UnaryCallable listCustomJobsCallable; @@ -353,6 +481,41 @@ public class GrpcJobServiceStub extends JobServiceStub { deleteBatchPredictionJobOperationCallable; private final UnaryCallable cancelBatchPredictionJobCallable; + private final UnaryCallable< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobCallable; + private final UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesCallable; + private final UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesPagedCallable; + private final UnaryCallable + getModelDeploymentMonitoringJobCallable; + private final UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsCallable; + private final UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsPagedCallable; + private final UnaryCallable + updateModelDeploymentMonitoringJobCallable; + private final OperationCallable< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationCallable; + private final UnaryCallable + deleteModelDeploymentMonitoringJobCallable; + private final OperationCallable< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationCallable; + private final UnaryCallable + pauseModelDeploymentMonitoringJobCallable; + private final UnaryCallable + resumeModelDeploymentMonitoringJobCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -681,6 +844,143 @@ public Map extract(CancelBatchPredictionJobRequest request) { } }) .build(); + GrpcCallSettings + createModelDeploymentMonitoringJobTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + GrpcCallSettings< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + GrpcCallSettings + getModelDeploymentMonitoringJobTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + GrpcCallSettings< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + GrpcCallSettings + updateModelDeploymentMonitoringJobTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + deleteModelDeploymentMonitoringJobTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + pauseModelDeploymentMonitoringJobTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + resumeModelDeploymentMonitoringJobTransportSettings = + 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(); + } + }) + .build(); this.createCustomJobCallable = callableFactory.createUnaryCallable( @@ -814,6 +1114,68 @@ public Map extract(CancelBatchPredictionJobRequest request) { cancelBatchPredictionJobTransportSettings, settings.cancelBatchPredictionJobSettings(), clientContext); + this.createModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + createModelDeploymentMonitoringJobTransportSettings, + settings.createModelDeploymentMonitoringJobSettings(), + clientContext); + this.searchModelDeploymentMonitoringStatsAnomaliesCallable = + callableFactory.createUnaryCallable( + searchModelDeploymentMonitoringStatsAnomaliesTransportSettings, + settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(), + clientContext); + this.searchModelDeploymentMonitoringStatsAnomaliesPagedCallable = + callableFactory.createPagedCallable( + searchModelDeploymentMonitoringStatsAnomaliesTransportSettings, + settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(), + clientContext); + this.getModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + getModelDeploymentMonitoringJobTransportSettings, + settings.getModelDeploymentMonitoringJobSettings(), + clientContext); + this.listModelDeploymentMonitoringJobsCallable = + callableFactory.createUnaryCallable( + listModelDeploymentMonitoringJobsTransportSettings, + settings.listModelDeploymentMonitoringJobsSettings(), + clientContext); + this.listModelDeploymentMonitoringJobsPagedCallable = + callableFactory.createPagedCallable( + listModelDeploymentMonitoringJobsTransportSettings, + settings.listModelDeploymentMonitoringJobsSettings(), + clientContext); + this.updateModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + updateModelDeploymentMonitoringJobTransportSettings, + settings.updateModelDeploymentMonitoringJobSettings(), + clientContext); + this.updateModelDeploymentMonitoringJobOperationCallable = + callableFactory.createOperationCallable( + updateModelDeploymentMonitoringJobTransportSettings, + settings.updateModelDeploymentMonitoringJobOperationSettings(), + clientContext, + operationsStub); + this.deleteModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + deleteModelDeploymentMonitoringJobTransportSettings, + settings.deleteModelDeploymentMonitoringJobSettings(), + clientContext); + this.deleteModelDeploymentMonitoringJobOperationCallable = + callableFactory.createOperationCallable( + deleteModelDeploymentMonitoringJobTransportSettings, + settings.deleteModelDeploymentMonitoringJobOperationSettings(), + clientContext, + operationsStub); + this.pauseModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + pauseModelDeploymentMonitoringJobTransportSettings, + settings.pauseModelDeploymentMonitoringJobSettings(), + clientContext); + this.resumeModelDeploymentMonitoringJobCallable = + callableFactory.createUnaryCallable( + resumeModelDeploymentMonitoringJobTransportSettings, + settings.resumeModelDeploymentMonitoringJobSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -983,6 +1345,88 @@ public UnaryCallable cancelBatchPredicti return cancelBatchPredictionJobCallable; } + @Override + public UnaryCallable + createModelDeploymentMonitoringJobCallable() { + return createModelDeploymentMonitoringJobCallable; + } + + @Override + public UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesCallable() { + return searchModelDeploymentMonitoringStatsAnomaliesCallable; + } + + @Override + public UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesPagedCallable() { + return searchModelDeploymentMonitoringStatsAnomaliesPagedCallable; + } + + @Override + public UnaryCallable + getModelDeploymentMonitoringJobCallable() { + return getModelDeploymentMonitoringJobCallable; + } + + @Override + public UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsCallable() { + return listModelDeploymentMonitoringJobsCallable; + } + + @Override + public UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsPagedCallable() { + return listModelDeploymentMonitoringJobsPagedCallable; + } + + @Override + public UnaryCallable + updateModelDeploymentMonitoringJobCallable() { + return updateModelDeploymentMonitoringJobCallable; + } + + @Override + public OperationCallable< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationCallable() { + return updateModelDeploymentMonitoringJobOperationCallable; + } + + @Override + public UnaryCallable + deleteModelDeploymentMonitoringJobCallable() { + return deleteModelDeploymentMonitoringJobCallable; + } + + @Override + public OperationCallable< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationCallable() { + return deleteModelDeploymentMonitoringJobOperationCallable; + } + + @Override + public UnaryCallable + pauseModelDeploymentMonitoringJobCallable() { + return pauseModelDeploymentMonitoringJobCallable; + } + + @Override + public UnaryCallable + resumeModelDeploymentMonitoringJobCallable() { + return resumeModelDeploymentMonitoringJobCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java new file mode 100644 index 000000000..8dcb6aa4a --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the MetadataService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcMetadataServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..2dccee00c --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java @@ -0,0 +1,1195 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; +import com.google.cloud.aiplatform.v1beta1.Artifact; +import com.google.cloud.aiplatform.v1beta1.Context; +import com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.CreateContextRequest; +import com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest; +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.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.Execution; +import com.google.cloud.aiplatform.v1beta1.GetArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.GetContextRequest; +import com.google.cloud.aiplatform.v1beta1.GetExecutionRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.LineageSubgraph; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.ListContextsRequest; +import com.google.cloud.aiplatform.v1beta1.ListContextsResponse; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; +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.QueryArtifactLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the MetadataService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcMetadataServiceStub extends MetadataServiceStub { + private static final MethodDescriptor + createMetadataStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/CreateMetadataStore") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMetadataStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getMetadataStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetMetadataStore") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMetadataStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MetadataStore.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listMetadataStoresMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/ListMetadataStores") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMetadataStoresRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMetadataStoresResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteMetadataStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/DeleteMetadataStore") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMetadataStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createArtifactMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateArtifact") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateArtifactRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getArtifactMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetArtifact") + .setRequestMarshaller(ProtoUtils.marshaller(GetArtifactRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listArtifactsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListArtifacts") + .setRequestMarshaller( + ProtoUtils.marshaller(ListArtifactsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListArtifactsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateArtifactMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateArtifact") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateArtifactRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createContextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateContext") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateContextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getContextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetContext") + .setRequestMarshaller(ProtoUtils.marshaller(GetContextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listContextsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListContexts") + .setRequestMarshaller(ProtoUtils.marshaller(ListContextsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListContextsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateContextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateContext") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateContextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteContextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteContext") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteContextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/AddContextArtifactsAndExecutions") + .setRequestMarshaller( + ProtoUtils.marshaller( + AddContextArtifactsAndExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + AddContextArtifactsAndExecutionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + addContextChildrenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/AddContextChildren") + .setRequestMarshaller( + ProtoUtils.marshaller(AddContextChildrenRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AddContextChildrenResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + queryContextLineageSubgraphMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/QueryContextLineageSubgraph") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryContextLineageSubgraphRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateExecution") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetExecution") + .setRequestMarshaller(ProtoUtils.marshaller(GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExecutionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListExecutions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExecutionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateExecution") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + addExecutionEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/AddExecutionEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(AddExecutionEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AddExecutionEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + queryExecutionInputsAndOutputsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/QueryExecutionInputsAndOutputs") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryExecutionInputsAndOutputsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createMetadataSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/CreateMetadataSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMetadataSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MetadataSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getMetadataSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/GetMetadataSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMetadataSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MetadataSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listMetadataSchemasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/ListMetadataSchemas") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMetadataSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMetadataSchemasResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + queryArtifactLineageSubgraphMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.MetadataService/QueryArtifactLineageSubgraph") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryArtifactLineageSubgraphRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) + .build(); + + private final UnaryCallable createMetadataStoreCallable; + private final OperationCallable< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationCallable; + private final UnaryCallable getMetadataStoreCallable; + private final UnaryCallable + listMetadataStoresCallable; + private final UnaryCallable + listMetadataStoresPagedCallable; + private final UnaryCallable deleteMetadataStoreCallable; + private final OperationCallable< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationCallable; + private final UnaryCallable createArtifactCallable; + private final UnaryCallable getArtifactCallable; + private final UnaryCallable listArtifactsCallable; + private final UnaryCallable + listArtifactsPagedCallable; + private final UnaryCallable updateArtifactCallable; + private final UnaryCallable createContextCallable; + private final UnaryCallable getContextCallable; + private final UnaryCallable listContextsCallable; + private final UnaryCallable + listContextsPagedCallable; + private final UnaryCallable updateContextCallable; + private final UnaryCallable deleteContextCallable; + private final OperationCallable + deleteContextOperationCallable; + private final UnaryCallable< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsCallable; + private final UnaryCallable + addContextChildrenCallable; + private final UnaryCallable + queryContextLineageSubgraphCallable; + private final UnaryCallable createExecutionCallable; + private final UnaryCallable getExecutionCallable; + private final UnaryCallable listExecutionsCallable; + private final UnaryCallable + listExecutionsPagedCallable; + private final UnaryCallable updateExecutionCallable; + private final UnaryCallable + addExecutionEventsCallable; + private final UnaryCallable + queryExecutionInputsAndOutputsCallable; + private final UnaryCallable + createMetadataSchemaCallable; + private final UnaryCallable getMetadataSchemaCallable; + private final UnaryCallable + listMetadataSchemasCallable; + private final UnaryCallable + listMetadataSchemasPagedCallable; + private final UnaryCallable + queryArtifactLineageSubgraphCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMetadataServiceStub create(MetadataServiceStubSettings settings) + throws IOException { + return new GrpcMetadataServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMetadataServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcMetadataServiceStub( + MetadataServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMetadataServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMetadataServiceStub( + MetadataServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMetadataServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMetadataServiceStub( + MetadataServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcMetadataServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcMetadataServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMetadataServiceStub( + MetadataServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createMetadataStoreTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listMetadataStoresTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + GrpcCallSettings + addContextChildrenTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + queryContextLineageSubgraphTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listExecutionsTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + addExecutionEventsTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + queryExecutionInputsAndOutputsTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + createMetadataSchemaTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listMetadataSchemasTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + queryArtifactLineageSubgraphTransportSettings = + 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(); + } + }) + .build(); + + this.createMetadataStoreCallable = + callableFactory.createUnaryCallable( + createMetadataStoreTransportSettings, + settings.createMetadataStoreSettings(), + clientContext); + this.createMetadataStoreOperationCallable = + callableFactory.createOperationCallable( + createMetadataStoreTransportSettings, + settings.createMetadataStoreOperationSettings(), + clientContext, + operationsStub); + this.getMetadataStoreCallable = + callableFactory.createUnaryCallable( + getMetadataStoreTransportSettings, settings.getMetadataStoreSettings(), clientContext); + this.listMetadataStoresCallable = + callableFactory.createUnaryCallable( + listMetadataStoresTransportSettings, + settings.listMetadataStoresSettings(), + clientContext); + this.listMetadataStoresPagedCallable = + callableFactory.createPagedCallable( + listMetadataStoresTransportSettings, + settings.listMetadataStoresSettings(), + clientContext); + this.deleteMetadataStoreCallable = + callableFactory.createUnaryCallable( + deleteMetadataStoreTransportSettings, + settings.deleteMetadataStoreSettings(), + clientContext); + this.deleteMetadataStoreOperationCallable = + callableFactory.createOperationCallable( + deleteMetadataStoreTransportSettings, + settings.deleteMetadataStoreOperationSettings(), + clientContext, + operationsStub); + this.createArtifactCallable = + callableFactory.createUnaryCallable( + createArtifactTransportSettings, settings.createArtifactSettings(), clientContext); + this.getArtifactCallable = + callableFactory.createUnaryCallable( + getArtifactTransportSettings, settings.getArtifactSettings(), clientContext); + this.listArtifactsCallable = + callableFactory.createUnaryCallable( + listArtifactsTransportSettings, settings.listArtifactsSettings(), clientContext); + this.listArtifactsPagedCallable = + callableFactory.createPagedCallable( + listArtifactsTransportSettings, settings.listArtifactsSettings(), clientContext); + this.updateArtifactCallable = + callableFactory.createUnaryCallable( + updateArtifactTransportSettings, settings.updateArtifactSettings(), clientContext); + this.createContextCallable = + callableFactory.createUnaryCallable( + createContextTransportSettings, settings.createContextSettings(), clientContext); + this.getContextCallable = + callableFactory.createUnaryCallable( + getContextTransportSettings, settings.getContextSettings(), clientContext); + this.listContextsCallable = + callableFactory.createUnaryCallable( + listContextsTransportSettings, settings.listContextsSettings(), clientContext); + this.listContextsPagedCallable = + callableFactory.createPagedCallable( + listContextsTransportSettings, settings.listContextsSettings(), clientContext); + this.updateContextCallable = + callableFactory.createUnaryCallable( + updateContextTransportSettings, settings.updateContextSettings(), clientContext); + this.deleteContextCallable = + callableFactory.createUnaryCallable( + deleteContextTransportSettings, settings.deleteContextSettings(), clientContext); + this.deleteContextOperationCallable = + callableFactory.createOperationCallable( + deleteContextTransportSettings, + settings.deleteContextOperationSettings(), + clientContext, + operationsStub); + this.addContextArtifactsAndExecutionsCallable = + callableFactory.createUnaryCallable( + addContextArtifactsAndExecutionsTransportSettings, + settings.addContextArtifactsAndExecutionsSettings(), + clientContext); + this.addContextChildrenCallable = + callableFactory.createUnaryCallable( + addContextChildrenTransportSettings, + settings.addContextChildrenSettings(), + clientContext); + this.queryContextLineageSubgraphCallable = + callableFactory.createUnaryCallable( + queryContextLineageSubgraphTransportSettings, + settings.queryContextLineageSubgraphSettings(), + clientContext); + this.createExecutionCallable = + callableFactory.createUnaryCallable( + createExecutionTransportSettings, settings.createExecutionSettings(), clientContext); + this.getExecutionCallable = + callableFactory.createUnaryCallable( + getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); + this.listExecutionsCallable = + callableFactory.createUnaryCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.listExecutionsPagedCallable = + callableFactory.createPagedCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.updateExecutionCallable = + callableFactory.createUnaryCallable( + updateExecutionTransportSettings, settings.updateExecutionSettings(), clientContext); + this.addExecutionEventsCallable = + callableFactory.createUnaryCallable( + addExecutionEventsTransportSettings, + settings.addExecutionEventsSettings(), + clientContext); + this.queryExecutionInputsAndOutputsCallable = + callableFactory.createUnaryCallable( + queryExecutionInputsAndOutputsTransportSettings, + settings.queryExecutionInputsAndOutputsSettings(), + clientContext); + this.createMetadataSchemaCallable = + callableFactory.createUnaryCallable( + createMetadataSchemaTransportSettings, + settings.createMetadataSchemaSettings(), + clientContext); + this.getMetadataSchemaCallable = + callableFactory.createUnaryCallable( + getMetadataSchemaTransportSettings, + settings.getMetadataSchemaSettings(), + clientContext); + this.listMetadataSchemasCallable = + callableFactory.createUnaryCallable( + listMetadataSchemasTransportSettings, + settings.listMetadataSchemasSettings(), + clientContext); + this.listMetadataSchemasPagedCallable = + callableFactory.createPagedCallable( + listMetadataSchemasTransportSettings, + settings.listMetadataSchemasSettings(), + clientContext); + this.queryArtifactLineageSubgraphCallable = + callableFactory.createUnaryCallable( + queryArtifactLineageSubgraphTransportSettings, + settings.queryArtifactLineageSubgraphSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createMetadataStoreCallable() { + return createMetadataStoreCallable; + } + + @Override + public OperationCallable< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationCallable() { + return createMetadataStoreOperationCallable; + } + + @Override + public UnaryCallable getMetadataStoreCallable() { + return getMetadataStoreCallable; + } + + @Override + public UnaryCallable + listMetadataStoresCallable() { + return listMetadataStoresCallable; + } + + @Override + public UnaryCallable + listMetadataStoresPagedCallable() { + return listMetadataStoresPagedCallable; + } + + @Override + public UnaryCallable deleteMetadataStoreCallable() { + return deleteMetadataStoreCallable; + } + + @Override + public OperationCallable + deleteMetadataStoreOperationCallable() { + return deleteMetadataStoreOperationCallable; + } + + @Override + public UnaryCallable createArtifactCallable() { + return createArtifactCallable; + } + + @Override + public UnaryCallable getArtifactCallable() { + return getArtifactCallable; + } + + @Override + public UnaryCallable listArtifactsCallable() { + return listArtifactsCallable; + } + + @Override + public UnaryCallable + listArtifactsPagedCallable() { + return listArtifactsPagedCallable; + } + + @Override + public UnaryCallable updateArtifactCallable() { + return updateArtifactCallable; + } + + @Override + public UnaryCallable createContextCallable() { + return createContextCallable; + } + + @Override + public UnaryCallable getContextCallable() { + return getContextCallable; + } + + @Override + public UnaryCallable listContextsCallable() { + return listContextsCallable; + } + + @Override + public UnaryCallable listContextsPagedCallable() { + return listContextsPagedCallable; + } + + @Override + public UnaryCallable updateContextCallable() { + return updateContextCallable; + } + + @Override + public UnaryCallable deleteContextCallable() { + return deleteContextCallable; + } + + @Override + public OperationCallable + deleteContextOperationCallable() { + return deleteContextOperationCallable; + } + + @Override + public UnaryCallable< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsCallable() { + return addContextArtifactsAndExecutionsCallable; + } + + @Override + public UnaryCallable + addContextChildrenCallable() { + return addContextChildrenCallable; + } + + @Override + public UnaryCallable + queryContextLineageSubgraphCallable() { + return queryContextLineageSubgraphCallable; + } + + @Override + public UnaryCallable createExecutionCallable() { + return createExecutionCallable; + } + + @Override + public UnaryCallable getExecutionCallable() { + return getExecutionCallable; + } + + @Override + public UnaryCallable listExecutionsCallable() { + return listExecutionsCallable; + } + + @Override + public UnaryCallable + listExecutionsPagedCallable() { + return listExecutionsPagedCallable; + } + + @Override + public UnaryCallable updateExecutionCallable() { + return updateExecutionCallable; + } + + @Override + public UnaryCallable + addExecutionEventsCallable() { + return addExecutionEventsCallable; + } + + @Override + public UnaryCallable + queryExecutionInputsAndOutputsCallable() { + return queryExecutionInputsAndOutputsCallable; + } + + @Override + public UnaryCallable createMetadataSchemaCallable() { + return createMetadataSchemaCallable; + } + + @Override + public UnaryCallable getMetadataSchemaCallable() { + return getMetadataSchemaCallable; + } + + @Override + public UnaryCallable + listMetadataSchemasCallable() { + return listMetadataSchemasCallable; + } + + @Override + public UnaryCallable + listMetadataSchemasPagedCallable() { + return listMetadataSchemasPagedCallable; + } + + @Override + public UnaryCallable + queryArtifactLineageSubgraphCallable() { + return queryArtifactLineageSubgraphCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java index 035e9aa32..18c08664d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 445fe48ab..1fca9f3c6 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java index 688783f6f..907e0f5f7 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 194d17378..1bf378ee2 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java index a46d4d76b..65c42af4c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 0038ba7b0..124823e5e 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1.stub; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.core.BetaApi; @@ -27,13 +28,20 @@ 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; +import com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1beta1.PipelineJob; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -111,6 +119,60 @@ 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService/CancelPipelineJob") + .setRequestMarshaller( + ProtoUtils.marshaller(CancelPipelineJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable createTrainingPipelineCallable; private final UnaryCallable @@ -124,6 +186,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; @@ -239,6 +311,72 @@ public Map extract(CancelTrainingPipelineRequest request) { } }) .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listPipelineJobsTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); this.createTrainingPipelineCallable = callableFactory.createUnaryCallable( @@ -276,6 +414,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()); @@ -324,6 +492,44 @@ 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(); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java index 11d610333..501e6eefe 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 cdfb2302b..f66092e1a 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java index c639234c2..b845f34ac 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * 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/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 dc69b6170..5dcd918f5 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java new file mode 100644 index 000000000..85fb33e81 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TensorboardService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTensorboardServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..578523026 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java @@ -0,0 +1,1286 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.Tensorboard; +import com.google.cloud.aiplatform.v1beta1.TensorboardExperiment; +import com.google.cloud.aiplatform.v1beta1.TensorboardRun; +import com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TensorboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTensorboardServiceStub extends TensorboardServiceStub { + private static final MethodDescriptor + createTensorboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/CreateTensorboard") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTensorboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTensorboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/GetTensorboard") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTensorboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tensorboard.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateTensorboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/UpdateTensorboard") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTensorboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTensorboardsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ListTensorboards") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTensorboardsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTensorboardsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteTensorboardMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/DeleteTensorboard") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTensorboardRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createTensorboardExperimentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/CreateTensorboardExperiment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTensorboardExperimentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTensorboardExperimentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/GetTensorboardExperiment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTensorboardExperimentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateTensorboardExperimentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/UpdateTensorboardExperiment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTensorboardExperimentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse> + listTensorboardExperimentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ListTensorboardExperiments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTensorboardExperimentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTensorboardExperimentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteTensorboardExperimentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/DeleteTensorboardExperiment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTensorboardExperimentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createTensorboardRunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/CreateTensorboardRun") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTensorboardRunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTensorboardRunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/GetTensorboardRun") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTensorboardRunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateTensorboardRunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/UpdateTensorboardRun") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTensorboardRunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTensorboardRunsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ListTensorboardRuns") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTensorboardRunsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTensorboardRunsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteTensorboardRunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/DeleteTensorboardRun") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTensorboardRunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createTensorboardTimeSeriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/CreateTensorboardTimeSeries") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTensorboardTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTensorboardTimeSeriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/GetTensorboardTimeSeries") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTensorboardTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateTensorboardTimeSeriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/UpdateTensorboardTimeSeries") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTensorboardTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse> + listTensorboardTimeSeriesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ListTensorboardTimeSeries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTensorboardTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTensorboardTimeSeriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteTensorboardTimeSeriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/DeleteTensorboardTimeSeries") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTensorboardTimeSeriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardTimeSeriesData") + .setRequestMarshaller( + ProtoUtils.marshaller(ReadTensorboardTimeSeriesDataRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadTensorboardTimeSeriesDataResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardBlobData") + .setRequestMarshaller( + ProtoUtils.marshaller(ReadTensorboardBlobDataRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadTensorboardBlobDataResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse> + writeTensorboardRunDataMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/WriteTensorboardRunData") + .setRequestMarshaller( + ProtoUtils.marshaller(WriteTensorboardRunDataRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(WriteTensorboardRunDataResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.TensorboardService/ExportTensorboardTimeSeriesData") + .setRequestMarshaller( + ProtoUtils.marshaller( + ExportTensorboardTimeSeriesDataRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ExportTensorboardTimeSeriesDataResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createTensorboardCallable; + private final OperationCallable< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationCallable; + private final UnaryCallable getTensorboardCallable; + private final UnaryCallable updateTensorboardCallable; + private final OperationCallable< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationCallable; + private final UnaryCallable + listTensorboardsCallable; + private final UnaryCallable + listTensorboardsPagedCallable; + private final UnaryCallable deleteTensorboardCallable; + private final OperationCallable + deleteTensorboardOperationCallable; + private final UnaryCallable + createTensorboardExperimentCallable; + private final UnaryCallable + getTensorboardExperimentCallable; + private final UnaryCallable + updateTensorboardExperimentCallable; + private final UnaryCallable + listTensorboardExperimentsCallable; + private final UnaryCallable< + ListTensorboardExperimentsRequest, ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsPagedCallable; + private final UnaryCallable + deleteTensorboardExperimentCallable; + private final OperationCallable< + DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata> + deleteTensorboardExperimentOperationCallable; + private final UnaryCallable + createTensorboardRunCallable; + private final UnaryCallable getTensorboardRunCallable; + private final UnaryCallable + updateTensorboardRunCallable; + private final UnaryCallable + listTensorboardRunsCallable; + private final UnaryCallable + listTensorboardRunsPagedCallable; + private final UnaryCallable deleteTensorboardRunCallable; + private final OperationCallable + deleteTensorboardRunOperationCallable; + private final UnaryCallable + createTensorboardTimeSeriesCallable; + private final UnaryCallable + getTensorboardTimeSeriesCallable; + private final UnaryCallable + updateTensorboardTimeSeriesCallable; + private final UnaryCallable + listTensorboardTimeSeriesCallable; + private final UnaryCallable< + ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesPagedCallable; + private final UnaryCallable + deleteTensorboardTimeSeriesCallable; + private final OperationCallable< + DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata> + deleteTensorboardTimeSeriesOperationCallable; + private final UnaryCallable< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataCallable; + private final ServerStreamingCallable< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataCallable; + private final UnaryCallable + writeTensorboardRunDataCallable; + private final UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataCallable; + private final UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTensorboardServiceStub create(TensorboardServiceStubSettings settings) + throws IOException { + return new GrpcTensorboardServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTensorboardServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTensorboardServiceStub( + TensorboardServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTensorboardServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTensorboardServiceStub( + TensorboardServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTensorboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTensorboardServiceStub( + TensorboardServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTensorboardServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTensorboardServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTensorboardServiceStub( + TensorboardServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createTensorboardTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listTensorboardsTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + createTensorboardExperimentTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + getTensorboardExperimentTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + updateTensorboardExperimentTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + listTensorboardExperimentsTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + GrpcCallSettings + deleteTensorboardExperimentTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + createTensorboardRunTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + updateTensorboardRunTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + listTensorboardRunsTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + createTensorboardTimeSeriesTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + getTensorboardTimeSeriesTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + updateTensorboardTimeSeriesTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + listTensorboardTimeSeriesTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + GrpcCallSettings + deleteTensorboardTimeSeriesTransportSettings = + 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(); + } + }) + .build(); + GrpcCallSettings + readTensorboardTimeSeriesDataTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + GrpcCallSettings + readTensorboardBlobDataTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + GrpcCallSettings + writeTensorboardRunDataTransportSettings = + GrpcCallSettings + .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(); + } + }) + .build(); + GrpcCallSettings< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataTransportSettings = + GrpcCallSettings + . + 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(); + } + }) + .build(); + + this.createTensorboardCallable = + callableFactory.createUnaryCallable( + createTensorboardTransportSettings, + settings.createTensorboardSettings(), + clientContext); + this.createTensorboardOperationCallable = + callableFactory.createOperationCallable( + createTensorboardTransportSettings, + settings.createTensorboardOperationSettings(), + clientContext, + operationsStub); + this.getTensorboardCallable = + callableFactory.createUnaryCallable( + getTensorboardTransportSettings, settings.getTensorboardSettings(), clientContext); + this.updateTensorboardCallable = + callableFactory.createUnaryCallable( + updateTensorboardTransportSettings, + settings.updateTensorboardSettings(), + clientContext); + this.updateTensorboardOperationCallable = + callableFactory.createOperationCallable( + updateTensorboardTransportSettings, + settings.updateTensorboardOperationSettings(), + clientContext, + operationsStub); + this.listTensorboardsCallable = + callableFactory.createUnaryCallable( + listTensorboardsTransportSettings, settings.listTensorboardsSettings(), clientContext); + this.listTensorboardsPagedCallable = + callableFactory.createPagedCallable( + listTensorboardsTransportSettings, settings.listTensorboardsSettings(), clientContext); + this.deleteTensorboardCallable = + callableFactory.createUnaryCallable( + deleteTensorboardTransportSettings, + settings.deleteTensorboardSettings(), + clientContext); + this.deleteTensorboardOperationCallable = + callableFactory.createOperationCallable( + deleteTensorboardTransportSettings, + settings.deleteTensorboardOperationSettings(), + clientContext, + operationsStub); + this.createTensorboardExperimentCallable = + callableFactory.createUnaryCallable( + createTensorboardExperimentTransportSettings, + settings.createTensorboardExperimentSettings(), + clientContext); + this.getTensorboardExperimentCallable = + callableFactory.createUnaryCallable( + getTensorboardExperimentTransportSettings, + settings.getTensorboardExperimentSettings(), + clientContext); + this.updateTensorboardExperimentCallable = + callableFactory.createUnaryCallable( + updateTensorboardExperimentTransportSettings, + settings.updateTensorboardExperimentSettings(), + clientContext); + this.listTensorboardExperimentsCallable = + callableFactory.createUnaryCallable( + listTensorboardExperimentsTransportSettings, + settings.listTensorboardExperimentsSettings(), + clientContext); + this.listTensorboardExperimentsPagedCallable = + callableFactory.createPagedCallable( + listTensorboardExperimentsTransportSettings, + settings.listTensorboardExperimentsSettings(), + clientContext); + this.deleteTensorboardExperimentCallable = + callableFactory.createUnaryCallable( + deleteTensorboardExperimentTransportSettings, + settings.deleteTensorboardExperimentSettings(), + clientContext); + this.deleteTensorboardExperimentOperationCallable = + callableFactory.createOperationCallable( + deleteTensorboardExperimentTransportSettings, + settings.deleteTensorboardExperimentOperationSettings(), + clientContext, + operationsStub); + this.createTensorboardRunCallable = + callableFactory.createUnaryCallable( + createTensorboardRunTransportSettings, + settings.createTensorboardRunSettings(), + clientContext); + this.getTensorboardRunCallable = + callableFactory.createUnaryCallable( + getTensorboardRunTransportSettings, + settings.getTensorboardRunSettings(), + clientContext); + this.updateTensorboardRunCallable = + callableFactory.createUnaryCallable( + updateTensorboardRunTransportSettings, + settings.updateTensorboardRunSettings(), + clientContext); + this.listTensorboardRunsCallable = + callableFactory.createUnaryCallable( + listTensorboardRunsTransportSettings, + settings.listTensorboardRunsSettings(), + clientContext); + this.listTensorboardRunsPagedCallable = + callableFactory.createPagedCallable( + listTensorboardRunsTransportSettings, + settings.listTensorboardRunsSettings(), + clientContext); + this.deleteTensorboardRunCallable = + callableFactory.createUnaryCallable( + deleteTensorboardRunTransportSettings, + settings.deleteTensorboardRunSettings(), + clientContext); + this.deleteTensorboardRunOperationCallable = + callableFactory.createOperationCallable( + deleteTensorboardRunTransportSettings, + settings.deleteTensorboardRunOperationSettings(), + clientContext, + operationsStub); + this.createTensorboardTimeSeriesCallable = + callableFactory.createUnaryCallable( + createTensorboardTimeSeriesTransportSettings, + settings.createTensorboardTimeSeriesSettings(), + clientContext); + this.getTensorboardTimeSeriesCallable = + callableFactory.createUnaryCallable( + getTensorboardTimeSeriesTransportSettings, + settings.getTensorboardTimeSeriesSettings(), + clientContext); + this.updateTensorboardTimeSeriesCallable = + callableFactory.createUnaryCallable( + updateTensorboardTimeSeriesTransportSettings, + settings.updateTensorboardTimeSeriesSettings(), + clientContext); + this.listTensorboardTimeSeriesCallable = + callableFactory.createUnaryCallable( + listTensorboardTimeSeriesTransportSettings, + settings.listTensorboardTimeSeriesSettings(), + clientContext); + this.listTensorboardTimeSeriesPagedCallable = + callableFactory.createPagedCallable( + listTensorboardTimeSeriesTransportSettings, + settings.listTensorboardTimeSeriesSettings(), + clientContext); + this.deleteTensorboardTimeSeriesCallable = + callableFactory.createUnaryCallable( + deleteTensorboardTimeSeriesTransportSettings, + settings.deleteTensorboardTimeSeriesSettings(), + clientContext); + this.deleteTensorboardTimeSeriesOperationCallable = + callableFactory.createOperationCallable( + deleteTensorboardTimeSeriesTransportSettings, + settings.deleteTensorboardTimeSeriesOperationSettings(), + clientContext, + operationsStub); + this.readTensorboardTimeSeriesDataCallable = + callableFactory.createUnaryCallable( + readTensorboardTimeSeriesDataTransportSettings, + settings.readTensorboardTimeSeriesDataSettings(), + clientContext); + this.readTensorboardBlobDataCallable = + callableFactory.createServerStreamingCallable( + readTensorboardBlobDataTransportSettings, + settings.readTensorboardBlobDataSettings(), + clientContext); + this.writeTensorboardRunDataCallable = + callableFactory.createUnaryCallable( + writeTensorboardRunDataTransportSettings, + settings.writeTensorboardRunDataSettings(), + clientContext); + this.exportTensorboardTimeSeriesDataCallable = + callableFactory.createUnaryCallable( + exportTensorboardTimeSeriesDataTransportSettings, + settings.exportTensorboardTimeSeriesDataSettings(), + clientContext); + this.exportTensorboardTimeSeriesDataPagedCallable = + callableFactory.createPagedCallable( + exportTensorboardTimeSeriesDataTransportSettings, + settings.exportTensorboardTimeSeriesDataSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createTensorboardCallable() { + return createTensorboardCallable; + } + + @Override + public OperationCallable< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationCallable() { + return createTensorboardOperationCallable; + } + + @Override + public UnaryCallable getTensorboardCallable() { + return getTensorboardCallable; + } + + @Override + public UnaryCallable updateTensorboardCallable() { + return updateTensorboardCallable; + } + + @Override + public OperationCallable< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationCallable() { + return updateTensorboardOperationCallable; + } + + @Override + public UnaryCallable + listTensorboardsCallable() { + return listTensorboardsCallable; + } + + @Override + public UnaryCallable + listTensorboardsPagedCallable() { + return listTensorboardsPagedCallable; + } + + @Override + public UnaryCallable deleteTensorboardCallable() { + return deleteTensorboardCallable; + } + + @Override + public OperationCallable + deleteTensorboardOperationCallable() { + return deleteTensorboardOperationCallable; + } + + @Override + public UnaryCallable + createTensorboardExperimentCallable() { + return createTensorboardExperimentCallable; + } + + @Override + public UnaryCallable + getTensorboardExperimentCallable() { + return getTensorboardExperimentCallable; + } + + @Override + public UnaryCallable + updateTensorboardExperimentCallable() { + return updateTensorboardExperimentCallable; + } + + @Override + public UnaryCallable + listTensorboardExperimentsCallable() { + return listTensorboardExperimentsCallable; + } + + @Override + public UnaryCallable + listTensorboardExperimentsPagedCallable() { + return listTensorboardExperimentsPagedCallable; + } + + @Override + public UnaryCallable + deleteTensorboardExperimentCallable() { + return deleteTensorboardExperimentCallable; + } + + @Override + public OperationCallable + deleteTensorboardExperimentOperationCallable() { + return deleteTensorboardExperimentOperationCallable; + } + + @Override + public UnaryCallable createTensorboardRunCallable() { + return createTensorboardRunCallable; + } + + @Override + public UnaryCallable getTensorboardRunCallable() { + return getTensorboardRunCallable; + } + + @Override + public UnaryCallable updateTensorboardRunCallable() { + return updateTensorboardRunCallable; + } + + @Override + public UnaryCallable + listTensorboardRunsCallable() { + return listTensorboardRunsCallable; + } + + @Override + public UnaryCallable + listTensorboardRunsPagedCallable() { + return listTensorboardRunsPagedCallable; + } + + @Override + public UnaryCallable deleteTensorboardRunCallable() { + return deleteTensorboardRunCallable; + } + + @Override + public OperationCallable + deleteTensorboardRunOperationCallable() { + return deleteTensorboardRunOperationCallable; + } + + @Override + public UnaryCallable + createTensorboardTimeSeriesCallable() { + return createTensorboardTimeSeriesCallable; + } + + @Override + public UnaryCallable + getTensorboardTimeSeriesCallable() { + return getTensorboardTimeSeriesCallable; + } + + @Override + public UnaryCallable + updateTensorboardTimeSeriesCallable() { + return updateTensorboardTimeSeriesCallable; + } + + @Override + public UnaryCallable + listTensorboardTimeSeriesCallable() { + return listTensorboardTimeSeriesCallable; + } + + @Override + public UnaryCallable + listTensorboardTimeSeriesPagedCallable() { + return listTensorboardTimeSeriesPagedCallable; + } + + @Override + public UnaryCallable + deleteTensorboardTimeSeriesCallable() { + return deleteTensorboardTimeSeriesCallable; + } + + @Override + public OperationCallable + deleteTensorboardTimeSeriesOperationCallable() { + return deleteTensorboardTimeSeriesOperationCallable; + } + + @Override + public UnaryCallable + readTensorboardTimeSeriesDataCallable() { + return readTensorboardTimeSeriesDataCallable; + } + + @Override + public ServerStreamingCallable + readTensorboardBlobDataCallable() { + return readTensorboardBlobDataCallable; + } + + @Override + public UnaryCallable + writeTensorboardRunDataCallable() { + return writeTensorboardRunDataCallable; + } + + @Override + public UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataCallable() { + return exportTensorboardTimeSeriesDataCallable; + } + + @Override + public UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataPagedCallable() { + return exportTensorboardTimeSeriesDataPagedCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java new file mode 100644 index 000000000..d6b12eb5f --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the VizierService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcVizierServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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 new file mode 100644 index 000000000..d5cb954af --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java @@ -0,0 +1,688 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.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; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse; +import com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.CreateStudyRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTrialRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.GetStudyRequest; +import com.google.cloud.aiplatform.v1beta1.GetTrialRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.ListStudiesRequest; +import com.google.cloud.aiplatform.v1beta1.ListStudiesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.LookupStudyRequest; +import com.google.cloud.aiplatform.v1beta1.StopTrialRequest; +import com.google.cloud.aiplatform.v1beta1.Study; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.Trial; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the VizierService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcVizierServiceStub extends VizierServiceStub { + private static final MethodDescriptor createStudyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/CreateStudy") + .setRequestMarshaller(ProtoUtils.marshaller(CreateStudyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Study.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getStudyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/GetStudy") + .setRequestMarshaller(ProtoUtils.marshaller(GetStudyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Study.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listStudiesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/ListStudies") + .setRequestMarshaller(ProtoUtils.marshaller(ListStudiesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListStudiesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteStudyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/DeleteStudy") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteStudyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor lookupStudyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/LookupStudy") + .setRequestMarshaller(ProtoUtils.marshaller(LookupStudyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Study.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + suggestTrialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/SuggestTrials") + .setRequestMarshaller( + ProtoUtils.marshaller(SuggestTrialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createTrialMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/CreateTrial") + .setRequestMarshaller(ProtoUtils.marshaller(CreateTrialRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Trial.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getTrialMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/GetTrial") + .setRequestMarshaller(ProtoUtils.marshaller(GetTrialRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Trial.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTrialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/ListTrials") + .setRequestMarshaller(ProtoUtils.marshaller(ListTrialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListTrialsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + addTrialMeasurementMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.VizierService/AddTrialMeasurement") + .setRequestMarshaller( + ProtoUtils.marshaller(AddTrialMeasurementRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Trial.getDefaultInstance())) + .build(); + + private static final MethodDescriptor completeTrialMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/CompleteTrial") + .setRequestMarshaller(ProtoUtils.marshaller(CompleteTrialRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Trial.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteTrialMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/DeleteTrial") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteTrialRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + checkTrialEarlyStoppingStateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.VizierService/CheckTrialEarlyStoppingState") + .setRequestMarshaller( + ProtoUtils.marshaller(CheckTrialEarlyStoppingStateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor stopTrialMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/StopTrial") + .setRequestMarshaller(ProtoUtils.marshaller(StopTrialRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Trial.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listOptimalTrialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VizierService/ListOptimalTrials") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOptimalTrialsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOptimalTrialsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createStudyCallable; + private final UnaryCallable getStudyCallable; + private final UnaryCallable listStudiesCallable; + private final UnaryCallable + listStudiesPagedCallable; + private final UnaryCallable deleteStudyCallable; + private final UnaryCallable lookupStudyCallable; + private final UnaryCallable suggestTrialsCallable; + private final OperationCallable< + SuggestTrialsRequest, SuggestTrialsResponse, SuggestTrialsMetadata> + suggestTrialsOperationCallable; + private final UnaryCallable createTrialCallable; + private final UnaryCallable getTrialCallable; + private final UnaryCallable listTrialsCallable; + private final UnaryCallable listTrialsPagedCallable; + private final UnaryCallable addTrialMeasurementCallable; + private final UnaryCallable completeTrialCallable; + private final UnaryCallable deleteTrialCallable; + private final UnaryCallable + checkTrialEarlyStoppingStateCallable; + private final OperationCallable< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationCallable; + private final UnaryCallable stopTrialCallable; + private final UnaryCallable + listOptimalTrialsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVizierServiceStub create(VizierServiceStubSettings settings) + throws IOException { + return new GrpcVizierServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVizierServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcVizierServiceStub(VizierServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVizierServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVizierServiceStub( + VizierServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVizierServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcVizierServiceStub(VizierServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcVizierServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVizierServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcVizierServiceStub( + VizierServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createStudyTransportSettings = + 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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + checkTrialEarlyStoppingStateTransportSettings = + 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(); + } + }) + .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(); + } + }) + .build(); + GrpcCallSettings + listOptimalTrialsTransportSettings = + 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(); + } + }) + .build(); + + this.createStudyCallable = + callableFactory.createUnaryCallable( + createStudyTransportSettings, settings.createStudySettings(), clientContext); + this.getStudyCallable = + callableFactory.createUnaryCallable( + getStudyTransportSettings, settings.getStudySettings(), clientContext); + this.listStudiesCallable = + callableFactory.createUnaryCallable( + listStudiesTransportSettings, settings.listStudiesSettings(), clientContext); + this.listStudiesPagedCallable = + callableFactory.createPagedCallable( + listStudiesTransportSettings, settings.listStudiesSettings(), clientContext); + this.deleteStudyCallable = + callableFactory.createUnaryCallable( + deleteStudyTransportSettings, settings.deleteStudySettings(), clientContext); + this.lookupStudyCallable = + callableFactory.createUnaryCallable( + lookupStudyTransportSettings, settings.lookupStudySettings(), clientContext); + this.suggestTrialsCallable = + callableFactory.createUnaryCallable( + suggestTrialsTransportSettings, settings.suggestTrialsSettings(), clientContext); + this.suggestTrialsOperationCallable = + callableFactory.createOperationCallable( + suggestTrialsTransportSettings, + settings.suggestTrialsOperationSettings(), + clientContext, + operationsStub); + this.createTrialCallable = + callableFactory.createUnaryCallable( + createTrialTransportSettings, settings.createTrialSettings(), clientContext); + this.getTrialCallable = + callableFactory.createUnaryCallable( + getTrialTransportSettings, settings.getTrialSettings(), clientContext); + this.listTrialsCallable = + callableFactory.createUnaryCallable( + listTrialsTransportSettings, settings.listTrialsSettings(), clientContext); + this.listTrialsPagedCallable = + callableFactory.createPagedCallable( + listTrialsTransportSettings, settings.listTrialsSettings(), clientContext); + this.addTrialMeasurementCallable = + callableFactory.createUnaryCallable( + addTrialMeasurementTransportSettings, + settings.addTrialMeasurementSettings(), + clientContext); + this.completeTrialCallable = + callableFactory.createUnaryCallable( + completeTrialTransportSettings, settings.completeTrialSettings(), clientContext); + this.deleteTrialCallable = + callableFactory.createUnaryCallable( + deleteTrialTransportSettings, settings.deleteTrialSettings(), clientContext); + this.checkTrialEarlyStoppingStateCallable = + callableFactory.createUnaryCallable( + checkTrialEarlyStoppingStateTransportSettings, + settings.checkTrialEarlyStoppingStateSettings(), + clientContext); + this.checkTrialEarlyStoppingStateOperationCallable = + callableFactory.createOperationCallable( + checkTrialEarlyStoppingStateTransportSettings, + settings.checkTrialEarlyStoppingStateOperationSettings(), + clientContext, + operationsStub); + this.stopTrialCallable = + callableFactory.createUnaryCallable( + stopTrialTransportSettings, settings.stopTrialSettings(), clientContext); + this.listOptimalTrialsCallable = + callableFactory.createUnaryCallable( + listOptimalTrialsTransportSettings, + settings.listOptimalTrialsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createStudyCallable() { + return createStudyCallable; + } + + @Override + public UnaryCallable getStudyCallable() { + return getStudyCallable; + } + + @Override + public UnaryCallable listStudiesCallable() { + return listStudiesCallable; + } + + @Override + public UnaryCallable listStudiesPagedCallable() { + return listStudiesPagedCallable; + } + + @Override + public UnaryCallable deleteStudyCallable() { + return deleteStudyCallable; + } + + @Override + public UnaryCallable lookupStudyCallable() { + return lookupStudyCallable; + } + + @Override + public UnaryCallable suggestTrialsCallable() { + return suggestTrialsCallable; + } + + @Override + public OperationCallable + suggestTrialsOperationCallable() { + return suggestTrialsOperationCallable; + } + + @Override + public UnaryCallable createTrialCallable() { + return createTrialCallable; + } + + @Override + public UnaryCallable getTrialCallable() { + return getTrialCallable; + } + + @Override + public UnaryCallable listTrialsCallable() { + return listTrialsCallable; + } + + @Override + public UnaryCallable listTrialsPagedCallable() { + return listTrialsPagedCallable; + } + + @Override + public UnaryCallable addTrialMeasurementCallable() { + return addTrialMeasurementCallable; + } + + @Override + public UnaryCallable completeTrialCallable() { + return completeTrialCallable; + } + + @Override + public UnaryCallable deleteTrialCallable() { + return deleteTrialCallable; + } + + @Override + public UnaryCallable + checkTrialEarlyStoppingStateCallable() { + return checkTrialEarlyStoppingStateCallable; + } + + @Override + public OperationCallable< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationCallable() { + return checkTrialEarlyStoppingStateOperationCallable; + } + + @Override + public UnaryCallable stopTrialCallable() { + return stopTrialCallable; + } + + @Override + public UnaryCallable + listOptimalTrialsCallable() { + return listOptimalTrialsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java new file mode 100644 index 000000000..4cbf12d06 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java @@ -0,0 +1,119 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; + +import com.google.api.core.BetaApi; +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.v1beta1.CreateIndexEndpointOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.IndexEndpoint; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the IndexEndpointService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class IndexEndpointServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createIndexEndpointOperationCallable()"); + } + + public UnaryCallable createIndexEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexEndpointCallable()"); + } + + public UnaryCallable getIndexEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: getIndexEndpointCallable()"); + } + + public UnaryCallable + listIndexEndpointsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexEndpointsPagedCallable()"); + } + + public UnaryCallable + listIndexEndpointsCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexEndpointsCallable()"); + } + + public UnaryCallable updateIndexEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: updateIndexEndpointCallable()"); + } + + public OperationCallable + deleteIndexEndpointOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteIndexEndpointOperationCallable()"); + } + + public UnaryCallable deleteIndexEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexEndpointCallable()"); + } + + public OperationCallable + deployIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deployIndexOperationCallable()"); + } + + public UnaryCallable deployIndexCallable() { + throw new UnsupportedOperationException("Not implemented: deployIndexCallable()"); + } + + public OperationCallable< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: undeployIndexOperationCallable()"); + } + + public UnaryCallable undeployIndexCallable() { + throw new UnsupportedOperationException("Not implemented: undeployIndexCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..bd01e2fcc --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java @@ -0,0 +1,708 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; +import com.google.cloud.aiplatform.v1beta1.IndexEndpoint; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest; +import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IndexEndpointServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * IndexEndpointServiceStubSettings.Builder indexEndpointServiceSettingsBuilder =
+ *     IndexEndpointServiceStubSettings.newBuilder();
+ * indexEndpointServiceSettingsBuilder
+ *     .getIndexEndpointSettings()
+ *     .setRetrySettings(
+ *         indexEndpointServiceSettingsBuilder
+ *             .getIndexEndpointSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * IndexEndpointServiceStubSettings indexEndpointServiceSettings =
+ *     indexEndpointServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexEndpointServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + createIndexEndpointSettings; + private final OperationCallSettings< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings; + private final UnaryCallSettings getIndexEndpointSettings; + private final PagedCallSettings< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings; + private final UnaryCallSettings + updateIndexEndpointSettings; + private final UnaryCallSettings + deleteIndexEndpointSettings; + private final OperationCallSettings + deleteIndexEndpointOperationSettings; + private final UnaryCallSettings deployIndexSettings; + private final OperationCallSettings< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings; + private final UnaryCallSettings undeployIndexSettings; + private final OperationCallSettings< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings; + + private static final PagedListDescriptor< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, IndexEndpoint> + LIST_INDEX_ENDPOINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, IndexEndpoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIndexEndpointsRequest injectToken( + ListIndexEndpointsRequest payload, String token) { + return ListIndexEndpointsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIndexEndpointsRequest injectPageSize( + ListIndexEndpointsRequest payload, int pageSize) { + return ListIndexEndpointsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIndexEndpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIndexEndpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListIndexEndpointsResponse payload) { + return payload.getIndexEndpointsList() == null + ? ImmutableList.of() + : payload.getIndexEndpointsList(); + } + }; + + private static final PagedListResponseFactory< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + LIST_INDEX_ENDPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIndexEndpointsRequest, + ListIndexEndpointsResponse, + ListIndexEndpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIndexEndpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_INDEX_ENDPOINTS_PAGE_STR_DESC, request, context); + return ListIndexEndpointsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createIndexEndpoint. */ + public UnaryCallSettings createIndexEndpointSettings() { + return createIndexEndpointSettings; + } + + /** Returns the object with the settings used for calls to createIndexEndpoint. */ + public OperationCallSettings< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings() { + return createIndexEndpointOperationSettings; + } + + /** Returns the object with the settings used for calls to getIndexEndpoint. */ + public UnaryCallSettings getIndexEndpointSettings() { + return getIndexEndpointSettings; + } + + /** Returns the object with the settings used for calls to listIndexEndpoints. */ + public PagedCallSettings< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings() { + return listIndexEndpointsSettings; + } + + /** Returns the object with the settings used for calls to updateIndexEndpoint. */ + public UnaryCallSettings + updateIndexEndpointSettings() { + return updateIndexEndpointSettings; + } + + /** Returns the object with the settings used for calls to deleteIndexEndpoint. */ + public UnaryCallSettings deleteIndexEndpointSettings() { + return deleteIndexEndpointSettings; + } + + /** Returns the object with the settings used for calls to deleteIndexEndpoint. */ + public OperationCallSettings + deleteIndexEndpointOperationSettings() { + return deleteIndexEndpointOperationSettings; + } + + /** Returns the object with the settings used for calls to deployIndex. */ + public UnaryCallSettings deployIndexSettings() { + return deployIndexSettings; + } + + /** Returns the object with the settings used for calls to deployIndex. */ + public OperationCallSettings< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings() { + return deployIndexOperationSettings; + } + + /** Returns the object with the settings used for calls to undeployIndex. */ + public UnaryCallSettings undeployIndexSettings() { + return undeployIndexSettings; + } + + /** Returns the object with the settings used for calls to undeployIndex. */ + public OperationCallSettings< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings() { + return undeployIndexOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public IndexEndpointServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcIndexEndpointServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IndexEndpointServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IndexEndpointServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createIndexEndpointSettings = settingsBuilder.createIndexEndpointSettings().build(); + createIndexEndpointOperationSettings = + settingsBuilder.createIndexEndpointOperationSettings().build(); + getIndexEndpointSettings = settingsBuilder.getIndexEndpointSettings().build(); + listIndexEndpointsSettings = settingsBuilder.listIndexEndpointsSettings().build(); + updateIndexEndpointSettings = settingsBuilder.updateIndexEndpointSettings().build(); + deleteIndexEndpointSettings = settingsBuilder.deleteIndexEndpointSettings().build(); + deleteIndexEndpointOperationSettings = + settingsBuilder.deleteIndexEndpointOperationSettings().build(); + deployIndexSettings = settingsBuilder.deployIndexSettings().build(); + deployIndexOperationSettings = settingsBuilder.deployIndexOperationSettings().build(); + undeployIndexSettings = settingsBuilder.undeployIndexSettings().build(); + undeployIndexOperationSettings = settingsBuilder.undeployIndexOperationSettings().build(); + } + + /** Builder for IndexEndpointServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createIndexEndpointSettings; + private final OperationCallSettings.Builder< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings; + private final UnaryCallSettings.Builder + getIndexEndpointSettings; + private final PagedCallSettings.Builder< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings; + private final UnaryCallSettings.Builder + updateIndexEndpointSettings; + private final UnaryCallSettings.Builder + deleteIndexEndpointSettings; + private final OperationCallSettings.Builder< + DeleteIndexEndpointRequest, Empty, DeleteOperationMetadata> + deleteIndexEndpointOperationSettings; + private final UnaryCallSettings.Builder deployIndexSettings; + private final OperationCallSettings.Builder< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings; + private final UnaryCallSettings.Builder undeployIndexSettings; + private final OperationCallSettings.Builder< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createIndexEndpointOperationSettings = OperationCallSettings.newBuilder(); + getIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listIndexEndpointsSettings = PagedCallSettings.newBuilder(LIST_INDEX_ENDPOINTS_PAGE_STR_FACT); + updateIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIndexEndpointOperationSettings = OperationCallSettings.newBuilder(); + deployIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deployIndexOperationSettings = OperationCallSettings.newBuilder(); + undeployIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeployIndexOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexEndpointSettings, + getIndexEndpointSettings, + listIndexEndpointsSettings, + updateIndexEndpointSettings, + deleteIndexEndpointSettings, + deployIndexSettings, + undeployIndexSettings); + initDefaults(this); + } + + protected Builder(IndexEndpointServiceStubSettings settings) { + super(settings); + + createIndexEndpointSettings = settings.createIndexEndpointSettings.toBuilder(); + createIndexEndpointOperationSettings = + settings.createIndexEndpointOperationSettings.toBuilder(); + getIndexEndpointSettings = settings.getIndexEndpointSettings.toBuilder(); + listIndexEndpointsSettings = settings.listIndexEndpointsSettings.toBuilder(); + updateIndexEndpointSettings = settings.updateIndexEndpointSettings.toBuilder(); + deleteIndexEndpointSettings = settings.deleteIndexEndpointSettings.toBuilder(); + deleteIndexEndpointOperationSettings = + settings.deleteIndexEndpointOperationSettings.toBuilder(); + deployIndexSettings = settings.deployIndexSettings.toBuilder(); + deployIndexOperationSettings = settings.deployIndexOperationSettings.toBuilder(); + undeployIndexSettings = settings.undeployIndexSettings.toBuilder(); + undeployIndexOperationSettings = settings.undeployIndexOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexEndpointSettings, + getIndexEndpointSettings, + listIndexEndpointsSettings, + updateIndexEndpointSettings, + deleteIndexEndpointSettings, + deployIndexSettings, + undeployIndexSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createIndexEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .getIndexEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .listIndexEndpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .updateIndexEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .deleteIndexEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .deployIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .undeployIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .createIndexEndpointOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(IndexEndpoint.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateIndexEndpointOperationMetadata.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 + .deleteIndexEndpointOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_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 + .deployIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeployIndexResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeployIndexOperationMetadata.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 + .undeployIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(UndeployIndexResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UndeployIndexOperationMetadata.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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createIndexEndpoint. */ + public UnaryCallSettings.Builder + createIndexEndpointSettings() { + return createIndexEndpointSettings; + } + + /** Returns the builder for the settings used for calls to createIndexEndpoint. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata> + createIndexEndpointOperationSettings() { + return createIndexEndpointOperationSettings; + } + + /** Returns the builder for the settings used for calls to getIndexEndpoint. */ + public UnaryCallSettings.Builder + getIndexEndpointSettings() { + return getIndexEndpointSettings; + } + + /** Returns the builder for the settings used for calls to listIndexEndpoints. */ + public PagedCallSettings.Builder< + ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse> + listIndexEndpointsSettings() { + return listIndexEndpointsSettings; + } + + /** Returns the builder for the settings used for calls to updateIndexEndpoint. */ + public UnaryCallSettings.Builder + updateIndexEndpointSettings() { + return updateIndexEndpointSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndexEndpoint. */ + public UnaryCallSettings.Builder + deleteIndexEndpointSettings() { + return deleteIndexEndpointSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndexEndpoint. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteIndexEndpointOperationSettings() { + return deleteIndexEndpointOperationSettings; + } + + /** Returns the builder for the settings used for calls to deployIndex. */ + public UnaryCallSettings.Builder deployIndexSettings() { + return deployIndexSettings; + } + + /** Returns the builder for the settings used for calls to deployIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata> + deployIndexOperationSettings() { + return deployIndexOperationSettings; + } + + /** Returns the builder for the settings used for calls to undeployIndex. */ + public UnaryCallSettings.Builder undeployIndexSettings() { + return undeployIndexSettings; + } + + /** Returns the builder for the settings used for calls to undeployIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata> + undeployIndexOperationSettings() { + return undeployIndexOperationSettings; + } + + @Override + public IndexEndpointServiceStubSettings build() throws IOException { + return new IndexEndpointServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java new file mode 100644 index 000000000..081f22024 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java @@ -0,0 +1,95 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; + +import com.google.api.core.BetaApi; +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.v1beta1.CreateIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.GetIndexRequest; +import com.google.cloud.aiplatform.v1beta1.Index; +import com.google.cloud.aiplatform.v1beta1.ListIndexesRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the IndexService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class IndexServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable + createIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexOperationCallable()"); + } + + public UnaryCallable createIndexCallable() { + throw new UnsupportedOperationException("Not implemented: createIndexCallable()"); + } + + public UnaryCallable getIndexCallable() { + throw new UnsupportedOperationException("Not implemented: getIndexCallable()"); + } + + public UnaryCallable listIndexesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesPagedCallable()"); + } + + public UnaryCallable listIndexesCallable() { + throw new UnsupportedOperationException("Not implemented: listIndexesCallable()"); + } + + public OperationCallable + updateIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateIndexOperationCallable()"); + } + + public UnaryCallable updateIndexCallable() { + throw new UnsupportedOperationException("Not implemented: updateIndexCallable()"); + } + + public OperationCallable + deleteIndexOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexOperationCallable()"); + } + + public UnaryCallable deleteIndexCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..5a5313577 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java @@ -0,0 +1,571 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.GetIndexRequest; +import com.google.cloud.aiplatform.v1beta1.Index; +import com.google.cloud.aiplatform.v1beta1.ListIndexesRequest; +import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IndexServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * IndexServiceStubSettings.Builder indexServiceSettingsBuilder =
+ *     IndexServiceStubSettings.newBuilder();
+ * indexServiceSettingsBuilder
+ *     .getIndexSettings()
+ *     .setRetrySettings(
+ *         indexServiceSettingsBuilder
+ *             .getIndexSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * IndexServiceStubSettings indexServiceSettings = indexServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class IndexServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createIndexSettings; + private final OperationCallSettings + createIndexOperationSettings; + private final UnaryCallSettings getIndexSettings; + private final PagedCallSettings + listIndexesSettings; + private final UnaryCallSettings updateIndexSettings; + private final OperationCallSettings + updateIndexOperationSettings; + private final UnaryCallSettings deleteIndexSettings; + private final OperationCallSettings + deleteIndexOperationSettings; + + private static final PagedListDescriptor + LIST_INDEXES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIndexesRequest injectToken(ListIndexesRequest payload, String token) { + return ListIndexesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIndexesRequest injectPageSize(ListIndexesRequest payload, int pageSize) { + return ListIndexesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIndexesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIndexesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListIndexesResponse payload) { + return payload.getIndexesList() == null + ? ImmutableList.of() + : payload.getIndexesList(); + } + }; + + private static final PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + LIST_INDEXES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIndexesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_INDEXES_PAGE_STR_DESC, request, context); + return ListIndexesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createIndex. */ + public UnaryCallSettings createIndexSettings() { + return createIndexSettings; + } + + /** Returns the object with the settings used for calls to createIndex. */ + public OperationCallSettings + createIndexOperationSettings() { + return createIndexOperationSettings; + } + + /** Returns the object with the settings used for calls to getIndex. */ + public UnaryCallSettings getIndexSettings() { + return getIndexSettings; + } + + /** Returns the object with the settings used for calls to listIndexes. */ + public PagedCallSettings + listIndexesSettings() { + return listIndexesSettings; + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public UnaryCallSettings updateIndexSettings() { + return updateIndexSettings; + } + + /** Returns the object with the settings used for calls to updateIndex. */ + public OperationCallSettings + updateIndexOperationSettings() { + return updateIndexOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public UnaryCallSettings deleteIndexSettings() { + return deleteIndexSettings; + } + + /** Returns the object with the settings used for calls to deleteIndex. */ + public OperationCallSettings + deleteIndexOperationSettings() { + return deleteIndexOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public IndexServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcIndexServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IndexServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IndexServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createIndexSettings = settingsBuilder.createIndexSettings().build(); + createIndexOperationSettings = settingsBuilder.createIndexOperationSettings().build(); + getIndexSettings = settingsBuilder.getIndexSettings().build(); + listIndexesSettings = settingsBuilder.listIndexesSettings().build(); + updateIndexSettings = settingsBuilder.updateIndexSettings().build(); + updateIndexOperationSettings = settingsBuilder.updateIndexOperationSettings().build(); + deleteIndexSettings = settingsBuilder.deleteIndexSettings().build(); + deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build(); + } + + /** Builder for IndexServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createIndexSettings; + private final OperationCallSettings.Builder< + CreateIndexRequest, Index, CreateIndexOperationMetadata> + createIndexOperationSettings; + private final UnaryCallSettings.Builder getIndexSettings; + private final PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings; + private final UnaryCallSettings.Builder updateIndexSettings; + private final OperationCallSettings.Builder< + UpdateIndexRequest, Index, UpdateIndexOperationMetadata> + updateIndexOperationSettings; + private final UnaryCallSettings.Builder deleteIndexSettings; + private final OperationCallSettings.Builder + deleteIndexOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createIndexOperationSettings = OperationCallSettings.newBuilder(); + getIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listIndexesSettings = PagedCallSettings.newBuilder(LIST_INDEXES_PAGE_STR_FACT); + updateIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateIndexOperationSettings = OperationCallSettings.newBuilder(); + deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIndexOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexSettings, + getIndexSettings, + listIndexesSettings, + updateIndexSettings, + deleteIndexSettings); + initDefaults(this); + } + + protected Builder(IndexServiceStubSettings settings) { + super(settings); + + createIndexSettings = settings.createIndexSettings.toBuilder(); + createIndexOperationSettings = settings.createIndexOperationSettings.toBuilder(); + getIndexSettings = settings.getIndexSettings.toBuilder(); + listIndexesSettings = settings.listIndexesSettings.toBuilder(); + updateIndexSettings = settings.updateIndexSettings.toBuilder(); + updateIndexOperationSettings = settings.updateIndexOperationSettings.toBuilder(); + deleteIndexSettings = settings.deleteIndexSettings.toBuilder(); + deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIndexSettings, + getIndexSettings, + listIndexesSettings, + updateIndexSettings, + deleteIndexSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listIndexesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteIndexSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .createIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Index.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateIndexOperationMetadata.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 + .updateIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Index.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateIndexOperationMetadata.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 + .deleteIndexOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + public UnaryCallSettings.Builder createIndexSettings() { + return createIndexSettings; + } + + /** Returns the builder for the settings used for calls to createIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createIndexOperationSettings() { + return createIndexOperationSettings; + } + + /** Returns the builder for the settings used for calls to getIndex. */ + public UnaryCallSettings.Builder getIndexSettings() { + return getIndexSettings; + } + + /** Returns the builder for the settings used for calls to listIndexes. */ + public PagedCallSettings.Builder< + ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse> + listIndexesSettings() { + return listIndexesSettings; + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + public UnaryCallSettings.Builder updateIndexSettings() { + return updateIndexSettings; + } + + /** Returns the builder for the settings used for calls to updateIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateIndexOperationSettings() { + return updateIndexOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + public UnaryCallSettings.Builder deleteIndexSettings() { + return deleteIndexSettings; + } + + /** Returns the builder for the settings used for calls to deleteIndex. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteIndexOperationSettings() { + return deleteIndexOperationSettings; + } + + @Override + public IndexServiceStubSettings build() throws IOException { + return new IndexServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java index 35779a161..c457a88bd 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -20,6 +20,8 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -34,17 +36,20 @@ import com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.CustomJob; import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; import com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; @@ -54,6 +59,15 @@ import com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; +import com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -215,6 +229,88 @@ public UnaryCallable cancelBatchPredicti throw new UnsupportedOperationException("Not implemented: cancelBatchPredictionJobCallable()"); } + public UnaryCallable + createModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: createModelDeploymentMonitoringJobCallable()"); + } + + public UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchModelDeploymentMonitoringStatsAnomaliesPagedCallable()"); + } + + public UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomaliesCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchModelDeploymentMonitoringStatsAnomaliesCallable()"); + } + + public UnaryCallable + getModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: getModelDeploymentMonitoringJobCallable()"); + } + + public UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelDeploymentMonitoringJobsPagedCallable()"); + } + + public UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelDeploymentMonitoringJobsCallable()"); + } + + public OperationCallable< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateModelDeploymentMonitoringJobOperationCallable()"); + } + + public UnaryCallable + updateModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateModelDeploymentMonitoringJobCallable()"); + } + + public OperationCallable< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteModelDeploymentMonitoringJobOperationCallable()"); + } + + public UnaryCallable + deleteModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteModelDeploymentMonitoringJobCallable()"); + } + + public UnaryCallable + pauseModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: pauseModelDeploymentMonitoringJobCallable()"); + } + + public UnaryCallable + resumeModelDeploymentMonitoringJobCallable() { + throw new UnsupportedOperationException( + "Not implemented: resumeModelDeploymentMonitoringJobCallable()"); + } + @Override public abstract void close(); } 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 f01256770..2dbba97b0 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -20,6 +20,8 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -56,17 +58,20 @@ import com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.CustomJob; import com.google.cloud.aiplatform.v1beta1.DataLabelingJob; import com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; import com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest; import com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; import com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; +import com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; @@ -76,6 +81,16 @@ import com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; +import com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; +import com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; +import com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; +import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -181,6 +196,38 @@ public class JobServiceStubSettings extends StubSettings deleteBatchPredictionJobOperationSettings; private final UnaryCallSettings cancelBatchPredictionJobSettings; + private final UnaryCallSettings< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobSettings; + private final PagedCallSettings< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings; + private final UnaryCallSettings< + GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJobSettings; + private final PagedCallSettings< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings; + private final UnaryCallSettings + updateModelDeploymentMonitoringJobSettings; + private final OperationCallSettings< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings; + private final UnaryCallSettings + deleteModelDeploymentMonitoringJobSettings; + private final OperationCallSettings< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings; + private final UnaryCallSettings + pauseModelDeploymentMonitoringJobSettings; + private final UnaryCallSettings + resumeModelDeploymentMonitoringJobSettings; private static final PagedListDescriptor LIST_CUSTOM_JOBS_PAGE_STR_DESC = @@ -354,6 +401,106 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES_PAGE_STR_DESC = + new PagedListDescriptor< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchModelDeploymentMonitoringStatsAnomaliesRequest injectToken( + SearchModelDeploymentMonitoringStatsAnomaliesRequest payload, String token) { + return SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchModelDeploymentMonitoringStatsAnomaliesRequest injectPageSize( + SearchModelDeploymentMonitoringStatsAnomaliesRequest payload, int pageSize) { + return SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize( + SearchModelDeploymentMonitoringStatsAnomaliesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken( + SearchModelDeploymentMonitoringStatsAnomaliesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchModelDeploymentMonitoringStatsAnomaliesResponse payload) { + return payload.getMonitoringStatsList() == null + ? ImmutableList.of() + : payload.getMonitoringStatsList(); + } + }; + + private static final PagedListDescriptor< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + LIST_MODEL_DEPLOYMENT_MONITORING_JOBS_PAGE_STR_DESC = + new PagedListDescriptor< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListModelDeploymentMonitoringJobsRequest injectToken( + ListModelDeploymentMonitoringJobsRequest payload, String token) { + return ListModelDeploymentMonitoringJobsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListModelDeploymentMonitoringJobsRequest injectPageSize( + ListModelDeploymentMonitoringJobsRequest payload, int pageSize) { + return ListModelDeploymentMonitoringJobsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListModelDeploymentMonitoringJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListModelDeploymentMonitoringJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListModelDeploymentMonitoringJobsResponse payload) { + return payload.getModelDeploymentMonitoringJobsList() == null + ? ImmutableList.of() + : payload.getModelDeploymentMonitoringJobsList(); + } + }; + private static final PagedListResponseFactory< ListCustomJobsRequest, ListCustomJobsResponse, ListCustomJobsPagedResponse> LIST_CUSTOM_JOBS_PAGE_STR_FACT = @@ -454,6 +601,74 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + callable, + SearchModelDeploymentMonitoringStatsAnomaliesRequest request, + ApiCallContext context, + ApiFuture + futureResponse) { + PageContext< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + ModelMonitoringStatsAnomalies> + pageContext = + PageContext.create( + callable, + SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES_PAGE_STR_DESC, + request, + context); + return SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + LIST_MODEL_DEPLOYMENT_MONITORING_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse> + callable, + ListModelDeploymentMonitoringJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ModelDeploymentMonitoringJob> + pageContext = + PageContext.create( + callable, + LIST_MODEL_DEPLOYMENT_MONITORING_JOBS_PAGE_STR_DESC, + request, + context); + return ListModelDeploymentMonitoringJobsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createCustomJob. */ public UnaryCallSettings createCustomJobSettings() { return createCustomJobSettings; @@ -603,6 +818,79 @@ public UnaryCallSettings cancelDataLabeling return cancelBatchPredictionJobSettings; } + /** Returns the object with the settings used for calls to createModelDeploymentMonitoringJob. */ + public UnaryCallSettings + createModelDeploymentMonitoringJobSettings() { + return createModelDeploymentMonitoringJobSettings; + } + + /** + * Returns the object with the settings used for calls to + * searchModelDeploymentMonitoringStatsAnomalies. + */ + public PagedCallSettings< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings() { + return searchModelDeploymentMonitoringStatsAnomaliesSettings; + } + + /** Returns the object with the settings used for calls to getModelDeploymentMonitoringJob. */ + public UnaryCallSettings + getModelDeploymentMonitoringJobSettings() { + return getModelDeploymentMonitoringJobSettings; + } + + /** Returns the object with the settings used for calls to listModelDeploymentMonitoringJobs. */ + public PagedCallSettings< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings() { + return listModelDeploymentMonitoringJobsSettings; + } + + /** Returns the object with the settings used for calls to updateModelDeploymentMonitoringJob. */ + public UnaryCallSettings + updateModelDeploymentMonitoringJobSettings() { + return updateModelDeploymentMonitoringJobSettings; + } + + /** Returns the object with the settings used for calls to updateModelDeploymentMonitoringJob. */ + public OperationCallSettings< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings() { + return updateModelDeploymentMonitoringJobOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob. */ + public UnaryCallSettings + deleteModelDeploymentMonitoringJobSettings() { + return deleteModelDeploymentMonitoringJobSettings; + } + + /** Returns the object with the settings used for calls to deleteModelDeploymentMonitoringJob. */ + public OperationCallSettings< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings() { + return deleteModelDeploymentMonitoringJobOperationSettings; + } + + /** Returns the object with the settings used for calls to pauseModelDeploymentMonitoringJob. */ + public UnaryCallSettings + pauseModelDeploymentMonitoringJobSettings() { + return pauseModelDeploymentMonitoringJobSettings; + } + + /** Returns the object with the settings used for calls to resumeModelDeploymentMonitoringJob. */ + public UnaryCallSettings + resumeModelDeploymentMonitoringJobSettings() { + return resumeModelDeploymentMonitoringJobSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public JobServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -704,6 +992,26 @@ protected JobServiceStubSettings(Builder settingsBuilder) throws IOException { deleteBatchPredictionJobOperationSettings = settingsBuilder.deleteBatchPredictionJobOperationSettings().build(); cancelBatchPredictionJobSettings = settingsBuilder.cancelBatchPredictionJobSettings().build(); + createModelDeploymentMonitoringJobSettings = + settingsBuilder.createModelDeploymentMonitoringJobSettings().build(); + searchModelDeploymentMonitoringStatsAnomaliesSettings = + settingsBuilder.searchModelDeploymentMonitoringStatsAnomaliesSettings().build(); + getModelDeploymentMonitoringJobSettings = + settingsBuilder.getModelDeploymentMonitoringJobSettings().build(); + listModelDeploymentMonitoringJobsSettings = + settingsBuilder.listModelDeploymentMonitoringJobsSettings().build(); + updateModelDeploymentMonitoringJobSettings = + settingsBuilder.updateModelDeploymentMonitoringJobSettings().build(); + updateModelDeploymentMonitoringJobOperationSettings = + settingsBuilder.updateModelDeploymentMonitoringJobOperationSettings().build(); + deleteModelDeploymentMonitoringJobSettings = + settingsBuilder.deleteModelDeploymentMonitoringJobSettings().build(); + deleteModelDeploymentMonitoringJobOperationSettings = + settingsBuilder.deleteModelDeploymentMonitoringJobOperationSettings().build(); + pauseModelDeploymentMonitoringJobSettings = + settingsBuilder.pauseModelDeploymentMonitoringJobSettings().build(); + resumeModelDeploymentMonitoringJobSettings = + settingsBuilder.resumeModelDeploymentMonitoringJobSettings().build(); } /** Builder for JobServiceStubSettings. */ @@ -771,6 +1079,38 @@ public static class Builder extends StubSettings.Builder cancelBatchPredictionJobSettings; + private final UnaryCallSettings.Builder< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobSettings; + private final PagedCallSettings.Builder< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings; + private final UnaryCallSettings.Builder< + GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJobSettings; + private final PagedCallSettings.Builder< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings; + private final UnaryCallSettings.Builder + updateModelDeploymentMonitoringJobSettings; + private final OperationCallSettings.Builder< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings; + private final UnaryCallSettings.Builder + deleteModelDeploymentMonitoringJobSettings; + private final OperationCallSettings.Builder< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings; + private final UnaryCallSettings.Builder + pauseModelDeploymentMonitoringJobSettings; + private final UnaryCallSettings.Builder + resumeModelDeploymentMonitoringJobSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -778,7 +1118,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -794,7 +1136,15 @@ public static class Builder extends StubSettings.Builder>of( @@ -854,7 +1217,15 @@ protected Builder(ClientContext clientContext) { getBatchPredictionJobSettings, listBatchPredictionJobsSettings, deleteBatchPredictionJobSettings, - cancelBatchPredictionJobSettings); + cancelBatchPredictionJobSettings, + createModelDeploymentMonitoringJobSettings, + searchModelDeploymentMonitoringStatsAnomaliesSettings, + getModelDeploymentMonitoringJobSettings, + listModelDeploymentMonitoringJobsSettings, + updateModelDeploymentMonitoringJobSettings, + deleteModelDeploymentMonitoringJobSettings, + pauseModelDeploymentMonitoringJobSettings, + resumeModelDeploymentMonitoringJobSettings); initDefaults(this); } @@ -892,6 +1263,26 @@ protected Builder(JobServiceStubSettings settings) { deleteBatchPredictionJobOperationSettings = settings.deleteBatchPredictionJobOperationSettings.toBuilder(); cancelBatchPredictionJobSettings = settings.cancelBatchPredictionJobSettings.toBuilder(); + createModelDeploymentMonitoringJobSettings = + settings.createModelDeploymentMonitoringJobSettings.toBuilder(); + searchModelDeploymentMonitoringStatsAnomaliesSettings = + settings.searchModelDeploymentMonitoringStatsAnomaliesSettings.toBuilder(); + getModelDeploymentMonitoringJobSettings = + settings.getModelDeploymentMonitoringJobSettings.toBuilder(); + listModelDeploymentMonitoringJobsSettings = + settings.listModelDeploymentMonitoringJobsSettings.toBuilder(); + updateModelDeploymentMonitoringJobSettings = + settings.updateModelDeploymentMonitoringJobSettings.toBuilder(); + updateModelDeploymentMonitoringJobOperationSettings = + settings.updateModelDeploymentMonitoringJobOperationSettings.toBuilder(); + deleteModelDeploymentMonitoringJobSettings = + settings.deleteModelDeploymentMonitoringJobSettings.toBuilder(); + deleteModelDeploymentMonitoringJobOperationSettings = + settings.deleteModelDeploymentMonitoringJobOperationSettings.toBuilder(); + pauseModelDeploymentMonitoringJobSettings = + settings.pauseModelDeploymentMonitoringJobSettings.toBuilder(); + resumeModelDeploymentMonitoringJobSettings = + settings.resumeModelDeploymentMonitoringJobSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -914,7 +1305,15 @@ protected Builder(JobServiceStubSettings settings) { getBatchPredictionJobSettings, listBatchPredictionJobsSettings, deleteBatchPredictionJobSettings, - cancelBatchPredictionJobSettings); + cancelBatchPredictionJobSettings, + createModelDeploymentMonitoringJobSettings, + searchModelDeploymentMonitoringStatsAnomaliesSettings, + getModelDeploymentMonitoringJobSettings, + listModelDeploymentMonitoringJobsSettings, + updateModelDeploymentMonitoringJobSettings, + deleteModelDeploymentMonitoringJobSettings, + pauseModelDeploymentMonitoringJobSettings, + resumeModelDeploymentMonitoringJobSettings); } private static Builder createDefault() { @@ -931,111 +1330,151 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .getCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .listCustomJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .cancelCustomJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .createDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .getDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .listDataLabelingJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .cancelDataLabelingJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .createHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .getHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .listHyperparameterTuningJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .cancelHyperparameterTuningJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .createBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .getBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .listBatchPredictionJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .cancelBatchPredictionJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .createModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .searchModelDeploymentMonitoringStatsAnomaliesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .getModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .listModelDeploymentMonitoringJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .pauseModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .resumeModelDeploymentMonitoringJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); builder .deleteCustomJobOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1058,8 +1497,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1083,8 +1522,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1107,8 +1546,60 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_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 + .updateModelDeploymentMonitoringJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ModelDeploymentMonitoringJob.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateModelDeploymentMonitoringJobOperationMetadata.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 + .deleteModelDeploymentMonitoringJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -1306,6 +1797,97 @@ public UnaryCallSettings.Builder cancelCustomJobS return cancelBatchPredictionJobSettings; } + /** + * Returns the builder for the settings used for calls to createModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder< + CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJobSettings() { + return createModelDeploymentMonitoringJobSettings; + } + + /** + * Returns the builder for the settings used for calls to + * searchModelDeploymentMonitoringStatsAnomalies. + */ + public PagedCallSettings.Builder< + SearchModelDeploymentMonitoringStatsAnomaliesRequest, + SearchModelDeploymentMonitoringStatsAnomaliesResponse, + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse> + searchModelDeploymentMonitoringStatsAnomaliesSettings() { + return searchModelDeploymentMonitoringStatsAnomaliesSettings; + } + + /** Returns the builder for the settings used for calls to getModelDeploymentMonitoringJob. */ + public UnaryCallSettings.Builder< + GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJobSettings() { + return getModelDeploymentMonitoringJobSettings; + } + + /** Returns the builder for the settings used for calls to listModelDeploymentMonitoringJobs. */ + public PagedCallSettings.Builder< + ListModelDeploymentMonitoringJobsRequest, + ListModelDeploymentMonitoringJobsResponse, + ListModelDeploymentMonitoringJobsPagedResponse> + listModelDeploymentMonitoringJobsSettings() { + return listModelDeploymentMonitoringJobsSettings; + } + + /** + * Returns the builder for the settings used for calls to updateModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + updateModelDeploymentMonitoringJobSettings() { + return updateModelDeploymentMonitoringJobSettings; + } + + /** + * Returns the builder for the settings used for calls to updateModelDeploymentMonitoringJob. + */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateModelDeploymentMonitoringJobRequest, + ModelDeploymentMonitoringJob, + UpdateModelDeploymentMonitoringJobOperationMetadata> + updateModelDeploymentMonitoringJobOperationSettings() { + return updateModelDeploymentMonitoringJobOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to deleteModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + deleteModelDeploymentMonitoringJobSettings() { + return deleteModelDeploymentMonitoringJobSettings; + } + + /** + * Returns the builder for the settings used for calls to deleteModelDeploymentMonitoringJob. + */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata> + deleteModelDeploymentMonitoringJobOperationSettings() { + return deleteModelDeploymentMonitoringJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to pauseModelDeploymentMonitoringJob. */ + public UnaryCallSettings.Builder + pauseModelDeploymentMonitoringJobSettings() { + return pauseModelDeploymentMonitoringJobSettings; + } + + /** + * Returns the builder for the settings used for calls to resumeModelDeploymentMonitoringJob. + */ + public UnaryCallSettings.Builder + resumeModelDeploymentMonitoringJobSettings() { + return resumeModelDeploymentMonitoringJobSettings; + } + @Override public JobServiceStubSettings build() throws IOException { return new JobServiceStubSettings(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 new file mode 100644 index 000000000..7f749cae5 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java @@ -0,0 +1,252 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; + +import com.google.api.core.BetaApi; +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.v1beta1.AddContextArtifactsAndExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; +import com.google.cloud.aiplatform.v1beta1.Artifact; +import com.google.cloud.aiplatform.v1beta1.Context; +import com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.CreateContextRequest; +import com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest; +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.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.Execution; +import com.google.cloud.aiplatform.v1beta1.GetArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.GetContextRequest; +import com.google.cloud.aiplatform.v1beta1.GetExecutionRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.LineageSubgraph; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.ListContextsRequest; +import com.google.cloud.aiplatform.v1beta1.ListContextsResponse; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; +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.QueryArtifactLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MetadataService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class MetadataServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMetadataStoreOperationCallable()"); + } + + public UnaryCallable createMetadataStoreCallable() { + throw new UnsupportedOperationException("Not implemented: createMetadataStoreCallable()"); + } + + public UnaryCallable getMetadataStoreCallable() { + throw new UnsupportedOperationException("Not implemented: getMetadataStoreCallable()"); + } + + public UnaryCallable + listMetadataStoresPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMetadataStoresPagedCallable()"); + } + + public UnaryCallable + listMetadataStoresCallable() { + throw new UnsupportedOperationException("Not implemented: listMetadataStoresCallable()"); + } + + public OperationCallable + deleteMetadataStoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMetadataStoreOperationCallable()"); + } + + public UnaryCallable deleteMetadataStoreCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMetadataStoreCallable()"); + } + + public UnaryCallable createArtifactCallable() { + throw new UnsupportedOperationException("Not implemented: createArtifactCallable()"); + } + + public UnaryCallable getArtifactCallable() { + throw new UnsupportedOperationException("Not implemented: getArtifactCallable()"); + } + + public UnaryCallable + listArtifactsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listArtifactsPagedCallable()"); + } + + public UnaryCallable listArtifactsCallable() { + throw new UnsupportedOperationException("Not implemented: listArtifactsCallable()"); + } + + public UnaryCallable updateArtifactCallable() { + throw new UnsupportedOperationException("Not implemented: updateArtifactCallable()"); + } + + public UnaryCallable createContextCallable() { + throw new UnsupportedOperationException("Not implemented: createContextCallable()"); + } + + public UnaryCallable getContextCallable() { + throw new UnsupportedOperationException("Not implemented: getContextCallable()"); + } + + public UnaryCallable listContextsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listContextsPagedCallable()"); + } + + public UnaryCallable listContextsCallable() { + throw new UnsupportedOperationException("Not implemented: listContextsCallable()"); + } + + public UnaryCallable updateContextCallable() { + throw new UnsupportedOperationException("Not implemented: updateContextCallable()"); + } + + public OperationCallable + deleteContextOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteContextOperationCallable()"); + } + + public UnaryCallable deleteContextCallable() { + throw new UnsupportedOperationException("Not implemented: deleteContextCallable()"); + } + + public UnaryCallable< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: addContextArtifactsAndExecutionsCallable()"); + } + + public UnaryCallable + addContextChildrenCallable() { + throw new UnsupportedOperationException("Not implemented: addContextChildrenCallable()"); + } + + public UnaryCallable + queryContextLineageSubgraphCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryContextLineageSubgraphCallable()"); + } + + public UnaryCallable createExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: createExecutionCallable()"); + } + + public UnaryCallable getExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: getExecutionCallable()"); + } + + public UnaryCallable + listExecutionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsPagedCallable()"); + } + + public UnaryCallable listExecutionsCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsCallable()"); + } + + public UnaryCallable updateExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: updateExecutionCallable()"); + } + + public UnaryCallable + addExecutionEventsCallable() { + throw new UnsupportedOperationException("Not implemented: addExecutionEventsCallable()"); + } + + public UnaryCallable + queryExecutionInputsAndOutputsCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryExecutionInputsAndOutputsCallable()"); + } + + public UnaryCallable createMetadataSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: createMetadataSchemaCallable()"); + } + + public UnaryCallable getMetadataSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: getMetadataSchemaCallable()"); + } + + public UnaryCallable + listMetadataSchemasPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMetadataSchemasPagedCallable()"); + } + + public UnaryCallable + listMetadataSchemasCallable() { + throw new UnsupportedOperationException("Not implemented: listMetadataSchemasCallable()"); + } + + public UnaryCallable + queryArtifactLineageSubgraphCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryArtifactLineageSubgraphCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..ae9c7dea1 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java @@ -0,0 +1,1406 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; +import com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; +import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; +import com.google.cloud.aiplatform.v1beta1.Artifact; +import com.google.cloud.aiplatform.v1beta1.Context; +import com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.CreateContextRequest; +import com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest; +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.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.Execution; +import com.google.cloud.aiplatform.v1beta1.GetArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.GetContextRequest; +import com.google.cloud.aiplatform.v1beta1.GetExecutionRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; +import com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.LineageSubgraph; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.ListContextsRequest; +import com.google.cloud.aiplatform.v1beta1.ListContextsResponse; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; +import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; +import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; +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.QueryArtifactLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; +import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MetadataServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * MetadataServiceStubSettings.Builder metadataServiceSettingsBuilder =
+ *     MetadataServiceStubSettings.newBuilder();
+ * metadataServiceSettingsBuilder
+ *     .getMetadataStoreSettings()
+ *     .setRetrySettings(
+ *         metadataServiceSettingsBuilder
+ *             .getMetadataStoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * MetadataServiceStubSettings metadataServiceSettings = metadataServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class MetadataServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + createMetadataStoreSettings; + private final OperationCallSettings< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings; + private final UnaryCallSettings getMetadataStoreSettings; + private final PagedCallSettings< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings; + private final UnaryCallSettings + deleteMetadataStoreSettings; + private final OperationCallSettings< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings; + private final UnaryCallSettings createArtifactSettings; + private final UnaryCallSettings getArtifactSettings; + private final PagedCallSettings< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse> + listArtifactsSettings; + private final UnaryCallSettings updateArtifactSettings; + private final UnaryCallSettings createContextSettings; + private final UnaryCallSettings getContextSettings; + private final PagedCallSettings< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> + listContextsSettings; + private final UnaryCallSettings updateContextSettings; + private final UnaryCallSettings deleteContextSettings; + private final OperationCallSettings + deleteContextOperationSettings; + private final UnaryCallSettings< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings; + private final UnaryCallSettings + addContextChildrenSettings; + private final UnaryCallSettings + queryContextLineageSubgraphSettings; + private final UnaryCallSettings createExecutionSettings; + private final UnaryCallSettings getExecutionSettings; + private final PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings updateExecutionSettings; + private final UnaryCallSettings + addExecutionEventsSettings; + private final UnaryCallSettings + queryExecutionInputsAndOutputsSettings; + private final UnaryCallSettings + createMetadataSchemaSettings; + private final UnaryCallSettings + getMetadataSchemaSettings; + private final PagedCallSettings< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings; + private final UnaryCallSettings + queryArtifactLineageSubgraphSettings; + + private static final PagedListDescriptor< + ListMetadataStoresRequest, ListMetadataStoresResponse, MetadataStore> + LIST_METADATA_STORES_PAGE_STR_DESC = + new PagedListDescriptor< + ListMetadataStoresRequest, ListMetadataStoresResponse, MetadataStore>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMetadataStoresRequest injectToken( + ListMetadataStoresRequest payload, String token) { + return ListMetadataStoresRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMetadataStoresRequest injectPageSize( + ListMetadataStoresRequest payload, int pageSize) { + return ListMetadataStoresRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMetadataStoresRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMetadataStoresResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMetadataStoresResponse payload) { + return payload.getMetadataStoresList() == null + ? ImmutableList.of() + : payload.getMetadataStoresList(); + } + }; + + private static final PagedListDescriptor + LIST_ARTIFACTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListArtifactsRequest injectToken(ListArtifactsRequest payload, String token) { + return ListArtifactsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListArtifactsRequest injectPageSize(ListArtifactsRequest payload, int pageSize) { + return ListArtifactsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListArtifactsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListArtifactsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListArtifactsResponse payload) { + return payload.getArtifactsList() == null + ? ImmutableList.of() + : payload.getArtifactsList(); + } + }; + + private static final PagedListDescriptor + LIST_CONTEXTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContextsRequest injectToken(ListContextsRequest payload, String token) { + return ListContextsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListContextsRequest injectPageSize(ListContextsRequest payload, int pageSize) { + return ListContextsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListContextsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContextsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListContextsResponse payload) { + return payload.getContextsList() == null + ? ImmutableList.of() + : payload.getContextsList(); + } + }; + + private static final PagedListDescriptor + LIST_EXECUTIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExecutionsRequest injectToken(ListExecutionsRequest payload, String token) { + return ListExecutionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExecutionsRequest injectPageSize( + ListExecutionsRequest payload, int pageSize) { + return ListExecutionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExecutionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExecutionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExecutionsResponse payload) { + return payload.getExecutionsList() == null + ? ImmutableList.of() + : payload.getExecutionsList(); + } + }; + + private static final PagedListDescriptor< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, MetadataSchema> + LIST_METADATA_SCHEMAS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, MetadataSchema>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMetadataSchemasRequest injectToken( + ListMetadataSchemasRequest payload, String token) { + return ListMetadataSchemasRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMetadataSchemasRequest injectPageSize( + ListMetadataSchemasRequest payload, int pageSize) { + return ListMetadataSchemasRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMetadataSchemasRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMetadataSchemasResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMetadataSchemasResponse payload) { + return payload.getMetadataSchemasList() == null + ? ImmutableList.of() + : payload.getMetadataSchemasList(); + } + }; + + private static final PagedListResponseFactory< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + LIST_METADATA_STORES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMetadataStoresRequest, + ListMetadataStoresResponse, + ListMetadataStoresPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMetadataStoresRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_METADATA_STORES_PAGE_STR_DESC, request, context); + return ListMetadataStoresPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse> + LIST_ARTIFACTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListArtifactsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ARTIFACTS_PAGE_STR_DESC, request, context); + return ListArtifactsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> + LIST_CONTEXTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListContextsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CONTEXTS_PAGE_STR_DESC, request, context); + return ListContextsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + LIST_EXECUTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExecutionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EXECUTIONS_PAGE_STR_DESC, request, context); + return ListExecutionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, ListMetadataSchemasPagedResponse> + LIST_METADATA_SCHEMAS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + ListMetadataSchemasPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMetadataSchemasRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_METADATA_SCHEMAS_PAGE_STR_DESC, request, context); + return ListMetadataSchemasPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createMetadataStore. */ + public UnaryCallSettings createMetadataStoreSettings() { + return createMetadataStoreSettings; + } + + /** Returns the object with the settings used for calls to createMetadataStore. */ + public OperationCallSettings< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings() { + return createMetadataStoreOperationSettings; + } + + /** Returns the object with the settings used for calls to getMetadataStore. */ + public UnaryCallSettings getMetadataStoreSettings() { + return getMetadataStoreSettings; + } + + /** Returns the object with the settings used for calls to listMetadataStores. */ + public PagedCallSettings< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings() { + return listMetadataStoresSettings; + } + + /** Returns the object with the settings used for calls to deleteMetadataStore. */ + public UnaryCallSettings deleteMetadataStoreSettings() { + return deleteMetadataStoreSettings; + } + + /** Returns the object with the settings used for calls to deleteMetadataStore. */ + public OperationCallSettings< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings() { + return deleteMetadataStoreOperationSettings; + } + + /** Returns the object with the settings used for calls to createArtifact. */ + public UnaryCallSettings createArtifactSettings() { + return createArtifactSettings; + } + + /** Returns the object with the settings used for calls to getArtifact. */ + public UnaryCallSettings getArtifactSettings() { + return getArtifactSettings; + } + + /** Returns the object with the settings used for calls to listArtifacts. */ + public PagedCallSettings + listArtifactsSettings() { + return listArtifactsSettings; + } + + /** Returns the object with the settings used for calls to updateArtifact. */ + public UnaryCallSettings updateArtifactSettings() { + return updateArtifactSettings; + } + + /** Returns the object with the settings used for calls to createContext. */ + public UnaryCallSettings createContextSettings() { + return createContextSettings; + } + + /** Returns the object with the settings used for calls to getContext. */ + public UnaryCallSettings getContextSettings() { + return getContextSettings; + } + + /** Returns the object with the settings used for calls to listContexts. */ + public PagedCallSettings + listContextsSettings() { + return listContextsSettings; + } + + /** Returns the object with the settings used for calls to updateContext. */ + public UnaryCallSettings updateContextSettings() { + return updateContextSettings; + } + + /** Returns the object with the settings used for calls to deleteContext. */ + public UnaryCallSettings deleteContextSettings() { + return deleteContextSettings; + } + + /** Returns the object with the settings used for calls to deleteContext. */ + public OperationCallSettings + deleteContextOperationSettings() { + return deleteContextOperationSettings; + } + + /** Returns the object with the settings used for calls to addContextArtifactsAndExecutions. */ + public UnaryCallSettings< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings() { + return addContextArtifactsAndExecutionsSettings; + } + + /** Returns the object with the settings used for calls to addContextChildren. */ + public UnaryCallSettings + addContextChildrenSettings() { + return addContextChildrenSettings; + } + + /** Returns the object with the settings used for calls to queryContextLineageSubgraph. */ + public UnaryCallSettings + queryContextLineageSubgraphSettings() { + return queryContextLineageSubgraphSettings; + } + + /** Returns the object with the settings used for calls to createExecution. */ + public UnaryCallSettings createExecutionSettings() { + return createExecutionSettings; + } + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the object with the settings used for calls to updateExecution. */ + public UnaryCallSettings updateExecutionSettings() { + return updateExecutionSettings; + } + + /** Returns the object with the settings used for calls to addExecutionEvents. */ + public UnaryCallSettings + addExecutionEventsSettings() { + return addExecutionEventsSettings; + } + + /** Returns the object with the settings used for calls to queryExecutionInputsAndOutputs. */ + public UnaryCallSettings + queryExecutionInputsAndOutputsSettings() { + return queryExecutionInputsAndOutputsSettings; + } + + /** Returns the object with the settings used for calls to createMetadataSchema. */ + public UnaryCallSettings + createMetadataSchemaSettings() { + return createMetadataSchemaSettings; + } + + /** Returns the object with the settings used for calls to getMetadataSchema. */ + public UnaryCallSettings getMetadataSchemaSettings() { + return getMetadataSchemaSettings; + } + + /** Returns the object with the settings used for calls to listMetadataSchemas. */ + public PagedCallSettings< + ListMetadataSchemasRequest, ListMetadataSchemasResponse, ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings() { + return listMetadataSchemasSettings; + } + + /** Returns the object with the settings used for calls to queryArtifactLineageSubgraph. */ + public UnaryCallSettings + queryArtifactLineageSubgraphSettings() { + return queryArtifactLineageSubgraphSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MetadataServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMetadataServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MetadataServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MetadataServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createMetadataStoreSettings = settingsBuilder.createMetadataStoreSettings().build(); + createMetadataStoreOperationSettings = + settingsBuilder.createMetadataStoreOperationSettings().build(); + getMetadataStoreSettings = settingsBuilder.getMetadataStoreSettings().build(); + listMetadataStoresSettings = settingsBuilder.listMetadataStoresSettings().build(); + deleteMetadataStoreSettings = settingsBuilder.deleteMetadataStoreSettings().build(); + deleteMetadataStoreOperationSettings = + settingsBuilder.deleteMetadataStoreOperationSettings().build(); + createArtifactSettings = settingsBuilder.createArtifactSettings().build(); + getArtifactSettings = settingsBuilder.getArtifactSettings().build(); + listArtifactsSettings = settingsBuilder.listArtifactsSettings().build(); + updateArtifactSettings = settingsBuilder.updateArtifactSettings().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(); + addContextArtifactsAndExecutionsSettings = + settingsBuilder.addContextArtifactsAndExecutionsSettings().build(); + addContextChildrenSettings = settingsBuilder.addContextChildrenSettings().build(); + queryContextLineageSubgraphSettings = + settingsBuilder.queryContextLineageSubgraphSettings().build(); + createExecutionSettings = settingsBuilder.createExecutionSettings().build(); + getExecutionSettings = settingsBuilder.getExecutionSettings().build(); + listExecutionsSettings = settingsBuilder.listExecutionsSettings().build(); + updateExecutionSettings = settingsBuilder.updateExecutionSettings().build(); + addExecutionEventsSettings = settingsBuilder.addExecutionEventsSettings().build(); + queryExecutionInputsAndOutputsSettings = + settingsBuilder.queryExecutionInputsAndOutputsSettings().build(); + createMetadataSchemaSettings = settingsBuilder.createMetadataSchemaSettings().build(); + getMetadataSchemaSettings = settingsBuilder.getMetadataSchemaSettings().build(); + listMetadataSchemasSettings = settingsBuilder.listMetadataSchemasSettings().build(); + queryArtifactLineageSubgraphSettings = + settingsBuilder.queryArtifactLineageSubgraphSettings().build(); + } + + /** Builder for MetadataServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createMetadataStoreSettings; + private final OperationCallSettings.Builder< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings; + private final UnaryCallSettings.Builder + getMetadataStoreSettings; + private final PagedCallSettings.Builder< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings; + private final UnaryCallSettings.Builder + deleteMetadataStoreSettings; + private final OperationCallSettings.Builder< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings; + private final UnaryCallSettings.Builder createArtifactSettings; + private final UnaryCallSettings.Builder getArtifactSettings; + private final PagedCallSettings.Builder< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse> + listArtifactsSettings; + private final UnaryCallSettings.Builder updateArtifactSettings; + private final UnaryCallSettings.Builder createContextSettings; + private final UnaryCallSettings.Builder getContextSettings; + private final PagedCallSettings.Builder< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> + listContextsSettings; + private final UnaryCallSettings.Builder updateContextSettings; + private final UnaryCallSettings.Builder deleteContextSettings; + private final OperationCallSettings.Builder< + DeleteContextRequest, Empty, DeleteOperationMetadata> + deleteContextOperationSettings; + private final UnaryCallSettings.Builder< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings; + private final UnaryCallSettings.Builder + addContextChildrenSettings; + private final UnaryCallSettings.Builder + queryContextLineageSubgraphSettings; + private final UnaryCallSettings.Builder + createExecutionSettings; + private final UnaryCallSettings.Builder getExecutionSettings; + private final PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings.Builder + updateExecutionSettings; + private final UnaryCallSettings.Builder + addExecutionEventsSettings; + private final UnaryCallSettings.Builder + queryExecutionInputsAndOutputsSettings; + private final UnaryCallSettings.Builder + createMetadataSchemaSettings; + private final UnaryCallSettings.Builder + getMetadataSchemaSettings; + private final PagedCallSettings.Builder< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings; + private final UnaryCallSettings.Builder + queryArtifactLineageSubgraphSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_6_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createMetadataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMetadataStoreOperationSettings = OperationCallSettings.newBuilder(); + getMetadataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMetadataStoresSettings = PagedCallSettings.newBuilder(LIST_METADATA_STORES_PAGE_STR_FACT); + deleteMetadataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMetadataStoreOperationSettings = OperationCallSettings.newBuilder(); + createArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listArtifactsSettings = PagedCallSettings.newBuilder(LIST_ARTIFACTS_PAGE_STR_FACT); + updateArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listContextsSettings = PagedCallSettings.newBuilder(LIST_CONTEXTS_PAGE_STR_FACT); + updateContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteContextOperationSettings = OperationCallSettings.newBuilder(); + addContextArtifactsAndExecutionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addContextChildrenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryContextLineageSubgraphSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); + updateExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addExecutionEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryExecutionInputsAndOutputsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMetadataSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMetadataSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMetadataSchemasSettings = + PagedCallSettings.newBuilder(LIST_METADATA_SCHEMAS_PAGE_STR_FACT); + queryArtifactLineageSubgraphSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createMetadataStoreSettings, + getMetadataStoreSettings, + listMetadataStoresSettings, + deleteMetadataStoreSettings, + createArtifactSettings, + getArtifactSettings, + listArtifactsSettings, + updateArtifactSettings, + createContextSettings, + getContextSettings, + listContextsSettings, + updateContextSettings, + deleteContextSettings, + addContextArtifactsAndExecutionsSettings, + addContextChildrenSettings, + queryContextLineageSubgraphSettings, + createExecutionSettings, + getExecutionSettings, + listExecutionsSettings, + updateExecutionSettings, + addExecutionEventsSettings, + queryExecutionInputsAndOutputsSettings, + createMetadataSchemaSettings, + getMetadataSchemaSettings, + listMetadataSchemasSettings, + queryArtifactLineageSubgraphSettings); + initDefaults(this); + } + + protected Builder(MetadataServiceStubSettings settings) { + super(settings); + + createMetadataStoreSettings = settings.createMetadataStoreSettings.toBuilder(); + createMetadataStoreOperationSettings = + settings.createMetadataStoreOperationSettings.toBuilder(); + getMetadataStoreSettings = settings.getMetadataStoreSettings.toBuilder(); + listMetadataStoresSettings = settings.listMetadataStoresSettings.toBuilder(); + deleteMetadataStoreSettings = settings.deleteMetadataStoreSettings.toBuilder(); + deleteMetadataStoreOperationSettings = + settings.deleteMetadataStoreOperationSettings.toBuilder(); + createArtifactSettings = settings.createArtifactSettings.toBuilder(); + getArtifactSettings = settings.getArtifactSettings.toBuilder(); + listArtifactsSettings = settings.listArtifactsSettings.toBuilder(); + updateArtifactSettings = settings.updateArtifactSettings.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(); + addContextArtifactsAndExecutionsSettings = + settings.addContextArtifactsAndExecutionsSettings.toBuilder(); + addContextChildrenSettings = settings.addContextChildrenSettings.toBuilder(); + queryContextLineageSubgraphSettings = + settings.queryContextLineageSubgraphSettings.toBuilder(); + createExecutionSettings = settings.createExecutionSettings.toBuilder(); + getExecutionSettings = settings.getExecutionSettings.toBuilder(); + listExecutionsSettings = settings.listExecutionsSettings.toBuilder(); + updateExecutionSettings = settings.updateExecutionSettings.toBuilder(); + addExecutionEventsSettings = settings.addExecutionEventsSettings.toBuilder(); + queryExecutionInputsAndOutputsSettings = + settings.queryExecutionInputsAndOutputsSettings.toBuilder(); + createMetadataSchemaSettings = settings.createMetadataSchemaSettings.toBuilder(); + getMetadataSchemaSettings = settings.getMetadataSchemaSettings.toBuilder(); + listMetadataSchemasSettings = settings.listMetadataSchemasSettings.toBuilder(); + queryArtifactLineageSubgraphSettings = + settings.queryArtifactLineageSubgraphSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createMetadataStoreSettings, + getMetadataStoreSettings, + listMetadataStoresSettings, + deleteMetadataStoreSettings, + createArtifactSettings, + getArtifactSettings, + listArtifactsSettings, + updateArtifactSettings, + createContextSettings, + getContextSettings, + listContextsSettings, + updateContextSettings, + deleteContextSettings, + addContextArtifactsAndExecutionsSettings, + addContextChildrenSettings, + queryContextLineageSubgraphSettings, + createExecutionSettings, + getExecutionSettings, + listExecutionsSettings, + updateExecutionSettings, + addExecutionEventsSettings, + queryExecutionInputsAndOutputsSettings, + createMetadataSchemaSettings, + getMetadataSchemaSettings, + listMetadataSchemasSettings, + queryArtifactLineageSubgraphSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createMetadataStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .getMetadataStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .listMetadataStoresSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .deleteMetadataStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .createArtifactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .getArtifactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .listArtifactsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .updateArtifactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .createContextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .getContextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .listContextsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .updateContextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .deleteContextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .addContextArtifactsAndExecutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .addContextChildrenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .queryContextLineageSubgraphSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .createExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .getExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .listExecutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .updateExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .addExecutionEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .queryExecutionInputsAndOutputsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .createMetadataSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .getMetadataSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .listMetadataSchemasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .queryArtifactLineageSubgraphSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMetadataStoreOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MetadataStore.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateMetadataStoreOperationMetadata.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 + .deleteMetadataStoreOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeleteMetadataStoreOperationMetadata.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( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createMetadataStore. */ + public UnaryCallSettings.Builder + createMetadataStoreSettings() { + return createMetadataStoreSettings; + } + + /** Returns the builder for the settings used for calls to createMetadataStore. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> + createMetadataStoreOperationSettings() { + return createMetadataStoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to getMetadataStore. */ + public UnaryCallSettings.Builder + getMetadataStoreSettings() { + return getMetadataStoreSettings; + } + + /** Returns the builder for the settings used for calls to listMetadataStores. */ + public PagedCallSettings.Builder< + ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse> + listMetadataStoresSettings() { + return listMetadataStoresSettings; + } + + /** Returns the builder for the settings used for calls to deleteMetadataStore. */ + public UnaryCallSettings.Builder + deleteMetadataStoreSettings() { + return deleteMetadataStoreSettings; + } + + /** Returns the builder for the settings used for calls to deleteMetadataStore. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> + deleteMetadataStoreOperationSettings() { + return deleteMetadataStoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to createArtifact. */ + public UnaryCallSettings.Builder createArtifactSettings() { + return createArtifactSettings; + } + + /** Returns the builder for the settings used for calls to getArtifact. */ + public UnaryCallSettings.Builder getArtifactSettings() { + return getArtifactSettings; + } + + /** Returns the builder for the settings used for calls to listArtifacts. */ + public PagedCallSettings.Builder< + ListArtifactsRequest, ListArtifactsResponse, ListArtifactsPagedResponse> + listArtifactsSettings() { + return listArtifactsSettings; + } + + /** Returns the builder for the settings used for calls to updateArtifact. */ + public UnaryCallSettings.Builder updateArtifactSettings() { + return updateArtifactSettings; + } + + /** Returns the builder for the settings used for calls to createContext. */ + public UnaryCallSettings.Builder createContextSettings() { + return createContextSettings; + } + + /** Returns the builder for the settings used for calls to getContext. */ + public UnaryCallSettings.Builder getContextSettings() { + return getContextSettings; + } + + /** Returns the builder for the settings used for calls to listContexts. */ + public PagedCallSettings.Builder< + ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> + listContextsSettings() { + return listContextsSettings; + } + + /** Returns the builder for the settings used for calls to updateContext. */ + public UnaryCallSettings.Builder updateContextSettings() { + return updateContextSettings; + } + + /** Returns the builder for the settings used for calls to deleteContext. */ + public UnaryCallSettings.Builder deleteContextSettings() { + return deleteContextSettings; + } + + /** Returns the builder for the settings used for calls to deleteContext. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteContextOperationSettings() { + return deleteContextOperationSettings; + } + + /** Returns the builder for the settings used for calls to addContextArtifactsAndExecutions. */ + public UnaryCallSettings.Builder< + AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutionsSettings() { + return addContextArtifactsAndExecutionsSettings; + } + + /** Returns the builder for the settings used for calls to addContextChildren. */ + public UnaryCallSettings.Builder + addContextChildrenSettings() { + return addContextChildrenSettings; + } + + /** Returns the builder for the settings used for calls to queryContextLineageSubgraph. */ + public UnaryCallSettings.Builder + queryContextLineageSubgraphSettings() { + return queryContextLineageSubgraphSettings; + } + + /** Returns the builder for the settings used for calls to createExecution. */ + public UnaryCallSettings.Builder createExecutionSettings() { + return createExecutionSettings; + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the builder for the settings used for calls to updateExecution. */ + public UnaryCallSettings.Builder updateExecutionSettings() { + return updateExecutionSettings; + } + + /** Returns the builder for the settings used for calls to addExecutionEvents. */ + public UnaryCallSettings.Builder + addExecutionEventsSettings() { + return addExecutionEventsSettings; + } + + /** Returns the builder for the settings used for calls to queryExecutionInputsAndOutputs. */ + public UnaryCallSettings.Builder + queryExecutionInputsAndOutputsSettings() { + return queryExecutionInputsAndOutputsSettings; + } + + /** Returns the builder for the settings used for calls to createMetadataSchema. */ + public UnaryCallSettings.Builder + createMetadataSchemaSettings() { + return createMetadataSchemaSettings; + } + + /** Returns the builder for the settings used for calls to getMetadataSchema. */ + public UnaryCallSettings.Builder + getMetadataSchemaSettings() { + return getMetadataSchemaSettings; + } + + /** Returns the builder for the settings used for calls to listMetadataSchemas. */ + public PagedCallSettings.Builder< + ListMetadataSchemasRequest, + ListMetadataSchemasResponse, + ListMetadataSchemasPagedResponse> + listMetadataSchemasSettings() { + return listMetadataSchemasSettings; + } + + /** Returns the builder for the settings used for calls to queryArtifactLineageSubgraph. */ + public UnaryCallSettings.Builder + queryArtifactLineageSubgraphSettings() { + return queryArtifactLineageSubgraphSettings; + } + + @Override + public MetadataServiceStubSettings build() throws IOException { + return new MetadataServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java index 0838a35d4..2cce89e36 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 b43434fd5..b5b2dae43 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java index a0496db40..644d8376b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 bccebc101..7132d600b 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -545,7 +545,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_7_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -561,7 +561,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(UploadModelResponse.class)) @@ -724,8 +724,8 @@ private static Builder initDefaults(Builder builder) { .deleteModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -747,8 +747,8 @@ private static Builder initDefaults(Builder builder) { .exportModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ExportModelResponse.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java index 3cba40f35..a45c73ec9 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java @@ -1,5 +1,5 @@ /* - * 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. @@ -16,19 +16,27 @@ package com.google.cloud.aiplatform.v1beta1.stub; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.core.BetaApi; 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.v1beta1.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1beta1.PipelineJob; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -83,6 +91,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/v1beta1/stub/PipelineServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java index e469a7986..8c1fbefcc 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1.stub; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1beta1.PipelineJob; import com.google.cloud.aiplatform.v1beta1.TrainingPipeline; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -117,6 +125,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> @@ -159,6 +176,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, @@ -183,6 +240,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() { @@ -221,6 +297,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() @@ -297,6 +406,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. */ @@ -318,6 +434,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; @@ -325,7 +455,8 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_8_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -341,7 +472,9 @@ public static class Builder extends StubSettings.Builder>of( @@ -366,7 +505,12 @@ protected Builder(ClientContext clientContext) { getTrainingPipelineSettings, listTrainingPipelinesSettings, deleteTrainingPipelineSettings, - cancelTrainingPipelineSettings); + cancelTrainingPipelineSettings, + createPipelineJobSettings, + getPipelineJobSettings, + listPipelineJobsSettings, + deletePipelineJobSettings, + cancelPipelineJobSettings); initDefaults(this); } @@ -380,6 +524,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( @@ -387,7 +537,12 @@ protected Builder(PipelineServiceStubSettings settings) { getTrainingPipelineSettings, listTrainingPipelinesSettings, deleteTrainingPipelineSettings, - cancelTrainingPipelineSettings); + cancelTrainingPipelineSettings, + createPipelineJobSettings, + getPipelineJobSettings, + listPipelineJobsSettings, + deletePipelineJobSettings, + cancelPipelineJobSettings); } private static Builder createDefault() { @@ -404,36 +559,85 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); builder .getTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); builder .listTrainingPipelinesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); builder .deleteTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); builder .cancelTrainingPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_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( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_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 + .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)) @@ -512,6 +716,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/v1beta1/stub/PredictionServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java index 0dc82229b..6b1b4fea3 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java @@ -1,5 +1,5 @@ /* - * 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/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 32b5fd5b5..66408c2f5 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -182,7 +182,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_9_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -198,7 +198,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_10_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -365,7 +365,7 @@ public static class Builder .setMaxRpcTimeout(Duration.ofMillis(5000L)) .setTotalTimeout(Duration.ofMillis(5000L)) .build(); - definitions.put("no_retry_6_params", settings); + definitions.put("no_retry_10_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -434,36 +434,36 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .createSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")); builder .getSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")); builder .listSpecialistPoolsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")); builder .deleteSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")); builder .updateSpecialistPoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")); builder .createSpecialistPoolOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SpecialistPool.class)) @@ -487,8 +487,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -511,8 +511,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SpecialistPool.class)) diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java new file mode 100644 index 000000000..90cd23464 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java @@ -0,0 +1,279 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.Tensorboard; +import com.google.cloud.aiplatform.v1beta1.TensorboardExperiment; +import com.google.cloud.aiplatform.v1beta1.TensorboardRun; +import com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TensorboardService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class TensorboardServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createTensorboardOperationCallable()"); + } + + public UnaryCallable createTensorboardCallable() { + throw new UnsupportedOperationException("Not implemented: createTensorboardCallable()"); + } + + public UnaryCallable getTensorboardCallable() { + throw new UnsupportedOperationException("Not implemented: getTensorboardCallable()"); + } + + public OperationCallable< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateTensorboardOperationCallable()"); + } + + public UnaryCallable updateTensorboardCallable() { + throw new UnsupportedOperationException("Not implemented: updateTensorboardCallable()"); + } + + public UnaryCallable + listTensorboardsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTensorboardsPagedCallable()"); + } + + public UnaryCallable + listTensorboardsCallable() { + throw new UnsupportedOperationException("Not implemented: listTensorboardsCallable()"); + } + + public OperationCallable + deleteTensorboardOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardOperationCallable()"); + } + + public UnaryCallable deleteTensorboardCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTensorboardCallable()"); + } + + public UnaryCallable + createTensorboardExperimentCallable() { + throw new UnsupportedOperationException( + "Not implemented: createTensorboardExperimentCallable()"); + } + + public UnaryCallable + getTensorboardExperimentCallable() { + throw new UnsupportedOperationException("Not implemented: getTensorboardExperimentCallable()"); + } + + public UnaryCallable + updateTensorboardExperimentCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateTensorboardExperimentCallable()"); + } + + public UnaryCallable + listTensorboardExperimentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTensorboardExperimentsPagedCallable()"); + } + + public UnaryCallable + listTensorboardExperimentsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTensorboardExperimentsCallable()"); + } + + public OperationCallable + deleteTensorboardExperimentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardExperimentOperationCallable()"); + } + + public UnaryCallable + deleteTensorboardExperimentCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardExperimentCallable()"); + } + + public UnaryCallable createTensorboardRunCallable() { + throw new UnsupportedOperationException("Not implemented: createTensorboardRunCallable()"); + } + + public UnaryCallable getTensorboardRunCallable() { + throw new UnsupportedOperationException("Not implemented: getTensorboardRunCallable()"); + } + + public UnaryCallable updateTensorboardRunCallable() { + throw new UnsupportedOperationException("Not implemented: updateTensorboardRunCallable()"); + } + + public UnaryCallable + listTensorboardRunsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTensorboardRunsPagedCallable()"); + } + + public UnaryCallable + listTensorboardRunsCallable() { + throw new UnsupportedOperationException("Not implemented: listTensorboardRunsCallable()"); + } + + public OperationCallable + deleteTensorboardRunOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardRunOperationCallable()"); + } + + public UnaryCallable deleteTensorboardRunCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTensorboardRunCallable()"); + } + + public UnaryCallable + createTensorboardTimeSeriesCallable() { + throw new UnsupportedOperationException( + "Not implemented: createTensorboardTimeSeriesCallable()"); + } + + public UnaryCallable + getTensorboardTimeSeriesCallable() { + throw new UnsupportedOperationException("Not implemented: getTensorboardTimeSeriesCallable()"); + } + + public UnaryCallable + updateTensorboardTimeSeriesCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateTensorboardTimeSeriesCallable()"); + } + + public UnaryCallable + listTensorboardTimeSeriesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTensorboardTimeSeriesPagedCallable()"); + } + + public UnaryCallable + listTensorboardTimeSeriesCallable() { + throw new UnsupportedOperationException("Not implemented: listTensorboardTimeSeriesCallable()"); + } + + public OperationCallable + deleteTensorboardTimeSeriesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardTimeSeriesOperationCallable()"); + } + + public UnaryCallable + deleteTensorboardTimeSeriesCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTensorboardTimeSeriesCallable()"); + } + + public UnaryCallable + readTensorboardTimeSeriesDataCallable() { + throw new UnsupportedOperationException( + "Not implemented: readTensorboardTimeSeriesDataCallable()"); + } + + public ServerStreamingCallable + readTensorboardBlobDataCallable() { + throw new UnsupportedOperationException("Not implemented: readTensorboardBlobDataCallable()"); + } + + public UnaryCallable + writeTensorboardRunDataCallable() { + throw new UnsupportedOperationException("Not implemented: writeTensorboardRunDataCallable()"); + } + + public UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportTensorboardTimeSeriesDataPagedCallable()"); + } + + public UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesDataCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportTensorboardTimeSeriesDataCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..660eeb843 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java @@ -0,0 +1,1646 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest; +import com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse; +import com.google.cloud.aiplatform.v1beta1.Tensorboard; +import com.google.cloud.aiplatform.v1beta1.TensorboardExperiment; +import com.google.cloud.aiplatform.v1beta1.TensorboardRun; +import com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries; +import com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest; +import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TensorboardServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * TensorboardServiceStubSettings.Builder tensorboardServiceSettingsBuilder =
+ *     TensorboardServiceStubSettings.newBuilder();
+ * tensorboardServiceSettingsBuilder
+ *     .getTensorboardSettings()
+ *     .setRetrySettings(
+ *         tensorboardServiceSettingsBuilder
+ *             .getTensorboardSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TensorboardServiceStubSettings tensorboardServiceSettings =
+ *     tensorboardServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TensorboardServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createTensorboardSettings; + private final OperationCallSettings< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings; + private final UnaryCallSettings getTensorboardSettings; + private final UnaryCallSettings updateTensorboardSettings; + private final OperationCallSettings< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings; + private final PagedCallSettings< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings; + private final UnaryCallSettings deleteTensorboardSettings; + private final OperationCallSettings + deleteTensorboardOperationSettings; + private final UnaryCallSettings + createTensorboardExperimentSettings; + private final UnaryCallSettings + getTensorboardExperimentSettings; + private final UnaryCallSettings + updateTensorboardExperimentSettings; + private final PagedCallSettings< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings; + private final UnaryCallSettings + deleteTensorboardExperimentSettings; + private final OperationCallSettings< + DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata> + deleteTensorboardExperimentOperationSettings; + private final UnaryCallSettings + createTensorboardRunSettings; + private final UnaryCallSettings + getTensorboardRunSettings; + private final UnaryCallSettings + updateTensorboardRunSettings; + private final PagedCallSettings< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings; + private final UnaryCallSettings + deleteTensorboardRunSettings; + private final OperationCallSettings + deleteTensorboardRunOperationSettings; + private final UnaryCallSettings + createTensorboardTimeSeriesSettings; + private final UnaryCallSettings + getTensorboardTimeSeriesSettings; + private final UnaryCallSettings + updateTensorboardTimeSeriesSettings; + private final PagedCallSettings< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings; + private final UnaryCallSettings + deleteTensorboardTimeSeriesSettings; + private final OperationCallSettings< + DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata> + deleteTensorboardTimeSeriesOperationSettings; + private final UnaryCallSettings< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings; + private final ServerStreamingCallSettings< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings; + private final UnaryCallSettings + writeTensorboardRunDataSettings; + private final PagedCallSettings< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings; + + private static final PagedListDescriptor< + ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard> + LIST_TENSORBOARDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTensorboardsRequest injectToken( + ListTensorboardsRequest payload, String token) { + return ListTensorboardsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTensorboardsRequest injectPageSize( + ListTensorboardsRequest payload, int pageSize) { + return ListTensorboardsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTensorboardsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTensorboardsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTensorboardsResponse payload) { + return payload.getTensorboardsList() == null + ? ImmutableList.of() + : payload.getTensorboardsList(); + } + }; + + private static final PagedListDescriptor< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + LIST_TENSORBOARD_EXPERIMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTensorboardExperimentsRequest injectToken( + ListTensorboardExperimentsRequest payload, String token) { + return ListTensorboardExperimentsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListTensorboardExperimentsRequest injectPageSize( + ListTensorboardExperimentsRequest payload, int pageSize) { + return ListTensorboardExperimentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListTensorboardExperimentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTensorboardExperimentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListTensorboardExperimentsResponse payload) { + return payload.getTensorboardExperimentsList() == null + ? ImmutableList.of() + : payload.getTensorboardExperimentsList(); + } + }; + + private static final PagedListDescriptor< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, TensorboardRun> + LIST_TENSORBOARD_RUNS_PAGE_STR_DESC = + new PagedListDescriptor< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, TensorboardRun>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTensorboardRunsRequest injectToken( + ListTensorboardRunsRequest payload, String token) { + return ListTensorboardRunsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTensorboardRunsRequest injectPageSize( + ListTensorboardRunsRequest payload, int pageSize) { + return ListTensorboardRunsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTensorboardRunsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTensorboardRunsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTensorboardRunsResponse payload) { + return payload.getTensorboardRunsList() == null + ? ImmutableList.of() + : payload.getTensorboardRunsList(); + } + }; + + private static final PagedListDescriptor< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + LIST_TENSORBOARD_TIME_SERIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTensorboardTimeSeriesRequest injectToken( + ListTensorboardTimeSeriesRequest payload, String token) { + return ListTensorboardTimeSeriesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListTensorboardTimeSeriesRequest injectPageSize( + ListTensorboardTimeSeriesRequest payload, int pageSize) { + return ListTensorboardTimeSeriesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListTensorboardTimeSeriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTensorboardTimeSeriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListTensorboardTimeSeriesResponse payload) { + return payload.getTensorboardTimeSeriesList() == null + ? ImmutableList.of() + : payload.getTensorboardTimeSeriesList(); + } + }; + + private static final PagedListDescriptor< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_DESC = + new PagedListDescriptor< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ExportTensorboardTimeSeriesDataRequest injectToken( + ExportTensorboardTimeSeriesDataRequest payload, String token) { + return ExportTensorboardTimeSeriesDataRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ExportTensorboardTimeSeriesDataRequest injectPageSize( + ExportTensorboardTimeSeriesDataRequest payload, int pageSize) { + return ExportTensorboardTimeSeriesDataRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ExportTensorboardTimeSeriesDataRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ExportTensorboardTimeSeriesDataResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ExportTensorboardTimeSeriesDataResponse payload) { + return payload.getTimeSeriesDataPointsList() == null + ? ImmutableList.of() + : payload.getTimeSeriesDataPointsList(); + } + }; + + private static final PagedListResponseFactory< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + LIST_TENSORBOARDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTensorboardsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_TENSORBOARDS_PAGE_STR_DESC, request, context); + return ListTensorboardsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + LIST_TENSORBOARD_EXPERIMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListTensorboardExperimentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + TensorboardExperiment> + pageContext = + PageContext.create( + callable, LIST_TENSORBOARD_EXPERIMENTS_PAGE_STR_DESC, request, context); + return ListTensorboardExperimentsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, ListTensorboardRunsPagedResponse> + LIST_TENSORBOARD_RUNS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + ListTensorboardRunsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTensorboardRunsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_TENSORBOARD_RUNS_PAGE_STR_DESC, request, context); + return ListTensorboardRunsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + LIST_TENSORBOARD_TIME_SERIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListTensorboardTimeSeriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + TensorboardTimeSeries> + pageContext = + PageContext.create( + callable, LIST_TENSORBOARD_TIME_SERIES_PAGE_STR_DESC, request, context); + return ListTensorboardTimeSeriesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_FACT = + new PagedListResponseFactory< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse> + callable, + ExportTensorboardTimeSeriesDataRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + TimeSeriesDataPoint> + pageContext = + PageContext.create( + callable, + EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_DESC, + request, + context); + return ExportTensorboardTimeSeriesDataPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createTensorboard. */ + public UnaryCallSettings createTensorboardSettings() { + return createTensorboardSettings; + } + + /** Returns the object with the settings used for calls to createTensorboard. */ + public OperationCallSettings< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings() { + return createTensorboardOperationSettings; + } + + /** Returns the object with the settings used for calls to getTensorboard. */ + public UnaryCallSettings getTensorboardSettings() { + return getTensorboardSettings; + } + + /** Returns the object with the settings used for calls to updateTensorboard. */ + public UnaryCallSettings updateTensorboardSettings() { + return updateTensorboardSettings; + } + + /** Returns the object with the settings used for calls to updateTensorboard. */ + public OperationCallSettings< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings() { + return updateTensorboardOperationSettings; + } + + /** Returns the object with the settings used for calls to listTensorboards. */ + public PagedCallSettings< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings() { + return listTensorboardsSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboard. */ + public UnaryCallSettings deleteTensorboardSettings() { + return deleteTensorboardSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboard. */ + public OperationCallSettings + deleteTensorboardOperationSettings() { + return deleteTensorboardOperationSettings; + } + + /** Returns the object with the settings used for calls to createTensorboardExperiment. */ + public UnaryCallSettings + createTensorboardExperimentSettings() { + return createTensorboardExperimentSettings; + } + + /** Returns the object with the settings used for calls to getTensorboardExperiment. */ + public UnaryCallSettings + getTensorboardExperimentSettings() { + return getTensorboardExperimentSettings; + } + + /** Returns the object with the settings used for calls to updateTensorboardExperiment. */ + public UnaryCallSettings + updateTensorboardExperimentSettings() { + return updateTensorboardExperimentSettings; + } + + /** Returns the object with the settings used for calls to listTensorboardExperiments. */ + public PagedCallSettings< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings() { + return listTensorboardExperimentsSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */ + public UnaryCallSettings + deleteTensorboardExperimentSettings() { + return deleteTensorboardExperimentSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */ + public OperationCallSettings + deleteTensorboardExperimentOperationSettings() { + return deleteTensorboardExperimentOperationSettings; + } + + /** Returns the object with the settings used for calls to createTensorboardRun. */ + public UnaryCallSettings + createTensorboardRunSettings() { + return createTensorboardRunSettings; + } + + /** Returns the object with the settings used for calls to getTensorboardRun. */ + public UnaryCallSettings getTensorboardRunSettings() { + return getTensorboardRunSettings; + } + + /** Returns the object with the settings used for calls to updateTensorboardRun. */ + public UnaryCallSettings + updateTensorboardRunSettings() { + return updateTensorboardRunSettings; + } + + /** Returns the object with the settings used for calls to listTensorboardRuns. */ + public PagedCallSettings< + ListTensorboardRunsRequest, ListTensorboardRunsResponse, ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings() { + return listTensorboardRunsSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardRun. */ + public UnaryCallSettings deleteTensorboardRunSettings() { + return deleteTensorboardRunSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardRun. */ + public OperationCallSettings + deleteTensorboardRunOperationSettings() { + return deleteTensorboardRunOperationSettings; + } + + /** Returns the object with the settings used for calls to createTensorboardTimeSeries. */ + public UnaryCallSettings + createTensorboardTimeSeriesSettings() { + return createTensorboardTimeSeriesSettings; + } + + /** Returns the object with the settings used for calls to getTensorboardTimeSeries. */ + public UnaryCallSettings + getTensorboardTimeSeriesSettings() { + return getTensorboardTimeSeriesSettings; + } + + /** Returns the object with the settings used for calls to updateTensorboardTimeSeries. */ + public UnaryCallSettings + updateTensorboardTimeSeriesSettings() { + return updateTensorboardTimeSeriesSettings; + } + + /** Returns the object with the settings used for calls to listTensorboardTimeSeries. */ + public PagedCallSettings< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings() { + return listTensorboardTimeSeriesSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */ + public UnaryCallSettings + deleteTensorboardTimeSeriesSettings() { + return deleteTensorboardTimeSeriesSettings; + } + + /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */ + public OperationCallSettings + deleteTensorboardTimeSeriesOperationSettings() { + return deleteTensorboardTimeSeriesOperationSettings; + } + + /** Returns the object with the settings used for calls to readTensorboardTimeSeriesData. */ + public UnaryCallSettings< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings() { + return readTensorboardTimeSeriesDataSettings; + } + + /** Returns the object with the settings used for calls to readTensorboardBlobData. */ + public ServerStreamingCallSettings< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings() { + return readTensorboardBlobDataSettings; + } + + /** Returns the object with the settings used for calls to writeTensorboardRunData. */ + public UnaryCallSettings + writeTensorboardRunDataSettings() { + return writeTensorboardRunDataSettings; + } + + /** Returns the object with the settings used for calls to exportTensorboardTimeSeriesData. */ + public PagedCallSettings< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings() { + return exportTensorboardTimeSeriesDataSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TensorboardServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTensorboardServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TensorboardServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TensorboardServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createTensorboardSettings = settingsBuilder.createTensorboardSettings().build(); + createTensorboardOperationSettings = + settingsBuilder.createTensorboardOperationSettings().build(); + getTensorboardSettings = settingsBuilder.getTensorboardSettings().build(); + updateTensorboardSettings = settingsBuilder.updateTensorboardSettings().build(); + updateTensorboardOperationSettings = + settingsBuilder.updateTensorboardOperationSettings().build(); + listTensorboardsSettings = settingsBuilder.listTensorboardsSettings().build(); + deleteTensorboardSettings = settingsBuilder.deleteTensorboardSettings().build(); + deleteTensorboardOperationSettings = + settingsBuilder.deleteTensorboardOperationSettings().build(); + createTensorboardExperimentSettings = + settingsBuilder.createTensorboardExperimentSettings().build(); + getTensorboardExperimentSettings = settingsBuilder.getTensorboardExperimentSettings().build(); + updateTensorboardExperimentSettings = + settingsBuilder.updateTensorboardExperimentSettings().build(); + listTensorboardExperimentsSettings = + settingsBuilder.listTensorboardExperimentsSettings().build(); + deleteTensorboardExperimentSettings = + settingsBuilder.deleteTensorboardExperimentSettings().build(); + deleteTensorboardExperimentOperationSettings = + settingsBuilder.deleteTensorboardExperimentOperationSettings().build(); + createTensorboardRunSettings = settingsBuilder.createTensorboardRunSettings().build(); + getTensorboardRunSettings = settingsBuilder.getTensorboardRunSettings().build(); + updateTensorboardRunSettings = settingsBuilder.updateTensorboardRunSettings().build(); + listTensorboardRunsSettings = settingsBuilder.listTensorboardRunsSettings().build(); + deleteTensorboardRunSettings = settingsBuilder.deleteTensorboardRunSettings().build(); + deleteTensorboardRunOperationSettings = + settingsBuilder.deleteTensorboardRunOperationSettings().build(); + createTensorboardTimeSeriesSettings = + settingsBuilder.createTensorboardTimeSeriesSettings().build(); + getTensorboardTimeSeriesSettings = settingsBuilder.getTensorboardTimeSeriesSettings().build(); + updateTensorboardTimeSeriesSettings = + settingsBuilder.updateTensorboardTimeSeriesSettings().build(); + listTensorboardTimeSeriesSettings = settingsBuilder.listTensorboardTimeSeriesSettings().build(); + deleteTensorboardTimeSeriesSettings = + settingsBuilder.deleteTensorboardTimeSeriesSettings().build(); + deleteTensorboardTimeSeriesOperationSettings = + settingsBuilder.deleteTensorboardTimeSeriesOperationSettings().build(); + readTensorboardTimeSeriesDataSettings = + settingsBuilder.readTensorboardTimeSeriesDataSettings().build(); + readTensorboardBlobDataSettings = settingsBuilder.readTensorboardBlobDataSettings().build(); + writeTensorboardRunDataSettings = settingsBuilder.writeTensorboardRunDataSettings().build(); + exportTensorboardTimeSeriesDataSettings = + settingsBuilder.exportTensorboardTimeSeriesDataSettings().build(); + } + + /** Builder for TensorboardServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createTensorboardSettings; + private final OperationCallSettings.Builder< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings; + private final UnaryCallSettings.Builder + getTensorboardSettings; + private final UnaryCallSettings.Builder + updateTensorboardSettings; + private final OperationCallSettings.Builder< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings; + private final PagedCallSettings.Builder< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings; + private final UnaryCallSettings.Builder + deleteTensorboardSettings; + private final OperationCallSettings.Builder< + DeleteTensorboardRequest, Empty, DeleteOperationMetadata> + deleteTensorboardOperationSettings; + private final UnaryCallSettings.Builder< + CreateTensorboardExperimentRequest, TensorboardExperiment> + createTensorboardExperimentSettings; + private final UnaryCallSettings.Builder + getTensorboardExperimentSettings; + private final UnaryCallSettings.Builder< + UpdateTensorboardExperimentRequest, TensorboardExperiment> + updateTensorboardExperimentSettings; + private final PagedCallSettings.Builder< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings; + private final UnaryCallSettings.Builder + deleteTensorboardExperimentSettings; + private final OperationCallSettings.Builder< + DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata> + deleteTensorboardExperimentOperationSettings; + private final UnaryCallSettings.Builder + createTensorboardRunSettings; + private final UnaryCallSettings.Builder + getTensorboardRunSettings; + private final UnaryCallSettings.Builder + updateTensorboardRunSettings; + private final PagedCallSettings.Builder< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings; + private final UnaryCallSettings.Builder + deleteTensorboardRunSettings; + private final OperationCallSettings.Builder< + DeleteTensorboardRunRequest, Empty, DeleteOperationMetadata> + deleteTensorboardRunOperationSettings; + private final UnaryCallSettings.Builder< + CreateTensorboardTimeSeriesRequest, TensorboardTimeSeries> + createTensorboardTimeSeriesSettings; + private final UnaryCallSettings.Builder + getTensorboardTimeSeriesSettings; + private final UnaryCallSettings.Builder< + UpdateTensorboardTimeSeriesRequest, TensorboardTimeSeries> + updateTensorboardTimeSeriesSettings; + private final PagedCallSettings.Builder< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings; + private final UnaryCallSettings.Builder + deleteTensorboardTimeSeriesSettings; + private final OperationCallSettings.Builder< + DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata> + deleteTensorboardTimeSeriesOperationSettings; + private final UnaryCallSettings.Builder< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings; + private final ServerStreamingCallSettings.Builder< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings; + private final UnaryCallSettings.Builder< + WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse> + writeTensorboardRunDataSettings; + private final PagedCallSettings.Builder< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTensorboardOperationSettings = OperationCallSettings.newBuilder(); + getTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTensorboardOperationSettings = OperationCallSettings.newBuilder(); + listTensorboardsSettings = PagedCallSettings.newBuilder(LIST_TENSORBOARDS_PAGE_STR_FACT); + deleteTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTensorboardOperationSettings = OperationCallSettings.newBuilder(); + createTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTensorboardExperimentsSettings = + PagedCallSettings.newBuilder(LIST_TENSORBOARD_EXPERIMENTS_PAGE_STR_FACT); + deleteTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTensorboardExperimentOperationSettings = OperationCallSettings.newBuilder(); + createTensorboardRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getTensorboardRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTensorboardRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTensorboardRunsSettings = + PagedCallSettings.newBuilder(LIST_TENSORBOARD_RUNS_PAGE_STR_FACT); + deleteTensorboardRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTensorboardRunOperationSettings = OperationCallSettings.newBuilder(); + createTensorboardTimeSeriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getTensorboardTimeSeriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTensorboardTimeSeriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTensorboardTimeSeriesSettings = + PagedCallSettings.newBuilder(LIST_TENSORBOARD_TIME_SERIES_PAGE_STR_FACT); + deleteTensorboardTimeSeriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTensorboardTimeSeriesOperationSettings = OperationCallSettings.newBuilder(); + readTensorboardTimeSeriesDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readTensorboardBlobDataSettings = ServerStreamingCallSettings.newBuilder(); + writeTensorboardRunDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportTensorboardTimeSeriesDataSettings = + PagedCallSettings.newBuilder(EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTensorboardSettings, + getTensorboardSettings, + updateTensorboardSettings, + listTensorboardsSettings, + deleteTensorboardSettings, + createTensorboardExperimentSettings, + getTensorboardExperimentSettings, + updateTensorboardExperimentSettings, + listTensorboardExperimentsSettings, + deleteTensorboardExperimentSettings, + createTensorboardRunSettings, + getTensorboardRunSettings, + updateTensorboardRunSettings, + listTensorboardRunsSettings, + deleteTensorboardRunSettings, + createTensorboardTimeSeriesSettings, + getTensorboardTimeSeriesSettings, + updateTensorboardTimeSeriesSettings, + listTensorboardTimeSeriesSettings, + deleteTensorboardTimeSeriesSettings, + readTensorboardTimeSeriesDataSettings, + writeTensorboardRunDataSettings, + exportTensorboardTimeSeriesDataSettings); + initDefaults(this); + } + + protected Builder(TensorboardServiceStubSettings settings) { + super(settings); + + createTensorboardSettings = settings.createTensorboardSettings.toBuilder(); + createTensorboardOperationSettings = settings.createTensorboardOperationSettings.toBuilder(); + getTensorboardSettings = settings.getTensorboardSettings.toBuilder(); + updateTensorboardSettings = settings.updateTensorboardSettings.toBuilder(); + updateTensorboardOperationSettings = settings.updateTensorboardOperationSettings.toBuilder(); + listTensorboardsSettings = settings.listTensorboardsSettings.toBuilder(); + deleteTensorboardSettings = settings.deleteTensorboardSettings.toBuilder(); + deleteTensorboardOperationSettings = settings.deleteTensorboardOperationSettings.toBuilder(); + createTensorboardExperimentSettings = + settings.createTensorboardExperimentSettings.toBuilder(); + getTensorboardExperimentSettings = settings.getTensorboardExperimentSettings.toBuilder(); + updateTensorboardExperimentSettings = + settings.updateTensorboardExperimentSettings.toBuilder(); + listTensorboardExperimentsSettings = settings.listTensorboardExperimentsSettings.toBuilder(); + deleteTensorboardExperimentSettings = + settings.deleteTensorboardExperimentSettings.toBuilder(); + deleteTensorboardExperimentOperationSettings = + settings.deleteTensorboardExperimentOperationSettings.toBuilder(); + createTensorboardRunSettings = settings.createTensorboardRunSettings.toBuilder(); + getTensorboardRunSettings = settings.getTensorboardRunSettings.toBuilder(); + updateTensorboardRunSettings = settings.updateTensorboardRunSettings.toBuilder(); + listTensorboardRunsSettings = settings.listTensorboardRunsSettings.toBuilder(); + deleteTensorboardRunSettings = settings.deleteTensorboardRunSettings.toBuilder(); + deleteTensorboardRunOperationSettings = + settings.deleteTensorboardRunOperationSettings.toBuilder(); + createTensorboardTimeSeriesSettings = + settings.createTensorboardTimeSeriesSettings.toBuilder(); + getTensorboardTimeSeriesSettings = settings.getTensorboardTimeSeriesSettings.toBuilder(); + updateTensorboardTimeSeriesSettings = + settings.updateTensorboardTimeSeriesSettings.toBuilder(); + listTensorboardTimeSeriesSettings = settings.listTensorboardTimeSeriesSettings.toBuilder(); + deleteTensorboardTimeSeriesSettings = + settings.deleteTensorboardTimeSeriesSettings.toBuilder(); + deleteTensorboardTimeSeriesOperationSettings = + settings.deleteTensorboardTimeSeriesOperationSettings.toBuilder(); + readTensorboardTimeSeriesDataSettings = + settings.readTensorboardTimeSeriesDataSettings.toBuilder(); + readTensorboardBlobDataSettings = settings.readTensorboardBlobDataSettings.toBuilder(); + writeTensorboardRunDataSettings = settings.writeTensorboardRunDataSettings.toBuilder(); + exportTensorboardTimeSeriesDataSettings = + settings.exportTensorboardTimeSeriesDataSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTensorboardSettings, + getTensorboardSettings, + updateTensorboardSettings, + listTensorboardsSettings, + deleteTensorboardSettings, + createTensorboardExperimentSettings, + getTensorboardExperimentSettings, + updateTensorboardExperimentSettings, + listTensorboardExperimentsSettings, + deleteTensorboardExperimentSettings, + createTensorboardRunSettings, + getTensorboardRunSettings, + updateTensorboardRunSettings, + listTensorboardRunsSettings, + deleteTensorboardRunSettings, + createTensorboardTimeSeriesSettings, + getTensorboardTimeSeriesSettings, + updateTensorboardTimeSeriesSettings, + listTensorboardTimeSeriesSettings, + deleteTensorboardTimeSeriesSettings, + readTensorboardTimeSeriesDataSettings, + writeTensorboardRunDataSettings, + exportTensorboardTimeSeriesDataSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createTensorboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getTensorboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTensorboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTensorboardsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTensorboardSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTensorboardExperimentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getTensorboardExperimentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTensorboardExperimentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTensorboardExperimentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTensorboardExperimentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTensorboardRunSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getTensorboardRunSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTensorboardRunSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTensorboardRunsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTensorboardRunSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTensorboardTimeSeriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getTensorboardTimeSeriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTensorboardTimeSeriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTensorboardTimeSeriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTensorboardTimeSeriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .readTensorboardTimeSeriesDataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .readTensorboardBlobDataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .writeTensorboardRunDataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .exportTensorboardTimeSeriesDataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTensorboardOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Tensorboard.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateTensorboardOperationMetadata.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 + .updateTensorboardOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Tensorboard.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateTensorboardOperationMetadata.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 + .deleteTensorboardOperationSettings() + .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 + .deleteTensorboardExperimentOperationSettings() + .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 + .deleteTensorboardRunOperationSettings() + .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 + .deleteTensorboardTimeSeriesOperationSettings() + .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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTensorboard. */ + public UnaryCallSettings.Builder + createTensorboardSettings() { + return createTensorboardSettings; + } + + /** Returns the builder for the settings used for calls to createTensorboard. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata> + createTensorboardOperationSettings() { + return createTensorboardOperationSettings; + } + + /** Returns the builder for the settings used for calls to getTensorboard. */ + public UnaryCallSettings.Builder getTensorboardSettings() { + return getTensorboardSettings; + } + + /** Returns the builder for the settings used for calls to updateTensorboard. */ + public UnaryCallSettings.Builder + updateTensorboardSettings() { + return updateTensorboardSettings; + } + + /** Returns the builder for the settings used for calls to updateTensorboard. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata> + updateTensorboardOperationSettings() { + return updateTensorboardOperationSettings; + } + + /** Returns the builder for the settings used for calls to listTensorboards. */ + public PagedCallSettings.Builder< + ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse> + listTensorboardsSettings() { + return listTensorboardsSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboard. */ + public UnaryCallSettings.Builder + deleteTensorboardSettings() { + return deleteTensorboardSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboard. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteTensorboardOperationSettings() { + return deleteTensorboardOperationSettings; + } + + /** Returns the builder for the settings used for calls to createTensorboardExperiment. */ + public UnaryCallSettings.Builder + createTensorboardExperimentSettings() { + return createTensorboardExperimentSettings; + } + + /** Returns the builder for the settings used for calls to getTensorboardExperiment. */ + public UnaryCallSettings.Builder + getTensorboardExperimentSettings() { + return getTensorboardExperimentSettings; + } + + /** Returns the builder for the settings used for calls to updateTensorboardExperiment. */ + public UnaryCallSettings.Builder + updateTensorboardExperimentSettings() { + return updateTensorboardExperimentSettings; + } + + /** Returns the builder for the settings used for calls to listTensorboardExperiments. */ + public PagedCallSettings.Builder< + ListTensorboardExperimentsRequest, + ListTensorboardExperimentsResponse, + ListTensorboardExperimentsPagedResponse> + listTensorboardExperimentsSettings() { + return listTensorboardExperimentsSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */ + public UnaryCallSettings.Builder + deleteTensorboardExperimentSettings() { + return deleteTensorboardExperimentSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata> + deleteTensorboardExperimentOperationSettings() { + return deleteTensorboardExperimentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createTensorboardRun. */ + public UnaryCallSettings.Builder + createTensorboardRunSettings() { + return createTensorboardRunSettings; + } + + /** Returns the builder for the settings used for calls to getTensorboardRun. */ + public UnaryCallSettings.Builder + getTensorboardRunSettings() { + return getTensorboardRunSettings; + } + + /** Returns the builder for the settings used for calls to updateTensorboardRun. */ + public UnaryCallSettings.Builder + updateTensorboardRunSettings() { + return updateTensorboardRunSettings; + } + + /** Returns the builder for the settings used for calls to listTensorboardRuns. */ + public PagedCallSettings.Builder< + ListTensorboardRunsRequest, + ListTensorboardRunsResponse, + ListTensorboardRunsPagedResponse> + listTensorboardRunsSettings() { + return listTensorboardRunsSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardRun. */ + public UnaryCallSettings.Builder + deleteTensorboardRunSettings() { + return deleteTensorboardRunSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardRun. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteTensorboardRunRequest, Empty, DeleteOperationMetadata> + deleteTensorboardRunOperationSettings() { + return deleteTensorboardRunOperationSettings; + } + + /** Returns the builder for the settings used for calls to createTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + createTensorboardTimeSeriesSettings() { + return createTensorboardTimeSeriesSettings; + } + + /** Returns the builder for the settings used for calls to getTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + getTensorboardTimeSeriesSettings() { + return getTensorboardTimeSeriesSettings; + } + + /** Returns the builder for the settings used for calls to updateTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + updateTensorboardTimeSeriesSettings() { + return updateTensorboardTimeSeriesSettings; + } + + /** Returns the builder for the settings used for calls to listTensorboardTimeSeries. */ + public PagedCallSettings.Builder< + ListTensorboardTimeSeriesRequest, + ListTensorboardTimeSeriesResponse, + ListTensorboardTimeSeriesPagedResponse> + listTensorboardTimeSeriesSettings() { + return listTensorboardTimeSeriesSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */ + public UnaryCallSettings.Builder + deleteTensorboardTimeSeriesSettings() { + return deleteTensorboardTimeSeriesSettings; + } + + /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata> + deleteTensorboardTimeSeriesOperationSettings() { + return deleteTensorboardTimeSeriesOperationSettings; + } + + /** Returns the builder for the settings used for calls to readTensorboardTimeSeriesData. */ + public UnaryCallSettings.Builder< + ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesDataSettings() { + return readTensorboardTimeSeriesDataSettings; + } + + /** Returns the builder for the settings used for calls to readTensorboardBlobData. */ + public ServerStreamingCallSettings.Builder< + ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse> + readTensorboardBlobDataSettings() { + return readTensorboardBlobDataSettings; + } + + /** Returns the builder for the settings used for calls to writeTensorboardRunData. */ + public UnaryCallSettings.Builder< + WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse> + writeTensorboardRunDataSettings() { + return writeTensorboardRunDataSettings; + } + + /** Returns the builder for the settings used for calls to exportTensorboardTimeSeriesData. */ + public PagedCallSettings.Builder< + ExportTensorboardTimeSeriesDataRequest, + ExportTensorboardTimeSeriesDataResponse, + ExportTensorboardTimeSeriesDataPagedResponse> + exportTensorboardTimeSeriesDataSettings() { + return exportTensorboardTimeSeriesDataSettings; + } + + @Override + public TensorboardServiceStubSettings build() throws IOException { + return new TensorboardServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java new file mode 100644 index 000000000..70db1d170 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java @@ -0,0 +1,156 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; + +import com.google.api.core.BetaApi; +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.v1beta1.AddTrialMeasurementRequest; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse; +import com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.CreateStudyRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTrialRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.GetStudyRequest; +import com.google.cloud.aiplatform.v1beta1.GetTrialRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.ListStudiesRequest; +import com.google.cloud.aiplatform.v1beta1.ListStudiesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.LookupStudyRequest; +import com.google.cloud.aiplatform.v1beta1.StopTrialRequest; +import com.google.cloud.aiplatform.v1beta1.Study; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.Trial; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the VizierService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class VizierServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable createStudyCallable() { + throw new UnsupportedOperationException("Not implemented: createStudyCallable()"); + } + + public UnaryCallable getStudyCallable() { + throw new UnsupportedOperationException("Not implemented: getStudyCallable()"); + } + + public UnaryCallable listStudiesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listStudiesPagedCallable()"); + } + + public UnaryCallable listStudiesCallable() { + throw new UnsupportedOperationException("Not implemented: listStudiesCallable()"); + } + + public UnaryCallable deleteStudyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteStudyCallable()"); + } + + public UnaryCallable lookupStudyCallable() { + throw new UnsupportedOperationException("Not implemented: lookupStudyCallable()"); + } + + public OperationCallable + suggestTrialsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: suggestTrialsOperationCallable()"); + } + + public UnaryCallable suggestTrialsCallable() { + throw new UnsupportedOperationException("Not implemented: suggestTrialsCallable()"); + } + + public UnaryCallable createTrialCallable() { + throw new UnsupportedOperationException("Not implemented: createTrialCallable()"); + } + + public UnaryCallable getTrialCallable() { + throw new UnsupportedOperationException("Not implemented: getTrialCallable()"); + } + + public UnaryCallable listTrialsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTrialsPagedCallable()"); + } + + public UnaryCallable listTrialsCallable() { + throw new UnsupportedOperationException("Not implemented: listTrialsCallable()"); + } + + public UnaryCallable addTrialMeasurementCallable() { + throw new UnsupportedOperationException("Not implemented: addTrialMeasurementCallable()"); + } + + public UnaryCallable completeTrialCallable() { + throw new UnsupportedOperationException("Not implemented: completeTrialCallable()"); + } + + public UnaryCallable deleteTrialCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTrialCallable()"); + } + + public OperationCallable< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: checkTrialEarlyStoppingStateOperationCallable()"); + } + + public UnaryCallable + checkTrialEarlyStoppingStateCallable() { + throw new UnsupportedOperationException( + "Not implemented: checkTrialEarlyStoppingStateCallable()"); + } + + public UnaryCallable stopTrialCallable() { + throw new UnsupportedOperationException("Not implemented: stopTrialCallable()"); + } + + public UnaryCallable + listOptimalTrialsCallable() { + throw new UnsupportedOperationException("Not implemented: listOptimalTrialsCallable()"); + } + + @Override + public abstract void close(); +} 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 new file mode 100644 index 000000000..806696231 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java @@ -0,0 +1,850 @@ +/* + * 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.stub; + +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest; +import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse; +import com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.CreateStudyRequest; +import com.google.cloud.aiplatform.v1beta1.CreateTrialRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest; +import com.google.cloud.aiplatform.v1beta1.GetStudyRequest; +import com.google.cloud.aiplatform.v1beta1.GetTrialRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.ListStudiesRequest; +import com.google.cloud.aiplatform.v1beta1.ListStudiesResponse; +import com.google.cloud.aiplatform.v1beta1.ListTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.ListTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.LookupStudyRequest; +import com.google.cloud.aiplatform.v1beta1.StopTrialRequest; +import com.google.cloud.aiplatform.v1beta1.Study; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest; +import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse; +import com.google.cloud.aiplatform.v1beta1.Trial; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link VizierServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

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

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

{@code
+ * VizierServiceStubSettings.Builder vizierServiceSettingsBuilder =
+ *     VizierServiceStubSettings.newBuilder();
+ * vizierServiceSettingsBuilder
+ *     .createStudySettings()
+ *     .setRetrySettings(
+ *         vizierServiceSettingsBuilder
+ *             .createStudySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * VizierServiceStubSettings vizierServiceSettings = vizierServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class VizierServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createStudySettings; + private final UnaryCallSettings getStudySettings; + private final PagedCallSettings + listStudiesSettings; + private final UnaryCallSettings deleteStudySettings; + private final UnaryCallSettings lookupStudySettings; + private final UnaryCallSettings suggestTrialsSettings; + private final OperationCallSettings< + SuggestTrialsRequest, SuggestTrialsResponse, SuggestTrialsMetadata> + suggestTrialsOperationSettings; + private final UnaryCallSettings createTrialSettings; + private final UnaryCallSettings getTrialSettings; + private final PagedCallSettings + listTrialsSettings; + private final UnaryCallSettings addTrialMeasurementSettings; + private final UnaryCallSettings completeTrialSettings; + private final UnaryCallSettings deleteTrialSettings; + private final UnaryCallSettings + checkTrialEarlyStoppingStateSettings; + private final OperationCallSettings< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings; + private final UnaryCallSettings stopTrialSettings; + private final UnaryCallSettings + listOptimalTrialsSettings; + + private static final PagedListDescriptor + LIST_STUDIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListStudiesRequest injectToken(ListStudiesRequest payload, String token) { + return ListStudiesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListStudiesRequest injectPageSize(ListStudiesRequest payload, int pageSize) { + return ListStudiesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListStudiesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListStudiesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListStudiesResponse payload) { + return payload.getStudiesList() == null + ? ImmutableList.of() + : payload.getStudiesList(); + } + }; + + private static final PagedListDescriptor + LIST_TRIALS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTrialsRequest injectToken(ListTrialsRequest payload, String token) { + return ListTrialsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTrialsRequest injectPageSize(ListTrialsRequest payload, int pageSize) { + return ListTrialsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTrialsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTrialsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTrialsResponse payload) { + return payload.getTrialsList() == null + ? ImmutableList.of() + : payload.getTrialsList(); + } + }; + + private static final PagedListResponseFactory< + ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse> + LIST_STUDIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListStudiesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_STUDIES_PAGE_STR_DESC, request, context); + return ListStudiesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTrialsRequest, ListTrialsResponse, ListTrialsPagedResponse> + LIST_TRIALS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTrialsRequest, ListTrialsResponse, ListTrialsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTrialsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TRIALS_PAGE_STR_DESC, request, context); + return ListTrialsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createStudy. */ + public UnaryCallSettings createStudySettings() { + return createStudySettings; + } + + /** Returns the object with the settings used for calls to getStudy. */ + public UnaryCallSettings getStudySettings() { + return getStudySettings; + } + + /** Returns the object with the settings used for calls to listStudies. */ + public PagedCallSettings + listStudiesSettings() { + return listStudiesSettings; + } + + /** Returns the object with the settings used for calls to deleteStudy. */ + public UnaryCallSettings deleteStudySettings() { + return deleteStudySettings; + } + + /** Returns the object with the settings used for calls to lookupStudy. */ + public UnaryCallSettings lookupStudySettings() { + return lookupStudySettings; + } + + /** Returns the object with the settings used for calls to suggestTrials. */ + public UnaryCallSettings suggestTrialsSettings() { + return suggestTrialsSettings; + } + + /** Returns the object with the settings used for calls to suggestTrials. */ + public OperationCallSettings + suggestTrialsOperationSettings() { + return suggestTrialsOperationSettings; + } + + /** Returns the object with the settings used for calls to createTrial. */ + public UnaryCallSettings createTrialSettings() { + return createTrialSettings; + } + + /** Returns the object with the settings used for calls to getTrial. */ + public UnaryCallSettings getTrialSettings() { + return getTrialSettings; + } + + /** Returns the object with the settings used for calls to listTrials. */ + public PagedCallSettings + listTrialsSettings() { + return listTrialsSettings; + } + + /** Returns the object with the settings used for calls to addTrialMeasurement. */ + public UnaryCallSettings addTrialMeasurementSettings() { + return addTrialMeasurementSettings; + } + + /** Returns the object with the settings used for calls to completeTrial. */ + public UnaryCallSettings completeTrialSettings() { + return completeTrialSettings; + } + + /** Returns the object with the settings used for calls to deleteTrial. */ + public UnaryCallSettings deleteTrialSettings() { + return deleteTrialSettings; + } + + /** Returns the object with the settings used for calls to checkTrialEarlyStoppingState. */ + public UnaryCallSettings + checkTrialEarlyStoppingStateSettings() { + return checkTrialEarlyStoppingStateSettings; + } + + /** Returns the object with the settings used for calls to checkTrialEarlyStoppingState. */ + public OperationCallSettings< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings() { + return checkTrialEarlyStoppingStateOperationSettings; + } + + /** Returns the object with the settings used for calls to stopTrial. */ + public UnaryCallSettings stopTrialSettings() { + return stopTrialSettings; + } + + /** Returns the object with the settings used for calls to listOptimalTrials. */ + public UnaryCallSettings + listOptimalTrialsSettings() { + return listOptimalTrialsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VizierServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVizierServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VizierServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VizierServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createStudySettings = settingsBuilder.createStudySettings().build(); + getStudySettings = settingsBuilder.getStudySettings().build(); + listStudiesSettings = settingsBuilder.listStudiesSettings().build(); + deleteStudySettings = settingsBuilder.deleteStudySettings().build(); + lookupStudySettings = settingsBuilder.lookupStudySettings().build(); + suggestTrialsSettings = settingsBuilder.suggestTrialsSettings().build(); + suggestTrialsOperationSettings = settingsBuilder.suggestTrialsOperationSettings().build(); + createTrialSettings = settingsBuilder.createTrialSettings().build(); + getTrialSettings = settingsBuilder.getTrialSettings().build(); + listTrialsSettings = settingsBuilder.listTrialsSettings().build(); + addTrialMeasurementSettings = settingsBuilder.addTrialMeasurementSettings().build(); + completeTrialSettings = settingsBuilder.completeTrialSettings().build(); + deleteTrialSettings = settingsBuilder.deleteTrialSettings().build(); + checkTrialEarlyStoppingStateSettings = + settingsBuilder.checkTrialEarlyStoppingStateSettings().build(); + checkTrialEarlyStoppingStateOperationSettings = + settingsBuilder.checkTrialEarlyStoppingStateOperationSettings().build(); + stopTrialSettings = settingsBuilder.stopTrialSettings().build(); + listOptimalTrialsSettings = settingsBuilder.listOptimalTrialsSettings().build(); + } + + /** Builder for VizierServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createStudySettings; + private final UnaryCallSettings.Builder getStudySettings; + private final PagedCallSettings.Builder< + ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse> + listStudiesSettings; + private final UnaryCallSettings.Builder deleteStudySettings; + private final UnaryCallSettings.Builder lookupStudySettings; + private final UnaryCallSettings.Builder suggestTrialsSettings; + private final OperationCallSettings.Builder< + SuggestTrialsRequest, SuggestTrialsResponse, SuggestTrialsMetadata> + suggestTrialsOperationSettings; + private final UnaryCallSettings.Builder createTrialSettings; + private final UnaryCallSettings.Builder getTrialSettings; + private final PagedCallSettings.Builder< + ListTrialsRequest, ListTrialsResponse, ListTrialsPagedResponse> + listTrialsSettings; + private final UnaryCallSettings.Builder + addTrialMeasurementSettings; + private final UnaryCallSettings.Builder completeTrialSettings; + private final UnaryCallSettings.Builder deleteTrialSettings; + private final UnaryCallSettings.Builder + checkTrialEarlyStoppingStateSettings; + private final OperationCallSettings.Builder< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings; + private final UnaryCallSettings.Builder stopTrialSettings; + private final UnaryCallSettings.Builder + listOptimalTrialsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_11_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("no_retry_11_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listStudiesSettings = PagedCallSettings.newBuilder(LIST_STUDIES_PAGE_STR_FACT); + deleteStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + lookupStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suggestTrialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suggestTrialsOperationSettings = OperationCallSettings.newBuilder(); + createTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTrialsSettings = PagedCallSettings.newBuilder(LIST_TRIALS_PAGE_STR_FACT); + addTrialMeasurementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + completeTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + checkTrialEarlyStoppingStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + checkTrialEarlyStoppingStateOperationSettings = OperationCallSettings.newBuilder(); + stopTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOptimalTrialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createStudySettings, + getStudySettings, + listStudiesSettings, + deleteStudySettings, + lookupStudySettings, + suggestTrialsSettings, + createTrialSettings, + getTrialSettings, + listTrialsSettings, + addTrialMeasurementSettings, + completeTrialSettings, + deleteTrialSettings, + checkTrialEarlyStoppingStateSettings, + stopTrialSettings, + listOptimalTrialsSettings); + initDefaults(this); + } + + protected Builder(VizierServiceStubSettings settings) { + super(settings); + + createStudySettings = settings.createStudySettings.toBuilder(); + getStudySettings = settings.getStudySettings.toBuilder(); + listStudiesSettings = settings.listStudiesSettings.toBuilder(); + deleteStudySettings = settings.deleteStudySettings.toBuilder(); + lookupStudySettings = settings.lookupStudySettings.toBuilder(); + suggestTrialsSettings = settings.suggestTrialsSettings.toBuilder(); + suggestTrialsOperationSettings = settings.suggestTrialsOperationSettings.toBuilder(); + createTrialSettings = settings.createTrialSettings.toBuilder(); + getTrialSettings = settings.getTrialSettings.toBuilder(); + listTrialsSettings = settings.listTrialsSettings.toBuilder(); + addTrialMeasurementSettings = settings.addTrialMeasurementSettings.toBuilder(); + completeTrialSettings = settings.completeTrialSettings.toBuilder(); + deleteTrialSettings = settings.deleteTrialSettings.toBuilder(); + checkTrialEarlyStoppingStateSettings = + settings.checkTrialEarlyStoppingStateSettings.toBuilder(); + checkTrialEarlyStoppingStateOperationSettings = + settings.checkTrialEarlyStoppingStateOperationSettings.toBuilder(); + stopTrialSettings = settings.stopTrialSettings.toBuilder(); + listOptimalTrialsSettings = settings.listOptimalTrialsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createStudySettings, + getStudySettings, + listStudiesSettings, + deleteStudySettings, + lookupStudySettings, + suggestTrialsSettings, + createTrialSettings, + getTrialSettings, + listTrialsSettings, + addTrialMeasurementSettings, + completeTrialSettings, + deleteTrialSettings, + checkTrialEarlyStoppingStateSettings, + stopTrialSettings, + listOptimalTrialsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .getStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .listStudiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .deleteStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .lookupStudySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .suggestTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .createTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .getTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .listTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .addTrialMeasurementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .completeTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .deleteTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .checkTrialEarlyStoppingStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .stopTrialSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .listOptimalTrialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")); + + builder + .suggestTrialsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(SuggestTrialsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(SuggestTrialsMetadata.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 + .checkTrialEarlyStoppingStateOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CheckTrialEarlyStoppingStateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CheckTrialEarlyStoppingStateMetatdata.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 { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createStudy. */ + public UnaryCallSettings.Builder createStudySettings() { + return createStudySettings; + } + + /** Returns the builder for the settings used for calls to getStudy. */ + public UnaryCallSettings.Builder getStudySettings() { + return getStudySettings; + } + + /** Returns the builder for the settings used for calls to listStudies. */ + public PagedCallSettings.Builder< + ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse> + listStudiesSettings() { + return listStudiesSettings; + } + + /** Returns the builder for the settings used for calls to deleteStudy. */ + public UnaryCallSettings.Builder deleteStudySettings() { + return deleteStudySettings; + } + + /** Returns the builder for the settings used for calls to lookupStudy. */ + public UnaryCallSettings.Builder lookupStudySettings() { + return lookupStudySettings; + } + + /** Returns the builder for the settings used for calls to suggestTrials. */ + public UnaryCallSettings.Builder suggestTrialsSettings() { + return suggestTrialsSettings; + } + + /** Returns the builder for the settings used for calls to suggestTrials. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + SuggestTrialsRequest, SuggestTrialsResponse, SuggestTrialsMetadata> + suggestTrialsOperationSettings() { + return suggestTrialsOperationSettings; + } + + /** Returns the builder for the settings used for calls to createTrial. */ + public UnaryCallSettings.Builder createTrialSettings() { + return createTrialSettings; + } + + /** Returns the builder for the settings used for calls to getTrial. */ + public UnaryCallSettings.Builder getTrialSettings() { + return getTrialSettings; + } + + /** Returns the builder for the settings used for calls to listTrials. */ + public PagedCallSettings.Builder + listTrialsSettings() { + return listTrialsSettings; + } + + /** Returns the builder for the settings used for calls to addTrialMeasurement. */ + public UnaryCallSettings.Builder + addTrialMeasurementSettings() { + return addTrialMeasurementSettings; + } + + /** Returns the builder for the settings used for calls to completeTrial. */ + public UnaryCallSettings.Builder completeTrialSettings() { + return completeTrialSettings; + } + + /** Returns the builder for the settings used for calls to deleteTrial. */ + public UnaryCallSettings.Builder deleteTrialSettings() { + return deleteTrialSettings; + } + + /** Returns the builder for the settings used for calls to checkTrialEarlyStoppingState. */ + public UnaryCallSettings.Builder + checkTrialEarlyStoppingStateSettings() { + return checkTrialEarlyStoppingStateSettings; + } + + /** Returns the builder for the settings used for calls to checkTrialEarlyStoppingState. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CheckTrialEarlyStoppingStateRequest, + CheckTrialEarlyStoppingStateResponse, + CheckTrialEarlyStoppingStateMetatdata> + checkTrialEarlyStoppingStateOperationSettings() { + return checkTrialEarlyStoppingStateOperationSettings; + } + + /** Returns the builder for the settings used for calls to stopTrial. */ + public UnaryCallSettings.Builder stopTrialSettings() { + return stopTrialSettings; + } + + /** Returns the builder for the settings used for calls to listOptimalTrials. */ + public UnaryCallSettings.Builder + listOptimalTrialsSettings() { + return listOptimalTrialsSettings; + } + + @Override + public VizierServiceStubSettings build() throws IOException { + return new VizierServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java index 4f0d8af7c..e92f10af1 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java index 28c41a84b..b1434e7f6 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java index f432bc0c5..9a4677240 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java index 321c78f31..6fd32b7ad 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java index 2538933ff..5b9897b01 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java index cf3f355a1..61f9bb6ef 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createDataset( CreateDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -82,7 +82,7 @@ public void createDataset( @Override public void getDataset(GetDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Dataset) { requests.add(request); responseObserver.onNext(((Dataset) response)); @@ -94,7 +94,7 @@ public void getDataset(GetDatasetRequest request, StreamObserver respon new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Dataset.class.getName(), Exception.class.getName()))); } @@ -103,7 +103,7 @@ public void getDataset(GetDatasetRequest request, StreamObserver respon @Override public void updateDataset( UpdateDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Dataset) { requests.add(request); responseObserver.onNext(((Dataset) response)); @@ -115,7 +115,7 @@ public void updateDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Dataset.class.getName(), Exception.class.getName()))); } @@ -124,7 +124,7 @@ public void updateDataset( @Override public void listDatasets( ListDatasetsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDatasetsResponse) { requests.add(request); responseObserver.onNext(((ListDatasetsResponse) response)); @@ -136,7 +136,7 @@ public void listDatasets( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDatasets, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDatasetsResponse.class.getName(), Exception.class.getName()))); } @@ -145,7 +145,7 @@ public void listDatasets( @Override public void deleteDataset( DeleteDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -157,7 +157,7 @@ public void deleteDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -165,7 +165,7 @@ public void deleteDataset( @Override public void importData(ImportDataRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -177,7 +177,7 @@ public void importData(ImportDataRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method ImportData, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -185,7 +185,7 @@ public void importData(ImportDataRequest request, StreamObserver resp @Override public void exportData(ExportDataRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -197,7 +197,7 @@ public void exportData(ExportDataRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method ExportData, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -206,7 +206,7 @@ public void exportData(ExportDataRequest request, StreamObserver resp @Override public void listDataItems( ListDataItemsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDataItemsResponse) { requests.add(request); responseObserver.onNext(((ListDataItemsResponse) response)); @@ -218,7 +218,7 @@ public void listDataItems( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDataItems, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDataItemsResponse.class.getName(), Exception.class.getName()))); } @@ -227,7 +227,7 @@ public void listDataItems( @Override public void getAnnotationSpec( GetAnnotationSpecRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof AnnotationSpec) { requests.add(request); responseObserver.onNext(((AnnotationSpec) response)); @@ -239,7 +239,7 @@ public void getAnnotationSpec( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetAnnotationSpec, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), AnnotationSpec.class.getName(), Exception.class.getName()))); } @@ -248,7 +248,7 @@ public void getAnnotationSpec( @Override public void listAnnotations( ListAnnotationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListAnnotationsResponse) { requests.add(request); responseObserver.onNext(((ListAnnotationsResponse) response)); @@ -260,7 +260,7 @@ public void listAnnotations( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListAnnotations, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListAnnotationsResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java index 24408ea62..706d1bc49 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java index 2ce8ad432..7420ce7ac 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createEndpoint( CreateEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -82,7 +82,7 @@ public void createEndpoint( @Override public void getEndpoint(GetEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Endpoint) { requests.add(request); responseObserver.onNext(((Endpoint) response)); @@ -94,7 +94,7 @@ public void getEndpoint(GetEndpointRequest request, StreamObserver res new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Endpoint.class.getName(), Exception.class.getName()))); } @@ -103,7 +103,7 @@ public void getEndpoint(GetEndpointRequest request, StreamObserver res @Override public void listEndpoints( ListEndpointsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListEndpointsResponse) { requests.add(request); responseObserver.onNext(((ListEndpointsResponse) response)); @@ -115,7 +115,7 @@ public void listEndpoints( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListEndpoints, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListEndpointsResponse.class.getName(), Exception.class.getName()))); } @@ -124,7 +124,7 @@ public void listEndpoints( @Override public void updateEndpoint( UpdateEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Endpoint) { requests.add(request); responseObserver.onNext(((Endpoint) response)); @@ -136,7 +136,7 @@ public void updateEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Endpoint.class.getName(), Exception.class.getName()))); } @@ -145,7 +145,7 @@ public void updateEndpoint( @Override public void deleteEndpoint( DeleteEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -157,7 +157,7 @@ public void deleteEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -165,7 +165,7 @@ public void deleteEndpoint( @Override public void deployModel(DeployModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -177,7 +177,7 @@ public void deployModel(DeployModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeployModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -186,7 +186,7 @@ public void deployModel(DeployModelRequest request, StreamObserver re @Override public void undeployModel( UndeployModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -198,7 +198,7 @@ public void undeployModel( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UndeployModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java index 715b6c4db..10709e0b0 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java index c5a04be14..83ca2e15f 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { @Override public void createCustomJob( CreateCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof CustomJob) { requests.add(request); responseObserver.onNext(((CustomJob) response)); @@ -75,7 +75,7 @@ public void createCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), CustomJob.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void createCustomJob( @Override public void getCustomJob( GetCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof CustomJob) { requests.add(request); responseObserver.onNext(((CustomJob) response)); @@ -96,7 +96,7 @@ public void getCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), CustomJob.class.getName(), Exception.class.getName()))); } @@ -105,7 +105,7 @@ public void getCustomJob( @Override public void listCustomJobs( ListCustomJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListCustomJobsResponse) { requests.add(request); responseObserver.onNext(((ListCustomJobsResponse) response)); @@ -117,7 +117,7 @@ public void listCustomJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListCustomJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListCustomJobsResponse.class.getName(), Exception.class.getName()))); } @@ -126,7 +126,7 @@ public void listCustomJobs( @Override public void deleteCustomJob( DeleteCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -138,7 +138,7 @@ public void deleteCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -147,7 +147,7 @@ public void deleteCustomJob( @Override public void cancelCustomJob( CancelCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -159,7 +159,7 @@ public void cancelCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -168,7 +168,7 @@ public void cancelCustomJob( @Override public void createDataLabelingJob( CreateDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof DataLabelingJob) { requests.add(request); responseObserver.onNext(((DataLabelingJob) response)); @@ -180,7 +180,7 @@ public void createDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), DataLabelingJob.class.getName(), Exception.class.getName()))); } @@ -189,7 +189,7 @@ public void createDataLabelingJob( @Override public void getDataLabelingJob( GetDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof DataLabelingJob) { requests.add(request); responseObserver.onNext(((DataLabelingJob) response)); @@ -201,7 +201,7 @@ public void getDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), DataLabelingJob.class.getName(), Exception.class.getName()))); } @@ -211,7 +211,7 @@ public void getDataLabelingJob( public void listDataLabelingJobs( ListDataLabelingJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDataLabelingJobsResponse) { requests.add(request); responseObserver.onNext(((ListDataLabelingJobsResponse) response)); @@ -223,7 +223,7 @@ public void listDataLabelingJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDataLabelingJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDataLabelingJobsResponse.class.getName(), Exception.class.getName()))); } @@ -232,7 +232,7 @@ public void listDataLabelingJobs( @Override public void deleteDataLabelingJob( DeleteDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -244,7 +244,7 @@ public void deleteDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -253,7 +253,7 @@ public void deleteDataLabelingJob( @Override public void cancelDataLabelingJob( CancelDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -265,7 +265,7 @@ public void cancelDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -275,7 +275,7 @@ public void cancelDataLabelingJob( public void createHyperparameterTuningJob( CreateHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof HyperparameterTuningJob) { requests.add(request); responseObserver.onNext(((HyperparameterTuningJob) response)); @@ -287,7 +287,7 @@ public void createHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), HyperparameterTuningJob.class.getName(), Exception.class.getName()))); } @@ -297,7 +297,7 @@ public void createHyperparameterTuningJob( public void getHyperparameterTuningJob( GetHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof HyperparameterTuningJob) { requests.add(request); responseObserver.onNext(((HyperparameterTuningJob) response)); @@ -309,7 +309,7 @@ public void getHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), HyperparameterTuningJob.class.getName(), Exception.class.getName()))); } @@ -319,7 +319,7 @@ public void getHyperparameterTuningJob( public void listHyperparameterTuningJobs( ListHyperparameterTuningJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListHyperparameterTuningJobsResponse) { requests.add(request); responseObserver.onNext(((ListHyperparameterTuningJobsResponse) response)); @@ -331,7 +331,7 @@ public void listHyperparameterTuningJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListHyperparameterTuningJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListHyperparameterTuningJobsResponse.class.getName(), Exception.class.getName()))); } @@ -340,7 +340,7 @@ public void listHyperparameterTuningJobs( @Override public void deleteHyperparameterTuningJob( DeleteHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -352,7 +352,7 @@ public void deleteHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -361,7 +361,7 @@ public void deleteHyperparameterTuningJob( @Override public void cancelHyperparameterTuningJob( CancelHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -373,7 +373,7 @@ public void cancelHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -383,7 +383,7 @@ public void cancelHyperparameterTuningJob( public void createBatchPredictionJob( CreateBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof BatchPredictionJob) { requests.add(request); responseObserver.onNext(((BatchPredictionJob) response)); @@ -395,7 +395,7 @@ public void createBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), BatchPredictionJob.class.getName(), Exception.class.getName()))); } @@ -404,7 +404,7 @@ public void createBatchPredictionJob( @Override public void getBatchPredictionJob( GetBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof BatchPredictionJob) { requests.add(request); responseObserver.onNext(((BatchPredictionJob) response)); @@ -416,7 +416,7 @@ public void getBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), BatchPredictionJob.class.getName(), Exception.class.getName()))); } @@ -426,7 +426,7 @@ public void getBatchPredictionJob( public void listBatchPredictionJobs( ListBatchPredictionJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListBatchPredictionJobsResponse) { requests.add(request); responseObserver.onNext(((ListBatchPredictionJobsResponse) response)); @@ -438,7 +438,7 @@ public void listBatchPredictionJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListBatchPredictionJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListBatchPredictionJobsResponse.class.getName(), Exception.class.getName()))); } @@ -447,7 +447,7 @@ public void listBatchPredictionJobs( @Override public void deleteBatchPredictionJob( DeleteBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -459,7 +459,7 @@ public void deleteBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -468,7 +468,7 @@ public void deleteBatchPredictionJob( @Override public void cancelBatchPredictionJob( CancelBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -480,7 +480,7 @@ public void cancelBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + 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/MockMigrationService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java index 7b7bfc831..ed3dedf87 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java index 0cac9a70a..88007c9ef 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { public void searchMigratableResources( SearchMigratableResourcesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof SearchMigratableResourcesResponse) { requests.add(request); responseObserver.onNext(((SearchMigratableResourcesResponse) response)); @@ -75,7 +75,7 @@ public void searchMigratableResources( new IllegalArgumentException( String.format( "Unrecognized response type %s for method SearchMigratableResources, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), SearchMigratableResourcesResponse.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void searchMigratableResources( @Override public void batchMigrateResources( BatchMigrateResourcesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -96,7 +96,7 @@ public void batchMigrateResources( new IllegalArgumentException( String.format( "Unrecognized response type %s for method BatchMigrateResources, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java index c12ec682a..af753627a 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java index 316657379..9232b21be 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -61,7 +61,7 @@ public void reset() { @Override public void uploadModel(UploadModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -73,7 +73,7 @@ public void uploadModel(UploadModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method UploadModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -81,7 +81,7 @@ public void uploadModel(UploadModelRequest request, StreamObserver re @Override public void getModel(GetModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Model) { requests.add(request); responseObserver.onNext(((Model) response)); @@ -93,7 +93,7 @@ public void getModel(GetModelRequest request, StreamObserver responseObse new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Model.class.getName(), Exception.class.getName()))); } @@ -102,7 +102,7 @@ public void getModel(GetModelRequest request, StreamObserver responseObse @Override public void listModels( ListModelsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelsResponse) { requests.add(request); responseObserver.onNext(((ListModelsResponse) response)); @@ -114,7 +114,7 @@ public void listModels( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModels, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelsResponse.class.getName(), Exception.class.getName()))); } @@ -122,7 +122,7 @@ public void listModels( @Override public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Model) { requests.add(request); responseObserver.onNext(((Model) response)); @@ -134,7 +134,7 @@ public void updateModel(UpdateModelRequest request, StreamObserver respon new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Model.class.getName(), Exception.class.getName()))); } @@ -142,7 +142,7 @@ public void updateModel(UpdateModelRequest request, StreamObserver respon @Override public void deleteModel(DeleteModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -154,7 +154,7 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -162,7 +162,7 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re @Override public void exportModel(ExportModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -174,7 +174,7 @@ public void exportModel(ExportModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method ExportModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -183,7 +183,7 @@ public void exportModel(ExportModelRequest request, StreamObserver re @Override public void getModelEvaluation( GetModelEvaluationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ModelEvaluation) { requests.add(request); responseObserver.onNext(((ModelEvaluation) response)); @@ -195,7 +195,7 @@ public void getModelEvaluation( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModelEvaluation, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ModelEvaluation.class.getName(), Exception.class.getName()))); } @@ -205,7 +205,7 @@ public void getModelEvaluation( public void listModelEvaluations( ListModelEvaluationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelEvaluationsResponse) { requests.add(request); responseObserver.onNext(((ListModelEvaluationsResponse) response)); @@ -217,7 +217,7 @@ public void listModelEvaluations( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModelEvaluations, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelEvaluationsResponse.class.getName(), Exception.class.getName()))); } @@ -227,7 +227,7 @@ public void listModelEvaluations( public void getModelEvaluationSlice( GetModelEvaluationSliceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ModelEvaluationSlice) { requests.add(request); responseObserver.onNext(((ModelEvaluationSlice) response)); @@ -239,7 +239,7 @@ public void getModelEvaluationSlice( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModelEvaluationSlice, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ModelEvaluationSlice.class.getName(), Exception.class.getName()))); } @@ -249,7 +249,7 @@ public void getModelEvaluationSlice( public void listModelEvaluationSlices( ListModelEvaluationSlicesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelEvaluationSlicesResponse) { requests.add(request); responseObserver.onNext(((ListModelEvaluationSlicesResponse) response)); @@ -261,7 +261,7 @@ public void listModelEvaluationSlices( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModelEvaluationSlices, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelEvaluationSlicesResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java index a6dd82467..0f59d1ac3 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java @@ -1,5 +1,5 @@ /* - * 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/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 30489c6cd..8df5f3645 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { @Override public void createTrainingPipeline( CreateTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof TrainingPipeline) { requests.add(request); responseObserver.onNext(((TrainingPipeline) response)); @@ -75,7 +75,7 @@ public void createTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), TrainingPipeline.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void createTrainingPipeline( @Override public void getTrainingPipeline( GetTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof TrainingPipeline) { requests.add(request); responseObserver.onNext(((TrainingPipeline) response)); @@ -96,7 +96,7 @@ public void getTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), TrainingPipeline.class.getName(), Exception.class.getName()))); } @@ -106,7 +106,7 @@ public void getTrainingPipeline( public void listTrainingPipelines( ListTrainingPipelinesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListTrainingPipelinesResponse) { requests.add(request); responseObserver.onNext(((ListTrainingPipelinesResponse) response)); @@ -118,7 +118,7 @@ public void listTrainingPipelines( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListTrainingPipelines, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListTrainingPipelinesResponse.class.getName(), Exception.class.getName()))); } @@ -127,7 +127,7 @@ public void listTrainingPipelines( @Override public void deleteTrainingPipeline( DeleteTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -139,7 +139,7 @@ public void deleteTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -148,7 +148,7 @@ public void deleteTrainingPipeline( @Override public void cancelTrainingPipeline( CancelTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -160,7 +160,7 @@ public void cancelTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelTrainingPipeline, expected %s or %s", - response.getClass().getName(), + 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/MockPredictionService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java index 1aa873524..d34baa63d 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java index 297b7319e..78aa689cb 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -60,7 +60,7 @@ public void reset() { @Override public void predict(PredictRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof PredictResponse) { requests.add(request); responseObserver.onNext(((PredictResponse) response)); @@ -72,7 +72,7 @@ public void predict(PredictRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method Predict, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), PredictResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java index 444b523e2..55399ef33 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java index 5dc613ff9..509f9465e 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createSpecialistPool( CreateSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -83,7 +83,7 @@ public void createSpecialistPool( @Override public void getSpecialistPool( GetSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof SpecialistPool) { requests.add(request); responseObserver.onNext(((SpecialistPool) response)); @@ -95,7 +95,7 @@ public void getSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), SpecialistPool.class.getName(), Exception.class.getName()))); } @@ -105,7 +105,7 @@ public void getSpecialistPool( public void listSpecialistPools( ListSpecialistPoolsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListSpecialistPoolsResponse) { requests.add(request); responseObserver.onNext(((ListSpecialistPoolsResponse) response)); @@ -117,7 +117,7 @@ public void listSpecialistPools( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListSpecialistPools, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListSpecialistPoolsResponse.class.getName(), Exception.class.getName()))); } @@ -126,7 +126,7 @@ public void listSpecialistPools( @Override public void deleteSpecialistPool( DeleteSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -138,7 +138,7 @@ public void deleteSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -147,7 +147,7 @@ public void deleteSpecialistPool( @Override public void updateSpecialistPool( UpdateSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -159,7 +159,7 @@ public void updateSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java index 8a2f4e13d..f3afbebfb 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/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 4d63feb29..f5478eb02 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java index b56c46acc..654748621 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java index cc0873466..abbcb3e93 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java index 9a2f6acfe..66ab0b5c5 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/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 fe3690851..132162e07 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 @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java new file mode 100644 index 000000000..9999655f4 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java @@ -0,0 +1,220 @@ +/* + * 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.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FeaturestoreOnlineServingServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private FeaturestoreOnlineServingServiceClient client; + private static MockFeaturestoreOnlineServingService mockFeaturestoreOnlineServingService; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockFeaturestoreOnlineServingService = new MockFeaturestoreOnlineServingService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockFeaturestoreOnlineServingService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FeaturestoreOnlineServingServiceSettings settings = + FeaturestoreOnlineServingServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FeaturestoreOnlineServingServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void readFeatureValuesTest() throws Exception { + ReadFeatureValuesResponse expectedResponse = + ReadFeatureValuesResponse.newBuilder() + .setHeader(ReadFeatureValuesResponse.Header.newBuilder().build()) + .setEntityView(ReadFeatureValuesResponse.EntityView.newBuilder().build()) + .build(); + mockFeaturestoreOnlineServingService.addResponse(expectedResponse); + + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + ReadFeatureValuesResponse actualResponse = client.readFeatureValues(entityType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreOnlineServingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadFeatureValuesRequest actualRequest = ((ReadFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType.toString(), actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreOnlineServingService.addException(exception); + + try { + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.readFeatureValues(entityType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readFeatureValuesTest2() throws Exception { + ReadFeatureValuesResponse expectedResponse = + ReadFeatureValuesResponse.newBuilder() + .setHeader(ReadFeatureValuesResponse.Header.newBuilder().build()) + .setEntityView(ReadFeatureValuesResponse.EntityView.newBuilder().build()) + .build(); + mockFeaturestoreOnlineServingService.addResponse(expectedResponse); + + String entityType = "entityType-1482998339"; + + ReadFeatureValuesResponse actualResponse = client.readFeatureValues(entityType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreOnlineServingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadFeatureValuesRequest actualRequest = ((ReadFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreOnlineServingService.addException(exception); + + try { + String entityType = "entityType-1482998339"; + client.readFeatureValues(entityType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamingReadFeatureValuesTest() throws Exception { + ReadFeatureValuesResponse expectedResponse = + ReadFeatureValuesResponse.newBuilder() + .setHeader(ReadFeatureValuesResponse.Header.newBuilder().build()) + .setEntityView(ReadFeatureValuesResponse.EntityView.newBuilder().build()) + .build(); + mockFeaturestoreOnlineServingService.addResponse(expectedResponse); + StreamingReadFeatureValuesRequest request = + StreamingReadFeatureValuesRequest.newBuilder() + .setEntityType( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .addAllEntityIds(new ArrayList()) + .setFeatureSelector(FeatureSelector.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamingReadFeatureValuesCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamingReadFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreOnlineServingService.addException(exception); + StreamingReadFeatureValuesRequest request = + StreamingReadFeatureValuesRequest.newBuilder() + .setEntityType( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .addAllEntityIds(new ArrayList()) + .setFeatureSelector(FeatureSelector.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamingReadFeatureValuesCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java new file mode 100644 index 000000000..7ae6aa04e --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java @@ -0,0 +1,1854 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FeaturestoreServiceClientTest { + private static MockFeaturestoreService mockFeaturestoreService; + private static MockServiceHelper mockServiceHelper; + private FeaturestoreServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockFeaturestoreService = new MockFeaturestoreService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockFeaturestoreService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FeaturestoreServiceSettings settings = + FeaturestoreServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FeaturestoreServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createFeaturestoreTest() throws Exception { + Featurestore expectedResponse = + Featurestore.newBuilder() + .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFeaturestoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Featurestore featurestore = Featurestore.newBuilder().build(); + + Featurestore actualResponse = client.createFeaturestoreAsync(parent, featurestore).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFeaturestoreRequest actualRequest = ((CreateFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(featurestore, actualRequest.getFeaturestore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFeaturestoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Featurestore featurestore = Featurestore.newBuilder().build(); + client.createFeaturestoreAsync(parent, featurestore).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 createFeaturestoreTest2() throws Exception { + Featurestore expectedResponse = + Featurestore.newBuilder() + .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFeaturestoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Featurestore featurestore = Featurestore.newBuilder().build(); + + Featurestore actualResponse = client.createFeaturestoreAsync(parent, featurestore).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFeaturestoreRequest actualRequest = ((CreateFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(featurestore, actualRequest.getFeaturestore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFeaturestoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + Featurestore featurestore = Featurestore.newBuilder().build(); + client.createFeaturestoreAsync(parent, featurestore).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 getFeaturestoreTest() throws Exception { + Featurestore expectedResponse = + Featurestore.newBuilder() + .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + + Featurestore actualResponse = client.getFeaturestore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeaturestoreRequest actualRequest = ((GetFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeaturestoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + client.getFeaturestore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFeaturestoreTest2() throws Exception { + Featurestore expectedResponse = + Featurestore.newBuilder() + .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + Featurestore actualResponse = client.getFeaturestore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeaturestoreRequest actualRequest = ((GetFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeaturestoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.getFeaturestore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturestoresTest() throws Exception { + Featurestore responsesElement = Featurestore.newBuilder().build(); + ListFeaturestoresResponse expectedResponse = + ListFeaturestoresResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturestores(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFeaturestoresPagedResponse pagedListResponse = client.listFeaturestores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturestoresList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturestoresRequest actualRequest = ((ListFeaturestoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturestoresExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFeaturestores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturestoresTest2() throws Exception { + Featurestore responsesElement = Featurestore.newBuilder().build(); + ListFeaturestoresResponse expectedResponse = + ListFeaturestoresResponse.newBuilder() + .setNextPageToken("") + .addAllFeaturestores(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFeaturestoresPagedResponse pagedListResponse = client.listFeaturestores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturestoresList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturestoresRequest actualRequest = ((ListFeaturestoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturestoresExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFeaturestores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFeaturestoreTest() throws Exception { + Featurestore expectedResponse = + Featurestore.newBuilder() + .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFeaturestoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + Featurestore featurestore = Featurestore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Featurestore actualResponse = client.updateFeaturestoreAsync(featurestore, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFeaturestoreRequest actualRequest = ((UpdateFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(featurestore, actualRequest.getFeaturestore()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFeaturestoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + Featurestore featurestore = Featurestore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFeaturestoreAsync(featurestore, updateMask).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 deleteFeaturestoreTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeaturestoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + + client.deleteFeaturestoreAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeaturestoreRequest actualRequest = ((DeleteFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeaturestoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + client.deleteFeaturestoreAsync(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 deleteFeaturestoreTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeaturestoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFeaturestoreAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeaturestoreRequest actualRequest = ((DeleteFeaturestoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeaturestoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.deleteFeaturestoreAsync(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 createEntityTypeTest() throws Exception { + EntityType expectedResponse = + EntityType.newBuilder() + .setName( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEntityTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + EntityType entityType = EntityType.newBuilder().build(); + + EntityType actualResponse = client.createEntityTypeAsync(parent, entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEntityTypeRequest actualRequest = ((CreateEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEntityTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + EntityType entityType = EntityType.newBuilder().build(); + client.createEntityTypeAsync(parent, entityType).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 createEntityTypeTest2() throws Exception { + EntityType expectedResponse = + EntityType.newBuilder() + .setName( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEntityTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String parent = "parent-995424086"; + EntityType entityType = EntityType.newBuilder().build(); + + EntityType actualResponse = client.createEntityTypeAsync(parent, entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEntityTypeRequest actualRequest = ((CreateEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEntityTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + EntityType entityType = EntityType.newBuilder().build(); + client.createEntityTypeAsync(parent, entityType).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 getEntityTypeTest() throws Exception { + EntityType expectedResponse = + EntityType.newBuilder() + .setName( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + EntityTypeName name = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + EntityType actualResponse = client.getEntityType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEntityTypeRequest actualRequest = ((GetEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEntityTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName name = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.getEntityType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEntityTypeTest2() throws Exception { + EntityType expectedResponse = + EntityType.newBuilder() + .setName( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + EntityType actualResponse = client.getEntityType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEntityTypeRequest actualRequest = ((GetEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEntityTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.getEntityType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEntityTypesTest() throws Exception { + EntityType responsesElement = EntityType.newBuilder().build(); + ListEntityTypesResponse expectedResponse = + ListEntityTypesResponse.newBuilder() + .setNextPageToken("") + .addAllEntityTypes(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + + ListEntityTypesPagedResponse pagedListResponse = client.listEntityTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntityTypesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEntityTypesRequest actualRequest = ((ListEntityTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEntityTypesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + client.listEntityTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEntityTypesTest2() throws Exception { + EntityType responsesElement = EntityType.newBuilder().build(); + ListEntityTypesResponse expectedResponse = + ListEntityTypesResponse.newBuilder() + .setNextPageToken("") + .addAllEntityTypes(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEntityTypesPagedResponse pagedListResponse = client.listEntityTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntityTypesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEntityTypesRequest actualRequest = ((ListEntityTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEntityTypesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEntityTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateEntityTypeTest() throws Exception { + EntityType expectedResponse = + EntityType.newBuilder() + .setName( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + EntityType entityType = EntityType.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + EntityType actualResponse = client.updateEntityType(entityType, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateEntityTypeRequest actualRequest = ((UpdateEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateEntityTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityType entityType = EntityType.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEntityType(entityType, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteEntityTypeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEntityTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName name = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + client.deleteEntityTypeAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEntityTypeRequest actualRequest = ((DeleteEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEntityTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName name = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.deleteEntityTypeAsync(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 deleteEntityTypeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEntityTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteEntityTypeAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEntityTypeRequest actualRequest = ((DeleteEntityTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEntityTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.deleteEntityTypeAsync(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 createFeatureTest() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName( + FeatureName.of( + "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .addAllMonitoringStats(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + Feature feature = Feature.newBuilder().build(); + + Feature actualResponse = client.createFeatureAsync(parent, feature).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFeatureRequest actualRequest = ((CreateFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(feature, actualRequest.getFeature()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + Feature feature = Feature.newBuilder().build(); + client.createFeatureAsync(parent, feature).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 createFeatureTest2() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName( + FeatureName.of( + "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .addAllMonitoringStats(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Feature feature = Feature.newBuilder().build(); + + Feature actualResponse = client.createFeatureAsync(parent, feature).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFeatureRequest actualRequest = ((CreateFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(feature, actualRequest.getFeature()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFeatureExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + Feature feature = Feature.newBuilder().build(); + client.createFeatureAsync(parent, feature).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 batchCreateFeaturesTest() throws Exception { + BatchCreateFeaturesResponse expectedResponse = + BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateFeaturesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + List requests = new ArrayList<>(); + + BatchCreateFeaturesResponse actualResponse = + client.batchCreateFeaturesAsync(parent, requests).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateFeaturesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + List requests = new ArrayList<>(); + client.batchCreateFeaturesAsync(parent, requests).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 batchCreateFeaturesTest2() throws Exception { + BatchCreateFeaturesResponse expectedResponse = + BatchCreateFeaturesResponse.newBuilder().addAllFeatures(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateFeaturesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + + BatchCreateFeaturesResponse actualResponse = + client.batchCreateFeaturesAsync(parent, requests).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateFeaturesRequest actualRequest = ((BatchCreateFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(requests, actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateFeaturesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + List requests = new ArrayList<>(); + client.batchCreateFeaturesAsync(parent, requests).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 getFeatureTest() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName( + FeatureName.of( + "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .addAllMonitoringStats(new ArrayList()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + FeatureName name = + FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"); + + Feature actualResponse = client.getFeature(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeatureRequest actualRequest = ((GetFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeatureName name = + FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"); + client.getFeature(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFeatureTest2() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName( + FeatureName.of( + "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .addAllMonitoringStats(new ArrayList()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + Feature actualResponse = client.getFeature(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeatureRequest actualRequest = ((GetFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeatureExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.getFeature(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturesTest() throws Exception { + Feature responsesElement = Feature.newBuilder().build(); + ListFeaturesResponse expectedResponse = + ListFeaturesResponse.newBuilder() + .setNextPageToken("") + .addAllFeatures(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + ListFeaturesPagedResponse pagedListResponse = client.listFeatures(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturesRequest actualRequest = ((ListFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName parent = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.listFeatures(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturesTest2() throws Exception { + Feature responsesElement = Feature.newBuilder().build(); + ListFeaturesResponse expectedResponse = + ListFeaturesResponse.newBuilder() + .setNextPageToken("") + .addAllFeatures(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFeaturesPagedResponse pagedListResponse = client.listFeatures(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturesRequest actualRequest = ((ListFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFeatures(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFeatureTest() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName( + FeatureName.of( + "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .addAllMonitoringStats(new ArrayList()) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + Feature feature = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Feature actualResponse = client.updateFeature(feature, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFeatureRequest actualRequest = ((UpdateFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(feature, actualRequest.getFeature()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + Feature feature = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFeature(feature, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFeatureTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + FeatureName name = + FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"); + + client.deleteFeatureAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeatureRequest actualRequest = ((DeleteFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeatureName name = + FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"); + client.deleteFeatureAsync(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 deleteFeatureTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFeatureAsync(name).get(); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeatureRequest actualRequest = ((DeleteFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeatureExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String name = "name3373707"; + client.deleteFeatureAsync(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 importFeatureValuesTest() throws Exception { + ImportFeatureValuesResponse expectedResponse = + ImportFeatureValuesResponse.newBuilder() + .setImportedEntityCount(-1840044274) + .setImportedFeatureValueCount(-1221471427) + .setInvalidRowCount(-366655966) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + ImportFeatureValuesResponse actualResponse = client.importFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportFeatureValuesRequest actualRequest = ((ImportFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType.toString(), actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.importFeatureValuesAsync(entityType).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 importFeatureValuesTest2() throws Exception { + ImportFeatureValuesResponse expectedResponse = + ImportFeatureValuesResponse.newBuilder() + .setImportedEntityCount(-1840044274) + .setImportedFeatureValueCount(-1221471427) + .setInvalidRowCount(-366655966) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String entityType = "entityType-1482998339"; + + ImportFeatureValuesResponse actualResponse = client.importFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportFeatureValuesRequest actualRequest = ((ImportFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String entityType = "entityType-1482998339"; + client.importFeatureValuesAsync(entityType).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 batchReadFeatureValuesTest() throws Exception { + BatchReadFeatureValuesResponse expectedResponse = + BatchReadFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchReadFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + FeaturestoreName featurestore = + FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + + BatchReadFeatureValuesResponse actualResponse = + client.batchReadFeatureValuesAsync(featurestore).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchReadFeatureValuesRequest actualRequest = + ((BatchReadFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(featurestore.toString(), actualRequest.getFeaturestore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchReadFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + FeaturestoreName featurestore = + FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"); + client.batchReadFeatureValuesAsync(featurestore).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 batchReadFeatureValuesTest2() throws Exception { + BatchReadFeatureValuesResponse expectedResponse = + BatchReadFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchReadFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String featurestore = "featurestore1227679659"; + + BatchReadFeatureValuesResponse actualResponse = + client.batchReadFeatureValuesAsync(featurestore).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchReadFeatureValuesRequest actualRequest = + ((BatchReadFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(featurestore, actualRequest.getFeaturestore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchReadFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String featurestore = "featurestore1227679659"; + client.batchReadFeatureValuesAsync(featurestore).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 exportFeatureValuesTest() throws Exception { + ExportFeatureValuesResponse expectedResponse = ExportFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + ExportFeatureValuesResponse actualResponse = client.exportFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportFeatureValuesRequest actualRequest = ((ExportFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType.toString(), actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.exportFeatureValuesAsync(entityType).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 exportFeatureValuesTest2() throws Exception { + ExportFeatureValuesResponse expectedResponse = ExportFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String entityType = "entityType-1482998339"; + + ExportFeatureValuesResponse actualResponse = client.exportFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportFeatureValuesRequest actualRequest = ((ExportFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String entityType = "entityType-1482998339"; + client.exportFeatureValuesAsync(entityType).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 searchFeaturesTest() throws Exception { + Feature responsesElement = Feature.newBuilder().build(); + SearchFeaturesResponse expectedResponse = + SearchFeaturesResponse.newBuilder() + .setNextPageToken("") + .addAllFeatures(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + SearchFeaturesPagedResponse pagedListResponse = client.searchFeatures(location); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchFeaturesRequest actualRequest = ((SearchFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(location.toString(), actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchFeaturesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.searchFeatures(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchFeaturesTest2() throws Exception { + Feature responsesElement = Feature.newBuilder().build(); + SearchFeaturesResponse expectedResponse = + SearchFeaturesResponse.newBuilder() + .setNextPageToken("") + .addAllFeatures(Arrays.asList(responsesElement)) + .build(); + mockFeaturestoreService.addResponse(expectedResponse); + + String location = "location1901043637"; + + SearchFeaturesPagedResponse pagedListResponse = client.searchFeatures(location); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFeaturesList().get(0), resources.get(0)); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchFeaturesRequest actualRequest = ((SearchFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchFeaturesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String location = "location1901043637"; + client.searchFeatures(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java new file mode 100644 index 000000000..e5a975afc --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java @@ -0,0 +1,714 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IndexEndpointServiceClientTest { + private static MockIndexEndpointService mockIndexEndpointService; + private static MockServiceHelper mockServiceHelper; + private IndexEndpointServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockIndexEndpointService = new MockIndexEndpointService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockIndexEndpointService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + IndexEndpointServiceSettings settings = + IndexEndpointServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IndexEndpointServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createIndexEndpointTest() throws Exception { + IndexEndpoint expectedResponse = + IndexEndpoint.newBuilder() + .setName(IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNetwork("network1843485230") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + + IndexEndpoint actualResponse = client.createIndexEndpointAsync(parent, indexEndpoint).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexEndpointRequest actualRequest = ((CreateIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(indexEndpoint, actualRequest.getIndexEndpoint()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIndexEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + client.createIndexEndpointAsync(parent, indexEndpoint).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 createIndexEndpointTest2() throws Exception { + IndexEndpoint expectedResponse = + IndexEndpoint.newBuilder() + .setName(IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNetwork("network1843485230") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + String parent = "parent-995424086"; + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + + IndexEndpoint actualResponse = client.createIndexEndpointAsync(parent, indexEndpoint).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexEndpointRequest actualRequest = ((CreateIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(indexEndpoint, actualRequest.getIndexEndpoint()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIndexEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String parent = "parent-995424086"; + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + client.createIndexEndpointAsync(parent, indexEndpoint).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 getIndexEndpointTest() throws Exception { + IndexEndpoint expectedResponse = + IndexEndpoint.newBuilder() + .setName(IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNetwork("network1843485230") + .build(); + mockIndexEndpointService.addResponse(expectedResponse); + + IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + + IndexEndpoint actualResponse = client.getIndexEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexEndpointRequest actualRequest = ((GetIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIndexEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + client.getIndexEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIndexEndpointTest2() throws Exception { + IndexEndpoint expectedResponse = + IndexEndpoint.newBuilder() + .setName(IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNetwork("network1843485230") + .build(); + mockIndexEndpointService.addResponse(expectedResponse); + + String name = "name3373707"; + + IndexEndpoint actualResponse = client.getIndexEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexEndpointRequest actualRequest = ((GetIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIndexEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String name = "name3373707"; + client.getIndexEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexEndpointsTest() throws Exception { + IndexEndpoint responsesElement = IndexEndpoint.newBuilder().build(); + ListIndexEndpointsResponse expectedResponse = + ListIndexEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllIndexEndpoints(Arrays.asList(responsesElement)) + .build(); + mockIndexEndpointService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListIndexEndpointsPagedResponse pagedListResponse = client.listIndexEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexEndpointsRequest actualRequest = ((ListIndexEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIndexEndpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listIndexEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexEndpointsTest2() throws Exception { + IndexEndpoint responsesElement = IndexEndpoint.newBuilder().build(); + ListIndexEndpointsResponse expectedResponse = + ListIndexEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllIndexEndpoints(Arrays.asList(responsesElement)) + .build(); + mockIndexEndpointService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListIndexEndpointsPagedResponse pagedListResponse = client.listIndexEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexEndpointsRequest actualRequest = ((ListIndexEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIndexEndpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listIndexEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateIndexEndpointTest() throws Exception { + IndexEndpoint expectedResponse = + IndexEndpoint.newBuilder() + .setName(IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNetwork("network1843485230") + .build(); + mockIndexEndpointService.addResponse(expectedResponse); + + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + IndexEndpoint actualResponse = client.updateIndexEndpoint(indexEndpoint, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateIndexEndpointRequest actualRequest = ((UpdateIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(indexEndpoint, actualRequest.getIndexEndpoint()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateIndexEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIndexEndpoint(indexEndpoint, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteIndexEndpointTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + + client.deleteIndexEndpointAsync(name).get(); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexEndpointRequest actualRequest = ((DeleteIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIndexEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + client.deleteIndexEndpointAsync(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 deleteIndexEndpointTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteIndexEndpointAsync(name).get(); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexEndpointRequest actualRequest = ((DeleteIndexEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIndexEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String name = "name3373707"; + client.deleteIndexEndpointAsync(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 deployIndexTest() throws Exception { + DeployIndexResponse expectedResponse = + DeployIndexResponse.newBuilder() + .setDeployedIndex(DeployedIndex.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + IndexEndpointName indexEndpoint = + IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + DeployedIndex deployedIndex = DeployedIndex.newBuilder().build(); + + DeployIndexResponse actualResponse = + client.deployIndexAsync(indexEndpoint, deployedIndex).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployIndexRequest actualRequest = ((DeployIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(indexEndpoint.toString(), actualRequest.getIndexEndpoint()); + Assert.assertEquals(deployedIndex, actualRequest.getDeployedIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + IndexEndpointName indexEndpoint = + IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + DeployedIndex deployedIndex = DeployedIndex.newBuilder().build(); + client.deployIndexAsync(indexEndpoint, deployedIndex).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 deployIndexTest2() throws Exception { + DeployIndexResponse expectedResponse = + DeployIndexResponse.newBuilder() + .setDeployedIndex(DeployedIndex.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + String indexEndpoint = "indexEndpoint-1743275897"; + DeployedIndex deployedIndex = DeployedIndex.newBuilder().build(); + + DeployIndexResponse actualResponse = + client.deployIndexAsync(indexEndpoint, deployedIndex).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployIndexRequest actualRequest = ((DeployIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(indexEndpoint, actualRequest.getIndexEndpoint()); + Assert.assertEquals(deployedIndex, actualRequest.getDeployedIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployIndexExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String indexEndpoint = "indexEndpoint-1743275897"; + DeployedIndex deployedIndex = DeployedIndex.newBuilder().build(); + client.deployIndexAsync(indexEndpoint, deployedIndex).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 undeployIndexTest() throws Exception { + UndeployIndexResponse expectedResponse = UndeployIndexResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeployIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + IndexEndpointName indexEndpoint = + IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + String deployedIndexId = "deployedIndexId-1101212953"; + + UndeployIndexResponse actualResponse = + client.undeployIndexAsync(indexEndpoint, deployedIndexId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeployIndexRequest actualRequest = ((UndeployIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(indexEndpoint.toString(), actualRequest.getIndexEndpoint()); + Assert.assertEquals(deployedIndexId, actualRequest.getDeployedIndexId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeployIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + IndexEndpointName indexEndpoint = + IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]"); + String deployedIndexId = "deployedIndexId-1101212953"; + client.undeployIndexAsync(indexEndpoint, deployedIndexId).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 undeployIndexTest2() throws Exception { + UndeployIndexResponse expectedResponse = UndeployIndexResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeployIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexEndpointService.addResponse(resultOperation); + + String indexEndpoint = "indexEndpoint-1743275897"; + String deployedIndexId = "deployedIndexId-1101212953"; + + UndeployIndexResponse actualResponse = + client.undeployIndexAsync(indexEndpoint, deployedIndexId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeployIndexRequest actualRequest = ((UndeployIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(indexEndpoint, actualRequest.getIndexEndpoint()); + Assert.assertEquals(deployedIndexId, actualRequest.getDeployedIndexId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeployIndexExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexEndpointService.addException(exception); + + try { + String indexEndpoint = "indexEndpoint-1743275897"; + String deployedIndexId = "deployedIndexId-1101212953"; + client.undeployIndexAsync(indexEndpoint, deployedIndexId).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()); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java new file mode 100644 index 000000000..b4ebbdc2d --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java @@ -0,0 +1,530 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IndexServiceClientTest { + private static MockIndexService mockIndexService; + private static MockServiceHelper mockServiceHelper; + private IndexServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockIndexService = new MockIndexService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockIndexService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + IndexServiceSettings settings = + IndexServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IndexServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Index index = Index.newBuilder().build(); + + Index actualResponse = client.createIndexAsync(parent, index).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexRequest actualRequest = ((CreateIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(index, actualRequest.getIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Index index = Index.newBuilder().build(); + client.createIndexAsync(parent, index).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 createIndexTest2() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Index index = Index.newBuilder().build(); + + Index actualResponse = client.createIndexAsync(parent, index).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIndexRequest actualRequest = ((CreateIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(index, actualRequest.getIndex()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIndexExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + String parent = "parent-995424086"; + Index index = Index.newBuilder().build(); + client.createIndexAsync(parent, index).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 getIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIndexService.addResponse(expectedResponse); + + IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]"); + + Index actualResponse = client.getIndex(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexRequest actualRequest = ((GetIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]"); + client.getIndex(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIndexTest2() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockIndexService.addResponse(expectedResponse); + + String name = "name3373707"; + + Index actualResponse = client.getIndex(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIndexRequest actualRequest = ((GetIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIndexExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + String name = "name3373707"; + client.getIndex(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexesTest() throws Exception { + Index responsesElement = Index.newBuilder().build(); + ListIndexesResponse expectedResponse = + ListIndexesResponse.newBuilder() + .setNextPageToken("") + .addAllIndexes(Arrays.asList(responsesElement)) + .build(); + mockIndexService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListIndexesPagedResponse pagedListResponse = client.listIndexes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexesRequest actualRequest = ((ListIndexesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIndexesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listIndexes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIndexesTest2() throws Exception { + Index responsesElement = Index.newBuilder().build(); + ListIndexesResponse expectedResponse = + ListIndexesResponse.newBuilder() + .setNextPageToken("") + .addAllIndexes(Arrays.asList(responsesElement)) + .build(); + mockIndexService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListIndexesPagedResponse pagedListResponse = client.listIndexes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIndexesList().get(0), resources.get(0)); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIndexesRequest actualRequest = ((ListIndexesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIndexesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listIndexes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateIndexTest() throws Exception { + Index expectedResponse = + Index.newBuilder() + .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMetadataSchemaUri("metadataSchemaUri781971868") + .setMetadata(Value.newBuilder().build()) + .addAllDeployedIndexes(new ArrayList()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexService.addResponse(resultOperation); + + Index index = Index.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Index actualResponse = client.updateIndexAsync(index, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateIndexRequest actualRequest = ((UpdateIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(index, actualRequest.getIndex()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + Index index = Index.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateIndexAsync(index, updateMask).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 deleteIndexTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexService.addResponse(resultOperation); + + IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]"); + + client.deleteIndexAsync(name).get(); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexRequest actualRequest = ((DeleteIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIndexExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]"); + client.deleteIndexAsync(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 deleteIndexTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIndexTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIndexService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteIndexAsync(name).get(); + + List actualRequests = mockIndexService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIndexRequest actualRequest = ((DeleteIndexRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIndexExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIndexService.addException(exception); + + try { + String name = "name3373707"; + client.deleteIndexAsync(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()); + } + } +} 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 223e8d0b2..8663203f0 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -20,6 +20,8 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -33,7 +35,9 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import com.google.protobuf.Value; import com.google.rpc.Status; @@ -2013,4 +2017,794 @@ public void cancelBatchPredictionJobExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createModelDeploymentMonitoringJobTest() throws Exception { + ModelDeploymentMonitoringJob expectedResponse = + ModelDeploymentMonitoringJob.newBuilder() + .setName( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setDisplayName("displayName1714148973") + .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setState(JobState.forNumber(0)) + .addAllModelDeploymentMonitoringObjectiveConfigs( + new ArrayList()) + .setModelDeploymentMonitoringScheduleConfig( + ModelDeploymentMonitoringScheduleConfig.newBuilder().build()) + .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build()) + .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build()) + .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043") + .setSamplePredictInstance(Value.newBuilder().build()) + .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382") + .addAllBigqueryTables(new ArrayList()) + .setLogTtl(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNextScheduleTime(Timestamp.newBuilder().build()) + .setStatsAnomaliesBaseDirectory(GcsDestination.newBuilder().build()) + .build(); + mockJobService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + + ModelDeploymentMonitoringJob actualResponse = + client.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateModelDeploymentMonitoringJobRequest actualRequest = + ((CreateModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + modelDeploymentMonitoringJob, actualRequest.getModelDeploymentMonitoringJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + client.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createModelDeploymentMonitoringJobTest2() throws Exception { + ModelDeploymentMonitoringJob expectedResponse = + ModelDeploymentMonitoringJob.newBuilder() + .setName( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setDisplayName("displayName1714148973") + .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setState(JobState.forNumber(0)) + .addAllModelDeploymentMonitoringObjectiveConfigs( + new ArrayList()) + .setModelDeploymentMonitoringScheduleConfig( + ModelDeploymentMonitoringScheduleConfig.newBuilder().build()) + .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build()) + .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build()) + .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043") + .setSamplePredictInstance(Value.newBuilder().build()) + .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382") + .addAllBigqueryTables(new ArrayList()) + .setLogTtl(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNextScheduleTime(Timestamp.newBuilder().build()) + .setStatsAnomaliesBaseDirectory(GcsDestination.newBuilder().build()) + .build(); + mockJobService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + + ModelDeploymentMonitoringJob actualResponse = + client.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateModelDeploymentMonitoringJobRequest actualRequest = + ((CreateModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + modelDeploymentMonitoringJob, actualRequest.getModelDeploymentMonitoringJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createModelDeploymentMonitoringJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String parent = "parent-995424086"; + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + client.createModelDeploymentMonitoringJob(parent, modelDeploymentMonitoringJob); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchModelDeploymentMonitoringStatsAnomaliesTest() throws Exception { + ModelMonitoringStatsAnomalies responsesElement = + ModelMonitoringStatsAnomalies.newBuilder().build(); + SearchModelDeploymentMonitoringStatsAnomaliesResponse expectedResponse = + SearchModelDeploymentMonitoringStatsAnomaliesResponse.newBuilder() + .setNextPageToken("") + .addAllMonitoringStats(Arrays.asList(responsesElement)) + .build(); + mockJobService.addResponse(expectedResponse); + + ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + String deployedModelId = "deployedModelId-1817547906"; + + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse pagedListResponse = + client.searchModelDeploymentMonitoringStatsAnomalies( + modelDeploymentMonitoringJob, deployedModelId); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMonitoringStatsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchModelDeploymentMonitoringStatsAnomaliesRequest actualRequest = + ((SearchModelDeploymentMonitoringStatsAnomaliesRequest) actualRequests.get(0)); + + Assert.assertEquals( + modelDeploymentMonitoringJob.toString(), actualRequest.getModelDeploymentMonitoringJob()); + Assert.assertEquals(deployedModelId, actualRequest.getDeployedModelId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchModelDeploymentMonitoringStatsAnomaliesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + String deployedModelId = "deployedModelId-1817547906"; + client.searchModelDeploymentMonitoringStatsAnomalies( + modelDeploymentMonitoringJob, deployedModelId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchModelDeploymentMonitoringStatsAnomaliesTest2() throws Exception { + ModelMonitoringStatsAnomalies responsesElement = + ModelMonitoringStatsAnomalies.newBuilder().build(); + SearchModelDeploymentMonitoringStatsAnomaliesResponse expectedResponse = + SearchModelDeploymentMonitoringStatsAnomaliesResponse.newBuilder() + .setNextPageToken("") + .addAllMonitoringStats(Arrays.asList(responsesElement)) + .build(); + mockJobService.addResponse(expectedResponse); + + String modelDeploymentMonitoringJob = "modelDeploymentMonitoringJob-1178077657"; + String deployedModelId = "deployedModelId-1817547906"; + + SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse pagedListResponse = + client.searchModelDeploymentMonitoringStatsAnomalies( + modelDeploymentMonitoringJob, deployedModelId); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMonitoringStatsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchModelDeploymentMonitoringStatsAnomaliesRequest actualRequest = + ((SearchModelDeploymentMonitoringStatsAnomaliesRequest) actualRequests.get(0)); + + Assert.assertEquals( + modelDeploymentMonitoringJob, actualRequest.getModelDeploymentMonitoringJob()); + Assert.assertEquals(deployedModelId, actualRequest.getDeployedModelId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchModelDeploymentMonitoringStatsAnomaliesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String modelDeploymentMonitoringJob = "modelDeploymentMonitoringJob-1178077657"; + String deployedModelId = "deployedModelId-1817547906"; + client.searchModelDeploymentMonitoringStatsAnomalies( + modelDeploymentMonitoringJob, deployedModelId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getModelDeploymentMonitoringJobTest() throws Exception { + ModelDeploymentMonitoringJob expectedResponse = + ModelDeploymentMonitoringJob.newBuilder() + .setName( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setDisplayName("displayName1714148973") + .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setState(JobState.forNumber(0)) + .addAllModelDeploymentMonitoringObjectiveConfigs( + new ArrayList()) + .setModelDeploymentMonitoringScheduleConfig( + ModelDeploymentMonitoringScheduleConfig.newBuilder().build()) + .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build()) + .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build()) + .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043") + .setSamplePredictInstance(Value.newBuilder().build()) + .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382") + .addAllBigqueryTables(new ArrayList()) + .setLogTtl(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNextScheduleTime(Timestamp.newBuilder().build()) + .setStatsAnomaliesBaseDirectory(GcsDestination.newBuilder().build()) + .build(); + mockJobService.addResponse(expectedResponse); + + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + + ModelDeploymentMonitoringJob actualResponse = client.getModelDeploymentMonitoringJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetModelDeploymentMonitoringJobRequest actualRequest = + ((GetModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + client.getModelDeploymentMonitoringJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getModelDeploymentMonitoringJobTest2() throws Exception { + ModelDeploymentMonitoringJob expectedResponse = + ModelDeploymentMonitoringJob.newBuilder() + .setName( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setDisplayName("displayName1714148973") + .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setState(JobState.forNumber(0)) + .addAllModelDeploymentMonitoringObjectiveConfigs( + new ArrayList()) + .setModelDeploymentMonitoringScheduleConfig( + ModelDeploymentMonitoringScheduleConfig.newBuilder().build()) + .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build()) + .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build()) + .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043") + .setSamplePredictInstance(Value.newBuilder().build()) + .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382") + .addAllBigqueryTables(new ArrayList()) + .setLogTtl(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNextScheduleTime(Timestamp.newBuilder().build()) + .setStatsAnomaliesBaseDirectory(GcsDestination.newBuilder().build()) + .build(); + mockJobService.addResponse(expectedResponse); + + String name = "name3373707"; + + ModelDeploymentMonitoringJob actualResponse = client.getModelDeploymentMonitoringJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetModelDeploymentMonitoringJobRequest actualRequest = + ((GetModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getModelDeploymentMonitoringJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String name = "name3373707"; + client.getModelDeploymentMonitoringJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listModelDeploymentMonitoringJobsTest() throws Exception { + ModelDeploymentMonitoringJob responsesElement = + ModelDeploymentMonitoringJob.newBuilder().build(); + ListModelDeploymentMonitoringJobsResponse expectedResponse = + ListModelDeploymentMonitoringJobsResponse.newBuilder() + .setNextPageToken("") + .addAllModelDeploymentMonitoringJobs(Arrays.asList(responsesElement)) + .build(); + mockJobService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListModelDeploymentMonitoringJobsPagedResponse pagedListResponse = + client.listModelDeploymentMonitoringJobs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getModelDeploymentMonitoringJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelDeploymentMonitoringJobsRequest actualRequest = + ((ListModelDeploymentMonitoringJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelDeploymentMonitoringJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listModelDeploymentMonitoringJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listModelDeploymentMonitoringJobsTest2() throws Exception { + ModelDeploymentMonitoringJob responsesElement = + ModelDeploymentMonitoringJob.newBuilder().build(); + ListModelDeploymentMonitoringJobsResponse expectedResponse = + ListModelDeploymentMonitoringJobsResponse.newBuilder() + .setNextPageToken("") + .addAllModelDeploymentMonitoringJobs(Arrays.asList(responsesElement)) + .build(); + mockJobService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListModelDeploymentMonitoringJobsPagedResponse pagedListResponse = + client.listModelDeploymentMonitoringJobs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getModelDeploymentMonitoringJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelDeploymentMonitoringJobsRequest actualRequest = + ((ListModelDeploymentMonitoringJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelDeploymentMonitoringJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listModelDeploymentMonitoringJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateModelDeploymentMonitoringJobTest() throws Exception { + ModelDeploymentMonitoringJob expectedResponse = + ModelDeploymentMonitoringJob.newBuilder() + .setName( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setDisplayName("displayName1714148973") + .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setState(JobState.forNumber(0)) + .addAllModelDeploymentMonitoringObjectiveConfigs( + new ArrayList()) + .setModelDeploymentMonitoringScheduleConfig( + ModelDeploymentMonitoringScheduleConfig.newBuilder().build()) + .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build()) + .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build()) + .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043") + .setSamplePredictInstance(Value.newBuilder().build()) + .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382") + .addAllBigqueryTables(new ArrayList()) + .setLogTtl(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setNextScheduleTime(Timestamp.newBuilder().build()) + .setStatsAnomaliesBaseDirectory(GcsDestination.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateModelDeploymentMonitoringJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobService.addResponse(resultOperation); + + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ModelDeploymentMonitoringJob actualResponse = + client + .updateModelDeploymentMonitoringJobAsync(modelDeploymentMonitoringJob, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateModelDeploymentMonitoringJobRequest actualRequest = + ((UpdateModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals( + modelDeploymentMonitoringJob, actualRequest.getModelDeploymentMonitoringJob()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJob modelDeploymentMonitoringJob = + ModelDeploymentMonitoringJob.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client + .updateModelDeploymentMonitoringJobAsync(modelDeploymentMonitoringJob, updateMask) + .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 deleteModelDeploymentMonitoringJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteModelDeploymentMonitoringJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobService.addResponse(resultOperation); + + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + + client.deleteModelDeploymentMonitoringJobAsync(name).get(); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteModelDeploymentMonitoringJobRequest actualRequest = + ((DeleteModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + client.deleteModelDeploymentMonitoringJobAsync(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 deleteModelDeploymentMonitoringJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteModelDeploymentMonitoringJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteModelDeploymentMonitoringJobAsync(name).get(); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteModelDeploymentMonitoringJobRequest actualRequest = + ((DeleteModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteModelDeploymentMonitoringJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String name = "name3373707"; + client.deleteModelDeploymentMonitoringJobAsync(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 pauseModelDeploymentMonitoringJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + + client.pauseModelDeploymentMonitoringJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PauseModelDeploymentMonitoringJobRequest actualRequest = + ((PauseModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pauseModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + client.pauseModelDeploymentMonitoringJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseModelDeploymentMonitoringJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.pauseModelDeploymentMonitoringJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PauseModelDeploymentMonitoringJobRequest actualRequest = + ((PauseModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pauseModelDeploymentMonitoringJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String name = "name3373707"; + client.pauseModelDeploymentMonitoringJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeModelDeploymentMonitoringJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + + client.resumeModelDeploymentMonitoringJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResumeModelDeploymentMonitoringJobRequest actualRequest = + ((ResumeModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resumeModelDeploymentMonitoringJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ModelDeploymentMonitoringJobName name = + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]"); + client.resumeModelDeploymentMonitoringJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeModelDeploymentMonitoringJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.resumeModelDeploymentMonitoringJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResumeModelDeploymentMonitoringJobRequest actualRequest = + ((ResumeModelDeploymentMonitoringJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resumeModelDeploymentMonitoringJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + String name = "name3373707"; + client.resumeModelDeploymentMonitoringJob(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/MetadataServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java new file mode 100644 index 000000000..8e26d0401 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java @@ -0,0 +1,2402 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MetadataServiceClientTest { + private static MockMetadataService mockMetadataService; + private static MockServiceHelper mockServiceHelper; + private MetadataServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockMetadataService = new MockMetadataService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockMetadataService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MetadataServiceSettings settings = + MetadataServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MetadataServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createMetadataStoreTest() throws Exception { + MetadataStore expectedResponse = + MetadataStore.newBuilder() + .setName(MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setDescription("description-1724546052") + .setState(MetadataStore.MetadataStoreState.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMetadataStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MetadataStore metadataStore = MetadataStore.newBuilder().build(); + String metadataStoreId = "metadataStoreId-1811789907"; + + MetadataStore actualResponse = + client.createMetadataStoreAsync(parent, metadataStore, metadataStoreId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMetadataStoreRequest actualRequest = ((CreateMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(metadataStore, actualRequest.getMetadataStore()); + Assert.assertEquals(metadataStoreId, actualRequest.getMetadataStoreId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMetadataStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MetadataStore metadataStore = MetadataStore.newBuilder().build(); + String metadataStoreId = "metadataStoreId-1811789907"; + client.createMetadataStoreAsync(parent, metadataStore, metadataStoreId).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 createMetadataStoreTest2() throws Exception { + MetadataStore expectedResponse = + MetadataStore.newBuilder() + .setName(MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setDescription("description-1724546052") + .setState(MetadataStore.MetadataStoreState.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMetadataStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + MetadataStore metadataStore = MetadataStore.newBuilder().build(); + String metadataStoreId = "metadataStoreId-1811789907"; + + MetadataStore actualResponse = + client.createMetadataStoreAsync(parent, metadataStore, metadataStoreId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMetadataStoreRequest actualRequest = ((CreateMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(metadataStore, actualRequest.getMetadataStore()); + Assert.assertEquals(metadataStoreId, actualRequest.getMetadataStoreId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMetadataStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + MetadataStore metadataStore = MetadataStore.newBuilder().build(); + String metadataStoreId = "metadataStoreId-1811789907"; + client.createMetadataStoreAsync(parent, metadataStore, metadataStoreId).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 getMetadataStoreTest() throws Exception { + MetadataStore expectedResponse = + MetadataStore.newBuilder() + .setName(MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setDescription("description-1724546052") + .setState(MetadataStore.MetadataStoreState.newBuilder().build()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + MetadataStore actualResponse = client.getMetadataStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataStoreRequest actualRequest = ((GetMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.getMetadataStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataStoreTest2() throws Exception { + MetadataStore expectedResponse = + MetadataStore.newBuilder() + .setName(MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setDescription("description-1724546052") + .setState(MetadataStore.MetadataStoreState.newBuilder().build()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String name = "name3373707"; + + MetadataStore actualResponse = client.getMetadataStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataStoreRequest actualRequest = ((GetMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.getMetadataStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetadataStoresTest() throws Exception { + MetadataStore responsesElement = MetadataStore.newBuilder().build(); + ListMetadataStoresResponse expectedResponse = + ListMetadataStoresResponse.newBuilder() + .setNextPageToken("") + .addAllMetadataStores(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMetadataStoresPagedResponse pagedListResponse = client.listMetadataStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetadataStoresList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetadataStoresRequest actualRequest = ((ListMetadataStoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetadataStoresExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMetadataStores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetadataStoresTest2() throws Exception { + MetadataStore responsesElement = MetadataStore.newBuilder().build(); + ListMetadataStoresResponse expectedResponse = + ListMetadataStoresResponse.newBuilder() + .setNextPageToken("") + .addAllMetadataStores(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMetadataStoresPagedResponse pagedListResponse = client.listMetadataStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetadataStoresList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetadataStoresRequest actualRequest = ((ListMetadataStoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetadataStoresExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMetadataStores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMetadataStoreTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMetadataStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + client.deleteMetadataStoreAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMetadataStoreRequest actualRequest = ((DeleteMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMetadataStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.deleteMetadataStoreAsync(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 deleteMetadataStoreTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMetadataStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMetadataStoreAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMetadataStoreRequest actualRequest = ((DeleteMetadataStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMetadataStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteMetadataStoreAsync(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 createArtifactTest() throws Exception { + Artifact expectedResponse = + Artifact.newBuilder() + .setName( + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]") + .toString()) + .setDisplayName("displayName1714148973") + .setUri("uri116076") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Artifact artifact = Artifact.newBuilder().build(); + String artifactId = "artifactId240640653"; + + Artifact actualResponse = client.createArtifact(parent, artifact, artifactId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateArtifactRequest actualRequest = ((CreateArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(artifact, actualRequest.getArtifact()); + Assert.assertEquals(artifactId, actualRequest.getArtifactId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createArtifactExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Artifact artifact = Artifact.newBuilder().build(); + String artifactId = "artifactId240640653"; + client.createArtifact(parent, artifact, artifactId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createArtifactTest2() throws Exception { + Artifact expectedResponse = + Artifact.newBuilder() + .setName( + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]") + .toString()) + .setDisplayName("displayName1714148973") + .setUri("uri116076") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Artifact artifact = Artifact.newBuilder().build(); + String artifactId = "artifactId240640653"; + + Artifact actualResponse = client.createArtifact(parent, artifact, artifactId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateArtifactRequest actualRequest = ((CreateArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(artifact, actualRequest.getArtifact()); + Assert.assertEquals(artifactId, actualRequest.getArtifactId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createArtifactExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + Artifact artifact = Artifact.newBuilder().build(); + String artifactId = "artifactId240640653"; + client.createArtifact(parent, artifact, artifactId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getArtifactTest() throws Exception { + Artifact expectedResponse = + Artifact.newBuilder() + .setName( + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]") + .toString()) + .setDisplayName("displayName1714148973") + .setUri("uri116076") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + ArtifactName name = + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"); + + Artifact actualResponse = client.getArtifact(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetArtifactRequest actualRequest = ((GetArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getArtifactExceptionTest() 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.getArtifact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getArtifactTest2() throws Exception { + Artifact expectedResponse = + Artifact.newBuilder() + .setName( + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]") + .toString()) + .setDisplayName("displayName1714148973") + .setUri("uri116076") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String name = "name3373707"; + + Artifact actualResponse = client.getArtifact(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetArtifactRequest actualRequest = ((GetArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getArtifactExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.getArtifact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listArtifactsTest() throws Exception { + Artifact responsesElement = Artifact.newBuilder().build(); + ListArtifactsResponse expectedResponse = + ListArtifactsResponse.newBuilder() + .setNextPageToken("") + .addAllArtifacts(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + ListArtifactsPagedResponse pagedListResponse = client.listArtifacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getArtifactsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListArtifactsRequest actualRequest = ((ListArtifactsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listArtifactsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.listArtifacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listArtifactsTest2() throws Exception { + Artifact responsesElement = Artifact.newBuilder().build(); + ListArtifactsResponse expectedResponse = + ListArtifactsResponse.newBuilder() + .setNextPageToken("") + .addAllArtifacts(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListArtifactsPagedResponse pagedListResponse = client.listArtifacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getArtifactsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListArtifactsRequest actualRequest = ((ListArtifactsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listArtifactsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listArtifacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateArtifactTest() throws Exception { + Artifact expectedResponse = + Artifact.newBuilder() + .setName( + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]") + .toString()) + .setDisplayName("displayName1714148973") + .setUri("uri116076") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + Artifact artifact = Artifact.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Artifact actualResponse = client.updateArtifact(artifact, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateArtifactRequest actualRequest = ((UpdateArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(artifact, actualRequest.getArtifact()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateArtifactExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + Artifact artifact = Artifact.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateArtifact(artifact, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContextTest() throws Exception { + Context expectedResponse = + Context.newBuilder() + .setName( + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllParentContexts(new ArrayList()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Context context = Context.newBuilder().build(); + String contextId = "contextId-406810838"; + + Context actualResponse = client.createContext(parent, context, contextId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateContextRequest actualRequest = ((CreateContextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertEquals(contextId, actualRequest.getContextId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createContextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Context context = Context.newBuilder().build(); + String contextId = "contextId-406810838"; + client.createContext(parent, context, contextId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContextTest2() throws Exception { + Context expectedResponse = + Context.newBuilder() + .setName( + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllParentContexts(new ArrayList()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Context context = Context.newBuilder().build(); + String contextId = "contextId-406810838"; + + Context actualResponse = client.createContext(parent, context, contextId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateContextRequest actualRequest = ((CreateContextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertEquals(contextId, actualRequest.getContextId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createContextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + Context context = Context.newBuilder().build(); + String contextId = "contextId-406810838"; + client.createContext(parent, context, contextId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContextTest() throws Exception { + Context expectedResponse = + Context.newBuilder() + .setName( + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllParentContexts(new ArrayList()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + + Context actualResponse = client.getContext(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetContextRequest actualRequest = ((GetContextRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getContextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + client.getContext(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContextTest2() throws Exception { + Context expectedResponse = + Context.newBuilder() + .setName( + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllParentContexts(new ArrayList()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String name = "name3373707"; + + Context actualResponse = client.getContext(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetContextRequest actualRequest = ((GetContextRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getContextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.getContext(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContextsTest() throws Exception { + Context responsesElement = Context.newBuilder().build(); + ListContextsResponse expectedResponse = + ListContextsResponse.newBuilder() + .setNextPageToken("") + .addAllContexts(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + ListContextsPagedResponse pagedListResponse = client.listContexts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContextsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListContextsRequest actualRequest = ((ListContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listContextsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.listContexts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContextsTest2() throws Exception { + Context responsesElement = Context.newBuilder().build(); + ListContextsResponse expectedResponse = + ListContextsResponse.newBuilder() + .setNextPageToken("") + .addAllContexts(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListContextsPagedResponse pagedListResponse = client.listContexts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContextsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListContextsRequest actualRequest = ((ListContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listContextsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listContexts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateContextTest() throws Exception { + Context expectedResponse = + Context.newBuilder() + .setName( + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllParentContexts(new ArrayList()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + Context context = Context.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Context actualResponse = client.updateContext(context, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateContextRequest actualRequest = ((UpdateContextRequest) actualRequests.get(0)); + + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateContextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + Context context = Context.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateContext(context, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteContextTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteContextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + + client.deleteContextAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteContextRequest actualRequest = ((DeleteContextRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteContextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + client.deleteContextAsync(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 deleteContextTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteContextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteContextAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteContextRequest actualRequest = ((DeleteContextRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteContextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteContextAsync(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 addContextArtifactsAndExecutionsTest() throws Exception { + AddContextArtifactsAndExecutionsResponse expectedResponse = + AddContextArtifactsAndExecutionsResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + List artifacts = new ArrayList<>(); + List executions = new ArrayList<>(); + + AddContextArtifactsAndExecutionsResponse actualResponse = + client.addContextArtifactsAndExecutions(context, artifacts, executions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddContextArtifactsAndExecutionsRequest actualRequest = + ((AddContextArtifactsAndExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(context.toString(), actualRequest.getContext()); + Assert.assertEquals(artifacts, actualRequest.getArtifactsList()); + Assert.assertEquals(executions, actualRequest.getExecutionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addContextArtifactsAndExecutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + List artifacts = new ArrayList<>(); + List executions = new ArrayList<>(); + client.addContextArtifactsAndExecutions(context, artifacts, executions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addContextArtifactsAndExecutionsTest2() throws Exception { + AddContextArtifactsAndExecutionsResponse expectedResponse = + AddContextArtifactsAndExecutionsResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + String context = "context951530927"; + List artifacts = new ArrayList<>(); + List executions = new ArrayList<>(); + + AddContextArtifactsAndExecutionsResponse actualResponse = + client.addContextArtifactsAndExecutions(context, artifacts, executions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddContextArtifactsAndExecutionsRequest actualRequest = + ((AddContextArtifactsAndExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertEquals(artifacts, actualRequest.getArtifactsList()); + Assert.assertEquals(executions, actualRequest.getExecutionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addContextArtifactsAndExecutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String context = "context951530927"; + List artifacts = new ArrayList<>(); + List executions = new ArrayList<>(); + client.addContextArtifactsAndExecutions(context, artifacts, executions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addContextChildrenTest() throws Exception { + AddContextChildrenResponse expectedResponse = AddContextChildrenResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + List childContexts = new ArrayList<>(); + + AddContextChildrenResponse actualResponse = client.addContextChildren(context, childContexts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddContextChildrenRequest actualRequest = ((AddContextChildrenRequest) actualRequests.get(0)); + + Assert.assertEquals(context.toString(), actualRequest.getContext()); + Assert.assertEquals(childContexts, actualRequest.getChildContextsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addContextChildrenExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + List childContexts = new ArrayList<>(); + client.addContextChildren(context, childContexts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addContextChildrenTest2() throws Exception { + AddContextChildrenResponse expectedResponse = AddContextChildrenResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + String context = "context951530927"; + List childContexts = new ArrayList<>(); + + AddContextChildrenResponse actualResponse = client.addContextChildren(context, childContexts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddContextChildrenRequest actualRequest = ((AddContextChildrenRequest) actualRequests.get(0)); + + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertEquals(childContexts, actualRequest.getChildContextsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addContextChildrenExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String context = "context951530927"; + List childContexts = new ArrayList<>(); + client.addContextChildren(context, childContexts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryContextLineageSubgraphTest() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + + LineageSubgraph actualResponse = client.queryContextLineageSubgraph(context); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryContextLineageSubgraphRequest actualRequest = + ((QueryContextLineageSubgraphRequest) actualRequests.get(0)); + + Assert.assertEquals(context.toString(), actualRequest.getContext()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryContextLineageSubgraphExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ContextName context = + ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"); + client.queryContextLineageSubgraph(context); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryContextLineageSubgraphTest2() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String context = "context951530927"; + + LineageSubgraph actualResponse = client.queryContextLineageSubgraph(context); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryContextLineageSubgraphRequest actualRequest = + ((QueryContextLineageSubgraphRequest) actualRequests.get(0)); + + Assert.assertEquals(context, actualRequest.getContext()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryContextLineageSubgraphExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String context = "context951530927"; + client.queryContextLineageSubgraph(context); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.createExecution(parent, execution, executionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExecutionRequest actualRequest = ((CreateExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(executionId, actualRequest.getExecutionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.createExecution(parent, execution, executionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.createExecution(parent, execution, executionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExecutionRequest actualRequest = ((CreateExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(executionId, actualRequest.getExecutionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.createExecution(parent, execution, executionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest() 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.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String name = "name3373707"; + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest2() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]") + .toString()) + .setDisplayName("displayName1714148973") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSchemaTitle("schemaTitle-1020962505") + .setSchemaVersion("schemaVersion-233564169") + .setMetadata(Struct.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + Execution execution = Execution.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Execution actualResponse = client.updateExecution(execution, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExecutionRequest actualRequest = ((UpdateExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + Execution execution = Execution.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExecution(execution, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addExecutionEventsTest() throws Exception { + AddExecutionEventsResponse expectedResponse = AddExecutionEventsResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + ExecutionName execution = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + List events = new ArrayList<>(); + + AddExecutionEventsResponse actualResponse = client.addExecutionEvents(execution, events); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddExecutionEventsRequest actualRequest = ((AddExecutionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(execution.toString(), actualRequest.getExecution()); + Assert.assertEquals(events, actualRequest.getEventsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addExecutionEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ExecutionName execution = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + List events = new ArrayList<>(); + client.addExecutionEvents(execution, events); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addExecutionEventsTest2() throws Exception { + AddExecutionEventsResponse expectedResponse = AddExecutionEventsResponse.newBuilder().build(); + mockMetadataService.addResponse(expectedResponse); + + String execution = "execution-1090974952"; + List events = new ArrayList<>(); + + AddExecutionEventsResponse actualResponse = client.addExecutionEvents(execution, events); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddExecutionEventsRequest actualRequest = ((AddExecutionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(events, actualRequest.getEventsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addExecutionEventsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String execution = "execution-1090974952"; + List events = new ArrayList<>(); + client.addExecutionEvents(execution, events); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryExecutionInputsAndOutputsTest() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + ExecutionName execution = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + + LineageSubgraph actualResponse = client.queryExecutionInputsAndOutputs(execution); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryExecutionInputsAndOutputsRequest actualRequest = + ((QueryExecutionInputsAndOutputsRequest) actualRequests.get(0)); + + Assert.assertEquals(execution.toString(), actualRequest.getExecution()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryExecutionInputsAndOutputsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ExecutionName execution = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + client.queryExecutionInputsAndOutputs(execution); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryExecutionInputsAndOutputsTest2() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String execution = "execution-1090974952"; + + LineageSubgraph actualResponse = client.queryExecutionInputsAndOutputs(execution); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryExecutionInputsAndOutputsRequest actualRequest = + ((QueryExecutionInputsAndOutputsRequest) actualRequests.get(0)); + + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryExecutionInputsAndOutputsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String execution = "execution-1090974952"; + client.queryExecutionInputsAndOutputs(execution); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMetadataSchemaTest() throws Exception { + MetadataSchema expectedResponse = + MetadataSchema.newBuilder() + .setName( + MetadataSchemaName.of( + "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]") + .toString()) + .setSchemaVersion("schemaVersion-233564169") + .setSchema("schema-907987551") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + MetadataSchema metadataSchema = MetadataSchema.newBuilder().build(); + String metadataSchemaId = "metadataSchemaId1549245163"; + + MetadataSchema actualResponse = + client.createMetadataSchema(parent, metadataSchema, metadataSchemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMetadataSchemaRequest actualRequest = + ((CreateMetadataSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(metadataSchema, actualRequest.getMetadataSchema()); + Assert.assertEquals(metadataSchemaId, actualRequest.getMetadataSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMetadataSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + MetadataSchema metadataSchema = MetadataSchema.newBuilder().build(); + String metadataSchemaId = "metadataSchemaId1549245163"; + client.createMetadataSchema(parent, metadataSchema, metadataSchemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMetadataSchemaTest2() throws Exception { + MetadataSchema expectedResponse = + MetadataSchema.newBuilder() + .setName( + MetadataSchemaName.of( + "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]") + .toString()) + .setSchemaVersion("schemaVersion-233564169") + .setSchema("schema-907987551") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + MetadataSchema metadataSchema = MetadataSchema.newBuilder().build(); + String metadataSchemaId = "metadataSchemaId1549245163"; + + MetadataSchema actualResponse = + client.createMetadataSchema(parent, metadataSchema, metadataSchemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMetadataSchemaRequest actualRequest = + ((CreateMetadataSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(metadataSchema, actualRequest.getMetadataSchema()); + Assert.assertEquals(metadataSchemaId, actualRequest.getMetadataSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMetadataSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + MetadataSchema metadataSchema = MetadataSchema.newBuilder().build(); + String metadataSchemaId = "metadataSchemaId1549245163"; + client.createMetadataSchema(parent, metadataSchema, metadataSchemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataSchemaTest() throws Exception { + MetadataSchema expectedResponse = + MetadataSchema.newBuilder() + .setName( + MetadataSchemaName.of( + "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]") + .toString()) + .setSchemaVersion("schemaVersion-233564169") + .setSchema("schema-907987551") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataSchemaName name = + MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]"); + + MetadataSchema actualResponse = client.getMetadataSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataSchemaRequest actualRequest = ((GetMetadataSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataSchemaName name = + MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]"); + client.getMetadataSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMetadataSchemaTest2() throws Exception { + MetadataSchema expectedResponse = + MetadataSchema.newBuilder() + .setName( + MetadataSchemaName.of( + "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]") + .toString()) + .setSchemaVersion("schemaVersion-233564169") + .setSchema("schema-907987551") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockMetadataService.addResponse(expectedResponse); + + String name = "name3373707"; + + MetadataSchema actualResponse = client.getMetadataSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMetadataSchemaRequest actualRequest = ((GetMetadataSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMetadataSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.getMetadataSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetadataSchemasTest() throws Exception { + MetadataSchema responsesElement = MetadataSchema.newBuilder().build(); + ListMetadataSchemasResponse expectedResponse = + ListMetadataSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllMetadataSchemas(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + ListMetadataSchemasPagedResponse pagedListResponse = client.listMetadataSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetadataSchemasList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetadataSchemasRequest actualRequest = ((ListMetadataSchemasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetadataSchemasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.listMetadataSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMetadataSchemasTest2() throws Exception { + MetadataSchema responsesElement = MetadataSchema.newBuilder().build(); + ListMetadataSchemasResponse expectedResponse = + ListMetadataSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllMetadataSchemas(Arrays.asList(responsesElement)) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMetadataSchemasPagedResponse pagedListResponse = client.listMetadataSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMetadataSchemasList().get(0), resources.get(0)); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMetadataSchemasRequest actualRequest = ((ListMetadataSchemasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMetadataSchemasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMetadataSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryArtifactLineageSubgraphTest() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + ArtifactName artifact = + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"); + + LineageSubgraph actualResponse = client.queryArtifactLineageSubgraph(artifact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryArtifactLineageSubgraphRequest actualRequest = + ((QueryArtifactLineageSubgraphRequest) actualRequests.get(0)); + + Assert.assertEquals(artifact.toString(), actualRequest.getArtifact()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryArtifactLineageSubgraphExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ArtifactName artifact = + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"); + client.queryArtifactLineageSubgraph(artifact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryArtifactLineageSubgraphTest2() throws Exception { + LineageSubgraph expectedResponse = + LineageSubgraph.newBuilder() + .addAllArtifacts(new ArrayList()) + .addAllExecutions(new ArrayList()) + .addAllEvents(new ArrayList()) + .build(); + mockMetadataService.addResponse(expectedResponse); + + String artifact = "artifact-1228798510"; + + LineageSubgraph actualResponse = client.queryArtifactLineageSubgraph(artifact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryArtifactLineageSubgraphRequest actualRequest = + ((QueryArtifactLineageSubgraphRequest) actualRequests.get(0)); + + Assert.assertEquals(artifact, actualRequest.getArtifact()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryArtifactLineageSubgraphExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String artifact = "artifact-1228798510"; + client.queryArtifactLineageSubgraph(artifact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java index c05840d38..e1f77b773 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java index 61f4d0191..7fe184817 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java index 547644d71..3c90ee9de 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createDataset( CreateDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -82,7 +82,7 @@ public void createDataset( @Override public void getDataset(GetDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Dataset) { requests.add(request); responseObserver.onNext(((Dataset) response)); @@ -94,7 +94,7 @@ public void getDataset(GetDatasetRequest request, StreamObserver respon new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Dataset.class.getName(), Exception.class.getName()))); } @@ -103,7 +103,7 @@ public void getDataset(GetDatasetRequest request, StreamObserver respon @Override public void updateDataset( UpdateDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Dataset) { requests.add(request); responseObserver.onNext(((Dataset) response)); @@ -115,7 +115,7 @@ public void updateDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Dataset.class.getName(), Exception.class.getName()))); } @@ -124,7 +124,7 @@ public void updateDataset( @Override public void listDatasets( ListDatasetsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDatasetsResponse) { requests.add(request); responseObserver.onNext(((ListDatasetsResponse) response)); @@ -136,7 +136,7 @@ public void listDatasets( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDatasets, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDatasetsResponse.class.getName(), Exception.class.getName()))); } @@ -145,7 +145,7 @@ public void listDatasets( @Override public void deleteDataset( DeleteDatasetRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -157,7 +157,7 @@ public void deleteDataset( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteDataset, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -165,7 +165,7 @@ public void deleteDataset( @Override public void importData(ImportDataRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -177,7 +177,7 @@ public void importData(ImportDataRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method ImportData, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -185,7 +185,7 @@ public void importData(ImportDataRequest request, StreamObserver resp @Override public void exportData(ExportDataRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -197,7 +197,7 @@ public void exportData(ExportDataRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method ExportData, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -206,7 +206,7 @@ public void exportData(ExportDataRequest request, StreamObserver resp @Override public void listDataItems( ListDataItemsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDataItemsResponse) { requests.add(request); responseObserver.onNext(((ListDataItemsResponse) response)); @@ -218,7 +218,7 @@ public void listDataItems( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDataItems, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDataItemsResponse.class.getName(), Exception.class.getName()))); } @@ -227,7 +227,7 @@ public void listDataItems( @Override public void getAnnotationSpec( GetAnnotationSpecRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof AnnotationSpec) { requests.add(request); responseObserver.onNext(((AnnotationSpec) response)); @@ -239,7 +239,7 @@ public void getAnnotationSpec( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetAnnotationSpec, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), AnnotationSpec.class.getName(), Exception.class.getName()))); } @@ -248,7 +248,7 @@ public void getAnnotationSpec( @Override public void listAnnotations( ListAnnotationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListAnnotationsResponse) { requests.add(request); responseObserver.onNext(((ListAnnotationsResponse) response)); @@ -260,7 +260,7 @@ public void listAnnotations( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListAnnotations, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListAnnotationsResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java index 1540f6fe5..5180242b1 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java index 782b5a961..9ea5f3f61 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createEndpoint( CreateEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -82,7 +82,7 @@ public void createEndpoint( @Override public void getEndpoint(GetEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Endpoint) { requests.add(request); responseObserver.onNext(((Endpoint) response)); @@ -94,7 +94,7 @@ public void getEndpoint(GetEndpointRequest request, StreamObserver res new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Endpoint.class.getName(), Exception.class.getName()))); } @@ -103,7 +103,7 @@ public void getEndpoint(GetEndpointRequest request, StreamObserver res @Override public void listEndpoints( ListEndpointsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListEndpointsResponse) { requests.add(request); responseObserver.onNext(((ListEndpointsResponse) response)); @@ -115,7 +115,7 @@ public void listEndpoints( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListEndpoints, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListEndpointsResponse.class.getName(), Exception.class.getName()))); } @@ -124,7 +124,7 @@ public void listEndpoints( @Override public void updateEndpoint( UpdateEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Endpoint) { requests.add(request); responseObserver.onNext(((Endpoint) response)); @@ -136,7 +136,7 @@ public void updateEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Endpoint.class.getName(), Exception.class.getName()))); } @@ -145,7 +145,7 @@ public void updateEndpoint( @Override public void deleteEndpoint( DeleteEndpointRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -157,7 +157,7 @@ public void deleteEndpoint( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteEndpoint, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -165,7 +165,7 @@ public void deleteEndpoint( @Override public void deployModel(DeployModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -177,7 +177,7 @@ public void deployModel(DeployModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeployModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -186,7 +186,7 @@ public void deployModel(DeployModelRequest request, StreamObserver re @Override public void undeployModel( UndeployModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -198,7 +198,7 @@ public void undeployModel( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UndeployModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java new file mode 100644 index 000000000..03304574f --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturestoreOnlineServingService implements MockGrpcService { + private final MockFeaturestoreOnlineServingServiceImpl serviceImpl; + + public MockFeaturestoreOnlineServingService() { + serviceImpl = new MockFeaturestoreOnlineServingServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java new file mode 100644 index 000000000..684c4e4d7 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java @@ -0,0 +1,105 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceGrpc.FeaturestoreOnlineServingServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturestoreOnlineServingServiceImpl + extends FeaturestoreOnlineServingServiceImplBase { + private List requests; + private Queue responses; + + public MockFeaturestoreOnlineServingServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void readFeatureValues( + ReadFeatureValuesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadFeatureValuesResponse) { + requests.add(request); + responseObserver.onNext(((ReadFeatureValuesResponse) 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 ReadFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadFeatureValuesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void streamingReadFeatureValues( + StreamingReadFeatureValuesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadFeatureValuesResponse) { + requests.add(request); + responseObserver.onNext(((ReadFeatureValuesResponse) 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 StreamingReadFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadFeatureValuesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java new file mode 100644 index 000000000..196b8558d --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturestoreService implements MockGrpcService { + private final MockFeaturestoreServiceImpl serviceImpl; + + public MockFeaturestoreService() { + serviceImpl = new MockFeaturestoreServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java new file mode 100644 index 000000000..6df9c88a0 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java @@ -0,0 +1,481 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceGrpc.FeaturestoreServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFeaturestoreServiceImpl extends FeaturestoreServiceImplBase { + private List requests; + private Queue responses; + + public MockFeaturestoreServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createFeaturestore( + CreateFeaturestoreRequest 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 CreateFeaturestore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFeaturestore( + GetFeaturestoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Featurestore) { + requests.add(request); + responseObserver.onNext(((Featurestore) 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 GetFeaturestore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Featurestore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFeaturestores( + ListFeaturestoresRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFeaturestoresResponse) { + requests.add(request); + responseObserver.onNext(((ListFeaturestoresResponse) 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 ListFeaturestores, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFeaturestoresResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFeaturestore( + UpdateFeaturestoreRequest 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 UpdateFeaturestore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFeaturestore( + DeleteFeaturestoreRequest 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 DeleteFeaturestore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEntityType( + CreateEntityTypeRequest 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 CreateEntityType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getEntityType( + GetEntityTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EntityType) { + requests.add(request); + responseObserver.onNext(((EntityType) 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 GetEntityType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EntityType.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEntityTypes( + ListEntityTypesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEntityTypesResponse) { + requests.add(request); + responseObserver.onNext(((ListEntityTypesResponse) 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 ListEntityTypes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEntityTypesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateEntityType( + UpdateEntityTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EntityType) { + requests.add(request); + responseObserver.onNext(((EntityType) 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 UpdateEntityType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EntityType.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteEntityType( + DeleteEntityTypeRequest 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 DeleteEntityType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFeature( + CreateFeatureRequest 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 CreateFeature, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchCreateFeatures( + BatchCreateFeaturesRequest 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 BatchCreateFeatures, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFeature(GetFeatureRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Feature) { + requests.add(request); + responseObserver.onNext(((Feature) 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 GetFeature, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Feature.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFeatures( + ListFeaturesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFeaturesResponse) { + requests.add(request); + responseObserver.onNext(((ListFeaturesResponse) 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 ListFeatures, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFeaturesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFeature( + UpdateFeatureRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Feature) { + requests.add(request); + responseObserver.onNext(((Feature) 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 UpdateFeature, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Feature.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFeature( + DeleteFeatureRequest 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 DeleteFeature, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importFeatureValues( + ImportFeatureValuesRequest 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 ImportFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchReadFeatureValues( + BatchReadFeatureValuesRequest 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 BatchReadFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportFeatureValues( + ExportFeatureValuesRequest 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 ExportFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchFeatures( + SearchFeaturesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchFeaturesResponse) { + requests.add(request); + responseObserver.onNext(((SearchFeaturesResponse) 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 SearchFeatures, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchFeaturesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java new file mode 100644 index 000000000..e5be4b95a --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIndexEndpointService implements MockGrpcService { + private final MockIndexEndpointServiceImpl serviceImpl; + + public MockIndexEndpointService() { + serviceImpl = new MockIndexEndpointServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java new file mode 100644 index 000000000..9f1d49d11 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java @@ -0,0 +1,208 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceGrpc.IndexEndpointServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIndexEndpointServiceImpl extends IndexEndpointServiceImplBase { + private List requests; + private Queue responses; + + public MockIndexEndpointServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createIndexEndpoint( + CreateIndexEndpointRequest 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 CreateIndexEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIndexEndpoint( + GetIndexEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IndexEndpoint) { + requests.add(request); + responseObserver.onNext(((IndexEndpoint) 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 GetIndexEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + IndexEndpoint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIndexEndpoints( + ListIndexEndpointsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIndexEndpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListIndexEndpointsResponse) 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 ListIndexEndpoints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListIndexEndpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateIndexEndpoint( + UpdateIndexEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IndexEndpoint) { + requests.add(request); + responseObserver.onNext(((IndexEndpoint) 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 UpdateIndexEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + IndexEndpoint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteIndexEndpoint( + DeleteIndexEndpointRequest 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 DeleteIndexEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deployIndex(DeployIndexRequest 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 DeployIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void undeployIndex( + UndeployIndexRequest 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 UndeployIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java new file mode 100644 index 000000000..bda35690a --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIndexService implements MockGrpcService { + private final MockIndexServiceImpl serviceImpl; + + public MockIndexService() { + serviceImpl = new MockIndexServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java new file mode 100644 index 000000000..47544f9bc --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java @@ -0,0 +1,162 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.IndexServiceGrpc.IndexServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIndexServiceImpl extends IndexServiceImplBase { + private List requests; + private Queue responses; + + public MockIndexServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createIndex(CreateIndexRequest 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 CreateIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIndex(GetIndexRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Index) { + requests.add(request); + responseObserver.onNext(((Index) 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 GetIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Index.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIndexes( + ListIndexesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIndexesResponse) { + requests.add(request); + responseObserver.onNext(((ListIndexesResponse) 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 ListIndexes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListIndexesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateIndex(UpdateIndexRequest 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 UpdateIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteIndex(DeleteIndexRequest 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 DeleteIndex, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java index d0e14e3be..257cec687 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java index 891ab43e1..bbc1c2b15 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { @Override public void createCustomJob( CreateCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof CustomJob) { requests.add(request); responseObserver.onNext(((CustomJob) response)); @@ -75,7 +75,7 @@ public void createCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), CustomJob.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void createCustomJob( @Override public void getCustomJob( GetCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof CustomJob) { requests.add(request); responseObserver.onNext(((CustomJob) response)); @@ -96,7 +96,7 @@ public void getCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), CustomJob.class.getName(), Exception.class.getName()))); } @@ -105,7 +105,7 @@ public void getCustomJob( @Override public void listCustomJobs( ListCustomJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListCustomJobsResponse) { requests.add(request); responseObserver.onNext(((ListCustomJobsResponse) response)); @@ -117,7 +117,7 @@ public void listCustomJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListCustomJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListCustomJobsResponse.class.getName(), Exception.class.getName()))); } @@ -126,7 +126,7 @@ public void listCustomJobs( @Override public void deleteCustomJob( DeleteCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -138,7 +138,7 @@ public void deleteCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -147,7 +147,7 @@ public void deleteCustomJob( @Override public void cancelCustomJob( CancelCustomJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -159,7 +159,7 @@ public void cancelCustomJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelCustomJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -168,7 +168,7 @@ public void cancelCustomJob( @Override public void createDataLabelingJob( CreateDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof DataLabelingJob) { requests.add(request); responseObserver.onNext(((DataLabelingJob) response)); @@ -180,7 +180,7 @@ public void createDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), DataLabelingJob.class.getName(), Exception.class.getName()))); } @@ -189,7 +189,7 @@ public void createDataLabelingJob( @Override public void getDataLabelingJob( GetDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof DataLabelingJob) { requests.add(request); responseObserver.onNext(((DataLabelingJob) response)); @@ -201,7 +201,7 @@ public void getDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), DataLabelingJob.class.getName(), Exception.class.getName()))); } @@ -211,7 +211,7 @@ public void getDataLabelingJob( public void listDataLabelingJobs( ListDataLabelingJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListDataLabelingJobsResponse) { requests.add(request); responseObserver.onNext(((ListDataLabelingJobsResponse) response)); @@ -223,7 +223,7 @@ public void listDataLabelingJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListDataLabelingJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListDataLabelingJobsResponse.class.getName(), Exception.class.getName()))); } @@ -232,7 +232,7 @@ public void listDataLabelingJobs( @Override public void deleteDataLabelingJob( DeleteDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -244,7 +244,7 @@ public void deleteDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -253,7 +253,7 @@ public void deleteDataLabelingJob( @Override public void cancelDataLabelingJob( CancelDataLabelingJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -265,7 +265,7 @@ public void cancelDataLabelingJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelDataLabelingJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -275,7 +275,7 @@ public void cancelDataLabelingJob( public void createHyperparameterTuningJob( CreateHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof HyperparameterTuningJob) { requests.add(request); responseObserver.onNext(((HyperparameterTuningJob) response)); @@ -287,7 +287,7 @@ public void createHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), HyperparameterTuningJob.class.getName(), Exception.class.getName()))); } @@ -297,7 +297,7 @@ public void createHyperparameterTuningJob( public void getHyperparameterTuningJob( GetHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof HyperparameterTuningJob) { requests.add(request); responseObserver.onNext(((HyperparameterTuningJob) response)); @@ -309,7 +309,7 @@ public void getHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), HyperparameterTuningJob.class.getName(), Exception.class.getName()))); } @@ -319,7 +319,7 @@ public void getHyperparameterTuningJob( public void listHyperparameterTuningJobs( ListHyperparameterTuningJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListHyperparameterTuningJobsResponse) { requests.add(request); responseObserver.onNext(((ListHyperparameterTuningJobsResponse) response)); @@ -331,7 +331,7 @@ public void listHyperparameterTuningJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListHyperparameterTuningJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListHyperparameterTuningJobsResponse.class.getName(), Exception.class.getName()))); } @@ -340,7 +340,7 @@ public void listHyperparameterTuningJobs( @Override public void deleteHyperparameterTuningJob( DeleteHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -352,7 +352,7 @@ public void deleteHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -361,7 +361,7 @@ public void deleteHyperparameterTuningJob( @Override public void cancelHyperparameterTuningJob( CancelHyperparameterTuningJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -373,7 +373,7 @@ public void cancelHyperparameterTuningJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelHyperparameterTuningJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Empty.class.getName(), Exception.class.getName()))); } @@ -383,7 +383,7 @@ public void cancelHyperparameterTuningJob( public void createBatchPredictionJob( CreateBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof BatchPredictionJob) { requests.add(request); responseObserver.onNext(((BatchPredictionJob) response)); @@ -395,7 +395,7 @@ public void createBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), BatchPredictionJob.class.getName(), Exception.class.getName()))); } @@ -404,7 +404,7 @@ public void createBatchPredictionJob( @Override public void getBatchPredictionJob( GetBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof BatchPredictionJob) { requests.add(request); responseObserver.onNext(((BatchPredictionJob) response)); @@ -416,7 +416,7 @@ public void getBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), BatchPredictionJob.class.getName(), Exception.class.getName()))); } @@ -426,7 +426,7 @@ public void getBatchPredictionJob( public void listBatchPredictionJobs( ListBatchPredictionJobsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListBatchPredictionJobsResponse) { requests.add(request); responseObserver.onNext(((ListBatchPredictionJobsResponse) response)); @@ -438,7 +438,7 @@ public void listBatchPredictionJobs( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListBatchPredictionJobs, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListBatchPredictionJobsResponse.class.getName(), Exception.class.getName()))); } @@ -447,7 +447,7 @@ public void listBatchPredictionJobs( @Override public void deleteBatchPredictionJob( DeleteBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -459,7 +459,7 @@ public void deleteBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -468,7 +468,7 @@ public void deleteBatchPredictionJob( @Override public void cancelBatchPredictionJob( CancelBatchPredictionJobRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -480,7 +480,181 @@ public void cancelBatchPredictionJob( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelBatchPredictionJob, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createModelDeploymentMonitoringJob( + CreateModelDeploymentMonitoringJobRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ModelDeploymentMonitoringJob) { + requests.add(request); + responseObserver.onNext(((ModelDeploymentMonitoringJob) 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 CreateModelDeploymentMonitoringJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ModelDeploymentMonitoringJob.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchModelDeploymentMonitoringStatsAnomalies( + SearchModelDeploymentMonitoringStatsAnomaliesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchModelDeploymentMonitoringStatsAnomaliesResponse) { + requests.add(request); + responseObserver.onNext(((SearchModelDeploymentMonitoringStatsAnomaliesResponse) 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 SearchModelDeploymentMonitoringStatsAnomalies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchModelDeploymentMonitoringStatsAnomaliesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getModelDeploymentMonitoringJob( + GetModelDeploymentMonitoringJobRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ModelDeploymentMonitoringJob) { + requests.add(request); + responseObserver.onNext(((ModelDeploymentMonitoringJob) 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 GetModelDeploymentMonitoringJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ModelDeploymentMonitoringJob.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listModelDeploymentMonitoringJobs( + ListModelDeploymentMonitoringJobsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListModelDeploymentMonitoringJobsResponse) { + requests.add(request); + responseObserver.onNext(((ListModelDeploymentMonitoringJobsResponse) 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 ListModelDeploymentMonitoringJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListModelDeploymentMonitoringJobsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateModelDeploymentMonitoringJob( + UpdateModelDeploymentMonitoringJobRequest 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 UpdateModelDeploymentMonitoringJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteModelDeploymentMonitoringJob( + DeleteModelDeploymentMonitoringJobRequest 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 DeleteModelDeploymentMonitoringJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void pauseModelDeploymentMonitoringJob( + PauseModelDeploymentMonitoringJobRequest 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 PauseModelDeploymentMonitoringJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void resumeModelDeploymentMonitoringJob( + ResumeModelDeploymentMonitoringJobRequest 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 ResumeModelDeploymentMonitoringJob, 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/v1beta1/MockMetadataService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java new file mode 100644 index 000000000..e560ad524 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetadataService implements MockGrpcService { + private final MockMetadataServiceImpl serviceImpl; + + public MockMetadataService() { + serviceImpl = new MockMetadataServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/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 new file mode 100644 index 000000000..56c3aa9df --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java @@ -0,0 +1,613 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.MetadataServiceGrpc.MetadataServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMetadataServiceImpl extends MetadataServiceImplBase { + private List requests; + private Queue responses; + + public MockMetadataServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createMetadataStore( + CreateMetadataStoreRequest 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 CreateMetadataStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMetadataStore( + GetMetadataStoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MetadataStore) { + requests.add(request); + responseObserver.onNext(((MetadataStore) 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 GetMetadataStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MetadataStore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMetadataStores( + ListMetadataStoresRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMetadataStoresResponse) { + requests.add(request); + responseObserver.onNext(((ListMetadataStoresResponse) 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 ListMetadataStores, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMetadataStoresResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMetadataStore( + DeleteMetadataStoreRequest 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 DeleteMetadataStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createArtifact( + CreateArtifactRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Artifact) { + requests.add(request); + responseObserver.onNext(((Artifact) 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 CreateArtifact, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Artifact.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getArtifact(GetArtifactRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Artifact) { + requests.add(request); + responseObserver.onNext(((Artifact) 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 GetArtifact, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Artifact.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listArtifacts( + ListArtifactsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListArtifactsResponse) { + requests.add(request); + responseObserver.onNext(((ListArtifactsResponse) 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 ListArtifacts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListArtifactsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateArtifact( + UpdateArtifactRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Artifact) { + requests.add(request); + responseObserver.onNext(((Artifact) 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 UpdateArtifact, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Artifact.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createContext( + CreateContextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Context) { + requests.add(request); + responseObserver.onNext(((Context) 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 CreateContext, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Context.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getContext(GetContextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Context) { + requests.add(request); + responseObserver.onNext(((Context) 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 GetContext, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Context.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listContexts( + ListContextsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListContextsResponse) { + requests.add(request); + responseObserver.onNext(((ListContextsResponse) 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 ListContexts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListContextsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateContext( + UpdateContextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Context) { + requests.add(request); + responseObserver.onNext(((Context) 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 UpdateContext, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Context.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteContext( + DeleteContextRequest 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 DeleteContext, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addContextArtifactsAndExecutions( + AddContextArtifactsAndExecutionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddContextArtifactsAndExecutionsResponse) { + requests.add(request); + responseObserver.onNext(((AddContextArtifactsAndExecutionsResponse) 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 AddContextArtifactsAndExecutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddContextArtifactsAndExecutionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addContextChildren( + AddContextChildrenRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddContextChildrenResponse) { + requests.add(request); + responseObserver.onNext(((AddContextChildrenResponse) 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 AddContextChildren, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddContextChildrenResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryContextLineageSubgraph( + QueryContextLineageSubgraphRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LineageSubgraph) { + requests.add(request); + responseObserver.onNext(((LineageSubgraph) 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 QueryContextLineageSubgraph, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LineageSubgraph.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExecution( + CreateExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Execution) { + requests.add(request); + responseObserver.onNext(((Execution) 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 CreateExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Execution.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExecution( + GetExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Execution) { + requests.add(request); + responseObserver.onNext(((Execution) 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 GetExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Execution.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExecutions( + ListExecutionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExecutionsResponse) { + requests.add(request); + responseObserver.onNext(((ListExecutionsResponse) 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 ListExecutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExecutionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExecution( + UpdateExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Execution) { + requests.add(request); + responseObserver.onNext(((Execution) 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 UpdateExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Execution.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addExecutionEvents( + AddExecutionEventsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddExecutionEventsResponse) { + requests.add(request); + responseObserver.onNext(((AddExecutionEventsResponse) 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 AddExecutionEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddExecutionEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryExecutionInputsAndOutputs( + QueryExecutionInputsAndOutputsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LineageSubgraph) { + requests.add(request); + responseObserver.onNext(((LineageSubgraph) 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 QueryExecutionInputsAndOutputs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LineageSubgraph.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMetadataSchema( + CreateMetadataSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MetadataSchema) { + requests.add(request); + responseObserver.onNext(((MetadataSchema) 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 CreateMetadataSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MetadataSchema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMetadataSchema( + GetMetadataSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MetadataSchema) { + requests.add(request); + responseObserver.onNext(((MetadataSchema) 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 GetMetadataSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MetadataSchema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMetadataSchemas( + ListMetadataSchemasRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMetadataSchemasResponse) { + requests.add(request); + responseObserver.onNext(((ListMetadataSchemasResponse) 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 ListMetadataSchemas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMetadataSchemasResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryArtifactLineageSubgraph( + QueryArtifactLineageSubgraphRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LineageSubgraph) { + requests.add(request); + responseObserver.onNext(((LineageSubgraph) 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 QueryArtifactLineageSubgraph, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LineageSubgraph.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java index e5b205815..b1b1fedde 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java index be730ec73..1c8b309d8 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { public void searchMigratableResources( SearchMigratableResourcesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof SearchMigratableResourcesResponse) { requests.add(request); responseObserver.onNext(((SearchMigratableResourcesResponse) response)); @@ -75,7 +75,7 @@ public void searchMigratableResources( new IllegalArgumentException( String.format( "Unrecognized response type %s for method SearchMigratableResources, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), SearchMigratableResourcesResponse.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void searchMigratableResources( @Override public void batchMigrateResources( BatchMigrateResourcesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -96,7 +96,7 @@ public void batchMigrateResources( new IllegalArgumentException( String.format( "Unrecognized response type %s for method BatchMigrateResources, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java index c928386be..9574dcd7b 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java index 0691bbbc4..1961cf093 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -61,7 +61,7 @@ public void reset() { @Override public void uploadModel(UploadModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -73,7 +73,7 @@ public void uploadModel(UploadModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method UploadModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -81,7 +81,7 @@ public void uploadModel(UploadModelRequest request, StreamObserver re @Override public void getModel(GetModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Model) { requests.add(request); responseObserver.onNext(((Model) response)); @@ -93,7 +93,7 @@ public void getModel(GetModelRequest request, StreamObserver responseObse new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Model.class.getName(), Exception.class.getName()))); } @@ -102,7 +102,7 @@ public void getModel(GetModelRequest request, StreamObserver responseObse @Override public void listModels( ListModelsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelsResponse) { requests.add(request); responseObserver.onNext(((ListModelsResponse) response)); @@ -114,7 +114,7 @@ public void listModels( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModels, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelsResponse.class.getName(), Exception.class.getName()))); } @@ -122,7 +122,7 @@ public void listModels( @Override public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Model) { requests.add(request); responseObserver.onNext(((Model) response)); @@ -134,7 +134,7 @@ public void updateModel(UpdateModelRequest request, StreamObserver respon new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Model.class.getName(), Exception.class.getName()))); } @@ -142,7 +142,7 @@ public void updateModel(UpdateModelRequest request, StreamObserver respon @Override public void deleteModel(DeleteModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -154,7 +154,7 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -162,7 +162,7 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re @Override public void exportModel(ExportModelRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -174,7 +174,7 @@ public void exportModel(ExportModelRequest request, StreamObserver re new IllegalArgumentException( String.format( "Unrecognized response type %s for method ExportModel, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -183,7 +183,7 @@ public void exportModel(ExportModelRequest request, StreamObserver re @Override public void getModelEvaluation( GetModelEvaluationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ModelEvaluation) { requests.add(request); responseObserver.onNext(((ModelEvaluation) response)); @@ -195,7 +195,7 @@ public void getModelEvaluation( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModelEvaluation, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ModelEvaluation.class.getName(), Exception.class.getName()))); } @@ -205,7 +205,7 @@ public void getModelEvaluation( public void listModelEvaluations( ListModelEvaluationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelEvaluationsResponse) { requests.add(request); responseObserver.onNext(((ListModelEvaluationsResponse) response)); @@ -217,7 +217,7 @@ public void listModelEvaluations( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModelEvaluations, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelEvaluationsResponse.class.getName(), Exception.class.getName()))); } @@ -227,7 +227,7 @@ public void listModelEvaluations( public void getModelEvaluationSlice( GetModelEvaluationSliceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ModelEvaluationSlice) { requests.add(request); responseObserver.onNext(((ModelEvaluationSlice) response)); @@ -239,7 +239,7 @@ public void getModelEvaluationSlice( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetModelEvaluationSlice, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ModelEvaluationSlice.class.getName(), Exception.class.getName()))); } @@ -249,7 +249,7 @@ public void getModelEvaluationSlice( public void listModelEvaluationSlices( ListModelEvaluationSlicesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListModelEvaluationSlicesResponse) { requests.add(request); responseObserver.onNext(((ListModelEvaluationSlicesResponse) response)); @@ -261,7 +261,7 @@ public void listModelEvaluationSlices( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListModelEvaluationSlices, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListModelEvaluationSlicesResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java index df13b37ba..a74dca604 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java index 6b9a46565..703ca53bf 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -63,7 +63,7 @@ public void reset() { @Override public void createTrainingPipeline( CreateTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof TrainingPipeline) { requests.add(request); responseObserver.onNext(((TrainingPipeline) response)); @@ -75,7 +75,7 @@ public void createTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), TrainingPipeline.class.getName(), Exception.class.getName()))); } @@ -84,7 +84,7 @@ public void createTrainingPipeline( @Override public void getTrainingPipeline( GetTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof TrainingPipeline) { requests.add(request); responseObserver.onNext(((TrainingPipeline) response)); @@ -96,7 +96,7 @@ public void getTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), TrainingPipeline.class.getName(), Exception.class.getName()))); } @@ -106,7 +106,7 @@ public void getTrainingPipeline( public void listTrainingPipelines( ListTrainingPipelinesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListTrainingPipelinesResponse) { requests.add(request); responseObserver.onNext(((ListTrainingPipelinesResponse) response)); @@ -118,7 +118,7 @@ public void listTrainingPipelines( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListTrainingPipelines, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListTrainingPipelinesResponse.class.getName(), Exception.class.getName()))); } @@ -127,7 +127,7 @@ public void listTrainingPipelines( @Override public void deleteTrainingPipeline( DeleteTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -139,7 +139,7 @@ public void deleteTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -148,7 +148,7 @@ public void deleteTrainingPipeline( @Override public void cancelTrainingPipeline( CancelTrainingPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); responseObserver.onNext(((Empty) response)); @@ -160,7 +160,112 @@ public void cancelTrainingPipeline( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CancelTrainingPipeline, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + 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/v1beta1/MockPredictionService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java index 5d846aa72..b45f9230d 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java index 4a543329c..c93ef21ef 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -60,7 +60,7 @@ public void reset() { @Override public void predict(PredictRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof PredictResponse) { requests.add(request); responseObserver.onNext(((PredictResponse) response)); @@ -72,7 +72,7 @@ public void predict(PredictRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method Predict, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), PredictResponse.class.getName(), Exception.class.getName()))); } @@ -80,7 +80,7 @@ public void predict(PredictRequest request, StreamObserver resp @Override public void explain(ExplainRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ExplainResponse) { requests.add(request); responseObserver.onNext(((ExplainResponse) response)); @@ -92,7 +92,7 @@ public void explain(ExplainRequest request, StreamObserver resp new IllegalArgumentException( String.format( "Unrecognized response type %s for method Explain, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ExplainResponse.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java index 9587c9a41..1d72ec24a 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java index f65908b2a..677f05fcd 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java @@ -1,5 +1,5 @@ /* - * 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. @@ -62,7 +62,7 @@ public void reset() { @Override public void createSpecialistPool( CreateSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -74,7 +74,7 @@ public void createSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method CreateSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -83,7 +83,7 @@ public void createSpecialistPool( @Override public void getSpecialistPool( GetSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof SpecialistPool) { requests.add(request); responseObserver.onNext(((SpecialistPool) response)); @@ -95,7 +95,7 @@ public void getSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method GetSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), SpecialistPool.class.getName(), Exception.class.getName()))); } @@ -105,7 +105,7 @@ public void getSpecialistPool( public void listSpecialistPools( ListSpecialistPoolsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListSpecialistPoolsResponse) { requests.add(request); responseObserver.onNext(((ListSpecialistPoolsResponse) response)); @@ -117,7 +117,7 @@ public void listSpecialistPools( new IllegalArgumentException( String.format( "Unrecognized response type %s for method ListSpecialistPools, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), ListSpecialistPoolsResponse.class.getName(), Exception.class.getName()))); } @@ -126,7 +126,7 @@ public void listSpecialistPools( @Override public void deleteSpecialistPool( DeleteSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -138,7 +138,7 @@ public void deleteSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method DeleteSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } @@ -147,7 +147,7 @@ public void deleteSpecialistPool( @Override public void updateSpecialistPool( UpdateSpecialistPoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); responseObserver.onNext(((Operation) response)); @@ -159,7 +159,7 @@ public void updateSpecialistPool( new IllegalArgumentException( String.format( "Unrecognized response type %s for method UpdateSpecialistPool, expected %s or %s", - response.getClass().getName(), + response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java new file mode 100644 index 000000000..0f31c6b48 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTensorboardService implements MockGrpcService { + private final MockTensorboardServiceImpl serviceImpl; + + public MockTensorboardService() { + serviceImpl = new MockTensorboardServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java new file mode 100644 index 000000000..7f35b6077 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java @@ -0,0 +1,578 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.TensorboardServiceGrpc.TensorboardServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTensorboardServiceImpl extends TensorboardServiceImplBase { + private List requests; + private Queue responses; + + public MockTensorboardServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTensorboard( + CreateTensorboardRequest 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 CreateTensorboard, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTensorboard( + GetTensorboardRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tensorboard) { + requests.add(request); + responseObserver.onNext(((Tensorboard) 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 GetTensorboard, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tensorboard.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTensorboard( + UpdateTensorboardRequest 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 UpdateTensorboard, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTensorboards( + ListTensorboardsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTensorboardsResponse) { + requests.add(request); + responseObserver.onNext(((ListTensorboardsResponse) 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 ListTensorboards, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTensorboardsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTensorboard( + DeleteTensorboardRequest 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 DeleteTensorboard, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTensorboardExperiment( + CreateTensorboardExperimentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardExperiment) { + requests.add(request); + responseObserver.onNext(((TensorboardExperiment) 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 CreateTensorboardExperiment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardExperiment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTensorboardExperiment( + GetTensorboardExperimentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardExperiment) { + requests.add(request); + responseObserver.onNext(((TensorboardExperiment) 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 GetTensorboardExperiment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardExperiment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTensorboardExperiment( + UpdateTensorboardExperimentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardExperiment) { + requests.add(request); + responseObserver.onNext(((TensorboardExperiment) 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 UpdateTensorboardExperiment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardExperiment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTensorboardExperiments( + ListTensorboardExperimentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTensorboardExperimentsResponse) { + requests.add(request); + responseObserver.onNext(((ListTensorboardExperimentsResponse) 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 ListTensorboardExperiments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTensorboardExperimentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTensorboardExperiment( + DeleteTensorboardExperimentRequest 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 DeleteTensorboardExperiment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTensorboardRun( + CreateTensorboardRunRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardRun) { + requests.add(request); + responseObserver.onNext(((TensorboardRun) 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 CreateTensorboardRun, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardRun.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTensorboardRun( + GetTensorboardRunRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardRun) { + requests.add(request); + responseObserver.onNext(((TensorboardRun) 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 GetTensorboardRun, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardRun.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTensorboardRun( + UpdateTensorboardRunRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardRun) { + requests.add(request); + responseObserver.onNext(((TensorboardRun) 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 UpdateTensorboardRun, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardRun.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTensorboardRuns( + ListTensorboardRunsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTensorboardRunsResponse) { + requests.add(request); + responseObserver.onNext(((ListTensorboardRunsResponse) 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 ListTensorboardRuns, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTensorboardRunsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTensorboardRun( + DeleteTensorboardRunRequest 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 DeleteTensorboardRun, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTensorboardTimeSeries( + CreateTensorboardTimeSeriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardTimeSeries) { + requests.add(request); + responseObserver.onNext(((TensorboardTimeSeries) 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 CreateTensorboardTimeSeries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardTimeSeries.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTensorboardTimeSeries( + GetTensorboardTimeSeriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardTimeSeries) { + requests.add(request); + responseObserver.onNext(((TensorboardTimeSeries) 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 GetTensorboardTimeSeries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardTimeSeries.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTensorboardTimeSeries( + UpdateTensorboardTimeSeriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TensorboardTimeSeries) { + requests.add(request); + responseObserver.onNext(((TensorboardTimeSeries) 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 UpdateTensorboardTimeSeries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TensorboardTimeSeries.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTensorboardTimeSeries( + ListTensorboardTimeSeriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTensorboardTimeSeriesResponse) { + requests.add(request); + responseObserver.onNext(((ListTensorboardTimeSeriesResponse) 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 ListTensorboardTimeSeries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTensorboardTimeSeriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTensorboardTimeSeries( + DeleteTensorboardTimeSeriesRequest 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 DeleteTensorboardTimeSeries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void readTensorboardTimeSeriesData( + ReadTensorboardTimeSeriesDataRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadTensorboardTimeSeriesDataResponse) { + requests.add(request); + responseObserver.onNext(((ReadTensorboardTimeSeriesDataResponse) 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 ReadTensorboardTimeSeriesData, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadTensorboardTimeSeriesDataResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void readTensorboardBlobData( + ReadTensorboardBlobDataRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadTensorboardBlobDataResponse) { + requests.add(request); + responseObserver.onNext(((ReadTensorboardBlobDataResponse) 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 ReadTensorboardBlobData, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadTensorboardBlobDataResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void writeTensorboardRunData( + WriteTensorboardRunDataRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WriteTensorboardRunDataResponse) { + requests.add(request); + responseObserver.onNext(((WriteTensorboardRunDataResponse) 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 WriteTensorboardRunData, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WriteTensorboardRunDataResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportTensorboardTimeSeriesData( + ExportTensorboardTimeSeriesDataRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExportTensorboardTimeSeriesDataResponse) { + requests.add(request); + responseObserver.onNext(((ExportTensorboardTimeSeriesDataResponse) 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 ExportTensorboardTimeSeriesData, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExportTensorboardTimeSeriesDataResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java new file mode 100644 index 000000000..8217bfe63 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java @@ -0,0 +1,59 @@ +/* + * 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockVizierService implements MockGrpcService { + private final MockVizierServiceImpl serviceImpl; + + public MockVizierService() { + serviceImpl = new MockVizierServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java new file mode 100644 index 000000000..12562419a --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java @@ -0,0 +1,369 @@ +/* + * 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.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.VizierServiceGrpc.VizierServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockVizierServiceImpl extends VizierServiceImplBase { + private List requests; + private Queue responses; + + public MockVizierServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createStudy(CreateStudyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Study) { + requests.add(request); + responseObserver.onNext(((Study) 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 CreateStudy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Study.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getStudy(GetStudyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Study) { + requests.add(request); + responseObserver.onNext(((Study) 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 GetStudy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Study.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listStudies( + ListStudiesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListStudiesResponse) { + requests.add(request); + responseObserver.onNext(((ListStudiesResponse) 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 ListStudies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListStudiesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteStudy(DeleteStudyRequest 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 DeleteStudy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void lookupStudy(LookupStudyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Study) { + requests.add(request); + responseObserver.onNext(((Study) 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 LookupStudy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Study.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void suggestTrials( + SuggestTrialsRequest 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 SuggestTrials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTrial(CreateTrialRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trial) { + requests.add(request); + responseObserver.onNext(((Trial) 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 CreateTrial, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trial.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTrial(GetTrialRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trial) { + requests.add(request); + responseObserver.onNext(((Trial) 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 GetTrial, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trial.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTrials( + ListTrialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTrialsResponse) { + requests.add(request); + responseObserver.onNext(((ListTrialsResponse) 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 ListTrials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTrialsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addTrialMeasurement( + AddTrialMeasurementRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trial) { + requests.add(request); + responseObserver.onNext(((Trial) 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 AddTrialMeasurement, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trial.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void completeTrial(CompleteTrialRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trial) { + requests.add(request); + responseObserver.onNext(((Trial) 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 CompleteTrial, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trial.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTrial(DeleteTrialRequest 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 DeleteTrial, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void checkTrialEarlyStoppingState( + CheckTrialEarlyStoppingStateRequest 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 CheckTrialEarlyStoppingState, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void stopTrial(StopTrialRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trial) { + requests.add(request); + responseObserver.onNext(((Trial) 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 StopTrial, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trial.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOptimalTrials( + ListOptimalTrialsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOptimalTrialsResponse) { + requests.add(request); + responseObserver.onNext(((ListOptimalTrialsResponse) 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 ListOptimalTrials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOptimalTrialsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java index 3669fffb5..97ac8dd3a 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/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 4da35842e..ddf612c95 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 @@ -1,5 +1,5 @@ /* - * 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. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.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(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .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(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .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(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .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(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .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/PredictionServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java index fb45fa594..3ced82413 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java index 6fc580494..91dfe05ab 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java @@ -1,5 +1,5 @@ /* - * 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/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java new file mode 100644 index 000000000..d71521048 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java @@ -0,0 +1,2236 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +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; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TensorboardServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private TensorboardServiceClient client; + private LocalChannelProvider channelProvider; + private static MockTensorboardService mockTensorboardService; + + @BeforeClass + public static void startStaticServer() { + mockTensorboardService = new MockTensorboardService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTensorboardService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TensorboardServiceSettings settings = + TensorboardServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TensorboardServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createTensorboardTest() throws Exception { + Tensorboard expectedResponse = + Tensorboard.newBuilder() + .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setBlobStoragePathPrefix("blobStoragePathPrefix-1184583211") + .setRunCount(-485221797) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createTensorboardTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + + Tensorboard actualResponse = client.createTensorboardAsync(parent, tensorboard).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardRequest actualRequest = ((CreateTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tensorboard, actualRequest.getTensorboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + client.createTensorboardAsync(parent, tensorboard).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 createTensorboardTest2() throws Exception { + Tensorboard expectedResponse = + Tensorboard.newBuilder() + .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setBlobStoragePathPrefix("blobStoragePathPrefix-1184583211") + .setRunCount(-485221797) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createTensorboardTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + + Tensorboard actualResponse = client.createTensorboardAsync(parent, tensorboard).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardRequest actualRequest = ((CreateTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tensorboard, actualRequest.getTensorboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + client.createTensorboardAsync(parent, tensorboard).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 getTensorboardTest() throws Exception { + Tensorboard expectedResponse = + Tensorboard.newBuilder() + .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setBlobStoragePathPrefix("blobStoragePathPrefix-1184583211") + .setRunCount(-485221797) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + + Tensorboard actualResponse = client.getTensorboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardRequest actualRequest = ((GetTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + client.getTensorboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardTest2() throws Exception { + Tensorboard expectedResponse = + Tensorboard.newBuilder() + .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setBlobStoragePathPrefix("blobStoragePathPrefix-1184583211") + .setRunCount(-485221797) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + Tensorboard actualResponse = client.getTensorboard(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardRequest actualRequest = ((GetTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.getTensorboard(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTensorboardTest() throws Exception { + Tensorboard expectedResponse = + Tensorboard.newBuilder() + .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setBlobStoragePathPrefix("blobStoragePathPrefix-1184583211") + .setRunCount(-485221797) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateTensorboardTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tensorboard actualResponse = client.updateTensorboardAsync(tensorboard, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTensorboardRequest actualRequest = ((UpdateTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboard, actualRequest.getTensorboard()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTensorboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + Tensorboard tensorboard = Tensorboard.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTensorboardAsync(tensorboard, updateMask).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 listTensorboardsTest() throws Exception { + Tensorboard responsesElement = Tensorboard.newBuilder().build(); + ListTensorboardsResponse expectedResponse = + ListTensorboardsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboards(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTensorboardsPagedResponse pagedListResponse = client.listTensorboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardsRequest actualRequest = ((ListTensorboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTensorboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardsTest2() throws Exception { + Tensorboard responsesElement = Tensorboard.newBuilder().build(); + ListTensorboardsResponse expectedResponse = + ListTensorboardsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboards(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTensorboardsPagedResponse pagedListResponse = client.listTensorboards(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardsRequest actualRequest = ((ListTensorboardsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTensorboards(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTensorboardTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + + client.deleteTensorboardAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardRequest actualRequest = ((DeleteTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + client.deleteTensorboardAsync(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 deleteTensorboardTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteTensorboardAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardRequest actualRequest = ((DeleteTensorboardRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTensorboardAsync(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 createTensorboardExperimentTest() throws Exception { + TensorboardExperiment expectedResponse = + TensorboardExperiment.newBuilder() + .setName( + TensorboardExperimentName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setSource("source-896505829") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardExperimentName parent = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + String tensorboardExperimentId = "tensorboardExperimentId1267328197"; + + TensorboardExperiment actualResponse = + client.createTensorboardExperiment(parent, tensorboardExperiment, tensorboardExperimentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardExperimentRequest actualRequest = + ((CreateTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tensorboardExperiment, actualRequest.getTensorboardExperiment()); + Assert.assertEquals(tensorboardExperimentId, actualRequest.getTensorboardExperimentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardExperimentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardExperimentName parent = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + String tensorboardExperimentId = "tensorboardExperimentId1267328197"; + client.createTensorboardExperiment(parent, tensorboardExperiment, tensorboardExperimentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTensorboardExperimentTest2() throws Exception { + TensorboardExperiment expectedResponse = + TensorboardExperiment.newBuilder() + .setName( + TensorboardExperimentName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setSource("source-896505829") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + String tensorboardExperimentId = "tensorboardExperimentId1267328197"; + + TensorboardExperiment actualResponse = + client.createTensorboardExperiment(parent, tensorboardExperiment, tensorboardExperimentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardExperimentRequest actualRequest = + ((CreateTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tensorboardExperiment, actualRequest.getTensorboardExperiment()); + Assert.assertEquals(tensorboardExperimentId, actualRequest.getTensorboardExperimentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardExperimentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + String tensorboardExperimentId = "tensorboardExperimentId1267328197"; + client.createTensorboardExperiment(parent, tensorboardExperiment, tensorboardExperimentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardExperimentTest() throws Exception { + TensorboardExperiment expectedResponse = + TensorboardExperiment.newBuilder() + .setName( + TensorboardExperimentName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setSource("source-896505829") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardExperimentName name = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + + TensorboardExperiment actualResponse = client.getTensorboardExperiment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardExperimentRequest actualRequest = + ((GetTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardExperimentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardExperimentName name = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + client.getTensorboardExperiment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardExperimentTest2() throws Exception { + TensorboardExperiment expectedResponse = + TensorboardExperiment.newBuilder() + .setName( + TensorboardExperimentName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setSource("source-896505829") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + TensorboardExperiment actualResponse = client.getTensorboardExperiment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardExperimentRequest actualRequest = + ((GetTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardExperimentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.getTensorboardExperiment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTensorboardExperimentTest() throws Exception { + TensorboardExperiment expectedResponse = + TensorboardExperiment.newBuilder() + .setName( + TensorboardExperimentName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setSource("source-896505829") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TensorboardExperiment actualResponse = + client.updateTensorboardExperiment(tensorboardExperiment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTensorboardExperimentRequest actualRequest = + ((UpdateTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardExperiment, actualRequest.getTensorboardExperiment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTensorboardExperimentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTensorboardExperiment(tensorboardExperiment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardExperimentsTest() throws Exception { + TensorboardExperiment responsesElement = TensorboardExperiment.newBuilder().build(); + ListTensorboardExperimentsResponse expectedResponse = + ListTensorboardExperimentsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardExperiments(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + + ListTensorboardExperimentsPagedResponse pagedListResponse = + client.listTensorboardExperiments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardExperimentsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardExperimentsRequest actualRequest = + ((ListTensorboardExperimentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardExperimentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + client.listTensorboardExperiments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardExperimentsTest2() throws Exception { + TensorboardExperiment responsesElement = TensorboardExperiment.newBuilder().build(); + ListTensorboardExperimentsResponse expectedResponse = + ListTensorboardExperimentsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardExperiments(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTensorboardExperimentsPagedResponse pagedListResponse = + client.listTensorboardExperiments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardExperimentsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardExperimentsRequest actualRequest = + ((ListTensorboardExperimentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardExperimentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTensorboardExperiments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTensorboardExperimentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardExperimentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + TensorboardExperimentName name = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + + client.deleteTensorboardExperimentAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardExperimentRequest actualRequest = + ((DeleteTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardExperimentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardExperimentName name = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + client.deleteTensorboardExperimentAsync(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 deleteTensorboardExperimentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardExperimentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteTensorboardExperimentAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardExperimentRequest actualRequest = + ((DeleteTensorboardExperimentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardExperimentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTensorboardExperimentAsync(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 createTensorboardRunTest() throws Exception { + TensorboardRun expectedResponse = + TensorboardRun.newBuilder() + .setName( + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardRunName parent = + TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + String tensorboardRunId = "tensorboardRunId-407822631"; + + TensorboardRun actualResponse = + client.createTensorboardRun(parent, tensorboardRun, tensorboardRunId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardRunRequest actualRequest = + ((CreateTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tensorboardRun, actualRequest.getTensorboardRun()); + Assert.assertEquals(tensorboardRunId, actualRequest.getTensorboardRunId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardRunExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRunName parent = + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + String tensorboardRunId = "tensorboardRunId-407822631"; + client.createTensorboardRun(parent, tensorboardRun, tensorboardRunId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTensorboardRunTest2() throws Exception { + TensorboardRun expectedResponse = + TensorboardRun.newBuilder() + .setName( + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + String tensorboardRunId = "tensorboardRunId-407822631"; + + TensorboardRun actualResponse = + client.createTensorboardRun(parent, tensorboardRun, tensorboardRunId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardRunRequest actualRequest = + ((CreateTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tensorboardRun, actualRequest.getTensorboardRun()); + Assert.assertEquals(tensorboardRunId, actualRequest.getTensorboardRunId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardRunExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + String tensorboardRunId = "tensorboardRunId-407822631"; + client.createTensorboardRun(parent, tensorboardRun, tensorboardRunId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardRunTest() throws Exception { + TensorboardRun expectedResponse = + TensorboardRun.newBuilder() + .setName( + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardRunName name = + TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + + TensorboardRun actualResponse = client.getTensorboardRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardRunRequest actualRequest = ((GetTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardRunExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRunName name = + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + client.getTensorboardRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardRunTest2() throws Exception { + TensorboardRun expectedResponse = + TensorboardRun.newBuilder() + .setName( + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + TensorboardRun actualResponse = client.getTensorboardRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardRunRequest actualRequest = ((GetTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardRunExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.getTensorboardRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTensorboardRunTest() throws Exception { + TensorboardRun expectedResponse = + TensorboardRun.newBuilder() + .setName( + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TensorboardRun actualResponse = client.updateTensorboardRun(tensorboardRun, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTensorboardRunRequest actualRequest = + ((UpdateTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardRun, actualRequest.getTensorboardRun()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTensorboardRunExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTensorboardRun(tensorboardRun, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardRunsTest() throws Exception { + TensorboardRun responsesElement = TensorboardRun.newBuilder().build(); + ListTensorboardRunsResponse expectedResponse = + ListTensorboardRunsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardRuns(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardExperimentName parent = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + + ListTensorboardRunsPagedResponse pagedListResponse = client.listTensorboardRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardRunsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardRunsRequest actualRequest = ((ListTensorboardRunsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardRunsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardExperimentName parent = + TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]"); + client.listTensorboardRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardRunsTest2() throws Exception { + TensorboardRun responsesElement = TensorboardRun.newBuilder().build(); + ListTensorboardRunsResponse expectedResponse = + ListTensorboardRunsResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardRuns(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTensorboardRunsPagedResponse pagedListResponse = client.listTensorboardRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardRunsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardRunsRequest actualRequest = ((ListTensorboardRunsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardRunsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTensorboardRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTensorboardRunTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardRunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + TensorboardRunName name = + TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + + client.deleteTensorboardRunAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardRunRequest actualRequest = + ((DeleteTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardRunExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRunName name = + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + client.deleteTensorboardRunAsync(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 deleteTensorboardRunTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardRunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteTensorboardRunAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardRunRequest actualRequest = + ((DeleteTensorboardRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardRunExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTensorboardRunAsync(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 createTensorboardTimeSeriesTest() throws Exception { + TensorboardTimeSeries expectedResponse = + TensorboardTimeSeries.newBuilder() + .setName( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setPluginName("pluginName-387216290") + .setPluginData(ByteString.EMPTY) + .setMetadata(TensorboardTimeSeries.Metadata.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardTimeSeriesName parent = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + + TensorboardTimeSeries actualResponse = + client.createTensorboardTimeSeries(parent, tensorboardTimeSeries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardTimeSeriesRequest actualRequest = + ((CreateTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tensorboardTimeSeries, actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardTimeSeriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeriesName parent = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + client.createTensorboardTimeSeries(parent, tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTensorboardTimeSeriesTest2() throws Exception { + TensorboardTimeSeries expectedResponse = + TensorboardTimeSeries.newBuilder() + .setName( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setPluginName("pluginName-387216290") + .setPluginData(ByteString.EMPTY) + .setMetadata(TensorboardTimeSeries.Metadata.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + + TensorboardTimeSeries actualResponse = + client.createTensorboardTimeSeries(parent, tensorboardTimeSeries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTensorboardTimeSeriesRequest actualRequest = + ((CreateTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tensorboardTimeSeries, actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTensorboardTimeSeriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + client.createTensorboardTimeSeries(parent, tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardTimeSeriesTest() throws Exception { + TensorboardTimeSeries expectedResponse = + TensorboardTimeSeries.newBuilder() + .setName( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setPluginName("pluginName-387216290") + .setPluginData(ByteString.EMPTY) + .setMetadata(TensorboardTimeSeries.Metadata.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardTimeSeriesName name = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + + TensorboardTimeSeries actualResponse = client.getTensorboardTimeSeries(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardTimeSeriesRequest actualRequest = + ((GetTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardTimeSeriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeriesName name = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + client.getTensorboardTimeSeries(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTensorboardTimeSeriesTest2() throws Exception { + TensorboardTimeSeries expectedResponse = + TensorboardTimeSeries.newBuilder() + .setName( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setPluginName("pluginName-387216290") + .setPluginData(ByteString.EMPTY) + .setMetadata(TensorboardTimeSeries.Metadata.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String name = "name3373707"; + + TensorboardTimeSeries actualResponse = client.getTensorboardTimeSeries(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTensorboardTimeSeriesRequest actualRequest = + ((GetTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTensorboardTimeSeriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.getTensorboardTimeSeries(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTensorboardTimeSeriesTest() throws Exception { + TensorboardTimeSeries expectedResponse = + TensorboardTimeSeries.newBuilder() + .setName( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setPluginName("pluginName-387216290") + .setPluginData(ByteString.EMPTY) + .setMetadata(TensorboardTimeSeries.Metadata.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TensorboardTimeSeries actualResponse = + client.updateTensorboardTimeSeries(tensorboardTimeSeries, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTensorboardTimeSeriesRequest actualRequest = + ((UpdateTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardTimeSeries, actualRequest.getTensorboardTimeSeries()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTensorboardTimeSeriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTensorboardTimeSeries(tensorboardTimeSeries, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardTimeSeriesTest() throws Exception { + TensorboardTimeSeries responsesElement = TensorboardTimeSeries.newBuilder().build(); + ListTensorboardTimeSeriesResponse expectedResponse = + ListTensorboardTimeSeriesResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardTimeSeries(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardRunName parent = + TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + + ListTensorboardTimeSeriesPagedResponse pagedListResponse = + client.listTensorboardTimeSeries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardTimeSeriesList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardTimeSeriesRequest actualRequest = + ((ListTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardTimeSeriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRunName parent = + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + client.listTensorboardTimeSeries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTensorboardTimeSeriesTest2() throws Exception { + TensorboardTimeSeries responsesElement = TensorboardTimeSeries.newBuilder().build(); + ListTensorboardTimeSeriesResponse expectedResponse = + ListTensorboardTimeSeriesResponse.newBuilder() + .setNextPageToken("") + .addAllTensorboardTimeSeries(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTensorboardTimeSeriesPagedResponse pagedListResponse = + client.listTensorboardTimeSeries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTensorboardTimeSeriesList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTensorboardTimeSeriesRequest actualRequest = + ((ListTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTensorboardTimeSeriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTensorboardTimeSeries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTensorboardTimeSeriesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardTimeSeriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + TensorboardTimeSeriesName name = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + + client.deleteTensorboardTimeSeriesAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardTimeSeriesRequest actualRequest = + ((DeleteTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardTimeSeriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeriesName name = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + client.deleteTensorboardTimeSeriesAsync(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 deleteTensorboardTimeSeriesTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTensorboardTimeSeriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTensorboardService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteTensorboardTimeSeriesAsync(name).get(); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTensorboardTimeSeriesRequest actualRequest = + ((DeleteTensorboardTimeSeriesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTensorboardTimeSeriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTensorboardTimeSeriesAsync(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 readTensorboardTimeSeriesDataTest() throws Exception { + ReadTensorboardTimeSeriesDataResponse expectedResponse = + ReadTensorboardTimeSeriesDataResponse.newBuilder() + .setTimeSeriesData(TimeSeriesData.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardTimeSeriesName tensorboardTimeSeries = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + + ReadTensorboardTimeSeriesDataResponse actualResponse = + client.readTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadTensorboardTimeSeriesDataRequest actualRequest = + ((ReadTensorboardTimeSeriesDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardTimeSeries.toString(), actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readTensorboardTimeSeriesDataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeriesName tensorboardTimeSeries = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + client.readTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readTensorboardTimeSeriesDataTest2() throws Exception { + ReadTensorboardTimeSeriesDataResponse expectedResponse = + ReadTensorboardTimeSeriesDataResponse.newBuilder() + .setTimeSeriesData(TimeSeriesData.newBuilder().build()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String tensorboardTimeSeries = "tensorboardTimeSeries571115953"; + + ReadTensorboardTimeSeriesDataResponse actualResponse = + client.readTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadTensorboardTimeSeriesDataRequest actualRequest = + ((ReadTensorboardTimeSeriesDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardTimeSeries, actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readTensorboardTimeSeriesDataExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String tensorboardTimeSeries = "tensorboardTimeSeries571115953"; + client.readTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readTensorboardBlobDataTest() throws Exception { + ReadTensorboardBlobDataResponse expectedResponse = + ReadTensorboardBlobDataResponse.newBuilder() + .addAllBlobs(new ArrayList()) + .build(); + mockTensorboardService.addResponse(expectedResponse); + ReadTensorboardBlobDataRequest request = + ReadTensorboardBlobDataRequest.newBuilder() + .setTimeSeries( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .addAllBlobIds(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + ServerStreamingCallable + callable = client.readTensorboardBlobDataCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void readTensorboardBlobDataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + ReadTensorboardBlobDataRequest request = + ReadTensorboardBlobDataRequest.newBuilder() + .setTimeSeries( + TensorboardTimeSeriesName.of( + "[PROJECT]", + "[LOCATION]", + "[TENSORBOARD]", + "[EXPERIMENT]", + "[RUN]", + "[TIME_SERIES]") + .toString()) + .addAllBlobIds(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + ServerStreamingCallable + callable = client.readTensorboardBlobDataCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void writeTensorboardRunDataTest() throws Exception { + WriteTensorboardRunDataResponse expectedResponse = + WriteTensorboardRunDataResponse.newBuilder().build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardRunName tensorboardRun = + TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + List timeSeriesData = new ArrayList<>(); + + WriteTensorboardRunDataResponse actualResponse = + client.writeTensorboardRunData(tensorboardRun, timeSeriesData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteTensorboardRunDataRequest actualRequest = + ((WriteTensorboardRunDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardRun.toString(), actualRequest.getTensorboardRun()); + Assert.assertEquals(timeSeriesData, actualRequest.getTimeSeriesDataList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeTensorboardRunDataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardRunName tensorboardRun = + TensorboardRunName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]"); + List timeSeriesData = new ArrayList<>(); + client.writeTensorboardRunData(tensorboardRun, timeSeriesData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void writeTensorboardRunDataTest2() throws Exception { + WriteTensorboardRunDataResponse expectedResponse = + WriteTensorboardRunDataResponse.newBuilder().build(); + mockTensorboardService.addResponse(expectedResponse); + + String tensorboardRun = "tensorboardRun-174725858"; + List timeSeriesData = new ArrayList<>(); + + WriteTensorboardRunDataResponse actualResponse = + client.writeTensorboardRunData(tensorboardRun, timeSeriesData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteTensorboardRunDataRequest actualRequest = + ((WriteTensorboardRunDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardRun, actualRequest.getTensorboardRun()); + Assert.assertEquals(timeSeriesData, actualRequest.getTimeSeriesDataList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeTensorboardRunDataExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String tensorboardRun = "tensorboardRun-174725858"; + List timeSeriesData = new ArrayList<>(); + client.writeTensorboardRunData(tensorboardRun, timeSeriesData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportTensorboardTimeSeriesDataTest() throws Exception { + TimeSeriesDataPoint responsesElement = TimeSeriesDataPoint.newBuilder().build(); + ExportTensorboardTimeSeriesDataResponse expectedResponse = + ExportTensorboardTimeSeriesDataResponse.newBuilder() + .setNextPageToken("") + .addAllTimeSeriesDataPoints(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardTimeSeriesName tensorboardTimeSeries = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + + ExportTensorboardTimeSeriesDataPagedResponse pagedListResponse = + client.exportTensorboardTimeSeriesData(tensorboardTimeSeries); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTimeSeriesDataPointsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportTensorboardTimeSeriesDataRequest actualRequest = + ((ExportTensorboardTimeSeriesDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardTimeSeries.toString(), actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportTensorboardTimeSeriesDataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardTimeSeriesName tensorboardTimeSeries = + TensorboardTimeSeriesName.of( + "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]"); + client.exportTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportTensorboardTimeSeriesDataTest2() throws Exception { + TimeSeriesDataPoint responsesElement = TimeSeriesDataPoint.newBuilder().build(); + ExportTensorboardTimeSeriesDataResponse expectedResponse = + ExportTensorboardTimeSeriesDataResponse.newBuilder() + .setNextPageToken("") + .addAllTimeSeriesDataPoints(Arrays.asList(responsesElement)) + .build(); + mockTensorboardService.addResponse(expectedResponse); + + String tensorboardTimeSeries = "tensorboardTimeSeries571115953"; + + ExportTensorboardTimeSeriesDataPagedResponse pagedListResponse = + client.exportTensorboardTimeSeriesData(tensorboardTimeSeries); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTimeSeriesDataPointsList().get(0), resources.get(0)); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportTensorboardTimeSeriesDataRequest actualRequest = + ((ExportTensorboardTimeSeriesDataRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboardTimeSeries, actualRequest.getTensorboardTimeSeries()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportTensorboardTimeSeriesDataExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String tensorboardTimeSeries = "tensorboardTimeSeries571115953"; + client.exportTensorboardTimeSeriesData(tensorboardTimeSeries); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} 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 new file mode 100644 index 000000000..c2d07a819 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java @@ -0,0 +1,1209 @@ +/* + * 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 static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class VizierServiceClientTest { + private static MockVizierService mockVizierService; + private static MockServiceHelper mockServiceHelper; + private VizierServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockVizierService = new MockVizierService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockVizierService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + VizierServiceSettings settings = + VizierServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VizierServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createStudyTest() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Study study = Study.newBuilder().build(); + + Study actualResponse = client.createStudy(parent, study); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStudyRequest actualRequest = ((CreateStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(study, actualRequest.getStudy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStudyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Study study = Study.newBuilder().build(); + client.createStudy(parent, study); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStudyTest2() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Study study = Study.newBuilder().build(); + + Study actualResponse = client.createStudy(parent, study); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStudyRequest actualRequest = ((CreateStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(study, actualRequest.getStudy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStudyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + Study study = Study.newBuilder().build(); + client.createStudy(parent, study); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStudyTest() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + + Study actualResponse = client.getStudy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStudyRequest actualRequest = ((GetStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStudyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + client.getStudy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStudyTest2() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + String name = "name3373707"; + + Study actualResponse = client.getStudy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStudyRequest actualRequest = ((GetStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStudyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String name = "name3373707"; + client.getStudy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStudiesTest() throws Exception { + Study responsesElement = Study.newBuilder().build(); + ListStudiesResponse expectedResponse = + ListStudiesResponse.newBuilder() + .setNextPageToken("") + .addAllStudies(Arrays.asList(responsesElement)) + .build(); + mockVizierService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListStudiesPagedResponse pagedListResponse = client.listStudies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStudiesList().get(0), resources.get(0)); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStudiesRequest actualRequest = ((ListStudiesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStudiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listStudies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStudiesTest2() throws Exception { + Study responsesElement = Study.newBuilder().build(); + ListStudiesResponse expectedResponse = + ListStudiesResponse.newBuilder() + .setNextPageToken("") + .addAllStudies(Arrays.asList(responsesElement)) + .build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListStudiesPagedResponse pagedListResponse = client.listStudies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStudiesList().get(0), resources.get(0)); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStudiesRequest actualRequest = ((ListStudiesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStudiesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listStudies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStudyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockVizierService.addResponse(expectedResponse); + + StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + + client.deleteStudy(name); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStudyRequest actualRequest = ((DeleteStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStudyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + client.deleteStudy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteStudyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockVizierService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteStudy(name); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStudyRequest actualRequest = ((DeleteStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStudyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String name = "name3373707"; + client.deleteStudy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupStudyTest() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + Study actualResponse = client.lookupStudy(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupStudyRequest actualRequest = ((LookupStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupStudyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.lookupStudy(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupStudyTest2() throws Exception { + Study expectedResponse = + Study.newBuilder() + .setName(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setDisplayName("displayName1714148973") + .setStudySpec(StudySpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setInactiveReason("inactiveReason1923653263") + .build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + Study actualResponse = client.lookupStudy(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupStudyRequest actualRequest = ((LookupStudyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupStudyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + client.lookupStudy(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void suggestTrialsTest() throws Exception { + SuggestTrialsResponse expectedResponse = + SuggestTrialsResponse.newBuilder() + .addAllTrials(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("suggestTrialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVizierService.addResponse(resultOperation); + + SuggestTrialsRequest request = + SuggestTrialsRequest.newBuilder() + .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setSuggestionCount(390130452) + .setClientId("clientId908408390") + .build(); + + SuggestTrialsResponse actualResponse = client.suggestTrialsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SuggestTrialsRequest actualRequest = ((SuggestTrialsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSuggestionCount(), actualRequest.getSuggestionCount()); + Assert.assertEquals(request.getClientId(), actualRequest.getClientId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void suggestTrialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + SuggestTrialsRequest request = + SuggestTrialsRequest.newBuilder() + .setParent(StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString()) + .setSuggestionCount(390130452) + .setClientId("clientId908408390") + .build(); + client.suggestTrialsAsync(request).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 createTrialTest() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + Trial trial = Trial.newBuilder().build(); + + Trial actualResponse = client.createTrial(parent, trial); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTrialRequest actualRequest = ((CreateTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(trial, actualRequest.getTrial()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTrialExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + Trial trial = Trial.newBuilder().build(); + client.createTrial(parent, trial); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTrialTest2() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Trial trial = Trial.newBuilder().build(); + + Trial actualResponse = client.createTrial(parent, trial); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTrialRequest actualRequest = ((CreateTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(trial, actualRequest.getTrial()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTrialExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + Trial trial = Trial.newBuilder().build(); + client.createTrial(parent, trial); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTrialTest() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]"); + + Trial actualResponse = client.getTrial(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTrialRequest actualRequest = ((GetTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTrialExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]"); + client.getTrial(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTrialTest2() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + String name = "name3373707"; + + Trial actualResponse = client.getTrial(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTrialRequest actualRequest = ((GetTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTrialExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String name = "name3373707"; + client.getTrial(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTrialsTest() throws Exception { + Trial responsesElement = Trial.newBuilder().build(); + ListTrialsResponse expectedResponse = + ListTrialsResponse.newBuilder() + .setNextPageToken("") + .addAllTrials(Arrays.asList(responsesElement)) + .build(); + mockVizierService.addResponse(expectedResponse); + + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + + ListTrialsPagedResponse pagedListResponse = client.listTrials(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTrialsList().get(0), resources.get(0)); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTrialsRequest actualRequest = ((ListTrialsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTrialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + client.listTrials(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTrialsTest2() throws Exception { + Trial responsesElement = Trial.newBuilder().build(); + ListTrialsResponse expectedResponse = + ListTrialsResponse.newBuilder() + .setNextPageToken("") + .addAllTrials(Arrays.asList(responsesElement)) + .build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTrialsPagedResponse pagedListResponse = client.listTrials(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTrialsList().get(0), resources.get(0)); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTrialsRequest actualRequest = ((ListTrialsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTrialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTrials(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addTrialMeasurementTest() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + AddTrialMeasurementRequest request = + AddTrialMeasurementRequest.newBuilder() + .setTrialName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setMeasurement(Measurement.newBuilder().build()) + .build(); + + Trial actualResponse = client.addTrialMeasurement(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddTrialMeasurementRequest actualRequest = ((AddTrialMeasurementRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTrialName(), actualRequest.getTrialName()); + Assert.assertEquals(request.getMeasurement(), actualRequest.getMeasurement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addTrialMeasurementExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + AddTrialMeasurementRequest request = + AddTrialMeasurementRequest.newBuilder() + .setTrialName( + TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setMeasurement(Measurement.newBuilder().build()) + .build(); + client.addTrialMeasurement(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void completeTrialTest() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + CompleteTrialRequest request = + CompleteTrialRequest.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .setTrialInfeasible(true) + .setInfeasibleReason("infeasibleReason1040725388") + .build(); + + Trial actualResponse = client.completeTrial(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompleteTrialRequest actualRequest = ((CompleteTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFinalMeasurement(), actualRequest.getFinalMeasurement()); + Assert.assertEquals(request.getTrialInfeasible(), actualRequest.getTrialInfeasible()); + Assert.assertEquals(request.getInfeasibleReason(), actualRequest.getInfeasibleReason()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void completeTrialExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + CompleteTrialRequest request = + CompleteTrialRequest.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .setTrialInfeasible(true) + .setInfeasibleReason("infeasibleReason1040725388") + .build(); + client.completeTrial(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTrialTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockVizierService.addResponse(expectedResponse); + + TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]"); + + client.deleteTrial(name); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTrialRequest actualRequest = ((DeleteTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTrialExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]"); + client.deleteTrial(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTrialTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockVizierService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTrial(name); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTrialRequest actualRequest = ((DeleteTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTrialExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTrial(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void checkTrialEarlyStoppingStateTest() throws Exception { + CheckTrialEarlyStoppingStateResponse expectedResponse = + CheckTrialEarlyStoppingStateResponse.newBuilder().setShouldStop(true).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("checkTrialEarlyStoppingStateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVizierService.addResponse(resultOperation); + + CheckTrialEarlyStoppingStateRequest request = + CheckTrialEarlyStoppingStateRequest.newBuilder() + .setTrialName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .build(); + + CheckTrialEarlyStoppingStateResponse actualResponse = + client.checkTrialEarlyStoppingStateAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CheckTrialEarlyStoppingStateRequest actualRequest = + ((CheckTrialEarlyStoppingStateRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTrialName(), actualRequest.getTrialName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void checkTrialEarlyStoppingStateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + CheckTrialEarlyStoppingStateRequest request = + CheckTrialEarlyStoppingStateRequest.newBuilder() + .setTrialName( + TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .build(); + client.checkTrialEarlyStoppingStateAsync(request).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 stopTrialTest() throws Exception { + Trial expectedResponse = + Trial.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .setId("id3355") + .addAllParameters(new ArrayList()) + .setFinalMeasurement(Measurement.newBuilder().build()) + .addAllMeasurements(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setClientId("clientId908408390") + .setInfeasibleReason("infeasibleReason1040725388") + .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .build(); + mockVizierService.addResponse(expectedResponse); + + StopTrialRequest request = + StopTrialRequest.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .build(); + + Trial actualResponse = client.stopTrial(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopTrialRequest actualRequest = ((StopTrialRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopTrialExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StopTrialRequest request = + StopTrialRequest.newBuilder() + .setName(TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString()) + .build(); + client.stopTrial(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOptimalTrialsTest() throws Exception { + ListOptimalTrialsResponse expectedResponse = + ListOptimalTrialsResponse.newBuilder().addAllOptimalTrials(new ArrayList()).build(); + mockVizierService.addResponse(expectedResponse); + + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + + ListOptimalTrialsResponse actualResponse = client.listOptimalTrials(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOptimalTrialsRequest actualRequest = ((ListOptimalTrialsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOptimalTrialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]"); + client.listOptimalTrials(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOptimalTrialsTest2() throws Exception { + ListOptimalTrialsResponse expectedResponse = + ListOptimalTrialsResponse.newBuilder().addAllOptimalTrials(new ArrayList()).build(); + mockVizierService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOptimalTrialsResponse actualResponse = client.listOptimalTrials(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVizierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOptimalTrialsRequest actualRequest = ((ListOptimalTrialsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOptimalTrialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVizierService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOptimalTrials(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index 04915214e..87e5efc91 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 - 0.4.1 + 1.0.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 1.0.0 diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index 2addde84a..e4db5c85f 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ @javax.annotation.Generated( @@ -533,7 +528,8 @@ public abstract static class DatasetServiceImplBase implements io.grpc.BindableS public void createDataset( com.google.cloud.aiplatform.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); } /** @@ -546,7 +542,7 @@ public void createDataset( public void getDataset( com.google.cloud.aiplatform.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } /** @@ -559,7 +555,8 @@ public void getDataset( public void updateDataset( com.google.cloud.aiplatform.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); } /** @@ -573,7 +570,8 @@ public void listDatasets( com.google.cloud.aiplatform.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); } /** @@ -586,7 +584,8 @@ public void listDatasets( public void deleteDataset( com.google.cloud.aiplatform.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); } /** @@ -599,7 +598,7 @@ public void deleteDataset( public void importData( com.google.cloud.aiplatform.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); } /** @@ -612,7 +611,7 @@ public void importData( public void exportData( com.google.cloud.aiplatform.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } /** @@ -626,7 +625,8 @@ public void listDataItems( com.google.cloud.aiplatform.v1.ListDataItemsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDataItemsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataItemsMethod(), responseObserver); } /** @@ -640,7 +640,8 @@ public void getAnnotationSpec( com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); } /** @@ -654,7 +655,8 @@ public void listAnnotations( com.google.cloud.aiplatform.v1.ListAnnotationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAnnotationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnnotationsMethod(), responseObserver); } @java.lang.Override @@ -662,64 +664,64 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateDatasetRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_DATASET))) .addMethod( getGetDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetDatasetRequest, com.google.cloud.aiplatform.v1.Dataset>(this, METHODID_GET_DATASET))) .addMethod( getUpdateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateDatasetRequest, com.google.cloud.aiplatform.v1.Dataset>(this, METHODID_UPDATE_DATASET))) .addMethod( getListDatasetsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListDatasetsRequest, com.google.cloud.aiplatform.v1.ListDatasetsResponse>( this, METHODID_LIST_DATASETS))) .addMethod( getDeleteDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteDatasetRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) .addMethod( getImportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ImportDataRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) .addMethod( getExportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ExportDataRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) .addMethod( getListDataItemsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListDataItemsRequest, com.google.cloud.aiplatform.v1.ListDataItemsResponse>( this, METHODID_LIST_DATA_ITEMS))) .addMethod( getGetAnnotationSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest, com.google.cloud.aiplatform.v1.AnnotationSpec>( this, METHODID_GET_ANNOTATION_SPEC))) .addMethod( getListAnnotationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListAnnotationsRequest, com.google.cloud.aiplatform.v1.ListAnnotationsResponse>( @@ -750,7 +752,7 @@ protected DatasetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions public void createDataset( com.google.cloud.aiplatform.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -766,7 +768,7 @@ public void createDataset( public void getDataset( com.google.cloud.aiplatform.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } @@ -780,7 +782,7 @@ public void getDataset( public void updateDataset( com.google.cloud.aiplatform.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -797,7 +799,7 @@ public void listDatasets( com.google.cloud.aiplatform.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); @@ -813,7 +815,7 @@ public void listDatasets( public void deleteDataset( com.google.cloud.aiplatform.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); @@ -829,7 +831,7 @@ public void deleteDataset( public void importData( com.google.cloud.aiplatform.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); } @@ -843,7 +845,7 @@ public void importData( public void exportData( com.google.cloud.aiplatform.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } @@ -858,7 +860,7 @@ public void listDataItems( com.google.cloud.aiplatform.v1.ListDataItemsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request, responseObserver); @@ -875,7 +877,7 @@ public void getAnnotationSpec( com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); @@ -892,7 +894,7 @@ public void listAnnotations( com.google.cloud.aiplatform.v1.ListAnnotationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAnnotationsMethod(), getCallOptions()), request, responseObserver); @@ -921,7 +923,8 @@ protected DatasetServiceBlockingStub build( */ public com.google.longrunning.Operation createDataset( com.google.cloud.aiplatform.v1.CreateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } /** @@ -933,7 +936,8 @@ public com.google.longrunning.Operation createDataset( */ public com.google.cloud.aiplatform.v1.Dataset getDataset( com.google.cloud.aiplatform.v1.GetDatasetRequest request) { - return blockingUnaryCall(getChannel(), getGetDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); } /** @@ -945,7 +949,8 @@ public com.google.cloud.aiplatform.v1.Dataset getDataset( */ public com.google.cloud.aiplatform.v1.Dataset updateDataset( com.google.cloud.aiplatform.v1.UpdateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } /** @@ -957,7 +962,8 @@ public com.google.cloud.aiplatform.v1.Dataset updateDataset( */ public com.google.cloud.aiplatform.v1.ListDatasetsResponse listDatasets( com.google.cloud.aiplatform.v1.ListDatasetsRequest request) { - return blockingUnaryCall(getChannel(), getListDatasetsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); } /** @@ -969,7 +975,8 @@ public com.google.cloud.aiplatform.v1.ListDatasetsResponse listDatasets( */ public com.google.longrunning.Operation deleteDataset( com.google.cloud.aiplatform.v1.DeleteDatasetRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } /** @@ -981,7 +988,8 @@ public com.google.longrunning.Operation deleteDataset( */ public com.google.longrunning.Operation importData( com.google.cloud.aiplatform.v1.ImportDataRequest request) { - return blockingUnaryCall(getChannel(), getImportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); } /** @@ -993,7 +1001,8 @@ public com.google.longrunning.Operation importData( */ public com.google.longrunning.Operation exportData( com.google.cloud.aiplatform.v1.ExportDataRequest request) { - return blockingUnaryCall(getChannel(), getExportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); } /** @@ -1005,7 +1014,8 @@ public com.google.longrunning.Operation exportData( */ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( com.google.cloud.aiplatform.v1.ListDataItemsRequest request) { - return blockingUnaryCall(getChannel(), getListDataItemsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataItemsMethod(), getCallOptions(), request); } /** @@ -1017,7 +1027,7 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( */ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -1030,7 +1040,8 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( com.google.cloud.aiplatform.v1.ListAnnotationsRequest request) { - return blockingUnaryCall(getChannel(), getListAnnotationsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotationsMethod(), getCallOptions(), request); } } @@ -1056,7 +1067,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createDataset(com.google.cloud.aiplatform.v1.CreateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); } @@ -1070,7 +1081,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.Dataset> getDataset(com.google.cloud.aiplatform.v1.GetDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } @@ -1084,7 +1095,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.Dataset> updateDataset(com.google.cloud.aiplatform.v1.UpdateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); } @@ -1098,7 +1109,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListDatasetsResponse> listDatasets(com.google.cloud.aiplatform.v1.ListDatasetsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); } @@ -1111,7 +1122,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteDataset(com.google.cloud.aiplatform.v1.DeleteDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); } @@ -1124,7 +1135,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture importData(com.google.cloud.aiplatform.v1.ImportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request); } @@ -1137,7 +1148,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture exportData(com.google.cloud.aiplatform.v1.ExportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } @@ -1151,7 +1162,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListDataItemsResponse> listDataItems(com.google.cloud.aiplatform.v1.ListDataItemsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } @@ -1165,7 +1176,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.AnnotationSpec> getAnnotationSpec(com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); } @@ -1179,7 +1190,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListAnnotationsResponse> listAnnotations(com.google.cloud.aiplatform.v1.ListAnnotationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAnnotationsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java index 5d1f03e87..5b4831599 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ @javax.annotation.Generated( @@ -398,7 +393,8 @@ public abstract static class EndpointServiceImplBase implements io.grpc.Bindable public void createEndpoint( com.google.cloud.aiplatform.v1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEndpointMethod(), responseObserver); } /** @@ -411,7 +407,8 @@ public void createEndpoint( public void getEndpoint( com.google.cloud.aiplatform.v1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); } /** @@ -425,7 +422,8 @@ public void listEndpoints( com.google.cloud.aiplatform.v1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEndpointsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); } /** @@ -438,7 +436,8 @@ public void listEndpoints( public void updateEndpoint( com.google.cloud.aiplatform.v1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointMethod(), responseObserver); } /** @@ -451,7 +450,8 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.aiplatform.v1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEndpointMethod(), responseObserver); } /** @@ -464,7 +464,8 @@ public void deleteEndpoint( public void deployModel( com.google.cloud.aiplatform.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); } /** @@ -478,7 +479,8 @@ public void deployModel( public void undeployModel( com.google.cloud.aiplatform.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUndeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), responseObserver); } @java.lang.Override @@ -486,44 +488,44 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateEndpointRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_ENDPOINT))) .addMethod( getGetEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetEndpointRequest, com.google.cloud.aiplatform.v1.Endpoint>(this, METHODID_GET_ENDPOINT))) .addMethod( getListEndpointsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListEndpointsRequest, com.google.cloud.aiplatform.v1.ListEndpointsResponse>( this, METHODID_LIST_ENDPOINTS))) .addMethod( getUpdateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateEndpointRequest, com.google.cloud.aiplatform.v1.Endpoint>(this, METHODID_UPDATE_ENDPOINT))) .addMethod( getDeleteEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteEndpointRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_ENDPOINT))) .addMethod( getDeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeployModelRequest, com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) .addMethod( getUndeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UndeployModelRequest, com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) @@ -553,7 +555,7 @@ protected EndpointServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions public void createEndpoint( com.google.cloud.aiplatform.v1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -569,7 +571,7 @@ public void createEndpoint( public void getEndpoint( com.google.cloud.aiplatform.v1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request, responseObserver); @@ -586,7 +588,7 @@ public void listEndpoints( com.google.cloud.aiplatform.v1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request, responseObserver); @@ -602,7 +604,7 @@ public void listEndpoints( public void updateEndpoint( com.google.cloud.aiplatform.v1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -618,7 +620,7 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.aiplatform.v1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request, responseObserver); @@ -634,7 +636,7 @@ public void deleteEndpoint( public void deployModel( com.google.cloud.aiplatform.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); @@ -651,7 +653,7 @@ public void deployModel( public void undeployModel( com.google.cloud.aiplatform.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, responseObserver); @@ -680,7 +682,8 @@ protected EndpointServiceBlockingStub build( */ public com.google.longrunning.Operation createEndpoint( com.google.cloud.aiplatform.v1.CreateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getCreateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } /** @@ -692,7 +695,8 @@ public com.google.longrunning.Operation createEndpoint( */ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint( com.google.cloud.aiplatform.v1.GetEndpointRequest request) { - return blockingUnaryCall(getChannel(), getGetEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); } /** @@ -704,7 +708,8 @@ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint( */ public com.google.cloud.aiplatform.v1.ListEndpointsResponse listEndpoints( com.google.cloud.aiplatform.v1.ListEndpointsRequest request) { - return blockingUnaryCall(getChannel(), getListEndpointsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); } /** @@ -716,7 +721,8 @@ public com.google.cloud.aiplatform.v1.ListEndpointsResponse listEndpoints( */ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( com.google.cloud.aiplatform.v1.UpdateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } /** @@ -728,7 +734,8 @@ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( */ public com.google.longrunning.Operation deleteEndpoint( com.google.cloud.aiplatform.v1.DeleteEndpointRequest request) { - return blockingUnaryCall(getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } /** @@ -740,7 +747,8 @@ public com.google.longrunning.Operation deleteEndpoint( */ public com.google.longrunning.Operation deployModel( com.google.cloud.aiplatform.v1.DeployModelRequest request) { - return blockingUnaryCall(getChannel(), getDeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); } /** @@ -753,7 +761,8 @@ public com.google.longrunning.Operation deployModel( */ public com.google.longrunning.Operation undeployModel( com.google.cloud.aiplatform.v1.UndeployModelRequest request) { - return blockingUnaryCall(getChannel(), getUndeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), getCallOptions(), request); } } @@ -779,7 +788,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createEndpoint(com.google.cloud.aiplatform.v1.CreateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); } @@ -793,7 +802,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.Endpoint> getEndpoint(com.google.cloud.aiplatform.v1.GetEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); } @@ -807,7 +816,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListEndpointsResponse> listEndpoints(com.google.cloud.aiplatform.v1.ListEndpointsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); } @@ -821,7 +830,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.Endpoint> updateEndpoint(com.google.cloud.aiplatform.v1.UpdateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } @@ -834,7 +843,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEndpoint(com.google.cloud.aiplatform.v1.DeleteEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request); } @@ -847,7 +856,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deployModel(com.google.cloud.aiplatform.v1.DeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); } @@ -861,7 +870,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture undeployModel(com.google.cloud.aiplatform.v1.UndeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java index db737bf99..a96d0588d 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java @@ -16,17 +16,12 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for creating and managing AI Platform's jobs.
+ * A service for creating and managing Vertex AI's jobs.
  * 
*/ @javax.annotation.Generated( @@ -1044,7 +1039,7 @@ public JobServiceFutureStub newStub( * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public abstract static class JobServiceImplBase implements io.grpc.BindableService { @@ -1060,7 +1055,8 @@ public abstract static class JobServiceImplBase implements io.grpc.BindableServi public void createCustomJob( com.google.cloud.aiplatform.v1.CreateCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomJobMethod(), responseObserver); } /** @@ -1073,7 +1069,8 @@ public void createCustomJob( public void getCustomJob( com.google.cloud.aiplatform.v1.GetCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomJobMethod(), responseObserver); } /** @@ -1087,7 +1084,8 @@ public void listCustomJobs( com.google.cloud.aiplatform.v1.ListCustomJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListCustomJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomJobsMethod(), responseObserver); } /** @@ -1100,7 +1098,8 @@ public void listCustomJobs( public void deleteCustomJob( com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomJobMethod(), responseObserver); } /** @@ -1122,7 +1121,8 @@ public void deleteCustomJob( public void cancelCustomJob( com.google.cloud.aiplatform.v1.CancelCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelCustomJobMethod(), responseObserver); } /** @@ -1136,7 +1136,8 @@ public void createDataLabelingJob( com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataLabelingJobMethod(), responseObserver); } /** @@ -1150,7 +1151,8 @@ public void getDataLabelingJob( com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataLabelingJobMethod(), responseObserver); } /** @@ -1164,7 +1166,8 @@ public void listDataLabelingJobs( com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDataLabelingJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataLabelingJobsMethod(), responseObserver); } /** @@ -1177,7 +1180,8 @@ public void listDataLabelingJobs( public void deleteDataLabelingJob( com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataLabelingJobMethod(), responseObserver); } /** @@ -1190,7 +1194,8 @@ public void deleteDataLabelingJob( public void cancelDataLabelingJob( com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelDataLabelingJobMethod(), responseObserver); } /** @@ -1204,7 +1209,8 @@ public void createHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1218,7 +1224,8 @@ public void getHyperparameterTuningJob( com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1233,7 +1240,8 @@ public void listHyperparameterTuningJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListHyperparameterTuningJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHyperparameterTuningJobsMethod(), responseObserver); } /** @@ -1246,7 +1254,8 @@ public void listHyperparameterTuningJobs( public void deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1268,7 +1277,8 @@ public void deleteHyperparameterTuningJob( public void cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1283,7 +1293,8 @@ public void createBatchPredictionJob( com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBatchPredictionJobMethod(), responseObserver); } /** @@ -1297,7 +1308,8 @@ public void getBatchPredictionJob( com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBatchPredictionJobMethod(), responseObserver); } /** @@ -1311,7 +1323,8 @@ public void listBatchPredictionJobs( com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListBatchPredictionJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBatchPredictionJobsMethod(), responseObserver); } /** @@ -1325,7 +1338,8 @@ public void listBatchPredictionJobs( public void deleteBatchPredictionJob( com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBatchPredictionJobMethod(), responseObserver); } /** @@ -1346,7 +1360,8 @@ public void deleteBatchPredictionJob( public void cancelBatchPredictionJob( com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelBatchPredictionJobMethod(), responseObserver); } @java.lang.Override @@ -1354,133 +1369,133 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateCustomJobRequest, com.google.cloud.aiplatform.v1.CustomJob>(this, METHODID_CREATE_CUSTOM_JOB))) .addMethod( getGetCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetCustomJobRequest, com.google.cloud.aiplatform.v1.CustomJob>(this, METHODID_GET_CUSTOM_JOB))) .addMethod( getListCustomJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListCustomJobsRequest, com.google.cloud.aiplatform.v1.ListCustomJobsResponse>( this, METHODID_LIST_CUSTOM_JOBS))) .addMethod( getDeleteCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteCustomJobRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_JOB))) .addMethod( getCancelCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelCustomJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_CUSTOM_JOB))) .addMethod( getCreateDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest, com.google.cloud.aiplatform.v1.DataLabelingJob>( this, METHODID_CREATE_DATA_LABELING_JOB))) .addMethod( getGetDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest, com.google.cloud.aiplatform.v1.DataLabelingJob>( this, METHODID_GET_DATA_LABELING_JOB))) .addMethod( getListDataLabelingJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest, com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse>( this, METHODID_LIST_DATA_LABELING_JOBS))) .addMethod( getDeleteDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATA_LABELING_JOB))) .addMethod( getCancelDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_DATA_LABELING_JOB))) .addMethod( getCreateHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest, com.google.cloud.aiplatform.v1.HyperparameterTuningJob>( this, METHODID_CREATE_HYPERPARAMETER_TUNING_JOB))) .addMethod( getGetHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest, com.google.cloud.aiplatform.v1.HyperparameterTuningJob>( this, METHODID_GET_HYPERPARAMETER_TUNING_JOB))) .addMethod( getListHyperparameterTuningJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest, com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse>( this, METHODID_LIST_HYPERPARAMETER_TUNING_JOBS))) .addMethod( getDeleteHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest, com.google.longrunning.Operation>( this, METHODID_DELETE_HYPERPARAMETER_TUNING_JOB))) .addMethod( getCancelHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_HYPERPARAMETER_TUNING_JOB))) .addMethod( getCreateBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, com.google.cloud.aiplatform.v1.BatchPredictionJob>( this, METHODID_CREATE_BATCH_PREDICTION_JOB))) .addMethod( getGetBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, com.google.cloud.aiplatform.v1.BatchPredictionJob>( this, METHODID_GET_BATCH_PREDICTION_JOB))) .addMethod( getListBatchPredictionJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse>( this, METHODID_LIST_BATCH_PREDICTION_JOBS))) .addMethod( getDeleteBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, com.google.longrunning.Operation>( this, METHODID_DELETE_BATCH_PREDICTION_JOB))) .addMethod( getCancelBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_BATCH_PREDICTION_JOB))) @@ -1492,7 +1507,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceStub extends io.grpc.stub.AbstractAsyncStub { @@ -1516,7 +1531,7 @@ protected JobServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions call public void createCustomJob( com.google.cloud.aiplatform.v1.CreateCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1532,7 +1547,7 @@ public void createCustomJob( public void getCustomJob( com.google.cloud.aiplatform.v1.GetCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1549,7 +1564,7 @@ public void listCustomJobs( com.google.cloud.aiplatform.v1.ListCustomJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListCustomJobsMethod(), getCallOptions()), request, responseObserver); @@ -1565,7 +1580,7 @@ public void listCustomJobs( public void deleteCustomJob( com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1590,7 +1605,7 @@ public void deleteCustomJob( public void cancelCustomJob( com.google.cloud.aiplatform.v1.CancelCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1607,7 +1622,7 @@ public void createDataLabelingJob( com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1624,7 +1639,7 @@ public void getDataLabelingJob( com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1641,7 +1656,7 @@ public void listDataLabelingJobs( com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDataLabelingJobsMethod(), getCallOptions()), request, responseObserver); @@ -1657,7 +1672,7 @@ public void listDataLabelingJobs( public void deleteDataLabelingJob( com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1673,7 +1688,7 @@ public void deleteDataLabelingJob( public void cancelDataLabelingJob( com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1690,7 +1705,7 @@ public void createHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1707,7 +1722,7 @@ public void getHyperparameterTuningJob( com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1725,7 +1740,7 @@ public void listHyperparameterTuningJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), request, responseObserver); @@ -1741,7 +1756,7 @@ public void listHyperparameterTuningJobs( public void deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1766,7 +1781,7 @@ public void deleteHyperparameterTuningJob( public void cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1784,7 +1799,7 @@ public void createBatchPredictionJob( com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1801,7 +1816,7 @@ public void getBatchPredictionJob( com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1818,7 +1833,7 @@ public void listBatchPredictionJobs( com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), request, responseObserver); @@ -1835,7 +1850,7 @@ public void listBatchPredictionJobs( public void deleteBatchPredictionJob( com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1859,7 +1874,7 @@ public void deleteBatchPredictionJob( public void cancelBatchPredictionJob( com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); @@ -1870,7 +1885,7 @@ public void cancelBatchPredictionJob( * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceBlockingStub @@ -1895,7 +1910,8 @@ protected JobServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1.CustomJob createCustomJob( com.google.cloud.aiplatform.v1.CreateCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); } /** @@ -1907,7 +1923,8 @@ public com.google.cloud.aiplatform.v1.CustomJob createCustomJob( */ public com.google.cloud.aiplatform.v1.CustomJob getCustomJob( com.google.cloud.aiplatform.v1.GetCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getGetCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomJobMethod(), getCallOptions(), request); } /** @@ -1919,7 +1936,8 @@ public com.google.cloud.aiplatform.v1.CustomJob getCustomJob( */ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse listCustomJobs( com.google.cloud.aiplatform.v1.ListCustomJobsRequest request) { - return blockingUnaryCall(getChannel(), getListCustomJobsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomJobsMethod(), getCallOptions(), request); } /** @@ -1931,7 +1949,8 @@ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse listCustomJobs( */ public com.google.longrunning.Operation deleteCustomJob( com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); } /** @@ -1952,7 +1971,8 @@ public com.google.longrunning.Operation deleteCustomJob( */ public com.google.protobuf.Empty cancelCustomJob( com.google.cloud.aiplatform.v1.CancelCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); } /** @@ -1964,7 +1984,7 @@ public com.google.protobuf.Empty cancelCustomJob( */ public com.google.cloud.aiplatform.v1.DataLabelingJob createDataLabelingJob( com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDataLabelingJobMethod(), getCallOptions(), request); } @@ -1977,7 +1997,7 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob createDataLabelingJob( */ public com.google.cloud.aiplatform.v1.DataLabelingJob getDataLabelingJob( com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataLabelingJobMethod(), getCallOptions(), request); } @@ -1990,7 +2010,7 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob getDataLabelingJob( */ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse listDataLabelingJobs( com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDataLabelingJobsMethod(), getCallOptions(), request); } @@ -2003,7 +2023,7 @@ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse listDataLabel */ public com.google.longrunning.Operation deleteDataLabelingJob( com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDataLabelingJobMethod(), getCallOptions(), request); } @@ -2016,7 +2036,7 @@ public com.google.longrunning.Operation deleteDataLabelingJob( */ public com.google.protobuf.Empty cancelDataLabelingJob( com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelDataLabelingJobMethod(), getCallOptions(), request); } @@ -2029,7 +2049,7 @@ public com.google.protobuf.Empty cancelDataLabelingJob( */ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob createHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2042,7 +2062,7 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob createHyperparamet */ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterTuningJob( com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2056,7 +2076,7 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse listHyperparameterTuningJobs( com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListHyperparameterTuningJobsMethod(), getCallOptions(), request); } @@ -2069,7 +2089,7 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT */ public com.google.longrunning.Operation deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2091,7 +2111,7 @@ public com.google.longrunning.Operation deleteHyperparameterTuningJob( */ public com.google.protobuf.Empty cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2105,7 +2125,7 @@ public com.google.protobuf.Empty cancelHyperparameterTuningJob( */ public com.google.cloud.aiplatform.v1.BatchPredictionJob createBatchPredictionJob( com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2118,7 +2138,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob createBatchPredictionJo */ public com.google.cloud.aiplatform.v1.BatchPredictionJob getBatchPredictionJob( com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2131,7 +2151,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob getBatchPredictionJob( */ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse listBatchPredictionJobs( com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBatchPredictionJobsMethod(), getCallOptions(), request); } @@ -2145,7 +2165,7 @@ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse listBatchP */ public com.google.longrunning.Operation deleteBatchPredictionJob( com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2166,7 +2186,7 @@ public com.google.longrunning.Operation deleteBatchPredictionJob( */ public com.google.protobuf.Empty cancelBatchPredictionJob( com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelBatchPredictionJobMethod(), getCallOptions(), request); } } @@ -2175,7 +2195,7 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceFutureStub @@ -2200,7 +2220,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.CustomJob> createCustomJob(com.google.cloud.aiplatform.v1.CreateCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCustomJobMethod(), getCallOptions()), request); } @@ -2214,7 +2234,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.CustomJob> getCustomJob(com.google.cloud.aiplatform.v1.GetCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCustomJobMethod(), getCallOptions()), request); } @@ -2228,7 +2248,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListCustomJobsResponse> listCustomJobs(com.google.cloud.aiplatform.v1.ListCustomJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCustomJobsMethod(), getCallOptions()), request); } @@ -2241,7 +2261,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteCustomJob(com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteCustomJobMethod(), getCallOptions()), request); } @@ -2263,7 +2283,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture cancelCustomJob(com.google.cloud.aiplatform.v1.CancelCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelCustomJobMethod(), getCallOptions()), request); } @@ -2277,7 +2297,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.DataLabelingJob> createDataLabelingJob(com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDataLabelingJobMethod(), getCallOptions()), request); } @@ -2291,7 +2311,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.DataLabelingJob> getDataLabelingJob(com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataLabelingJobMethod(), getCallOptions()), request); } @@ -2305,7 +2325,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse> listDataLabelingJobs(com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDataLabelingJobsMethod(), getCallOptions()), request); } @@ -2318,7 +2338,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteDataLabelingJob(com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDataLabelingJobMethod(), getCallOptions()), request); } @@ -2331,7 +2351,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture cancelDataLabelingJob(com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelDataLabelingJobMethod(), getCallOptions()), request); } @@ -2346,7 +2366,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1.HyperparameterTuningJob> createHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2362,7 +2382,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1.HyperparameterTuningJob> getHyperparameterTuningJob( com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2377,7 +2397,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse> listHyperparameterTuningJobs( com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), request); } @@ -2391,7 +2411,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2415,7 +2435,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2432,7 +2452,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1.BatchPredictionJob> createBatchPredictionJob( com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2446,7 +2466,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.BatchPredictionJob> getBatchPredictionJob(com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2461,7 +2481,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse> listBatchPredictionJobs( com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), request); } @@ -2476,7 +2496,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteBatchPredictionJob( com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2498,7 +2518,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture cancelBatchPredictionJob( com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java index 84a8b6a8e..c05bd7925 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java @@ -16,18 +16,13 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
  * A service that migrates resources from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
  * 
*/ @javax.annotation.Generated( @@ -187,7 +182,7 @@ public MigrationServiceFutureStub newStub( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public abstract static class MigrationServiceImplBase implements io.grpc.BindableService { @@ -198,7 +193,7 @@ public abstract static class MigrationServiceImplBase implements io.grpc.Bindabl *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public void searchMigratableResources( @@ -206,7 +201,8 @@ public void searchMigratableResources( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getSearchMigratableResourcesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchMigratableResourcesMethod(), responseObserver); } /** @@ -214,13 +210,14 @@ public void searchMigratableResources( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public void batchMigrateResources( com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchMigrateResourcesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchMigrateResourcesMethod(), responseObserver); } @java.lang.Override @@ -228,14 +225,14 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSearchMigratableResourcesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse>( this, METHODID_SEARCH_MIGRATABLE_RESOURCES))) .addMethod( getBatchMigrateResourcesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_MIGRATE_RESOURCES))) @@ -248,7 +245,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceStub @@ -268,7 +265,7 @@ protected MigrationServiceStub build(io.grpc.Channel channel, io.grpc.CallOption *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public void searchMigratableResources( @@ -276,7 +273,7 @@ public void searchMigratableResources( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchMigratableResourcesMethod(), getCallOptions()), request, responseObserver); @@ -287,13 +284,13 @@ public void searchMigratableResources( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public void batchMigrateResources( com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchMigrateResourcesMethod(), getCallOptions()), request, responseObserver); @@ -305,7 +302,7 @@ public void batchMigrateResources( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceBlockingStub @@ -326,13 +323,13 @@ protected MigrationServiceBlockingStub build( *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse searchMigratableResources( com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMigratableResourcesMethod(), getCallOptions(), request); } @@ -341,12 +338,12 @@ protected MigrationServiceBlockingStub build( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public com.google.longrunning.Operation batchMigrateResources( com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchMigrateResourcesMethod(), getCallOptions(), request); } } @@ -356,7 +353,7 @@ public com.google.longrunning.Operation batchMigrateResources( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceFutureStub @@ -377,14 +374,14 @@ protected MigrationServiceFutureStub build( *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse> searchMigratableResources( com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchMigratableResourcesMethod(), getCallOptions()), request); } @@ -393,12 +390,12 @@ protected MigrationServiceFutureStub build( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture batchMigrateResources(com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchMigrateResourcesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java index acf40fbbf..7b7d55b81 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java @@ -16,17 +16,12 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for managing AI Platform's machine learning Models.
+ * A service for managing Vertex AI's machine learning Models.
  * 
*/ @javax.annotation.Generated( @@ -535,7 +530,7 @@ public ModelServiceFutureStub newStub( * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public abstract static class ModelServiceImplBase implements io.grpc.BindableService { @@ -544,13 +539,14 @@ public abstract static class ModelServiceImplBase implements io.grpc.BindableSer * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public void uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUploadModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUploadModelMethod(), responseObserver); } /** @@ -563,7 +559,7 @@ public void uploadModel( public void getModel( com.google.cloud.aiplatform.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); } /** @@ -577,7 +573,7 @@ public void listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } /** @@ -590,7 +586,8 @@ public void listModels( public void updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateModelMethod(), responseObserver); } /** @@ -605,7 +602,8 @@ public void updateModel( public void deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); } /** @@ -620,7 +618,8 @@ public void deleteModel( public void exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), responseObserver); } /** @@ -634,7 +633,8 @@ public void getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); } /** @@ -648,7 +648,8 @@ public void listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); } /** @@ -662,7 +663,8 @@ public void getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationSliceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationSliceMethod(), responseObserver); } /** @@ -677,7 +679,8 @@ public void listModelEvaluationSlices( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationSlicesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationSlicesMethod(), responseObserver); } @java.lang.Override @@ -685,65 +688,65 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getUploadModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UploadModelRequest, com.google.longrunning.Operation>(this, METHODID_UPLOAD_MODEL))) .addMethod( getGetModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetModelRequest, com.google.cloud.aiplatform.v1.Model>(this, METHODID_GET_MODEL))) .addMethod( getListModelsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListModelsRequest, com.google.cloud.aiplatform.v1.ListModelsResponse>( this, METHODID_LIST_MODELS))) .addMethod( getUpdateModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model>(this, METHODID_UPDATE_MODEL))) .addMethod( getDeleteModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) .addMethod( getExportModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ExportModelRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) .addMethod( getGetModelEvaluationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, com.google.cloud.aiplatform.v1.ModelEvaluation>( this, METHODID_GET_MODEL_EVALUATION))) .addMethod( getListModelEvaluationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse>( this, METHODID_LIST_MODEL_EVALUATIONS))) .addMethod( getGetModelEvaluationSliceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, com.google.cloud.aiplatform.v1.ModelEvaluationSlice>( this, METHODID_GET_MODEL_EVALUATION_SLICE))) .addMethod( getListModelEvaluationSlicesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse>( @@ -756,7 +759,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceStub @@ -774,13 +777,13 @@ protected ModelServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public void uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUploadModelMethod(), getCallOptions()), request, responseObserver); @@ -796,7 +799,7 @@ public void uploadModel( public void getModel( com.google.cloud.aiplatform.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); } @@ -811,7 +814,7 @@ public void listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } @@ -825,7 +828,7 @@ public void listModels( public void updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); @@ -843,7 +846,7 @@ public void updateModel( public void deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); @@ -861,7 +864,7 @@ public void deleteModel( public void exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); @@ -878,7 +881,7 @@ public void getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); @@ -895,7 +898,7 @@ public void listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); @@ -912,7 +915,7 @@ public void getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), request, responseObserver); @@ -930,7 +933,7 @@ public void listModelEvaluationSlices( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), request, responseObserver); @@ -941,7 +944,7 @@ public void listModelEvaluationSlices( * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceBlockingStub @@ -960,12 +963,13 @@ protected ModelServiceBlockingStub build( * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public com.google.longrunning.Operation uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request) { - return blockingUnaryCall(getChannel(), getUploadModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadModelMethod(), getCallOptions(), request); } /** @@ -977,7 +981,8 @@ public com.google.longrunning.Operation uploadModel( */ public com.google.cloud.aiplatform.v1.Model getModel( com.google.cloud.aiplatform.v1.GetModelRequest request) { - return blockingUnaryCall(getChannel(), getGetModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); } /** @@ -989,7 +994,8 @@ public com.google.cloud.aiplatform.v1.Model getModel( */ public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request) { - return blockingUnaryCall(getChannel(), getListModelsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); } /** @@ -1001,7 +1007,8 @@ public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( */ public com.google.cloud.aiplatform.v1.Model updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request) { - return blockingUnaryCall(getChannel(), getUpdateModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelMethod(), getCallOptions(), request); } /** @@ -1015,7 +1022,8 @@ public com.google.cloud.aiplatform.v1.Model updateModel( */ public com.google.longrunning.Operation deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request) { - return blockingUnaryCall(getChannel(), getDeleteModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); } /** @@ -1029,7 +1037,8 @@ public com.google.longrunning.Operation deleteModel( */ public com.google.longrunning.Operation exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request) { - return blockingUnaryCall(getChannel(), getExportModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); } /** @@ -1041,7 +1050,7 @@ public com.google.longrunning.Operation exportModel( */ public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -1054,7 +1063,7 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation( */ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } @@ -1067,7 +1076,7 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse listModelEval */ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationSliceMethod(), getCallOptions(), request); } @@ -1081,7 +1090,7 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSli public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationSlicesMethod(), getCallOptions(), request); } } @@ -1090,7 +1099,7 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSli * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceFutureStub @@ -1109,12 +1118,12 @@ protected ModelServiceFutureStub build( * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture uploadModel(com.google.cloud.aiplatform.v1.UploadModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUploadModelMethod(), getCallOptions()), request); } @@ -1127,7 +1136,8 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getModel(com.google.cloud.aiplatform.v1.GetModelRequest request) { - return futureUnaryCall(getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); } /** @@ -1140,7 +1150,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListModelsResponse> listModels(com.google.cloud.aiplatform.v1.ListModelsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } @@ -1153,7 +1163,7 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateModel(com.google.cloud.aiplatform.v1.UpdateModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); } @@ -1168,7 +1178,7 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteModel(com.google.cloud.aiplatform.v1.DeleteModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } @@ -1183,7 +1193,7 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture exportModel(com.google.cloud.aiplatform.v1.ExportModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request); } @@ -1197,7 +1207,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ModelEvaluation> getModelEvaluation(com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); } @@ -1211,7 +1221,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); } @@ -1226,7 +1236,7 @@ protected ModelServiceFutureStub build( com.google.cloud.aiplatform.v1.ModelEvaluationSlice> getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), request); } @@ -1241,7 +1251,7 @@ protected ModelServiceFutureStub build( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), request); } } 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 8dc0d11f3..6f050f24c 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 @@ -16,17 +16,14 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for creating and managing AI Platform's pipelines.
+ * A service for creating and managing Vertex AI's pipelines. This includes both
+ * `TrainingPipeline` resources (used for AutoML and custom training) and
+ * `PipelineJob` resources (used for Vertex Pipelines).
  * 
*/ @javax.annotation.Generated( @@ -326,7 +323,9 @@ public PipelineServiceFutureStub newStub( * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public abstract static class PipelineServiceImplBase implements io.grpc.BindableService { @@ -343,7 +342,8 @@ public void createTrainingPipeline( com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTrainingPipelineMethod(), responseObserver); } /** @@ -357,7 +357,8 @@ public void getTrainingPipeline( com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTrainingPipelineMethod(), responseObserver); } /** @@ -371,7 +372,8 @@ public void listTrainingPipelines( com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTrainingPipelinesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTrainingPipelinesMethod(), responseObserver); } /** @@ -384,7 +386,8 @@ public void listTrainingPipelines( public void deleteTrainingPipeline( com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTrainingPipelineMethod(), responseObserver); } /** @@ -406,7 +409,8 @@ public void deleteTrainingPipeline( public void cancelTrainingPipeline( com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelTrainingPipelineMethod(), responseObserver); } @java.lang.Override @@ -414,34 +418,34 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, com.google.cloud.aiplatform.v1.TrainingPipeline>( this, METHODID_CREATE_TRAINING_PIPELINE))) .addMethod( getGetTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, com.google.cloud.aiplatform.v1.TrainingPipeline>( this, METHODID_GET_TRAINING_PIPELINE))) .addMethod( getListTrainingPipelinesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse>( this, METHODID_LIST_TRAINING_PIPELINES))) .addMethod( getDeleteTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_TRAINING_PIPELINE))) .addMethod( getCancelTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_TRAINING_PIPELINE))) @@ -453,7 +457,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceStub @@ -479,7 +485,7 @@ public void createTrainingPipeline( com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -496,7 +502,7 @@ public void getTrainingPipeline( com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -513,7 +519,7 @@ public void listTrainingPipelines( com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTrainingPipelinesMethod(), getCallOptions()), request, responseObserver); @@ -529,7 +535,7 @@ public void listTrainingPipelines( public void deleteTrainingPipeline( com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -554,7 +560,7 @@ public void deleteTrainingPipeline( public void cancelTrainingPipeline( com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -565,7 +571,9 @@ public void cancelTrainingPipeline( * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceBlockingStub @@ -590,7 +598,7 @@ protected PipelineServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1.TrainingPipeline createTrainingPipeline( com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateTrainingPipelineMethod(), getCallOptions(), request); } @@ -603,7 +611,7 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline createTrainingPipeline( */ public com.google.cloud.aiplatform.v1.TrainingPipeline getTrainingPipeline( com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTrainingPipelineMethod(), getCallOptions(), request); } @@ -616,7 +624,7 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline getTrainingPipeline( */ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse listTrainingPipelines( com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTrainingPipelinesMethod(), getCallOptions(), request); } @@ -629,7 +637,7 @@ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse listTraining */ public com.google.longrunning.Operation deleteTrainingPipeline( com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteTrainingPipelineMethod(), getCallOptions(), request); } @@ -651,7 +659,7 @@ public com.google.longrunning.Operation deleteTrainingPipeline( */ public com.google.protobuf.Empty cancelTrainingPipeline( com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelTrainingPipelineMethod(), getCallOptions(), request); } } @@ -660,7 +668,9 @@ public com.google.protobuf.Empty cancelTrainingPipeline( * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceFutureStub @@ -687,7 +697,7 @@ protected PipelineServiceFutureStub build( com.google.cloud.aiplatform.v1.TrainingPipeline> createTrainingPipeline( com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTrainingPipelineMethod(), getCallOptions()), request); } @@ -701,7 +711,7 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.TrainingPipeline> getTrainingPipeline(com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTrainingPipelineMethod(), getCallOptions()), request); } @@ -715,7 +725,7 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse> listTrainingPipelines(com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTrainingPipelinesMethod(), getCallOptions()), request); } @@ -729,7 +739,7 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteTrainingPipeline( com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTrainingPipelineMethod(), getCallOptions()), request); } @@ -752,7 +762,7 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture cancelTrainingPipeline( com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelTrainingPipelineMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java index 1be987274..1732a4ae4 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -144,7 +139,7 @@ public void predict( com.google.cloud.aiplatform.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } @java.lang.Override @@ -152,7 +147,7 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.PredictRequest, com.google.cloud.aiplatform.v1.PredictResponse>(this, METHODID_PREDICT))) @@ -190,7 +185,7 @@ public void predict( com.google.cloud.aiplatform.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } } @@ -224,7 +219,8 @@ protected PredictionServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1.PredictResponse predict( com.google.cloud.aiplatform.v1.PredictRequest request) { - return blockingUnaryCall(getChannel(), getPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); } } @@ -257,7 +253,8 @@ protected PredictionServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.PredictResponse> predict(com.google.cloud.aiplatform.v1.PredictRequest request) { - return futureUnaryCall(getChannel().newCall(getPredictMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java index 8eb3880f4..d485315d4 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -357,7 +352,8 @@ public abstract static class SpecialistPoolServiceImplBase implements io.grpc.Bi public void createSpecialistPool( com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpecialistPoolMethod(), responseObserver); } /** @@ -371,7 +367,8 @@ public void getSpecialistPool( com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSpecialistPoolMethod(), responseObserver); } /** @@ -385,7 +382,8 @@ public void listSpecialistPools( com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSpecialistPoolsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSpecialistPoolsMethod(), responseObserver); } /** @@ -398,7 +396,8 @@ public void listSpecialistPools( public void deleteSpecialistPool( com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpecialistPoolMethod(), responseObserver); } /** @@ -411,7 +410,8 @@ public void deleteSpecialistPool( public void updateSpecialistPool( com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpecialistPoolMethod(), responseObserver); } @java.lang.Override @@ -419,33 +419,33 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_SPECIALIST_POOL))) .addMethod( getGetSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest, com.google.cloud.aiplatform.v1.SpecialistPool>( this, METHODID_GET_SPECIALIST_POOL))) .addMethod( getListSpecialistPoolsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest, com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse>( this, METHODID_LIST_SPECIALIST_POOLS))) .addMethod( getDeleteSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_SPECIALIST_POOL))) .addMethod( getUpdateSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_SPECIALIST_POOL))) @@ -487,7 +487,7 @@ protected SpecialistPoolServiceStub build( public void createSpecialistPool( com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -504,7 +504,7 @@ public void getSpecialistPool( com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -521,7 +521,7 @@ public void listSpecialistPools( com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSpecialistPoolsMethod(), getCallOptions()), request, responseObserver); @@ -537,7 +537,7 @@ public void listSpecialistPools( public void deleteSpecialistPool( com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -553,7 +553,7 @@ public void deleteSpecialistPool( public void updateSpecialistPool( com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -594,7 +594,7 @@ protected SpecialistPoolServiceBlockingStub build( */ public com.google.longrunning.Operation createSpecialistPool( com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSpecialistPoolMethod(), getCallOptions(), request); } @@ -607,7 +607,7 @@ public com.google.longrunning.Operation createSpecialistPool( */ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool( com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSpecialistPoolMethod(), getCallOptions(), request); } @@ -620,7 +620,7 @@ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool( */ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse listSpecialistPools( com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSpecialistPoolsMethod(), getCallOptions(), request); } @@ -633,7 +633,7 @@ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse listSpecialist */ public com.google.longrunning.Operation deleteSpecialistPool( com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSpecialistPoolMethod(), getCallOptions(), request); } @@ -646,7 +646,7 @@ public com.google.longrunning.Operation deleteSpecialistPool( */ public com.google.longrunning.Operation updateSpecialistPool( com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSpecialistPoolMethod(), getCallOptions(), request); } } @@ -685,7 +685,7 @@ protected SpecialistPoolServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createSpecialistPool(com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSpecialistPoolMethod(), getCallOptions()), request); } @@ -699,7 +699,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.SpecialistPool> getSpecialistPool(com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSpecialistPoolMethod(), getCallOptions()), request); } @@ -713,7 +713,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse> listSpecialistPools(com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSpecialistPoolsMethod(), getCallOptions()), request); } @@ -726,7 +726,7 @@ protected SpecialistPoolServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteSpecialistPool(com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSpecialistPoolMethod(), getCallOptions()), request); } @@ -739,7 +739,7 @@ protected SpecialistPoolServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateSpecialistPool(com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSpecialistPoolMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 0f9a7bc13..b4cf698c6 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.4.1 + 0.5.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 1.0.0 diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java index 151c530e4..c3af44294 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ @javax.annotation.Generated( @@ -542,7 +537,8 @@ public abstract static class DatasetServiceImplBase implements io.grpc.BindableS public void createDataset( com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); } /** @@ -555,7 +551,7 @@ public void createDataset( public void getDataset( com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } /** @@ -568,7 +564,8 @@ public void getDataset( public void updateDataset( com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); } /** @@ -582,7 +579,8 @@ public void listDatasets( com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); } /** @@ -595,7 +593,8 @@ public void listDatasets( public void deleteDataset( com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); } /** @@ -608,7 +607,7 @@ public void deleteDataset( public void importData( com.google.cloud.aiplatform.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); } /** @@ -621,7 +620,7 @@ public void importData( public void exportData( com.google.cloud.aiplatform.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } /** @@ -635,7 +634,8 @@ public void listDataItems( com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDataItemsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataItemsMethod(), responseObserver); } /** @@ -649,7 +649,8 @@ public void getAnnotationSpec( com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); } /** @@ -663,7 +664,8 @@ public void listAnnotations( com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAnnotationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnnotationsMethod(), responseObserver); } @java.lang.Override @@ -671,64 +673,64 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_DATASET))) .addMethod( getGetDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetDatasetRequest, com.google.cloud.aiplatform.v1beta1.Dataset>(this, METHODID_GET_DATASET))) .addMethod( getUpdateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, com.google.cloud.aiplatform.v1beta1.Dataset>(this, METHODID_UPDATE_DATASET))) .addMethod( getListDatasetsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest, com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse>( this, METHODID_LIST_DATASETS))) .addMethod( getDeleteDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) .addMethod( getImportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ImportDataRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) .addMethod( getExportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ExportDataRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) .addMethod( getListDataItemsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest, com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse>( this, METHODID_LIST_DATA_ITEMS))) .addMethod( getGetAnnotationSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, com.google.cloud.aiplatform.v1beta1.AnnotationSpec>( this, METHODID_GET_ANNOTATION_SPEC))) .addMethod( getListAnnotationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse>( @@ -759,7 +761,7 @@ protected DatasetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions public void createDataset( com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -775,7 +777,7 @@ public void createDataset( public void getDataset( com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } @@ -789,7 +791,7 @@ public void getDataset( public void updateDataset( com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -806,7 +808,7 @@ public void listDatasets( com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); @@ -822,7 +824,7 @@ public void listDatasets( public void deleteDataset( com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); @@ -838,7 +840,7 @@ public void deleteDataset( public void importData( com.google.cloud.aiplatform.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); } @@ -852,7 +854,7 @@ public void importData( public void exportData( com.google.cloud.aiplatform.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } @@ -867,7 +869,7 @@ public void listDataItems( com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request, responseObserver); @@ -884,7 +886,7 @@ public void getAnnotationSpec( com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); @@ -901,7 +903,7 @@ public void listAnnotations( com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAnnotationsMethod(), getCallOptions()), request, responseObserver); @@ -930,7 +932,8 @@ protected DatasetServiceBlockingStub build( */ public com.google.longrunning.Operation createDataset( com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } /** @@ -942,7 +945,8 @@ public com.google.longrunning.Operation createDataset( */ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset( com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request) { - return blockingUnaryCall(getChannel(), getGetDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); } /** @@ -954,7 +958,8 @@ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset( */ public com.google.cloud.aiplatform.v1beta1.Dataset updateDataset( com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } /** @@ -966,7 +971,8 @@ public com.google.cloud.aiplatform.v1beta1.Dataset updateDataset( */ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse listDatasets( com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request) { - return blockingUnaryCall(getChannel(), getListDatasetsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); } /** @@ -978,7 +984,8 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse listDatasets( */ public com.google.longrunning.Operation deleteDataset( com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } /** @@ -990,7 +997,8 @@ public com.google.longrunning.Operation deleteDataset( */ public com.google.longrunning.Operation importData( com.google.cloud.aiplatform.v1beta1.ImportDataRequest request) { - return blockingUnaryCall(getChannel(), getImportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); } /** @@ -1002,7 +1010,8 @@ public com.google.longrunning.Operation importData( */ public com.google.longrunning.Operation exportData( com.google.cloud.aiplatform.v1beta1.ExportDataRequest request) { - return blockingUnaryCall(getChannel(), getExportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); } /** @@ -1014,7 +1023,8 @@ public com.google.longrunning.Operation exportData( */ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request) { - return blockingUnaryCall(getChannel(), getListDataItemsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataItemsMethod(), getCallOptions(), request); } /** @@ -1026,7 +1036,7 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( */ public com.google.cloud.aiplatform.v1beta1.AnnotationSpec getAnnotationSpec( com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -1039,7 +1049,8 @@ public com.google.cloud.aiplatform.v1beta1.AnnotationSpec getAnnotationSpec( */ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse listAnnotations( com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request) { - return blockingUnaryCall(getChannel(), getListAnnotationsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotationsMethod(), getCallOptions(), request); } } @@ -1065,7 +1076,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createDataset(com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); } @@ -1079,7 +1090,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Dataset> getDataset(com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } @@ -1093,7 +1104,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Dataset> updateDataset(com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); } @@ -1107,7 +1118,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse> listDatasets(com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); } @@ -1120,7 +1131,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteDataset(com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); } @@ -1133,7 +1144,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture importData(com.google.cloud.aiplatform.v1beta1.ImportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request); } @@ -1146,7 +1157,7 @@ protected DatasetServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture exportData(com.google.cloud.aiplatform.v1beta1.ExportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } @@ -1160,7 +1171,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse> listDataItems(com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } @@ -1174,7 +1185,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.AnnotationSpec> getAnnotationSpec(com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); } @@ -1188,7 +1199,7 @@ protected DatasetServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse> listAnnotations(com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAnnotationsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java index c9718d6d1..44ee2dfa0 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** */ @javax.annotation.Generated( @@ -408,7 +403,8 @@ public abstract static class EndpointServiceImplBase implements io.grpc.Bindable public void createEndpoint( com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEndpointMethod(), responseObserver); } /** @@ -422,7 +418,8 @@ public void getEndpoint( com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); } /** @@ -436,7 +433,8 @@ public void listEndpoints( com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEndpointsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); } /** @@ -450,7 +448,8 @@ public void updateEndpoint( com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointMethod(), responseObserver); } /** @@ -463,7 +462,8 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEndpointMethod(), responseObserver); } /** @@ -476,7 +476,8 @@ public void deleteEndpoint( public void deployModel( com.google.cloud.aiplatform.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); } /** @@ -490,7 +491,8 @@ public void deployModel( public void undeployModel( com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUndeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), responseObserver); } @java.lang.Override @@ -498,45 +500,45 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_ENDPOINT))) .addMethod( getGetEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetEndpointRequest, com.google.cloud.aiplatform.v1beta1.Endpoint>(this, METHODID_GET_ENDPOINT))) .addMethod( getListEndpointsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest, com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse>( this, METHODID_LIST_ENDPOINTS))) .addMethod( getUpdateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, com.google.cloud.aiplatform.v1beta1.Endpoint>( this, METHODID_UPDATE_ENDPOINT))) .addMethod( getDeleteEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_ENDPOINT))) .addMethod( getDeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeployModelRequest, com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) .addMethod( getUndeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UndeployModelRequest, com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) @@ -566,7 +568,7 @@ protected EndpointServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions public void createEndpoint( com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -583,7 +585,7 @@ public void getEndpoint( com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request, responseObserver); @@ -600,7 +602,7 @@ public void listEndpoints( com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request, responseObserver); @@ -617,7 +619,7 @@ public void updateEndpoint( com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -633,7 +635,7 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request, responseObserver); @@ -649,7 +651,7 @@ public void deleteEndpoint( public void deployModel( com.google.cloud.aiplatform.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); @@ -666,7 +668,7 @@ public void deployModel( public void undeployModel( com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, responseObserver); @@ -695,7 +697,8 @@ protected EndpointServiceBlockingStub build( */ public com.google.longrunning.Operation createEndpoint( com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getCreateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } /** @@ -707,7 +710,8 @@ public com.google.longrunning.Operation createEndpoint( */ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint( com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request) { - return blockingUnaryCall(getChannel(), getGetEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); } /** @@ -719,7 +723,8 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint( */ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse listEndpoints( com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request) { - return blockingUnaryCall(getChannel(), getListEndpointsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); } /** @@ -731,7 +736,8 @@ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse listEndpoints( */ public com.google.cloud.aiplatform.v1beta1.Endpoint updateEndpoint( com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } /** @@ -743,7 +749,8 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint updateEndpoint( */ public com.google.longrunning.Operation deleteEndpoint( com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request) { - return blockingUnaryCall(getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } /** @@ -755,7 +762,8 @@ public com.google.longrunning.Operation deleteEndpoint( */ public com.google.longrunning.Operation deployModel( com.google.cloud.aiplatform.v1beta1.DeployModelRequest request) { - return blockingUnaryCall(getChannel(), getDeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); } /** @@ -768,7 +776,8 @@ public com.google.longrunning.Operation deployModel( */ public com.google.longrunning.Operation undeployModel( com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request) { - return blockingUnaryCall(getChannel(), getUndeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), getCallOptions(), request); } } @@ -794,7 +803,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createEndpoint(com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); } @@ -808,7 +817,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Endpoint> getEndpoint(com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); } @@ -822,7 +831,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse> listEndpoints(com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); } @@ -836,7 +845,7 @@ protected EndpointServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Endpoint> updateEndpoint(com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } @@ -849,7 +858,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEndpoint(com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request); } @@ -862,7 +871,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deployModel(com.google.cloud.aiplatform.v1beta1.DeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); } @@ -876,7 +885,7 @@ protected EndpointServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture undeployModel(com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java new file mode 100644 index 000000000..0d0d5c947 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java @@ -0,0 +1,505 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for serving online feature values.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/featurestore_online_service.proto") +public final class FeaturestoreOnlineServingServiceGrpc { + + private FeaturestoreOnlineServingServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getReadFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getReadFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getReadFeatureValuesMethod; + if ((getReadFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getReadFeatureValuesMethod) + == null) { + synchronized (FeaturestoreOnlineServingServiceGrpc.class) { + if ((getReadFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getReadFeatureValuesMethod) + == null) { + FeaturestoreOnlineServingServiceGrpc.getReadFeatureValuesMethod = + getReadFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreOnlineServingServiceMethodDescriptorSupplier( + "ReadFeatureValues")) + .build(); + } + } + } + return getReadFeatureValuesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getStreamingReadFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingReadFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getStreamingReadFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + getStreamingReadFeatureValuesMethod; + if ((getStreamingReadFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getStreamingReadFeatureValuesMethod) + == null) { + synchronized (FeaturestoreOnlineServingServiceGrpc.class) { + if ((getStreamingReadFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getStreamingReadFeatureValuesMethod) + == null) { + FeaturestoreOnlineServingServiceGrpc.getStreamingReadFeatureValuesMethod = + getStreamingReadFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamingReadFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreOnlineServingServiceMethodDescriptorSupplier( + "StreamingReadFeatureValues")) + .build(); + } + } + } + return getStreamingReadFeatureValuesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FeaturestoreOnlineServingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreOnlineServingServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceStub(channel, callOptions); + } + }; + return FeaturestoreOnlineServingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FeaturestoreOnlineServingServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreOnlineServingServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceBlockingStub(channel, callOptions); + } + }; + return FeaturestoreOnlineServingServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FeaturestoreOnlineServingServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreOnlineServingServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceFutureStub(channel, callOptions); + } + }; + return FeaturestoreOnlineServingServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for serving online feature values.
+   * 
+ */ + public abstract static class FeaturestoreOnlineServingServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Reads Feature values of a specific entity of an EntityType. For reading
+     * feature values of multiple entities of an EntityType, please use
+     * StreamingReadFeatureValues.
+     * 
+ */ + public void readFeatureValues( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReadFeatureValuesMethod(), responseObserver); + } + + /** + * + * + *
+     * Reads Feature values for multiple entities. Depending on their size, data
+     * for different entities may be broken
+     * up across multiple responses.
+     * 
+ */ + public void streamingReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamingReadFeatureValuesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getReadFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse>( + this, METHODID_READ_FEATURE_VALUES))) + .addMethod( + getStreamingReadFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse>( + this, METHODID_STREAMING_READ_FEATURE_VALUES))) + .build(); + } + } + + /** + * + * + *
+   * A service for serving online feature values.
+   * 
+ */ + public static final class FeaturestoreOnlineServingServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FeaturestoreOnlineServingServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreOnlineServingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Reads Feature values of a specific entity of an EntityType. For reading
+     * feature values of multiple entities of an EntityType, please use
+     * StreamingReadFeatureValues.
+     * 
+ */ + public void readFeatureValues( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Reads Feature values for multiple entities. Depending on their size, data
+     * for different entities may be broken
+     * up across multiple responses.
+     * 
+ */ + public void streamingReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamingReadFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service for serving online feature values.
+   * 
+ */ + public static final class FeaturestoreOnlineServingServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FeaturestoreOnlineServingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreOnlineServingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Reads Feature values of a specific entity of an EntityType. For reading
+     * feature values of multiple entities of an EntityType, please use
+     * StreamingReadFeatureValues.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse readFeatureValues( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReadFeatureValuesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Reads Feature values for multiple entities. Depending on their size, data
+     * for different entities may be broken
+     * up across multiple responses.
+     * 
+ */ + public java.util.Iterator + streamingReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamingReadFeatureValuesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service for serving online feature values.
+   * 
+ */ + public static final class FeaturestoreOnlineServingServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FeaturestoreOnlineServingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreOnlineServingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreOnlineServingServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Reads Feature values of a specific entity of an EntityType. For reading
+     * feature values of multiple entities of an EntityType, please use
+     * StreamingReadFeatureValues.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse> + readFeatureValues(com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReadFeatureValuesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_READ_FEATURE_VALUES = 0; + private static final int METHODID_STREAMING_READ_FEATURE_VALUES = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FeaturestoreOnlineServingServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FeaturestoreOnlineServingServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_READ_FEATURE_VALUES: + serviceImpl.readFeatureValues( + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse>) + responseObserver); + break; + case METHODID_STREAMING_READ_FEATURE_VALUES: + serviceImpl.streamingReadFeatureValues( + (com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class FeaturestoreOnlineServingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FeaturestoreOnlineServingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FeaturestoreOnlineServingService"); + } + } + + private static final class FeaturestoreOnlineServingServiceFileDescriptorSupplier + extends FeaturestoreOnlineServingServiceBaseDescriptorSupplier { + FeaturestoreOnlineServingServiceFileDescriptorSupplier() {} + } + + private static final class FeaturestoreOnlineServingServiceMethodDescriptorSupplier + extends FeaturestoreOnlineServingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FeaturestoreOnlineServingServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FeaturestoreOnlineServingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new FeaturestoreOnlineServingServiceFileDescriptorSupplier()) + .addMethod(getReadFeatureValuesMethod()) + .addMethod(getStreamingReadFeatureValuesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java new file mode 100644 index 000000000..fb0e70c03 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java @@ -0,0 +1,2700 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The service that handles CRUD and List for resources for Featurestore.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/featurestore_service.proto") +public final class FeaturestoreServiceGrpc { + + private FeaturestoreServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.FeaturestoreService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, + com.google.longrunning.Operation> + getCreateFeaturestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeaturestore", + requestType = com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, + com.google.longrunning.Operation> + getCreateFeaturestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, + com.google.longrunning.Operation> + getCreateFeaturestoreMethod; + if ((getCreateFeaturestoreMethod = FeaturestoreServiceGrpc.getCreateFeaturestoreMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getCreateFeaturestoreMethod = FeaturestoreServiceGrpc.getCreateFeaturestoreMethod) + == null) { + FeaturestoreServiceGrpc.getCreateFeaturestoreMethod = + getCreateFeaturestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeaturestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("CreateFeaturestore")) + .build(); + } + } + } + return getCreateFeaturestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, + com.google.cloud.aiplatform.v1beta1.Featurestore> + getGetFeaturestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeaturestore", + requestType = com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Featurestore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, + com.google.cloud.aiplatform.v1beta1.Featurestore> + getGetFeaturestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, + com.google.cloud.aiplatform.v1beta1.Featurestore> + getGetFeaturestoreMethod; + if ((getGetFeaturestoreMethod = FeaturestoreServiceGrpc.getGetFeaturestoreMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getGetFeaturestoreMethod = FeaturestoreServiceGrpc.getGetFeaturestoreMethod) == null) { + FeaturestoreServiceGrpc.getGetFeaturestoreMethod = + getGetFeaturestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeaturestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Featurestore + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("GetFeaturestore")) + .build(); + } + } + } + return getGetFeaturestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse> + getListFeaturestoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeaturestores", + requestType = com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse> + getListFeaturestoresMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse> + getListFeaturestoresMethod; + if ((getListFeaturestoresMethod = FeaturestoreServiceGrpc.getListFeaturestoresMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getListFeaturestoresMethod = FeaturestoreServiceGrpc.getListFeaturestoresMethod) + == null) { + FeaturestoreServiceGrpc.getListFeaturestoresMethod = + getListFeaturestoresMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeaturestores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("ListFeaturestores")) + .build(); + } + } + } + return getListFeaturestoresMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, + com.google.longrunning.Operation> + getUpdateFeaturestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeaturestore", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, + com.google.longrunning.Operation> + getUpdateFeaturestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, + com.google.longrunning.Operation> + getUpdateFeaturestoreMethod; + if ((getUpdateFeaturestoreMethod = FeaturestoreServiceGrpc.getUpdateFeaturestoreMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getUpdateFeaturestoreMethod = FeaturestoreServiceGrpc.getUpdateFeaturestoreMethod) + == null) { + FeaturestoreServiceGrpc.getUpdateFeaturestoreMethod = + getUpdateFeaturestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeaturestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("UpdateFeaturestore")) + .build(); + } + } + } + return getUpdateFeaturestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, + com.google.longrunning.Operation> + getDeleteFeaturestoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeaturestore", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, + com.google.longrunning.Operation> + getDeleteFeaturestoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, + com.google.longrunning.Operation> + getDeleteFeaturestoreMethod; + if ((getDeleteFeaturestoreMethod = FeaturestoreServiceGrpc.getDeleteFeaturestoreMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getDeleteFeaturestoreMethod = FeaturestoreServiceGrpc.getDeleteFeaturestoreMethod) + == null) { + FeaturestoreServiceGrpc.getDeleteFeaturestoreMethod = + getDeleteFeaturestoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeaturestore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("DeleteFeaturestore")) + .build(); + } + } + } + return getDeleteFeaturestoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, + com.google.longrunning.Operation> + getCreateEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEntityType", + requestType = com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, + com.google.longrunning.Operation> + getCreateEntityTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, + com.google.longrunning.Operation> + getCreateEntityTypeMethod; + if ((getCreateEntityTypeMethod = FeaturestoreServiceGrpc.getCreateEntityTypeMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getCreateEntityTypeMethod = FeaturestoreServiceGrpc.getCreateEntityTypeMethod) + == null) { + FeaturestoreServiceGrpc.getCreateEntityTypeMethod = + getCreateEntityTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("CreateEntityType")) + .build(); + } + } + } + return getCreateEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getGetEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEntityType", + requestType = com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.EntityType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getGetEntityTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getGetEntityTypeMethod; + if ((getGetEntityTypeMethod = FeaturestoreServiceGrpc.getGetEntityTypeMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getGetEntityTypeMethod = FeaturestoreServiceGrpc.getGetEntityTypeMethod) == null) { + FeaturestoreServiceGrpc.getGetEntityTypeMethod = + getGetEntityTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("GetEntityType")) + .build(); + } + } + } + return getGetEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse> + getListEntityTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEntityTypes", + requestType = com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse> + getListEntityTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse> + getListEntityTypesMethod; + if ((getListEntityTypesMethod = FeaturestoreServiceGrpc.getListEntityTypesMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getListEntityTypesMethod = FeaturestoreServiceGrpc.getListEntityTypesMethod) == null) { + FeaturestoreServiceGrpc.getListEntityTypesMethod = + getListEntityTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntityTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("ListEntityTypes")) + .build(); + } + } + } + return getListEntityTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getUpdateEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEntityType", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.EntityType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getUpdateEntityTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType> + getUpdateEntityTypeMethod; + if ((getUpdateEntityTypeMethod = FeaturestoreServiceGrpc.getUpdateEntityTypeMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getUpdateEntityTypeMethod = FeaturestoreServiceGrpc.getUpdateEntityTypeMethod) + == null) { + FeaturestoreServiceGrpc.getUpdateEntityTypeMethod = + getUpdateEntityTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("UpdateEntityType")) + .build(); + } + } + } + return getUpdateEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, + com.google.longrunning.Operation> + getDeleteEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEntityType", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, + com.google.longrunning.Operation> + getDeleteEntityTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, + com.google.longrunning.Operation> + getDeleteEntityTypeMethod; + if ((getDeleteEntityTypeMethod = FeaturestoreServiceGrpc.getDeleteEntityTypeMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getDeleteEntityTypeMethod = FeaturestoreServiceGrpc.getDeleteEntityTypeMethod) + == null) { + FeaturestoreServiceGrpc.getDeleteEntityTypeMethod = + getDeleteEntityTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("DeleteEntityType")) + .build(); + } + } + } + return getDeleteEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.longrunning.Operation> + getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.longrunning.Operation> + getCreateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.longrunning.Operation> + getCreateFeatureMethod; + if ((getCreateFeatureMethod = FeaturestoreServiceGrpc.getCreateFeatureMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getCreateFeatureMethod = FeaturestoreServiceGrpc.getCreateFeatureMethod) == null) { + FeaturestoreServiceGrpc.getCreateFeatureMethod = + getCreateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, + com.google.longrunning.Operation> + getBatchCreateFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCreateFeatures", + requestType = com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, + com.google.longrunning.Operation> + getBatchCreateFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, + com.google.longrunning.Operation> + getBatchCreateFeaturesMethod; + if ((getBatchCreateFeaturesMethod = FeaturestoreServiceGrpc.getBatchCreateFeaturesMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getBatchCreateFeaturesMethod = FeaturestoreServiceGrpc.getBatchCreateFeaturesMethod) + == null) { + FeaturestoreServiceGrpc.getBatchCreateFeaturesMethod = + getBatchCreateFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCreateFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("BatchCreateFeatures")) + .build(); + } + } + } + return getBatchCreateFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getGetFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getGetFeatureMethod; + if ((getGetFeatureMethod = FeaturestoreServiceGrpc.getGetFeatureMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getGetFeatureMethod = FeaturestoreServiceGrpc.getGetFeatureMethod) == null) { + FeaturestoreServiceGrpc.getGetFeatureMethod = + getGetFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse> + getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse> + getListFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse> + getListFeaturesMethod; + if ((getListFeaturesMethod = FeaturestoreServiceGrpc.getListFeaturesMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getListFeaturesMethod = FeaturestoreServiceGrpc.getListFeaturesMethod) == null) { + FeaturestoreServiceGrpc.getListFeaturesMethod = + getListFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getUpdateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature> + getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = FeaturestoreServiceGrpc.getUpdateFeatureMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getUpdateFeatureMethod = FeaturestoreServiceGrpc.getUpdateFeatureMethod) == null) { + FeaturestoreServiceGrpc.getUpdateFeatureMethod = + getUpdateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, + com.google.longrunning.Operation> + getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, + com.google.longrunning.Operation> + getDeleteFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, + com.google.longrunning.Operation> + getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = FeaturestoreServiceGrpc.getDeleteFeatureMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getDeleteFeatureMethod = FeaturestoreServiceGrpc.getDeleteFeatureMethod) == null) { + FeaturestoreServiceGrpc.getDeleteFeatureMethod = + getDeleteFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, + com.google.longrunning.Operation> + getImportFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, + com.google.longrunning.Operation> + getImportFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, + com.google.longrunning.Operation> + getImportFeatureValuesMethod; + if ((getImportFeatureValuesMethod = FeaturestoreServiceGrpc.getImportFeatureValuesMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getImportFeatureValuesMethod = FeaturestoreServiceGrpc.getImportFeatureValuesMethod) + == null) { + FeaturestoreServiceGrpc.getImportFeatureValuesMethod = + getImportFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("ImportFeatureValues")) + .build(); + } + } + } + return getImportFeatureValuesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, + com.google.longrunning.Operation> + getBatchReadFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchReadFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, + com.google.longrunning.Operation> + getBatchReadFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, + com.google.longrunning.Operation> + getBatchReadFeatureValuesMethod; + if ((getBatchReadFeatureValuesMethod = FeaturestoreServiceGrpc.getBatchReadFeatureValuesMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getBatchReadFeatureValuesMethod = + FeaturestoreServiceGrpc.getBatchReadFeatureValuesMethod) + == null) { + FeaturestoreServiceGrpc.getBatchReadFeatureValuesMethod = + getBatchReadFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchReadFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("BatchReadFeatureValues")) + .build(); + } + } + } + return getBatchReadFeatureValuesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, + com.google.longrunning.Operation> + getExportFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, + com.google.longrunning.Operation> + getExportFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, + com.google.longrunning.Operation> + getExportFeatureValuesMethod; + if ((getExportFeatureValuesMethod = FeaturestoreServiceGrpc.getExportFeatureValuesMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getExportFeatureValuesMethod = FeaturestoreServiceGrpc.getExportFeatureValuesMethod) + == null) { + FeaturestoreServiceGrpc.getExportFeatureValuesMethod = + getExportFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("ExportFeatureValues")) + .build(); + } + } + } + return getExportFeatureValuesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse> + getSearchFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchFeatures", + requestType = com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse> + getSearchFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse> + getSearchFeaturesMethod; + if ((getSearchFeaturesMethod = FeaturestoreServiceGrpc.getSearchFeaturesMethod) == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getSearchFeaturesMethod = FeaturestoreServiceGrpc.getSearchFeaturesMethod) == null) { + FeaturestoreServiceGrpc.getSearchFeaturesMethod = + getSearchFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("SearchFeatures")) + .build(); + } + } + } + return getSearchFeaturesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FeaturestoreServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceStub(channel, callOptions); + } + }; + return FeaturestoreServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FeaturestoreServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceBlockingStub(channel, callOptions); + } + }; + return FeaturestoreServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FeaturestoreServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FeaturestoreServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceFutureStub(channel, callOptions); + } + }; + return FeaturestoreServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The service that handles CRUD and List for resources for Featurestore.
+   * 
+ */ + public abstract static class FeaturestoreServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new Featurestore in a given project and location.
+     * 
+ */ + public void createFeaturestore( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeaturestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Featurestore.
+     * 
+ */ + public void getFeaturestore( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFeaturestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Featurestores in a given project and location.
+     * 
+ */ + public void listFeaturestores( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturestoresMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Featurestore.
+     * 
+ */ + public void updateFeaturestore( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeaturestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Featurestore. The Featurestore must not contain any
+     * EntityTypes or `force` must be set to true for the request to succeed.
+     * 
+ */ + public void deleteFeaturestore( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeaturestoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new EntityType in a given Featurestore.
+     * 
+ */ + public void createEntityType( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEntityTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EntityType.
+     * 
+ */ + public void getEntityType( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEntityTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists EntityTypes in a given Featurestore.
+     * 
+ */ + public void listEntityTypes( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEntityTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single EntityType.
+     * 
+ */ + public void updateEntityType( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEntityTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single EntityType. The EntityType must not have any Features
+     * or `force` must be set to true for the request to succeed.
+     * 
+ */ + public void deleteEntityType( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEntityTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Feature in a given EntityType.
+     * 
+ */ + public void createFeature( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a batch of Features in a given EntityType.
+     * 
+ */ + public void batchCreateFeatures( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateFeaturesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Features in a given EntityType.
+     * 
+ */ + public void listFeatures( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports Feature values into the Featurestore from a source storage.
+     * The progress of the import is tracked by the returned operation. The
+     * imported features are guaranteed to be visible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If an import operation fails, the Feature values returned from
+     * reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same import request again and wait till
+     * the new operation returned is marked as successfully done.
+     * There are also scenarios where the caller can cause inconsistency.
+     *  - Source data for import contains multiple distinct Feature values for
+     *    the same entity ID and timestamp.
+     *  - Source is modified during an import. This includes adding, updating, or
+     *  removing source data and/or metadata. Examples of updating metadata
+     *  include but are not limited to changing storage location, storage class,
+     *  or retention policy.
+     *  - Online serving cluster is under-provisioned.
+     * 
+ */ + public void importFeatureValues( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportFeatureValuesMethod(), responseObserver); + } + + /** + * + * + *
+     * Batch reads Feature values from a Featurestore.
+     * This API enables batch reading Feature values, where each read
+     * instance in the batch may read Feature values of entities from one or
+     * more EntityTypes. Point-in-time correctness is guaranteed for Feature
+     * values of each read instance as of each instance's read timestamp.
+     * 
+ */ + public void batchReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchReadFeatureValuesMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports Feature values from all the entities of a target EntityType.
+     * 
+ */ + public void exportFeatureValues( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportFeatureValuesMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches Features matching a query in a given project.
+     * 
+ */ + public void searchFeatures( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchFeaturesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFeaturestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURESTORE))) + .addMethod( + getGetFeaturestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, + com.google.cloud.aiplatform.v1beta1.Featurestore>( + this, METHODID_GET_FEATURESTORE))) + .addMethod( + getListFeaturestoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse>( + this, METHODID_LIST_FEATURESTORES))) + .addMethod( + getUpdateFeaturestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURESTORE))) + .addMethod( + getDeleteFeaturestoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURESTORE))) + .addMethod( + getCreateEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ENTITY_TYPE))) + .addMethod( + getGetEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType>( + this, METHODID_GET_ENTITY_TYPE))) + .addMethod( + getListEntityTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse>( + this, METHODID_LIST_ENTITY_TYPES))) + .addMethod( + getUpdateEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, + com.google.cloud.aiplatform.v1beta1.EntityType>( + this, METHODID_UPDATE_ENTITY_TYPE))) + .addMethod( + getDeleteEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ENTITY_TYPE))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) + .addMethod( + getBatchCreateFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_CREATE_FEATURES))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature>(this, METHODID_GET_FEATURE))) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.Feature>(this, METHODID_UPDATE_FEATURE))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) + .addMethod( + getImportFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_FEATURE_VALUES))) + .addMethod( + getBatchReadFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_READ_FEATURE_VALUES))) + .addMethod( + getExportFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_FEATURE_VALUES))) + .addMethod( + getSearchFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse>( + this, METHODID_SEARCH_FEATURES))) + .build(); + } + } + + /** + * + * + *
+   * The service that handles CRUD and List for resources for Featurestore.
+   * 
+ */ + public static final class FeaturestoreServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FeaturestoreServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Featurestore in a given project and location.
+     * 
+ */ + public void createFeaturestore( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeaturestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Featurestore.
+     * 
+ */ + public void getFeaturestore( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeaturestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Featurestores in a given project and location.
+     * 
+ */ + public void listFeaturestores( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturestoresMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Featurestore.
+     * 
+ */ + public void updateFeaturestore( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeaturestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Featurestore. The Featurestore must not contain any
+     * EntityTypes or `force` must be set to true for the request to succeed.
+     * 
+ */ + public void deleteFeaturestore( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeaturestoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new EntityType in a given Featurestore.
+     * 
+ */ + public void createEntityType( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EntityType.
+     * 
+ */ + public void getEntityType( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists EntityTypes in a given Featurestore.
+     * 
+ */ + public void listEntityTypes( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single EntityType.
+     * 
+ */ + public void updateEntityType( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single EntityType. The EntityType must not have any Features
+     * or `force` must be set to true for the request to succeed.
+     * 
+ */ + public void deleteEntityType( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Feature in a given EntityType.
+     * 
+ */ + public void createFeature( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a batch of Features in a given EntityType.
+     * 
+ */ + public void batchCreateFeatures( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Features in a given EntityType.
+     * 
+ */ + public void listFeatures( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports Feature values into the Featurestore from a source storage.
+     * The progress of the import is tracked by the returned operation. The
+     * imported features are guaranteed to be visible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If an import operation fails, the Feature values returned from
+     * reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same import request again and wait till
+     * the new operation returned is marked as successfully done.
+     * There are also scenarios where the caller can cause inconsistency.
+     *  - Source data for import contains multiple distinct Feature values for
+     *    the same entity ID and timestamp.
+     *  - Source is modified during an import. This includes adding, updating, or
+     *  removing source data and/or metadata. Examples of updating metadata
+     *  include but are not limited to changing storage location, storage class,
+     *  or retention policy.
+     *  - Online serving cluster is under-provisioned.
+     * 
+ */ + public void importFeatureValues( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Batch reads Feature values from a Featurestore.
+     * This API enables batch reading Feature values, where each read
+     * instance in the batch may read Feature values of entities from one or
+     * more EntityTypes. Point-in-time correctness is guaranteed for Feature
+     * values of each read instance as of each instance's read timestamp.
+     * 
+ */ + public void batchReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchReadFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports Feature values from all the entities of a target EntityType.
+     * 
+ */ + public void exportFeatureValues( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches Features matching a query in a given project.
+     * 
+ */ + public void searchFeatures( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The service that handles CRUD and List for resources for Featurestore.
+   * 
+ */ + public static final class FeaturestoreServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FeaturestoreServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Featurestore in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createFeaturestore( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeaturestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Featurestore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeaturestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Featurestores in a given project and location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse listFeaturestores( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturestoresMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Featurestore.
+     * 
+ */ + public com.google.longrunning.Operation updateFeaturestore( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeaturestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Featurestore. The Featurestore must not contain any
+     * EntityTypes or `force` must be set to true for the request to succeed.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeaturestore( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeaturestoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new EntityType in a given Featurestore.
+     * 
+ */ + public com.google.longrunning.Operation createEntityType( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single EntityType.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists EntityTypes in a given Featurestore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse listEntityTypes( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntityTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single EntityType.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.EntityType updateEntityType( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single EntityType. The EntityType must not have any Features
+     * or `force` must be set to true for the request to succeed.
+     * 
+ */ + public com.google.longrunning.Operation deleteEntityType( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Feature in a given EntityType.
+     * 
+ */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a batch of Features in a given EntityType.
+     * 
+ */ + public com.google.longrunning.Operation batchCreateFeatures( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeature( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Features in a given EntityType.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse listFeatures( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Feature.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Feature updateFeature( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports Feature values into the Featurestore from a source storage.
+     * The progress of the import is tracked by the returned operation. The
+     * imported features are guaranteed to be visible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If an import operation fails, the Feature values returned from
+     * reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same import request again and wait till
+     * the new operation returned is marked as successfully done.
+     * There are also scenarios where the caller can cause inconsistency.
+     *  - Source data for import contains multiple distinct Feature values for
+     *    the same entity ID and timestamp.
+     *  - Source is modified during an import. This includes adding, updating, or
+     *  removing source data and/or metadata. Examples of updating metadata
+     *  include but are not limited to changing storage location, storage class,
+     *  or retention policy.
+     *  - Online serving cluster is under-provisioned.
+     * 
+ */ + public com.google.longrunning.Operation importFeatureValues( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportFeatureValuesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Batch reads Feature values from a Featurestore.
+     * This API enables batch reading Feature values, where each read
+     * instance in the batch may read Feature values of entities from one or
+     * more EntityTypes. Point-in-time correctness is guaranteed for Feature
+     * values of each read instance as of each instance's read timestamp.
+     * 
+ */ + public com.google.longrunning.Operation batchReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchReadFeatureValuesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports Feature values from all the entities of a target EntityType.
+     * 
+ */ + public com.google.longrunning.Operation exportFeatureValues( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportFeatureValuesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches Features matching a query in a given project.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse searchFeatures( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchFeaturesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The service that handles CRUD and List for resources for Featurestore.
+   * 
+ */ + public static final class FeaturestoreServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FeaturestoreServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FeaturestoreServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FeaturestoreServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Featurestore in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeaturestore(com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeaturestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Featurestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Featurestore> + getFeaturestore(com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeaturestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Featurestores in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse> + listFeaturestores(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturestoresMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Featurestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeaturestore(com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeaturestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Featurestore. The Featurestore must not contain any
+     * EntityTypes or `force` must be set to true for the request to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeaturestore(com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeaturestoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new EntityType in a given Featurestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEntityType(com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.EntityType> + getEntityType(com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists EntityTypes in a given Featurestore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse> + listEntityTypes(com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.EntityType> + updateEntityType(com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single EntityType. The EntityType must not have any Features
+     * or `force` must be set to true for the request to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEntityType(com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Feature in a given EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a batch of Features in a given EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchCreateFeatures( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Feature> + getFeature(com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Features in a given EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse> + listFeatures(com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Feature> + updateFeature(com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports Feature values into the Featurestore from a source storage.
+     * The progress of the import is tracked by the returned operation. The
+     * imported features are guaranteed to be visible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If an import operation fails, the Feature values returned from
+     * reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same import request again and wait till
+     * the new operation returned is marked as successfully done.
+     * There are also scenarios where the caller can cause inconsistency.
+     *  - Source data for import contains multiple distinct Feature values for
+     *    the same entity ID and timestamp.
+     *  - Source is modified during an import. This includes adding, updating, or
+     *  removing source data and/or metadata. Examples of updating metadata
+     *  include but are not limited to changing storage location, storage class,
+     *  or retention policy.
+     *  - Online serving cluster is under-provisioned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importFeatureValues( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportFeatureValuesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Batch reads Feature values from a Featurestore.
+     * This API enables batch reading Feature values, where each read
+     * instance in the batch may read Feature values of entities from one or
+     * more EntityTypes. Point-in-time correctness is guaranteed for Feature
+     * values of each read instance as of each instance's read timestamp.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchReadFeatureValues( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchReadFeatureValuesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports Feature values from all the entities of a target EntityType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportFeatureValues( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportFeatureValuesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches Features matching a query in a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse> + searchFeatures(com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchFeaturesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FEATURESTORE = 0; + private static final int METHODID_GET_FEATURESTORE = 1; + private static final int METHODID_LIST_FEATURESTORES = 2; + private static final int METHODID_UPDATE_FEATURESTORE = 3; + private static final int METHODID_DELETE_FEATURESTORE = 4; + private static final int METHODID_CREATE_ENTITY_TYPE = 5; + private static final int METHODID_GET_ENTITY_TYPE = 6; + private static final int METHODID_LIST_ENTITY_TYPES = 7; + private static final int METHODID_UPDATE_ENTITY_TYPE = 8; + private static final int METHODID_DELETE_ENTITY_TYPE = 9; + private static final int METHODID_CREATE_FEATURE = 10; + private static final int METHODID_BATCH_CREATE_FEATURES = 11; + private static final int METHODID_GET_FEATURE = 12; + private static final int METHODID_LIST_FEATURES = 13; + private static final int METHODID_UPDATE_FEATURE = 14; + private static final int METHODID_DELETE_FEATURE = 15; + private static final int METHODID_IMPORT_FEATURE_VALUES = 16; + private static final int METHODID_BATCH_READ_FEATURE_VALUES = 17; + private static final int METHODID_EXPORT_FEATURE_VALUES = 18; + private static final int METHODID_SEARCH_FEATURES = 19; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FeaturestoreServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FeaturestoreServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FEATURESTORE: + serviceImpl.createFeaturestore( + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEATURESTORE: + serviceImpl.getFeaturestore( + (com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FEATURESTORES: + serviceImpl.listFeaturestores( + (com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse>) + responseObserver); + break; + case METHODID_UPDATE_FEATURESTORE: + serviceImpl.updateFeaturestore( + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURESTORE: + serviceImpl.deleteFeaturestore( + (com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ENTITY_TYPE: + serviceImpl.createEntityType( + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ENTITY_TYPE: + serviceImpl.getEntityType( + (com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ENTITY_TYPES: + serviceImpl.listEntityTypes( + (com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse>) + responseObserver); + break; + case METHODID_UPDATE_ENTITY_TYPE: + serviceImpl.updateEntityType( + (com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ENTITY_TYPE: + serviceImpl.deleteEntityType( + (com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature( + (com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_CREATE_FEATURES: + serviceImpl.batchCreateFeatures( + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature( + (com.google.cloud.aiplatform.v1beta1.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FEATURES: + serviceImpl.listFeatures( + (com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse>) + responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature( + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_FEATURE_VALUES: + serviceImpl.importFeatureValues( + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_READ_FEATURE_VALUES: + serviceImpl.batchReadFeatureValues( + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_FEATURE_VALUES: + serviceImpl.exportFeatureValues( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_FEATURES: + serviceImpl.searchFeatures( + (com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class FeaturestoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FeaturestoreServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FeaturestoreService"); + } + } + + private static final class FeaturestoreServiceFileDescriptorSupplier + extends FeaturestoreServiceBaseDescriptorSupplier { + FeaturestoreServiceFileDescriptorSupplier() {} + } + + private static final class FeaturestoreServiceMethodDescriptorSupplier + extends FeaturestoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FeaturestoreServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FeaturestoreServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FeaturestoreServiceFileDescriptorSupplier()) + .addMethod(getCreateFeaturestoreMethod()) + .addMethod(getGetFeaturestoreMethod()) + .addMethod(getListFeaturestoresMethod()) + .addMethod(getUpdateFeaturestoreMethod()) + .addMethod(getDeleteFeaturestoreMethod()) + .addMethod(getCreateEntityTypeMethod()) + .addMethod(getGetEntityTypeMethod()) + .addMethod(getListEntityTypesMethod()) + .addMethod(getUpdateEntityTypeMethod()) + .addMethod(getDeleteEntityTypeMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getBatchCreateFeaturesMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getListFeaturesMethod()) + .addMethod(getUpdateFeatureMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getImportFeatureValuesMethod()) + .addMethod(getBatchReadFeatureValuesMethod()) + .addMethod(getExportFeatureValuesMethod()) + .addMethod(getSearchFeaturesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java new file mode 100644 index 000000000..ebbe0e985 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java @@ -0,0 +1,1093 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for managing Vertex AI's IndexEndpoints.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/index_endpoint_service.proto") +public final class IndexEndpointServiceGrpc { + + private IndexEndpointServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.IndexEndpointService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, + com.google.longrunning.Operation> + getCreateIndexEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIndexEndpoint", + requestType = com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, + com.google.longrunning.Operation> + getCreateIndexEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, + com.google.longrunning.Operation> + getCreateIndexEndpointMethod; + if ((getCreateIndexEndpointMethod = IndexEndpointServiceGrpc.getCreateIndexEndpointMethod) + == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getCreateIndexEndpointMethod = IndexEndpointServiceGrpc.getCreateIndexEndpointMethod) + == null) { + IndexEndpointServiceGrpc.getCreateIndexEndpointMethod = + getCreateIndexEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateIndexEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("CreateIndexEndpoint")) + .build(); + } + } + } + return getCreateIndexEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getGetIndexEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIndexEndpoint", + requestType = com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.IndexEndpoint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getGetIndexEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getGetIndexEndpointMethod; + if ((getGetIndexEndpointMethod = IndexEndpointServiceGrpc.getGetIndexEndpointMethod) == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getGetIndexEndpointMethod = IndexEndpointServiceGrpc.getGetIndexEndpointMethod) + == null) { + IndexEndpointServiceGrpc.getGetIndexEndpointMethod = + getGetIndexEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndexEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint + .getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("GetIndexEndpoint")) + .build(); + } + } + } + return getGetIndexEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse> + getListIndexEndpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIndexEndpoints", + requestType = com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse> + getListIndexEndpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse> + getListIndexEndpointsMethod; + if ((getListIndexEndpointsMethod = IndexEndpointServiceGrpc.getListIndexEndpointsMethod) + == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getListIndexEndpointsMethod = IndexEndpointServiceGrpc.getListIndexEndpointsMethod) + == null) { + IndexEndpointServiceGrpc.getListIndexEndpointsMethod = + getListIndexEndpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexEndpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("ListIndexEndpoints")) + .build(); + } + } + } + return getListIndexEndpointsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getUpdateIndexEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIndexEndpoint", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.IndexEndpoint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getUpdateIndexEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getUpdateIndexEndpointMethod; + if ((getUpdateIndexEndpointMethod = IndexEndpointServiceGrpc.getUpdateIndexEndpointMethod) + == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getUpdateIndexEndpointMethod = IndexEndpointServiceGrpc.getUpdateIndexEndpointMethod) + == null) { + IndexEndpointServiceGrpc.getUpdateIndexEndpointMethod = + getUpdateIndexEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateIndexEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint + .getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("UpdateIndexEndpoint")) + .build(); + } + } + } + return getUpdateIndexEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, + com.google.longrunning.Operation> + getDeleteIndexEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIndexEndpoint", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, + com.google.longrunning.Operation> + getDeleteIndexEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, + com.google.longrunning.Operation> + getDeleteIndexEndpointMethod; + if ((getDeleteIndexEndpointMethod = IndexEndpointServiceGrpc.getDeleteIndexEndpointMethod) + == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getDeleteIndexEndpointMethod = IndexEndpointServiceGrpc.getDeleteIndexEndpointMethod) + == null) { + IndexEndpointServiceGrpc.getDeleteIndexEndpointMethod = + getDeleteIndexEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteIndexEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("DeleteIndexEndpoint")) + .build(); + } + } + } + return getDeleteIndexEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest, com.google.longrunning.Operation> + getDeployIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployIndex", + requestType = com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest, com.google.longrunning.Operation> + getDeployIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest, + com.google.longrunning.Operation> + getDeployIndexMethod; + if ((getDeployIndexMethod = IndexEndpointServiceGrpc.getDeployIndexMethod) == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getDeployIndexMethod = IndexEndpointServiceGrpc.getDeployIndexMethod) == null) { + IndexEndpointServiceGrpc.getDeployIndexMethod = + getDeployIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("DeployIndex")) + .build(); + } + } + } + return getDeployIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, + com.google.longrunning.Operation> + getUndeployIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeployIndex", + requestType = com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, + com.google.longrunning.Operation> + getUndeployIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, + com.google.longrunning.Operation> + getUndeployIndexMethod; + if ((getUndeployIndexMethod = IndexEndpointServiceGrpc.getUndeployIndexMethod) == null) { + synchronized (IndexEndpointServiceGrpc.class) { + if ((getUndeployIndexMethod = IndexEndpointServiceGrpc.getUndeployIndexMethod) == null) { + IndexEndpointServiceGrpc.getUndeployIndexMethod = + getUndeployIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeployIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IndexEndpointServiceMethodDescriptorSupplier("UndeployIndex")) + .build(); + } + } + } + return getUndeployIndexMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IndexEndpointServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexEndpointServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceStub(channel, callOptions); + } + }; + return IndexEndpointServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IndexEndpointServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexEndpointServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceBlockingStub(channel, callOptions); + } + }; + return IndexEndpointServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IndexEndpointServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexEndpointServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceFutureStub(channel, callOptions); + } + }; + return IndexEndpointServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for managing Vertex AI's IndexEndpoints.
+   * 
+ */ + public abstract static class IndexEndpointServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates an IndexEndpoint.
+     * 
+ */ + public void createIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIndexEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an IndexEndpoint.
+     * 
+ */ + public void getIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIndexEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists IndexEndpoints in a Location.
+     * 
+ */ + public void listIndexEndpoints( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIndexEndpointsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an IndexEndpoint.
+     * 
+ */ + public void updateIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIndexEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an IndexEndpoint.
+     * 
+ */ + public void deleteIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIndexEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
+     * it.
+     * Only non-empty Indexes can be deployed.
+     * 
+ */ + public void deployIndex( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployIndexMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
+     * and freeing all resources it's using.
+     * 
+ */ + public void undeployIndex( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployIndexMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateIndexEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INDEX_ENDPOINT))) + .addMethod( + getGetIndexEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint>( + this, METHODID_GET_INDEX_ENDPOINT))) + .addMethod( + getListIndexEndpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse>( + this, METHODID_LIST_INDEX_ENDPOINTS))) + .addMethod( + getUpdateIndexEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint>( + this, METHODID_UPDATE_INDEX_ENDPOINT))) + .addMethod( + getDeleteIndexEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INDEX_ENDPOINT))) + .addMethod( + getDeployIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest, + com.google.longrunning.Operation>(this, METHODID_DEPLOY_INDEX))) + .addMethod( + getUndeployIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, + com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_INDEX))) + .build(); + } + } + + /** + * + * + *
+   * A service for managing Vertex AI's IndexEndpoints.
+   * 
+ */ + public static final class IndexEndpointServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private IndexEndpointServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexEndpointServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an IndexEndpoint.
+     * 
+ */ + public void createIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIndexEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an IndexEndpoint.
+     * 
+ */ + public void getIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIndexEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists IndexEndpoints in a Location.
+     * 
+ */ + public void listIndexEndpoints( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIndexEndpointsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an IndexEndpoint.
+     * 
+ */ + public void updateIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIndexEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an IndexEndpoint.
+     * 
+ */ + public void deleteIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIndexEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
+     * it.
+     * Only non-empty Indexes can be deployed.
+     * 
+ */ + public void deployIndex( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployIndexMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
+     * and freeing all resources it's using.
+     * 
+ */ + public void undeployIndex( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeployIndexMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service for managing Vertex AI's IndexEndpoints.
+   * 
+ */ + public static final class IndexEndpointServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IndexEndpointServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexEndpointServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an IndexEndpoint.
+     * 
+ */ + public com.google.longrunning.Operation createIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIndexEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an IndexEndpoint.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIndexEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists IndexEndpoints in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse listIndexEndpoints( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIndexEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an IndexEndpoint.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint updateIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIndexEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an IndexEndpoint.
+     * 
+ */ + public com.google.longrunning.Operation deleteIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIndexEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
+     * it.
+     * Only non-empty Indexes can be deployed.
+     * 
+ */ + public com.google.longrunning.Operation deployIndex( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployIndexMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
+     * and freeing all resources it's using.
+     * 
+ */ + public com.google.longrunning.Operation undeployIndex( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployIndexMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service for managing Vertex AI's IndexEndpoints.
+   * 
+ */ + public static final class IndexEndpointServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IndexEndpointServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexEndpointServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexEndpointServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an IndexEndpoint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIndexEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an IndexEndpoint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + getIndexEndpoint(com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIndexEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists IndexEndpoints in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse> + listIndexEndpoints(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIndexEndpointsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an IndexEndpoint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint> + updateIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIndexEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an IndexEndpoint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIndexEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
+     * it.
+     * Only non-empty Indexes can be deployed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployIndex(com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployIndexMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
+     * and freeing all resources it's using.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeployIndex(com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeployIndexMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_INDEX_ENDPOINT = 0; + private static final int METHODID_GET_INDEX_ENDPOINT = 1; + private static final int METHODID_LIST_INDEX_ENDPOINTS = 2; + private static final int METHODID_UPDATE_INDEX_ENDPOINT = 3; + private static final int METHODID_DELETE_INDEX_ENDPOINT = 4; + private static final int METHODID_DEPLOY_INDEX = 5; + private static final int METHODID_UNDEPLOY_INDEX = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final IndexEndpointServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(IndexEndpointServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_INDEX_ENDPOINT: + serviceImpl.createIndexEndpoint( + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INDEX_ENDPOINT: + serviceImpl.getIndexEndpoint( + (com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_INDEX_ENDPOINTS: + serviceImpl.listIndexEndpoints( + (com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse>) + responseObserver); + break; + case METHODID_UPDATE_INDEX_ENDPOINT: + serviceImpl.updateIndexEndpoint( + (com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_INDEX_ENDPOINT: + serviceImpl.deleteIndexEndpoint( + (com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_INDEX: + serviceImpl.deployIndex( + (com.google.cloud.aiplatform.v1beta1.DeployIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDEPLOY_INDEX: + serviceImpl.undeployIndex( + (com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class IndexEndpointServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IndexEndpointServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IndexEndpointService"); + } + } + + private static final class IndexEndpointServiceFileDescriptorSupplier + extends IndexEndpointServiceBaseDescriptorSupplier { + IndexEndpointServiceFileDescriptorSupplier() {} + } + + private static final class IndexEndpointServiceMethodDescriptorSupplier + extends IndexEndpointServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + IndexEndpointServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IndexEndpointServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IndexEndpointServiceFileDescriptorSupplier()) + .addMethod(getCreateIndexEndpointMethod()) + .addMethod(getGetIndexEndpointMethod()) + .addMethod(getListIndexEndpointsMethod()) + .addMethod(getUpdateIndexEndpointMethod()) + .addMethod(getDeleteIndexEndpointMethod()) + .addMethod(getDeployIndexMethod()) + .addMethod(getUndeployIndexMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java new file mode 100644 index 000000000..be461f97a --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java @@ -0,0 +1,818 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for creating and managing Vertex AI's Index resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/index_service.proto") +public final class IndexServiceGrpc { + + private IndexServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.IndexService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIndex", + requestType = com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest, + com.google.longrunning.Operation> + getCreateIndexMethod; + if ((getCreateIndexMethod = IndexServiceGrpc.getCreateIndexMethod) == null) { + synchronized (IndexServiceGrpc.class) { + if ((getCreateIndexMethod = IndexServiceGrpc.getCreateIndexMethod) == null) { + IndexServiceGrpc.getCreateIndexMethod = + getCreateIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("CreateIndex")) + .build(); + } + } + } + return getCreateIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexRequest, + com.google.cloud.aiplatform.v1beta1.Index> + getGetIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIndex", + requestType = com.google.cloud.aiplatform.v1beta1.GetIndexRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Index.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexRequest, + com.google.cloud.aiplatform.v1beta1.Index> + getGetIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetIndexRequest, + com.google.cloud.aiplatform.v1beta1.Index> + getGetIndexMethod; + if ((getGetIndexMethod = IndexServiceGrpc.getGetIndexMethod) == null) { + synchronized (IndexServiceGrpc.class) { + if ((getGetIndexMethod = IndexServiceGrpc.getGetIndexMethod) == null) { + IndexServiceGrpc.getGetIndexMethod = + getGetIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance())) + .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("GetIndex")) + .build(); + } + } + } + return getGetIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse> + getListIndexesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIndexes", + requestType = com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse> + getListIndexesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse> + getListIndexesMethod; + if ((getListIndexesMethod = IndexServiceGrpc.getListIndexesMethod) == null) { + synchronized (IndexServiceGrpc.class) { + if ((getListIndexesMethod = IndexServiceGrpc.getListIndexesMethod) == null) { + IndexServiceGrpc.getListIndexesMethod = + getListIndexesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("ListIndexes")) + .build(); + } + } + } + return getListIndexesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, com.google.longrunning.Operation> + getUpdateIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIndex", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, com.google.longrunning.Operation> + getUpdateIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, + com.google.longrunning.Operation> + getUpdateIndexMethod; + if ((getUpdateIndexMethod = IndexServiceGrpc.getUpdateIndexMethod) == null) { + synchronized (IndexServiceGrpc.class) { + if ((getUpdateIndexMethod = IndexServiceGrpc.getUpdateIndexMethod) == null) { + IndexServiceGrpc.getUpdateIndexMethod = + getUpdateIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("UpdateIndex")) + .build(); + } + } + } + return getUpdateIndexMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, com.google.longrunning.Operation> + getDeleteIndexMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIndex", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, com.google.longrunning.Operation> + getDeleteIndexMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, + com.google.longrunning.Operation> + getDeleteIndexMethod; + if ((getDeleteIndexMethod = IndexServiceGrpc.getDeleteIndexMethod) == null) { + synchronized (IndexServiceGrpc.class) { + if ((getDeleteIndexMethod = IndexServiceGrpc.getDeleteIndexMethod) == null) { + IndexServiceGrpc.getDeleteIndexMethod = + getDeleteIndexMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIndex")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("DeleteIndex")) + .build(); + } + } + } + return getDeleteIndexMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IndexServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceStub(channel, callOptions); + } + }; + return IndexServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IndexServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceBlockingStub(channel, callOptions); + } + }; + return IndexServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IndexServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IndexServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceFutureStub(channel, callOptions); + } + }; + return IndexServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for creating and managing Vertex AI's Index resources.
+   * 
+ */ + public abstract static class IndexServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates an Index.
+     * 
+ */ + public void createIndex( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIndexMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an Index.
+     * 
+ */ + public void getIndex( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIndexMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Indexes in a Location.
+     * 
+ */ + public void listIndexes( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIndexesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an Index.
+     * 
+ */ + public void updateIndex( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIndexMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an Index.
+     * An Index can only be deleted when all its
+     * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed.
+     * 
+ */ + public void deleteIndex( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIndexMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INDEX))) + .addMethod( + getGetIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetIndexRequest, + com.google.cloud.aiplatform.v1beta1.Index>(this, METHODID_GET_INDEX))) + .addMethod( + getListIndexesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse>( + this, METHODID_LIST_INDEXES))) + .addMethod( + getUpdateIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INDEX))) + .addMethod( + getDeleteIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INDEX))) + .build(); + } + } + + /** + * + * + *
+   * A service for creating and managing Vertex AI's Index resources.
+   * 
+ */ + public static final class IndexServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private IndexServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Index.
+     * 
+ */ + public void createIndex( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIndexMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an Index.
+     * 
+ */ + public void getIndex( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIndexMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Indexes in a Location.
+     * 
+ */ + public void listIndexes( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIndexesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an Index.
+     * 
+ */ + public void updateIndex( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an Index.
+     * An Index can only be deleted when all its
+     * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed.
+     * 
+ */ + public void deleteIndex( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service for creating and managing Vertex AI's Index resources.
+   * 
+ */ + public static final class IndexServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IndexServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Index.
+     * 
+ */ + public com.google.longrunning.Operation createIndex( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIndexMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an Index.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Index getIndex( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIndexMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Indexes in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse listIndexes( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIndexesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an Index.
+     * 
+ */ + public com.google.longrunning.Operation updateIndex( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIndexMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an Index.
+     * An Index can only be deleted when all its
+     * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed.
+     * 
+ */ + public com.google.longrunning.Operation deleteIndex( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIndexMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service for creating and managing Vertex AI's Index resources.
+   * 
+ */ + public static final class IndexServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IndexServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IndexServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IndexServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates an Index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createIndex(com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an Index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Index> + getIndex(com.google.cloud.aiplatform.v1beta1.GetIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIndexMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Indexes in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse> + listIndexes(com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIndexesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an Index.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateIndex(com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an Index.
+     * An Index can only be deleted when all its
+     * [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIndex(com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_INDEX = 0; + private static final int METHODID_GET_INDEX = 1; + private static final int METHODID_LIST_INDEXES = 2; + private static final int METHODID_UPDATE_INDEX = 3; + private static final int METHODID_DELETE_INDEX = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final IndexServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(IndexServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_INDEX: + serviceImpl.createIndex( + (com.google.cloud.aiplatform.v1beta1.CreateIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INDEX: + serviceImpl.getIndex( + (com.google.cloud.aiplatform.v1beta1.GetIndexRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_INDEXES: + serviceImpl.listIndexes( + (com.google.cloud.aiplatform.v1beta1.ListIndexesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_INDEX: + serviceImpl.updateIndex( + (com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INDEX: + serviceImpl.deleteIndex( + (com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class IndexServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IndexServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IndexService"); + } + } + + private static final class IndexServiceFileDescriptorSupplier + extends IndexServiceBaseDescriptorSupplier { + IndexServiceFileDescriptorSupplier() {} + } + + private static final class IndexServiceMethodDescriptorSupplier + extends IndexServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + IndexServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IndexServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IndexServiceFileDescriptorSupplier()) + .addMethod(getCreateIndexMethod()) + .addMethod(getGetIndexMethod()) + .addMethod(getListIndexesMethod()) + .addMethod(getUpdateIndexMethod()) + .addMethod(getDeleteIndexMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java index cce7bc8da..752d263d2 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java @@ -16,17 +16,12 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for creating and managing AI Platform's jobs.
+ * A service for creating and managing Vertex AI's jobs.
  * 
*/ @javax.annotation.Generated( @@ -1010,6 +1005,455 @@ private JobServiceGrpc() {} return getCancelBatchPredictionJobMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getCreateModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getCreateModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getCreateModelDeploymentMonitoringJobMethod; + if ((getCreateModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getCreateModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getCreateModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getCreateModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getCreateModelDeploymentMonitoringJobMethod = + getCreateModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .CreateModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "CreateModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getCreateModelDeploymentMonitoringJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse> + getSearchModelDeploymentMonitoringStatsAnomaliesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchModelDeploymentMonitoringStatsAnomalies", + requestType = + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .class, + responseType = + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse> + getSearchModelDeploymentMonitoringStatsAnomaliesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse> + getSearchModelDeploymentMonitoringStatsAnomaliesMethod; + if ((getSearchModelDeploymentMonitoringStatsAnomaliesMethod = + JobServiceGrpc.getSearchModelDeploymentMonitoringStatsAnomaliesMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getSearchModelDeploymentMonitoringStatsAnomaliesMethod = + JobServiceGrpc.getSearchModelDeploymentMonitoringStatsAnomaliesMethod) + == null) { + JobServiceGrpc.getSearchModelDeploymentMonitoringStatsAnomaliesMethod = + getSearchModelDeploymentMonitoringStatsAnomaliesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SearchModelDeploymentMonitoringStatsAnomalies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "SearchModelDeploymentMonitoringStatsAnomalies")) + .build(); + } + } + } + return getSearchModelDeploymentMonitoringStatsAnomaliesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getGetModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getGetModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getGetModelDeploymentMonitoringJobMethod; + if ((getGetModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getGetModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getGetModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getGetModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getGetModelDeploymentMonitoringJobMethod = + getGetModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .GetModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier("GetModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getGetModelDeploymentMonitoringJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> + getListModelDeploymentMonitoringJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelDeploymentMonitoringJobs", + requestType = + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.class, + responseType = + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> + getListModelDeploymentMonitoringJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> + getListModelDeploymentMonitoringJobsMethod; + if ((getListModelDeploymentMonitoringJobsMethod = + JobServiceGrpc.getListModelDeploymentMonitoringJobsMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getListModelDeploymentMonitoringJobsMethod = + JobServiceGrpc.getListModelDeploymentMonitoringJobsMethod) + == null) { + JobServiceGrpc.getListModelDeploymentMonitoringJobsMethod = + getListModelDeploymentMonitoringJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListModelDeploymentMonitoringJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ListModelDeploymentMonitoringJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ListModelDeploymentMonitoringJobsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "ListModelDeploymentMonitoringJobs")) + .build(); + } + } + } + return getListModelDeploymentMonitoringJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getUpdateModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getUpdateModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getUpdateModelDeploymentMonitoringJobMethod; + if ((getUpdateModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getUpdateModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getUpdateModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getUpdateModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getUpdateModelDeploymentMonitoringJobMethod = + getUpdateModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "UpdateModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getUpdateModelDeploymentMonitoringJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getDeleteModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getDeleteModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation> + getDeleteModelDeploymentMonitoringJobMethod; + if ((getDeleteModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getDeleteModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getDeleteModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getDeleteModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getDeleteModelDeploymentMonitoringJobMethod = + getDeleteModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .DeleteModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "DeleteModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getDeleteModelDeploymentMonitoringJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getPauseModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PauseModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getPauseModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getPauseModelDeploymentMonitoringJobMethod; + if ((getPauseModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getPauseModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getPauseModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getPauseModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getPauseModelDeploymentMonitoringJobMethod = + getPauseModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PauseModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .PauseModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "PauseModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getPauseModelDeploymentMonitoringJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getResumeModelDeploymentMonitoringJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResumeModelDeploymentMonitoringJob", + requestType = + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getResumeModelDeploymentMonitoringJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty> + getResumeModelDeploymentMonitoringJobMethod; + if ((getResumeModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getResumeModelDeploymentMonitoringJobMethod) + == null) { + synchronized (JobServiceGrpc.class) { + if ((getResumeModelDeploymentMonitoringJobMethod = + JobServiceGrpc.getResumeModelDeploymentMonitoringJobMethod) + == null) { + JobServiceGrpc.getResumeModelDeploymentMonitoringJobMethod = + getResumeModelDeploymentMonitoringJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ResumeModelDeploymentMonitoringJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ResumeModelDeploymentMonitoringJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier( + "ResumeModelDeploymentMonitoringJob")) + .build(); + } + } + } + return getResumeModelDeploymentMonitoringJobMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static JobServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1054,7 +1498,7 @@ public JobServiceFutureStub newStub( * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public abstract static class JobServiceImplBase implements io.grpc.BindableService { @@ -1071,7 +1515,8 @@ public void createCustomJob( com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomJobMethod(), responseObserver); } /** @@ -1085,7 +1530,8 @@ public void getCustomJob( com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomJobMethod(), responseObserver); } /** @@ -1099,7 +1545,8 @@ public void listCustomJobs( com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListCustomJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomJobsMethod(), responseObserver); } /** @@ -1112,7 +1559,8 @@ public void listCustomJobs( public void deleteCustomJob( com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomJobMethod(), responseObserver); } /** @@ -1134,7 +1582,8 @@ public void deleteCustomJob( public void cancelCustomJob( com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelCustomJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelCustomJobMethod(), responseObserver); } /** @@ -1148,7 +1597,8 @@ public void createDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataLabelingJobMethod(), responseObserver); } /** @@ -1162,7 +1612,8 @@ public void getDataLabelingJob( com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataLabelingJobMethod(), responseObserver); } /** @@ -1177,7 +1628,8 @@ public void listDataLabelingJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListDataLabelingJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataLabelingJobsMethod(), responseObserver); } /** @@ -1190,7 +1642,8 @@ public void listDataLabelingJobs( public void deleteDataLabelingJob( com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataLabelingJobMethod(), responseObserver); } /** @@ -1203,7 +1656,8 @@ public void deleteDataLabelingJob( public void cancelDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelDataLabelingJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelDataLabelingJobMethod(), responseObserver); } /** @@ -1217,7 +1671,8 @@ public void createHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1231,7 +1686,8 @@ public void getHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1246,7 +1702,8 @@ public void listHyperparameterTuningJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListHyperparameterTuningJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHyperparameterTuningJobsMethod(), responseObserver); } /** @@ -1259,7 +1716,8 @@ public void listHyperparameterTuningJobs( public void deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1281,7 +1739,8 @@ public void deleteHyperparameterTuningJob( public void cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelHyperparameterTuningJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelHyperparameterTuningJobMethod(), responseObserver); } /** @@ -1296,7 +1755,8 @@ public void createBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBatchPredictionJobMethod(), responseObserver); } /** @@ -1310,7 +1770,8 @@ public void getBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBatchPredictionJobMethod(), responseObserver); } /** @@ -1325,7 +1786,8 @@ public void listBatchPredictionJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListBatchPredictionJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBatchPredictionJobsMethod(), responseObserver); } /** @@ -1339,7 +1801,8 @@ public void listBatchPredictionJobs( public void deleteBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBatchPredictionJobMethod(), responseObserver); } /** @@ -1360,7 +1823,135 @@ public void deleteBatchPredictionJob( public void cancelBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelBatchPredictionJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelBatchPredictionJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a ModelDeploymentMonitoringJob. It will run periodically on a
+     * configured interval.
+     * 
+ */ + public void createModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateModelDeploymentMonitoringJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches Model Monitoring Statistics generated within a given time window.
+     * 
+ */ + public void searchModelDeploymentMonitoringStatsAnomalies( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ModelDeploymentMonitoringJob.
+     * 
+ */ + public void getModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelDeploymentMonitoringJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ModelDeploymentMonitoringJobs in a Location.
+     * 
+ */ + public void listModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelDeploymentMonitoringJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ModelDeploymentMonitoringJob.
+     * 
+ */ + public void updateModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateModelDeploymentMonitoringJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ModelDeploymentMonitoringJob.
+     * 
+ */ + public void deleteModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelDeploymentMonitoringJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server
+     * makes a best effort to cancel the job. Will mark
+     * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.
+     * 
+ */ + public void pauseModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPauseModelDeploymentMonitoringJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from
+     * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be
+     * resumed.
+     * 
+ */ + public void resumeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeModelDeploymentMonitoringJobMethod(), responseObserver); } @java.lang.Override @@ -1368,138 +1959,197 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, com.google.cloud.aiplatform.v1beta1.CustomJob>( this, METHODID_CREATE_CUSTOM_JOB))) .addMethod( getGetCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, com.google.cloud.aiplatform.v1beta1.CustomJob>( this, METHODID_GET_CUSTOM_JOB))) .addMethod( getListCustomJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse>( this, METHODID_LIST_CUSTOM_JOBS))) .addMethod( getDeleteCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_JOB))) .addMethod( getCancelCustomJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_CUSTOM_JOB))) .addMethod( getCreateDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, com.google.cloud.aiplatform.v1beta1.DataLabelingJob>( this, METHODID_CREATE_DATA_LABELING_JOB))) .addMethod( getGetDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, com.google.cloud.aiplatform.v1beta1.DataLabelingJob>( this, METHODID_GET_DATA_LABELING_JOB))) .addMethod( getListDataLabelingJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse>( this, METHODID_LIST_DATA_LABELING_JOBS))) .addMethod( getDeleteDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATA_LABELING_JOB))) .addMethod( getCancelDataLabelingJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_DATA_LABELING_JOB))) .addMethod( getCreateHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob>( this, METHODID_CREATE_HYPERPARAMETER_TUNING_JOB))) .addMethod( getGetHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob>( this, METHODID_GET_HYPERPARAMETER_TUNING_JOB))) .addMethod( getListHyperparameterTuningJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse>( this, METHODID_LIST_HYPERPARAMETER_TUNING_JOBS))) .addMethod( getDeleteHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, com.google.longrunning.Operation>( this, METHODID_DELETE_HYPERPARAMETER_TUNING_JOB))) .addMethod( getCancelHyperparameterTuningJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_HYPERPARAMETER_TUNING_JOB))) .addMethod( getCreateBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, com.google.cloud.aiplatform.v1beta1.BatchPredictionJob>( this, METHODID_CREATE_BATCH_PREDICTION_JOB))) .addMethod( getGetBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, com.google.cloud.aiplatform.v1beta1.BatchPredictionJob>( this, METHODID_GET_BATCH_PREDICTION_JOB))) .addMethod( getListBatchPredictionJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse>( this, METHODID_LIST_BATCH_PREDICTION_JOBS))) .addMethod( getDeleteBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, com.google.longrunning.Operation>( this, METHODID_DELETE_BATCH_PREDICTION_JOB))) .addMethod( getCancelBatchPredictionJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_BATCH_PREDICTION_JOB))) + .addMethod( + getCreateModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>( + this, METHODID_CREATE_MODEL_DEPLOYMENT_MONITORING_JOB))) + .addMethod( + getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse>( + this, METHODID_SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES))) + .addMethod( + getGetModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>( + this, METHODID_GET_MODEL_DEPLOYMENT_MONITORING_JOB))) + .addMethod( + getListModelDeploymentMonitoringJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, + com.google.cloud.aiplatform.v1beta1 + .ListModelDeploymentMonitoringJobsResponse>( + this, METHODID_LIST_MODEL_DEPLOYMENT_MONITORING_JOBS))) + .addMethod( + getUpdateModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_MODEL_DEPLOYMENT_MONITORING_JOB))) + .addMethod( + getDeleteModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MODEL_DEPLOYMENT_MONITORING_JOB))) + .addMethod( + getPauseModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty>( + this, METHODID_PAUSE_MODEL_DEPLOYMENT_MONITORING_JOB))) + .addMethod( + getResumeModelDeploymentMonitoringJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, + com.google.protobuf.Empty>( + this, METHODID_RESUME_MODEL_DEPLOYMENT_MONITORING_JOB))) .build(); } } @@ -1508,7 +2158,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceStub extends io.grpc.stub.AbstractAsyncStub { @@ -1533,7 +2183,7 @@ public void createCustomJob( com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1550,7 +2200,7 @@ public void getCustomJob( com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1567,7 +2217,7 @@ public void listCustomJobs( com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListCustomJobsMethod(), getCallOptions()), request, responseObserver); @@ -1583,7 +2233,7 @@ public void listCustomJobs( public void deleteCustomJob( com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1608,7 +2258,7 @@ public void deleteCustomJob( public void cancelCustomJob( com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelCustomJobMethod(), getCallOptions()), request, responseObserver); @@ -1625,7 +2275,7 @@ public void createDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1642,7 +2292,7 @@ public void getDataLabelingJob( com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1660,7 +2310,7 @@ public void listDataLabelingJobs( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDataLabelingJobsMethod(), getCallOptions()), request, responseObserver); @@ -1676,7 +2326,7 @@ public void listDataLabelingJobs( public void deleteDataLabelingJob( com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1692,7 +2342,7 @@ public void deleteDataLabelingJob( public void cancelDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelDataLabelingJobMethod(), getCallOptions()), request, responseObserver); @@ -1709,7 +2359,7 @@ public void createHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateHyperparameterTuningJobMethod(), getCallOptions()), request, responseObserver); @@ -1719,15 +2369,168 @@ public void createHyperparameterTuningJob( * * *
-     * Gets a HyperparameterTuningJob
+     * Gets a HyperparameterTuningJob
+     * 
+ */ + public void getHyperparameterTuningJob( + com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists HyperparameterTuningJobs in a Location.
+     * 
+ */ + public void listHyperparameterTuningJobs( + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a HyperparameterTuningJob.
+     * 
+ */ + public void deleteHyperparameterTuningJob( + com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels a HyperparameterTuningJob.
+     * Starts asynchronous cancellation on the HyperparameterTuningJob. The server
+     * makes a best effort to cancel the job, but success is not
+     * guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * job completed despite cancellation. On successful cancellation,
+     * the HyperparameterTuningJob is not deleted; instead it becomes a job with
+     * a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code]
+     * of 1, corresponding to `Code.CANCELLED`, and
+     * [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] is set to `CANCELLED`.
+     * 
+ */ + public void cancelHyperparameterTuningJob( + com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a BatchPredictionJob. A BatchPredictionJob once created will
+     * right away be attempted to start.
+     * 
+ */ + public void createBatchPredictionJob( + com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a BatchPredictionJob
+     * 
+ */ + public void getBatchPredictionJob( + com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BatchPredictionJobs in a Location.
+     * 
+ */ + public void listBatchPredictionJobs( + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a BatchPredictionJob. Can only be called on jobs that already
+     * finished.
+     * 
+ */ + public void deleteBatchPredictionJob( + com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels a BatchPredictionJob.
+     * Starts asynchronous cancellation on the BatchPredictionJob. The server
+     * makes the best effort to cancel the job, but success is not
+     * guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * job completed despite cancellation. On a successful cancellation,
+     * the BatchPredictionJob is not deleted;instead its
+     * [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already
+     * outputted by the job are not deleted.
      * 
*/ - public void getHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), + public void cancelBatchPredictionJob( + com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), request, responseObserver); } @@ -1736,16 +2539,17 @@ public void getHyperparameterTuningJob( * * *
-     * Lists HyperparameterTuningJobs in a Location.
+     * Creates a ModelDeploymentMonitoringJob. It will run periodically on a
+     * configured interval.
      * 
*/ - public void listHyperparameterTuningJobs( - com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request, + public void createModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request, io.grpc.stub.StreamObserver< - com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse> + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1754,14 +2558,19 @@ public void listHyperparameterTuningJobs( * * *
-     * Deletes a HyperparameterTuningJob.
+     * Searches Model Monitoring Statistics generated within a given time window.
      * 
*/ - public void deleteHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), + public void searchModelDeploymentMonitoringStatsAnomalies( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), getCallOptions()), request, responseObserver); } @@ -1770,23 +2579,16 @@ public void deleteHyperparameterTuningJob( * * *
-     * Cancels a HyperparameterTuningJob.
-     * Starts asynchronous cancellation on the HyperparameterTuningJob. The server
-     * makes a best effort to cancel the job, but success is not
-     * guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] or
-     * other methods to check whether the cancellation succeeded or whether the
-     * job completed despite cancellation. On successful cancellation,
-     * the HyperparameterTuningJob is not deleted; instead it becomes a job with
-     * a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code]
-     * of 1, corresponding to `Code.CANCELLED`, and
-     * [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] is set to `CANCELLED`.
+     * Gets a ModelDeploymentMonitoringJob.
      * 
*/ - public void cancelHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), + public void getModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1795,16 +2597,16 @@ public void cancelHyperparameterTuningJob( * * *
-     * Creates a BatchPredictionJob. A BatchPredictionJob once created will
-     * right away be attempted to start.
+     * Lists ModelDeploymentMonitoringJobs in a Location.
      * 
*/ - public void createBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request, - io.grpc.stub.StreamObserver + public void listModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelDeploymentMonitoringJobsMethod(), getCallOptions()), request, responseObserver); } @@ -1813,15 +2615,14 @@ public void createBatchPredictionJob( * * *
-     * Gets a BatchPredictionJob
+     * Updates a ModelDeploymentMonitoringJob.
      * 
*/ - public void getBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), + public void updateModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1830,16 +2631,14 @@ public void getBatchPredictionJob( * * *
-     * Lists BatchPredictionJobs in a Location.
+     * Deletes a ModelDeploymentMonitoringJob.
      * 
*/ - public void listBatchPredictionJobs( - com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), + public void deleteModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1848,15 +2647,16 @@ public void listBatchPredictionJobs( * * *
-     * Deletes a BatchPredictionJob. Can only be called on jobs that already
-     * finished.
+     * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server
+     * makes a best effort to cancel the job. Will mark
+     * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.
      * 
*/ - public void deleteBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), + public void pauseModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPauseModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1865,22 +2665,16 @@ public void deleteBatchPredictionJob( * * *
-     * Cancels a BatchPredictionJob.
-     * Starts asynchronous cancellation on the BatchPredictionJob. The server
-     * makes the best effort to cancel the job, but success is not
-     * guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] or
-     * other methods to check whether the cancellation succeeded or whether the
-     * job completed despite cancellation. On a successful cancellation,
-     * the BatchPredictionJob is not deleted;instead its
-     * [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already
-     * outputted by the job are not deleted.
+     * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from
+     * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be
+     * resumed.
      * 
*/ - public void cancelBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request, + public void resumeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeModelDeploymentMonitoringJobMethod(), getCallOptions()), request, responseObserver); } @@ -1890,7 +2684,7 @@ public void cancelBatchPredictionJob( * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceBlockingStub @@ -1915,7 +2709,8 @@ protected JobServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1beta1.CustomJob createCustomJob( com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); } /** @@ -1927,7 +2722,8 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob createCustomJob( */ public com.google.cloud.aiplatform.v1beta1.CustomJob getCustomJob( com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getGetCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomJobMethod(), getCallOptions(), request); } /** @@ -1939,7 +2735,8 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob getCustomJob( */ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse listCustomJobs( com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request) { - return blockingUnaryCall(getChannel(), getListCustomJobsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomJobsMethod(), getCallOptions(), request); } /** @@ -1951,7 +2748,8 @@ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse listCustomJobs */ public com.google.longrunning.Operation deleteCustomJob( com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); } /** @@ -1972,7 +2770,8 @@ public com.google.longrunning.Operation deleteCustomJob( */ public com.google.protobuf.Empty cancelCustomJob( com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request) { - return blockingUnaryCall(getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); } /** @@ -1984,7 +2783,7 @@ public com.google.protobuf.Empty cancelCustomJob( */ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob createDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDataLabelingJobMethod(), getCallOptions(), request); } @@ -1997,7 +2796,7 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob createDataLabelingJob */ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob getDataLabelingJob( com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataLabelingJobMethod(), getCallOptions(), request); } @@ -2010,7 +2809,7 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob getDataLabelingJob( */ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse listDataLabelingJobs( com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDataLabelingJobsMethod(), getCallOptions(), request); } @@ -2023,7 +2822,7 @@ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse listData */ public com.google.longrunning.Operation deleteDataLabelingJob( com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDataLabelingJobMethod(), getCallOptions(), request); } @@ -2036,7 +2835,7 @@ public com.google.longrunning.Operation deleteDataLabelingJob( */ public com.google.protobuf.Empty cancelDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelDataLabelingJobMethod(), getCallOptions(), request); } @@ -2050,7 +2849,7 @@ public com.google.protobuf.Empty cancelDataLabelingJob( public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob createHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2063,7 +2862,7 @@ public com.google.protobuf.Empty cancelDataLabelingJob( */ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2077,7 +2876,7 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse listHyperparameterTuningJobs( com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListHyperparameterTuningJobsMethod(), getCallOptions(), request); } @@ -2090,7 +2889,7 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam */ public com.google.longrunning.Operation deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2112,7 +2911,7 @@ public com.google.longrunning.Operation deleteHyperparameterTuningJob( */ public com.google.protobuf.Empty cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -2126,7 +2925,7 @@ public com.google.protobuf.Empty cancelHyperparameterTuningJob( */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob createBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2139,7 +2938,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob createBatchPredict */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2153,7 +2952,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse listBatchPredictionJobs( com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBatchPredictionJobsMethod(), getCallOptions(), request); } @@ -2167,7 +2966,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction */ public com.google.longrunning.Operation deleteBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBatchPredictionJobMethod(), getCallOptions(), request); } @@ -2188,16 +2987,133 @@ public com.google.longrunning.Operation deleteBatchPredictionJob( */ public com.google.protobuf.Empty cancelBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelBatchPredictionJobMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a ModelDeploymentMonitoringJob. It will run periodically on a
+     * configured interval.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + createModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches Model Monitoring Statistics generated within a given time window.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + searchModelDeploymentMonitoringStatsAnomalies( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ModelDeploymentMonitoringJobs in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + listModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelDeploymentMonitoringJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.longrunning.Operation updateModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.longrunning.Operation deleteModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server
+     * makes a best effort to cancel the job. Will mark
+     * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.
+     * 
+ */ + public com.google.protobuf.Empty pauseModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from
+     * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be
+     * resumed.
+     * 
+ */ + public com.google.protobuf.Empty resumeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeModelDeploymentMonitoringJobMethod(), getCallOptions(), request); + } } /** * * *
-   * A service for creating and managing AI Platform's jobs.
+   * A service for creating and managing Vertex AI's jobs.
    * 
*/ public static final class JobServiceFutureStub @@ -2222,7 +3138,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.CustomJob> createCustomJob(com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCustomJobMethod(), getCallOptions()), request); } @@ -2236,7 +3152,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.CustomJob> getCustomJob(com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCustomJobMethod(), getCallOptions()), request); } @@ -2250,7 +3166,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse> listCustomJobs(com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCustomJobsMethod(), getCallOptions()), request); } @@ -2263,7 +3179,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteCustomJob(com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteCustomJobMethod(), getCallOptions()), request); } @@ -2285,7 +3201,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture cancelCustomJob(com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelCustomJobMethod(), getCallOptions()), request); } @@ -2300,7 +3216,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.DataLabelingJob> createDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDataLabelingJobMethod(), getCallOptions()), request); } @@ -2314,7 +3230,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.DataLabelingJob> getDataLabelingJob(com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataLabelingJobMethod(), getCallOptions()), request); } @@ -2329,7 +3245,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse> listDataLabelingJobs( com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDataLabelingJobsMethod(), getCallOptions()), request); } @@ -2343,7 +3259,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteDataLabelingJob( com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDataLabelingJobMethod(), getCallOptions()), request); } @@ -2357,7 +3273,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture cancelDataLabelingJob( com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelDataLabelingJobMethod(), getCallOptions()), request); } @@ -2372,7 +3288,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob> createHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2388,7 +3304,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob> getHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2403,7 +3319,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse> listHyperparameterTuningJobs( com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListHyperparameterTuningJobsMethod(), getCallOptions()), request); } @@ -2417,7 +3333,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2441,7 +3357,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture cancelHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelHyperparameterTuningJobMethod(), getCallOptions()), request); } @@ -2458,7 +3374,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.BatchPredictionJob> createBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2473,7 +3389,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.BatchPredictionJob> getBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2488,7 +3404,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse> listBatchPredictionJobs( com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBatchPredictionJobsMethod(), getCallOptions()), request); } @@ -2503,7 +3419,7 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBatchPredictionJobMethod(), getCallOptions()), request); } @@ -2525,9 +3441,141 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture cancelBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelBatchPredictionJobMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a ModelDeploymentMonitoringJob. It will run periodically on a
+     * configured interval.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + createModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Searches Model Monitoring Statistics generated within a given time window.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse> + searchModelDeploymentMonitoringStatsAnomalies( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + getModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists ModelDeploymentMonitoringJobs in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse> + listModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelDeploymentMonitoringJobsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a ModelDeploymentMonitoringJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server
+     * makes a best effort to cancel the job. Will mark
+     * [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + pauseModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPauseModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from
+     * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be
+     * resumed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resumeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeModelDeploymentMonitoringJobMethod(), getCallOptions()), + request); + } } private static final int METHODID_CREATE_CUSTOM_JOB = 0; @@ -2550,6 +3598,14 @@ protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_LIST_BATCH_PREDICTION_JOBS = 17; private static final int METHODID_DELETE_BATCH_PREDICTION_JOB = 18; private static final int METHODID_CANCEL_BATCH_PREDICTION_JOB = 19; + private static final int METHODID_CREATE_MODEL_DEPLOYMENT_MONITORING_JOB = 20; + private static final int METHODID_SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES = 21; + private static final int METHODID_GET_MODEL_DEPLOYMENT_MONITORING_JOB = 22; + private static final int METHODID_LIST_MODEL_DEPLOYMENT_MONITORING_JOBS = 23; + private static final int METHODID_UPDATE_MODEL_DEPLOYMENT_MONITORING_JOB = 24; + private static final int METHODID_DELETE_MODEL_DEPLOYMENT_MONITORING_JOB = 25; + private static final int METHODID_PAUSE_MODEL_DEPLOYMENT_MONITORING_JOB = 26; + private static final int METHODID_RESUME_MODEL_DEPLOYMENT_MONITORING_JOB = 27; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2686,6 +3742,64 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.createModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>) + responseObserver); + break; + case METHODID_SEARCH_MODEL_DEPLOYMENT_MONITORING_STATS_ANOMALIES: + serviceImpl.searchModelDeploymentMonitoringStatsAnomalies( + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse>) + responseObserver); + break; + case METHODID_GET_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.getModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>) + responseObserver); + break; + case METHODID_LIST_MODEL_DEPLOYMENT_MONITORING_JOBS: + serviceImpl.listModelDeploymentMonitoringJobs( + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1 + .ListModelDeploymentMonitoringJobsResponse>) + responseObserver); + break; + case METHODID_UPDATE_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.updateModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.deleteModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAUSE_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.pauseModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_MODEL_DEPLOYMENT_MONITORING_JOB: + serviceImpl.resumeModelDeploymentMonitoringJob( + (com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2770,6 +3884,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListBatchPredictionJobsMethod()) .addMethod(getDeleteBatchPredictionJobMethod()) .addMethod(getCancelBatchPredictionJobMethod()) + .addMethod(getCreateModelDeploymentMonitoringJobMethod()) + .addMethod(getSearchModelDeploymentMonitoringStatsAnomaliesMethod()) + .addMethod(getGetModelDeploymentMonitoringJobMethod()) + .addMethod(getListModelDeploymentMonitoringJobsMethod()) + .addMethod(getUpdateModelDeploymentMonitoringJobMethod()) + .addMethod(getDeleteModelDeploymentMonitoringJobMethod()) + .addMethod(getPauseModelDeploymentMonitoringJobMethod()) + .addMethod(getResumeModelDeploymentMonitoringJobMethod()) .build(); } } 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 new file mode 100644 index 000000000..ddb0cf958 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java @@ -0,0 +1,3458 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for reading and writing metadata entries.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/metadata_service.proto") +public final class MetadataServiceGrpc { + + private MetadataServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.MetadataService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, + com.google.longrunning.Operation> + getCreateMetadataStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMetadataStore", + requestType = com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, + com.google.longrunning.Operation> + getCreateMetadataStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, + com.google.longrunning.Operation> + getCreateMetadataStoreMethod; + if ((getCreateMetadataStoreMethod = MetadataServiceGrpc.getCreateMetadataStoreMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getCreateMetadataStoreMethod = MetadataServiceGrpc.getCreateMetadataStoreMethod) + == null) { + MetadataServiceGrpc.getCreateMetadataStoreMethod = + getCreateMetadataStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMetadataStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("CreateMetadataStore")) + .build(); + } + } + } + return getCreateMetadataStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, + com.google.cloud.aiplatform.v1beta1.MetadataStore> + getGetMetadataStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetadataStore", + requestType = com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.MetadataStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, + com.google.cloud.aiplatform.v1beta1.MetadataStore> + getGetMetadataStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, + com.google.cloud.aiplatform.v1beta1.MetadataStore> + getGetMetadataStoreMethod; + if ((getGetMetadataStoreMethod = MetadataServiceGrpc.getGetMetadataStoreMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getGetMetadataStoreMethod = MetadataServiceGrpc.getGetMetadataStoreMethod) == null) { + MetadataServiceGrpc.getGetMetadataStoreMethod = + getGetMetadataStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadataStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.MetadataStore + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("GetMetadataStore")) + .build(); + } + } + } + return getGetMetadataStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse> + getListMetadataStoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMetadataStores", + requestType = com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse> + getListMetadataStoresMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse> + getListMetadataStoresMethod; + if ((getListMetadataStoresMethod = MetadataServiceGrpc.getListMetadataStoresMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getListMetadataStoresMethod = MetadataServiceGrpc.getListMetadataStoresMethod) + == null) { + MetadataServiceGrpc.getListMetadataStoresMethod = + getListMetadataStoresMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMetadataStores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("ListMetadataStores")) + .build(); + } + } + } + return getListMetadataStoresMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, + com.google.longrunning.Operation> + getDeleteMetadataStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMetadataStore", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, + com.google.longrunning.Operation> + getDeleteMetadataStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, + com.google.longrunning.Operation> + getDeleteMetadataStoreMethod; + if ((getDeleteMetadataStoreMethod = MetadataServiceGrpc.getDeleteMetadataStoreMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getDeleteMetadataStoreMethod = MetadataServiceGrpc.getDeleteMetadataStoreMethod) + == null) { + MetadataServiceGrpc.getDeleteMetadataStoreMethod = + getDeleteMetadataStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMetadataStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("DeleteMetadataStore")) + .build(); + } + } + } + return getDeleteMetadataStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getCreateArtifactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateArtifact", + requestType = com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Artifact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getCreateArtifactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getCreateArtifactMethod; + if ((getCreateArtifactMethod = MetadataServiceGrpc.getCreateArtifactMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getCreateArtifactMethod = MetadataServiceGrpc.getCreateArtifactMethod) == null) { + MetadataServiceGrpc.getCreateArtifactMethod = + getCreateArtifactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateArtifact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("CreateArtifact")) + .build(); + } + } + } + return getCreateArtifactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getGetArtifactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetArtifact", + requestType = com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Artifact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getGetArtifactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getGetArtifactMethod; + if ((getGetArtifactMethod = MetadataServiceGrpc.getGetArtifactMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getGetArtifactMethod = MetadataServiceGrpc.getGetArtifactMethod) == null) { + MetadataServiceGrpc.getGetArtifactMethod = + getGetArtifactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetArtifact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("GetArtifact")) + .build(); + } + } + } + return getGetArtifactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse> + getListArtifactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListArtifacts", + requestType = com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse> + getListArtifactsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse> + getListArtifactsMethod; + if ((getListArtifactsMethod = MetadataServiceGrpc.getListArtifactsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getListArtifactsMethod = MetadataServiceGrpc.getListArtifactsMethod) == null) { + MetadataServiceGrpc.getListArtifactsMethod = + getListArtifactsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListArtifacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("ListArtifacts")) + .build(); + } + } + } + return getListArtifactsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getUpdateArtifactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateArtifact", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Artifact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getUpdateArtifactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact> + getUpdateArtifactMethod; + if ((getUpdateArtifactMethod = MetadataServiceGrpc.getUpdateArtifactMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getUpdateArtifactMethod = MetadataServiceGrpc.getUpdateArtifactMethod) == null) { + MetadataServiceGrpc.getUpdateArtifactMethod = + getUpdateArtifactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateArtifact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("UpdateArtifact")) + .build(); + } + } + } + return getUpdateArtifactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getCreateContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateContext", + requestType = com.google.cloud.aiplatform.v1beta1.CreateContextRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getCreateContextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getCreateContextMethod; + if ((getCreateContextMethod = MetadataServiceGrpc.getCreateContextMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getCreateContextMethod = MetadataServiceGrpc.getCreateContextMethod) == null) { + MetadataServiceGrpc.getCreateContextMethod = + getCreateContextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("CreateContext")) + .build(); + } + } + } + return getCreateContextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getGetContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetContext", + requestType = com.google.cloud.aiplatform.v1beta1.GetContextRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getGetContextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getGetContextMethod; + if ((getGetContextMethod = MetadataServiceGrpc.getGetContextMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getGetContextMethod = MetadataServiceGrpc.getGetContextMethod) == null) { + MetadataServiceGrpc.getGetContextMethod = + getGetContextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetContextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("GetContext")) + .build(); + } + } + } + return getGetContextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListContextsRequest, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse> + getListContextsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListContexts", + requestType = com.google.cloud.aiplatform.v1beta1.ListContextsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListContextsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListContextsRequest, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse> + getListContextsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListContextsRequest, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse> + getListContextsMethod; + if ((getListContextsMethod = MetadataServiceGrpc.getListContextsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getListContextsMethod = MetadataServiceGrpc.getListContextsMethod) == null) { + MetadataServiceGrpc.getListContextsMethod = + getListContextsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContexts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListContextsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("ListContexts")) + .build(); + } + } + } + return getListContextsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getUpdateContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateContext", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getUpdateContextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context> + getUpdateContextMethod; + if ((getUpdateContextMethod = MetadataServiceGrpc.getUpdateContextMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getUpdateContextMethod = MetadataServiceGrpc.getUpdateContextMethod) == null) { + MetadataServiceGrpc.getUpdateContextMethod = + getUpdateContextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("UpdateContext")) + .build(); + } + } + } + return getUpdateContextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest, + com.google.longrunning.Operation> + getDeleteContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteContext", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest, + com.google.longrunning.Operation> + getDeleteContextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest, + com.google.longrunning.Operation> + getDeleteContextMethod; + if ((getDeleteContextMethod = MetadataServiceGrpc.getDeleteContextMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getDeleteContextMethod = MetadataServiceGrpc.getDeleteContextMethod) == null) { + MetadataServiceGrpc.getDeleteContextMethod = + getDeleteContextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("DeleteContext")) + .build(); + } + } + } + return getDeleteContextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + getAddContextArtifactsAndExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddContextArtifactsAndExecutions", + requestType = + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.class, + responseType = + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + getAddContextArtifactsAndExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + getAddContextArtifactsAndExecutionsMethod; + if ((getAddContextArtifactsAndExecutionsMethod = + MetadataServiceGrpc.getAddContextArtifactsAndExecutionsMethod) + == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getAddContextArtifactsAndExecutionsMethod = + MetadataServiceGrpc.getAddContextArtifactsAndExecutionsMethod) + == null) { + MetadataServiceGrpc.getAddContextArtifactsAndExecutionsMethod = + getAddContextArtifactsAndExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AddContextArtifactsAndExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .AddContextArtifactsAndExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .AddContextArtifactsAndExecutionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier( + "AddContextArtifactsAndExecutions")) + .build(); + } + } + } + return getAddContextArtifactsAndExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse> + getAddContextChildrenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddContextChildren", + requestType = com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse> + getAddContextChildrenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse> + getAddContextChildrenMethod; + if ((getAddContextChildrenMethod = MetadataServiceGrpc.getAddContextChildrenMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getAddContextChildrenMethod = MetadataServiceGrpc.getAddContextChildrenMethod) + == null) { + MetadataServiceGrpc.getAddContextChildrenMethod = + getAddContextChildrenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddContextChildren")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("AddContextChildren")) + .build(); + } + } + } + return getAddContextChildrenMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryContextLineageSubgraphMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryContextLineageSubgraph", + requestType = com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.LineageSubgraph.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryContextLineageSubgraphMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryContextLineageSubgraphMethod; + if ((getQueryContextLineageSubgraphMethod = + MetadataServiceGrpc.getQueryContextLineageSubgraphMethod) + == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getQueryContextLineageSubgraphMethod = + MetadataServiceGrpc.getQueryContextLineageSubgraphMethod) + == null) { + MetadataServiceGrpc.getQueryContextLineageSubgraphMethod = + getQueryContextLineageSubgraphMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryContextLineageSubgraph")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier( + "QueryContextLineageSubgraph")) + .build(); + } + } + } + return getQueryContextLineageSubgraphMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getCreateExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getCreateExecutionMethod; + if ((getCreateExecutionMethod = MetadataServiceGrpc.getCreateExecutionMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getCreateExecutionMethod = MetadataServiceGrpc.getCreateExecutionMethod) == null) { + MetadataServiceGrpc.getCreateExecutionMethod = + getCreateExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = MetadataServiceGrpc.getGetExecutionMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getGetExecutionMethod = MetadataServiceGrpc.getGetExecutionMethod) == null) { + MetadataServiceGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = MetadataServiceGrpc.getListExecutionsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getListExecutionsMethod = MetadataServiceGrpc.getListExecutionsMethod) == null) { + MetadataServiceGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getUpdateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExecution", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getUpdateExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution> + getUpdateExecutionMethod; + if ((getUpdateExecutionMethod = MetadataServiceGrpc.getUpdateExecutionMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getUpdateExecutionMethod = MetadataServiceGrpc.getUpdateExecutionMethod) == null) { + MetadataServiceGrpc.getUpdateExecutionMethod = + getUpdateExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("UpdateExecution")) + .build(); + } + } + } + return getUpdateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse> + getAddExecutionEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddExecutionEvents", + requestType = com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse> + getAddExecutionEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse> + getAddExecutionEventsMethod; + if ((getAddExecutionEventsMethod = MetadataServiceGrpc.getAddExecutionEventsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getAddExecutionEventsMethod = MetadataServiceGrpc.getAddExecutionEventsMethod) + == null) { + MetadataServiceGrpc.getAddExecutionEventsMethod = + getAddExecutionEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddExecutionEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("AddExecutionEvents")) + .build(); + } + } + } + return getAddExecutionEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryExecutionInputsAndOutputsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryExecutionInputsAndOutputs", + requestType = com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.LineageSubgraph.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryExecutionInputsAndOutputsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryExecutionInputsAndOutputsMethod; + if ((getQueryExecutionInputsAndOutputsMethod = + MetadataServiceGrpc.getQueryExecutionInputsAndOutputsMethod) + == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getQueryExecutionInputsAndOutputsMethod = + MetadataServiceGrpc.getQueryExecutionInputsAndOutputsMethod) + == null) { + MetadataServiceGrpc.getQueryExecutionInputsAndOutputsMethod = + getQueryExecutionInputsAndOutputsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryExecutionInputsAndOutputs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .QueryExecutionInputsAndOutputsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier( + "QueryExecutionInputsAndOutputs")) + .build(); + } + } + } + return getQueryExecutionInputsAndOutputsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getCreateMetadataSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMetadataSchema", + requestType = com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.MetadataSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getCreateMetadataSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getCreateMetadataSchemaMethod; + if ((getCreateMetadataSchemaMethod = MetadataServiceGrpc.getCreateMetadataSchemaMethod) + == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getCreateMetadataSchemaMethod = MetadataServiceGrpc.getCreateMetadataSchemaMethod) + == null) { + MetadataServiceGrpc.getCreateMetadataSchemaMethod = + getCreateMetadataSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMetadataSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.MetadataSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("CreateMetadataSchema")) + .build(); + } + } + } + return getCreateMetadataSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getGetMetadataSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetadataSchema", + requestType = com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.MetadataSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getGetMetadataSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getGetMetadataSchemaMethod; + if ((getGetMetadataSchemaMethod = MetadataServiceGrpc.getGetMetadataSchemaMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getGetMetadataSchemaMethod = MetadataServiceGrpc.getGetMetadataSchemaMethod) == null) { + MetadataServiceGrpc.getGetMetadataSchemaMethod = + getGetMetadataSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadataSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.MetadataSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("GetMetadataSchema")) + .build(); + } + } + } + return getGetMetadataSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse> + getListMetadataSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMetadataSchemas", + requestType = com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse> + getListMetadataSchemasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse> + getListMetadataSchemasMethod; + if ((getListMetadataSchemasMethod = MetadataServiceGrpc.getListMetadataSchemasMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getListMetadataSchemasMethod = MetadataServiceGrpc.getListMetadataSchemasMethod) + == null) { + MetadataServiceGrpc.getListMetadataSchemasMethod = + getListMetadataSchemasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMetadataSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("ListMetadataSchemas")) + .build(); + } + } + } + return getListMetadataSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryArtifactLineageSubgraphMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryArtifactLineageSubgraph", + requestType = com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.LineageSubgraph.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryArtifactLineageSubgraphMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + getQueryArtifactLineageSubgraphMethod; + if ((getQueryArtifactLineageSubgraphMethod = + MetadataServiceGrpc.getQueryArtifactLineageSubgraphMethod) + == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getQueryArtifactLineageSubgraphMethod = + MetadataServiceGrpc.getQueryArtifactLineageSubgraphMethod) + == null) { + MetadataServiceGrpc.getQueryArtifactLineageSubgraphMethod = + getQueryArtifactLineageSubgraphMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryArtifactLineageSubgraph")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .QueryArtifactLineageSubgraphRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph + .getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier( + "QueryArtifactLineageSubgraph")) + .build(); + } + } + } + return getQueryArtifactLineageSubgraphMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MetadataServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetadataServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceStub(channel, callOptions); + } + }; + return MetadataServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetadataServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetadataServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceBlockingStub(channel, callOptions); + } + }; + return MetadataServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MetadataServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetadataServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceFutureStub(channel, callOptions); + } + }; + return MetadataServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for reading and writing metadata entries.
+   * 
+ */ + public abstract static class MetadataServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Initializes a MetadataStore, including allocation of resources.
+     * 
+ */ + public void createMetadataStore( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMetadataStoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific MetadataStore.
+     * 
+ */ + public void getMetadataStore( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMetadataStoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists MetadataStores for a Location.
+     * 
+ */ + public void listMetadataStores( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMetadataStoresMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single MetadataStore.
+     * 
+ */ + public void deleteMetadataStore( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMetadataStoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an Artifact associated with a MetadataStore.
+     * 
+ */ + public void createArtifact( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateArtifactMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Artifact.
+     * 
+ */ + public void getArtifact( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetArtifactMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Artifacts in the MetadataStore.
+     * 
+ */ + public void listArtifacts( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListArtifactsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a stored Artifact.
+     * 
+ */ + public void updateArtifact( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateArtifactMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Context associated with a MetadataStore.
+     * 
+ */ + public void createContext( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateContextMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Context.
+     * 
+ */ + public void getContext( + com.google.cloud.aiplatform.v1beta1.GetContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Contexts on the MetadataStore.
+     * 
+ */ + public void listContexts( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListContextsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a stored Context.
+     * 
+ */ + public void updateContext( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateContextMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a stored Context.
+     * 
+ */ + public void deleteContext( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteContextMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void addContextArtifactsAndExecutions( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddContextArtifactsAndExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a set of Contexts as children to a parent Context. If any of the
+     * child Contexts have already been added to the parent Context, they are
+     * simply skipped. If this call would create a cycle or cause any Context to
+     * have more than 10 parents, the request will fail with an INVALID_ARGUMENT
+     * error.
+     * 
+ */ + public void addContextChildren( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddContextChildrenMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves Artifacts and Executions within the specified Context, connected
+     * by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public void queryContextLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryContextLineageSubgraphMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an Execution associated with a MetadataStore.
+     * 
+ */ + public void createExecution( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Execution.
+     * 
+ */ + public void getExecution( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Executions in the MetadataStore.
+     * 
+ */ + public void listExecutions( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a stored Execution.
+     * 
+ */ + public void updateExecution( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * 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
+     * skipped.
+     * 
+ */ + public void addExecutionEvents( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddExecutionEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Obtains the set of input and output Artifacts for this Execution, in the
+     * form of LineageSubgraph that also contains the Execution and connecting
+     * Events.
+     * 
+ */ + public void queryExecutionInputsAndOutputs( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryExecutionInputsAndOutputsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a MetadataSchema.
+     * 
+ */ + public void createMetadataSchema( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMetadataSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific MetadataSchema.
+     * 
+ */ + public void getMetadataSchema( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMetadataSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists MetadataSchemas.
+     * 
+ */ + public void listMetadataSchemas( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMetadataSchemasMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves lineage of an Artifact represented through Artifacts and
+     * Executions connected by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public void queryArtifactLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryArtifactLineageSubgraphMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateMetadataStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_METADATA_STORE))) + .addMethod( + getGetMetadataStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, + com.google.cloud.aiplatform.v1beta1.MetadataStore>( + this, METHODID_GET_METADATA_STORE))) + .addMethod( + getListMetadataStoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse>( + this, METHODID_LIST_METADATA_STORES))) + .addMethod( + getDeleteMetadataStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_METADATA_STORE))) + .addMethod( + getCreateArtifactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact>( + this, METHODID_CREATE_ARTIFACT))) + .addMethod( + getGetArtifactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact>(this, METHODID_GET_ARTIFACT))) + .addMethod( + getListArtifactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse>( + this, METHODID_LIST_ARTIFACTS))) + .addMethod( + getUpdateArtifactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, + com.google.cloud.aiplatform.v1beta1.Artifact>( + this, METHODID_UPDATE_ARTIFACT))) + .addMethod( + getCreateContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context>(this, METHODID_CREATE_CONTEXT))) + .addMethod( + getGetContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetContextRequest, + com.google.cloud.aiplatform.v1beta1.Context>(this, METHODID_GET_CONTEXT))) + .addMethod( + getListContextsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListContextsRequest, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse>( + this, METHODID_LIST_CONTEXTS))) + .addMethod( + getUpdateContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest, + com.google.cloud.aiplatform.v1beta1.Context>(this, METHODID_UPDATE_CONTEXT))) + .addMethod( + getDeleteContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CONTEXT))) + .addMethod( + getAddContextArtifactsAndExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse>( + this, METHODID_ADD_CONTEXT_ARTIFACTS_AND_EXECUTIONS))) + .addMethod( + getAddContextChildrenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse>( + this, METHODID_ADD_CONTEXT_CHILDREN))) + .addMethod( + getQueryContextLineageSubgraphMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph>( + this, METHODID_QUERY_CONTEXT_LINEAGE_SUBGRAPH))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution>( + this, METHODID_CREATE_EXECUTION))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution>(this, METHODID_GET_EXECUTION))) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse>( + this, METHODID_LIST_EXECUTIONS))) + .addMethod( + getUpdateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, + com.google.cloud.aiplatform.v1beta1.Execution>( + this, METHODID_UPDATE_EXECUTION))) + .addMethod( + getAddExecutionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse>( + this, METHODID_ADD_EXECUTION_EVENTS))) + .addMethod( + getQueryExecutionInputsAndOutputsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph>( + this, METHODID_QUERY_EXECUTION_INPUTS_AND_OUTPUTS))) + .addMethod( + getCreateMetadataSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema>( + this, METHODID_CREATE_METADATA_SCHEMA))) + .addMethod( + getGetMetadataSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, + com.google.cloud.aiplatform.v1beta1.MetadataSchema>( + this, METHODID_GET_METADATA_SCHEMA))) + .addMethod( + getListMetadataSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse>( + this, METHODID_LIST_METADATA_SCHEMAS))) + .addMethod( + getQueryArtifactLineageSubgraphMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph>( + this, METHODID_QUERY_ARTIFACT_LINEAGE_SUBGRAPH))) + .build(); + } + } + + /** + * + * + *
+   * Service for reading and writing metadata entries.
+   * 
+ */ + public static final class MetadataServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MetadataServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetadataServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Initializes a MetadataStore, including allocation of resources.
+     * 
+ */ + public void createMetadataStore( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMetadataStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific MetadataStore.
+     * 
+ */ + public void getMetadataStore( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetadataStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists MetadataStores for a Location.
+     * 
+ */ + public void listMetadataStores( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMetadataStoresMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single MetadataStore.
+     * 
+ */ + public void deleteMetadataStore( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMetadataStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an Artifact associated with a MetadataStore.
+     * 
+ */ + public void createArtifact( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateArtifactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Artifact.
+     * 
+ */ + public void getArtifact( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetArtifactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Artifacts in the MetadataStore.
+     * 
+ */ + public void listArtifacts( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListArtifactsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a stored Artifact.
+     * 
+ */ + public void updateArtifact( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateArtifactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a Context associated with a MetadataStore.
+     * 
+ */ + public void createContext( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateContextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Context.
+     * 
+ */ + public void getContext( + com.google.cloud.aiplatform.v1beta1.GetContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Contexts on the MetadataStore.
+     * 
+ */ + public void listContexts( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListContextsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a stored Context.
+     * 
+ */ + public void updateContext( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateContextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a stored Context.
+     * 
+ */ + public void deleteContext( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteContextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public void addContextArtifactsAndExecutions( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddContextArtifactsAndExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds a set of Contexts as children to a parent Context. If any of the
+     * child Contexts have already been added to the parent Context, they are
+     * simply skipped. If this call would create a cycle or cause any Context to
+     * have more than 10 parents, the request will fail with an INVALID_ARGUMENT
+     * error.
+     * 
+ */ + public void addContextChildren( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddContextChildrenMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves Artifacts and Executions within the specified Context, connected
+     * by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public void queryContextLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryContextLineageSubgraphMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an Execution associated with a MetadataStore.
+     * 
+ */ + public void createExecution( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific Execution.
+     * 
+ */ + public void getExecution( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Executions in the MetadataStore.
+     * 
+ */ + public void listExecutions( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a stored Execution.
+     * 
+ */ + public void updateExecution( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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
+     * skipped.
+     * 
+ */ + public void addExecutionEvents( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddExecutionEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Obtains the set of input and output Artifacts for this Execution, in the
+     * form of LineageSubgraph that also contains the Execution and connecting
+     * Events.
+     * 
+ */ + public void queryExecutionInputsAndOutputs( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryExecutionInputsAndOutputsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a MetadataSchema.
+     * 
+ */ + public void createMetadataSchema( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMetadataSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a specific MetadataSchema.
+     * 
+ */ + public void getMetadataSchema( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetadataSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists MetadataSchemas.
+     * 
+ */ + public void listMetadataSchemas( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMetadataSchemasMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves lineage of an Artifact represented through Artifacts and
+     * Executions connected by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public void queryArtifactLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryArtifactLineageSubgraphMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for reading and writing metadata entries.
+   * 
+ */ + public static final class MetadataServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetadataServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetadataServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Initializes a MetadataStore, including allocation of resources.
+     * 
+ */ + public com.google.longrunning.Operation createMetadataStore( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMetadataStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a specific MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetadataStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MetadataStores for a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse listMetadataStores( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMetadataStoresMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single MetadataStore.
+     * 
+ */ + public com.google.longrunning.Operation deleteMetadataStore( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMetadataStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an Artifact associated with a MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Artifact createArtifact( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateArtifactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a specific Artifact.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetArtifactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Artifacts in the MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse listArtifacts( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListArtifactsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a stored Artifact.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Artifact updateArtifact( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateArtifactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Context associated with a MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Context createContext( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a specific Context.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Context getContext( + com.google.cloud.aiplatform.v1beta1.GetContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Contexts on the MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListContextsResponse listContexts( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a stored Context.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Context updateContext( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a stored Context.
+     * 
+ */ + public com.google.longrunning.Operation deleteContext( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + addContextArtifactsAndExecutions( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddContextArtifactsAndExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a set of Contexts as children to a parent Context. If any of the
+     * child Contexts have already been added to the parent Context, they are
+     * simply skipped. If this call would create a cycle or cause any Context to
+     * have more than 10 parents, the request will fail with an INVALID_ARGUMENT
+     * error.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse addContextChildren( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddContextChildrenMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves Artifacts and Executions within the specified Context, connected
+     * by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryContextLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryContextLineageSubgraphMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an Execution associated with a MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Execution createExecution( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a specific Execution.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecution( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Executions in the MetadataStore.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse listExecutions( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a stored Execution.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Execution updateExecution( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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
+     * skipped.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse addExecutionEvents( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddExecutionEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Obtains the set of input and output Artifacts for this Execution, in the
+     * form of LineageSubgraph that also contains the Execution and connecting
+     * Events.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryExecutionInputsAndOutputs( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryExecutionInputsAndOutputsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a MetadataSchema.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema createMetadataSchema( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMetadataSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a specific MetadataSchema.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetadataSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists MetadataSchemas.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse listMetadataSchemas( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMetadataSchemasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves lineage of an Artifact represented through Artifacts and
+     * Executions connected by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryArtifactLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryArtifactLineageSubgraphMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for reading and writing metadata entries.
+   * 
+ */ + public static final class MetadataServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetadataServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetadataServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetadataServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Initializes a MetadataStore, including allocation of resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMetadataStore( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMetadataStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a specific MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.MetadataStore> + getMetadataStore(com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetadataStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists MetadataStores for a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse> + listMetadataStores(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMetadataStoresMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMetadataStore( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMetadataStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an Artifact associated with a MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Artifact> + createArtifact(com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateArtifactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a specific Artifact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Artifact> + getArtifact(com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetArtifactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Artifacts in the MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse> + listArtifacts(com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListArtifactsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a stored Artifact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Artifact> + updateArtifact(com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateArtifactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Context associated with a MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Context> + createContext(com.google.cloud.aiplatform.v1beta1.CreateContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a specific Context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Context> + getContext(com.google.cloud.aiplatform.v1beta1.GetContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetContextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Contexts on the MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListContextsResponse> + listContexts(com.google.cloud.aiplatform.v1beta1.ListContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListContextsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a stored Context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Context> + updateContext(com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a stored Context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteContext(com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> + addContextArtifactsAndExecutions( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddContextArtifactsAndExecutionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Adds a set of Contexts as children to a parent Context. If any of the
+     * child Contexts have already been added to the parent Context, they are
+     * simply skipped. If this call would create a cycle or cause any Context to
+     * have more than 10 parents, the request will fail with an INVALID_ARGUMENT
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse> + addContextChildren(com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddContextChildrenMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves Artifacts and Executions within the specified Context, connected
+     * by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + queryContextLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryContextLineageSubgraphMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an Execution associated with a MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Execution> + createExecution(com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a specific Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Execution> + getExecution(com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Executions in the MetadataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse> + listExecutions(com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a stored Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Execution> + updateExecution(com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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
+     * skipped.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse> + addExecutionEvents(com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddExecutionEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Obtains the set of input and output Artifacts for this Execution, in the
+     * form of LineageSubgraph that also contains the Execution and connecting
+     * Events.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + queryExecutionInputsAndOutputs( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryExecutionInputsAndOutputsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a MetadataSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + createMetadataSchema( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMetadataSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a specific MetadataSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.MetadataSchema> + getMetadataSchema(com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetadataSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists MetadataSchemas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse> + listMetadataSchemas( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMetadataSchemasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves lineage of an Artifact represented through Artifacts and
+     * Executions connected by Event edges and returned as a LineageSubgraph.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.LineageSubgraph> + queryArtifactLineageSubgraph( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryArtifactLineageSubgraphMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_METADATA_STORE = 0; + private static final int METHODID_GET_METADATA_STORE = 1; + private static final int METHODID_LIST_METADATA_STORES = 2; + private static final int METHODID_DELETE_METADATA_STORE = 3; + private static final int METHODID_CREATE_ARTIFACT = 4; + 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 class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final MetadataServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MetadataServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_METADATA_STORE: + serviceImpl.createMetadataStore( + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_METADATA_STORE: + serviceImpl.getMetadataStore( + (com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_METADATA_STORES: + serviceImpl.listMetadataStores( + (com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse>) + responseObserver); + break; + case METHODID_DELETE_METADATA_STORE: + serviceImpl.deleteMetadataStore( + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ARTIFACT: + serviceImpl.createArtifact( + (com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ARTIFACT: + serviceImpl.getArtifact( + (com.google.cloud.aiplatform.v1beta1.GetArtifactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ARTIFACTS: + serviceImpl.listArtifacts( + (com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse>) + responseObserver); + break; + case METHODID_UPDATE_ARTIFACT: + serviceImpl.updateArtifact( + (com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CONTEXT: + serviceImpl.createContext( + (com.google.cloud.aiplatform.v1beta1.CreateContextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONTEXT: + serviceImpl.getContext( + (com.google.cloud.aiplatform.v1beta1.GetContextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONTEXTS: + serviceImpl.listContexts( + (com.google.cloud.aiplatform.v1beta1.ListContextsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListContextsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CONTEXT: + serviceImpl.updateContext( + (com.google.cloud.aiplatform.v1beta1.UpdateContextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONTEXT: + serviceImpl.deleteContext( + (com.google.cloud.aiplatform.v1beta1.DeleteContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_CONTEXT_ARTIFACTS_AND_EXECUTIONS: + serviceImpl.addContextArtifactsAndExecutions( + (com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse>) + responseObserver); + break; + case METHODID_ADD_CONTEXT_CHILDREN: + serviceImpl.addContextChildren( + (com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse>) + responseObserver); + break; + case METHODID_QUERY_CONTEXT_LINEAGE_SUBGRAPH: + serviceImpl.queryContextLineageSubgraph( + (com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution( + (com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.aiplatform.v1beta1.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_EXECUTION: + serviceImpl.updateExecution( + (com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_EXECUTION_EVENTS: + serviceImpl.addExecutionEvents( + (com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse>) + responseObserver); + break; + case METHODID_QUERY_EXECUTION_INPUTS_AND_OUTPUTS: + serviceImpl.queryExecutionInputsAndOutputs( + (com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_METADATA_SCHEMA: + serviceImpl.createMetadataSchema( + (com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_METADATA_SCHEMA: + serviceImpl.getMetadataSchema( + (com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_METADATA_SCHEMAS: + serviceImpl.listMetadataSchemas( + (com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse>) + responseObserver); + break; + case METHODID_QUERY_ARTIFACT_LINEAGE_SUBGRAPH: + serviceImpl.queryArtifactLineageSubgraph( + (com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class MetadataServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetadataServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetadataService"); + } + } + + private static final class MetadataServiceFileDescriptorSupplier + extends MetadataServiceBaseDescriptorSupplier { + MetadataServiceFileDescriptorSupplier() {} + } + + private static final class MetadataServiceMethodDescriptorSupplier + extends MetadataServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MetadataServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MetadataServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetadataServiceFileDescriptorSupplier()) + .addMethod(getCreateMetadataStoreMethod()) + .addMethod(getGetMetadataStoreMethod()) + .addMethod(getListMetadataStoresMethod()) + .addMethod(getDeleteMetadataStoreMethod()) + .addMethod(getCreateArtifactMethod()) + .addMethod(getGetArtifactMethod()) + .addMethod(getListArtifactsMethod()) + .addMethod(getUpdateArtifactMethod()) + .addMethod(getCreateContextMethod()) + .addMethod(getGetContextMethod()) + .addMethod(getListContextsMethod()) + .addMethod(getUpdateContextMethod()) + .addMethod(getDeleteContextMethod()) + .addMethod(getAddContextArtifactsAndExecutionsMethod()) + .addMethod(getAddContextChildrenMethod()) + .addMethod(getQueryContextLineageSubgraphMethod()) + .addMethod(getCreateExecutionMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getListExecutionsMethod()) + .addMethod(getUpdateExecutionMethod()) + .addMethod(getAddExecutionEventsMethod()) + .addMethod(getQueryExecutionInputsAndOutputsMethod()) + .addMethod(getCreateMetadataSchemaMethod()) + .addMethod(getGetMetadataSchemaMethod()) + .addMethod(getListMetadataSchemasMethod()) + .addMethod(getQueryArtifactLineageSubgraphMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java index b8d893b27..0fbaf7320 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java @@ -16,18 +16,13 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
  * A service that migrates resources from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
  * 
*/ @javax.annotation.Generated( @@ -187,7 +182,7 @@ public MigrationServiceFutureStub newStub( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public abstract static class MigrationServiceImplBase implements io.grpc.BindableService { @@ -198,7 +193,7 @@ public abstract static class MigrationServiceImplBase implements io.grpc.Bindabl *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public void searchMigratableResources( @@ -206,7 +201,8 @@ public void searchMigratableResources( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getSearchMigratableResourcesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchMigratableResourcesMethod(), responseObserver); } /** @@ -214,13 +210,14 @@ public void searchMigratableResources( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public void batchMigrateResources( com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchMigrateResourcesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchMigrateResourcesMethod(), responseObserver); } @java.lang.Override @@ -228,14 +225,14 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSearchMigratableResourcesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse>( this, METHODID_SEARCH_MIGRATABLE_RESOURCES))) .addMethod( getBatchMigrateResourcesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_MIGRATE_RESOURCES))) @@ -248,7 +245,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceStub @@ -268,7 +265,7 @@ protected MigrationServiceStub build(io.grpc.Channel channel, io.grpc.CallOption *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public void searchMigratableResources( @@ -276,7 +273,7 @@ public void searchMigratableResources( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchMigratableResourcesMethod(), getCallOptions()), request, responseObserver); @@ -287,13 +284,13 @@ public void searchMigratableResources( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public void batchMigrateResources( com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchMigrateResourcesMethod(), getCallOptions()), request, responseObserver); @@ -305,7 +302,7 @@ public void batchMigrateResources( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceBlockingStub @@ -326,13 +323,13 @@ protected MigrationServiceBlockingStub build( *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse searchMigratableResources( com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMigratableResourcesMethod(), getCallOptions(), request); } @@ -341,12 +338,12 @@ protected MigrationServiceBlockingStub build( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public com.google.longrunning.Operation batchMigrateResources( com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchMigrateResourcesMethod(), getCallOptions(), request); } } @@ -356,7 +353,7 @@ public com.google.longrunning.Operation batchMigrateResources( * *
    * A service that migrates resources from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
*/ public static final class MigrationServiceFutureStub @@ -377,14 +374,14 @@ protected MigrationServiceFutureStub build( *
      * Searches all of the resources in automl.googleapis.com,
      * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
-     * AI Platform's given location.
+     * Vertex AI's given location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse> searchMigratableResources( com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchMigratableResourcesMethod(), getCallOptions()), request); } @@ -393,13 +390,13 @@ protected MigrationServiceFutureStub build( * *
      * Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
-     * and datalabeling.googleapis.com to AI Platform (Unified).
+     * and datalabeling.googleapis.com to Vertex AI.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture batchMigrateResources( com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchMigrateResourcesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java index 955419011..e80cdba71 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java @@ -16,17 +16,12 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for managing AI Platform's machine learning Models.
+ * A service for managing Vertex AI's machine learning Models.
  * 
*/ @javax.annotation.Generated( @@ -546,7 +541,7 @@ public ModelServiceFutureStub newStub( * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public abstract static class ModelServiceImplBase implements io.grpc.BindableService { @@ -555,13 +550,14 @@ public abstract static class ModelServiceImplBase implements io.grpc.BindableSer * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public void uploadModel( com.google.cloud.aiplatform.v1beta1.UploadModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUploadModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUploadModelMethod(), responseObserver); } /** @@ -574,7 +570,7 @@ public void uploadModel( public void getModel( com.google.cloud.aiplatform.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); } /** @@ -588,7 +584,7 @@ public void listModels( com.google.cloud.aiplatform.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } /** @@ -601,7 +597,8 @@ public void listModels( public void updateModel( com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateModelMethod(), responseObserver); } /** @@ -616,7 +613,8 @@ public void updateModel( public void deleteModel( com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); } /** @@ -631,7 +629,8 @@ public void deleteModel( public void exportModel( com.google.cloud.aiplatform.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), responseObserver); } /** @@ -645,7 +644,8 @@ public void getModelEvaluation( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); } /** @@ -660,7 +660,8 @@ public void listModelEvaluations( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); } /** @@ -674,7 +675,8 @@ public void getModelEvaluationSlice( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationSliceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationSliceMethod(), responseObserver); } /** @@ -689,7 +691,8 @@ public void listModelEvaluationSlices( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationSlicesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationSlicesMethod(), responseObserver); } @java.lang.Override @@ -697,65 +700,65 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getUploadModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UploadModelRequest, com.google.longrunning.Operation>(this, METHODID_UPLOAD_MODEL))) .addMethod( getGetModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetModelRequest, com.google.cloud.aiplatform.v1beta1.Model>(this, METHODID_GET_MODEL))) .addMethod( getListModelsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListModelsRequest, com.google.cloud.aiplatform.v1beta1.ListModelsResponse>( this, METHODID_LIST_MODELS))) .addMethod( getUpdateModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UpdateModelRequest, com.google.cloud.aiplatform.v1beta1.Model>(this, METHODID_UPDATE_MODEL))) .addMethod( getDeleteModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) .addMethod( getExportModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ExportModelRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) .addMethod( getGetModelEvaluationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, com.google.cloud.aiplatform.v1beta1.ModelEvaluation>( this, METHODID_GET_MODEL_EVALUATION))) .addMethod( getListModelEvaluationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse>( this, METHODID_LIST_MODEL_EVALUATIONS))) .addMethod( getGetModelEvaluationSliceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice>( this, METHODID_GET_MODEL_EVALUATION_SLICE))) .addMethod( getListModelEvaluationSlicesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse>( @@ -768,7 +771,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceStub @@ -786,13 +789,13 @@ protected ModelServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public void uploadModel( com.google.cloud.aiplatform.v1beta1.UploadModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUploadModelMethod(), getCallOptions()), request, responseObserver); @@ -808,7 +811,7 @@ public void uploadModel( public void getModel( com.google.cloud.aiplatform.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); } @@ -823,7 +826,7 @@ public void listModels( com.google.cloud.aiplatform.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } @@ -837,7 +840,7 @@ public void listModels( public void updateModel( com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); @@ -855,7 +858,7 @@ public void updateModel( public void deleteModel( com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); @@ -873,7 +876,7 @@ public void deleteModel( public void exportModel( com.google.cloud.aiplatform.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); @@ -890,7 +893,7 @@ public void getModelEvaluation( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); @@ -908,7 +911,7 @@ public void listModelEvaluations( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); @@ -925,7 +928,7 @@ public void getModelEvaluationSlice( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), request, responseObserver); @@ -943,7 +946,7 @@ public void listModelEvaluationSlices( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), request, responseObserver); @@ -954,7 +957,7 @@ public void listModelEvaluationSlices( * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceBlockingStub @@ -973,12 +976,13 @@ protected ModelServiceBlockingStub build( * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public com.google.longrunning.Operation uploadModel( com.google.cloud.aiplatform.v1beta1.UploadModelRequest request) { - return blockingUnaryCall(getChannel(), getUploadModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadModelMethod(), getCallOptions(), request); } /** @@ -990,7 +994,8 @@ public com.google.longrunning.Operation uploadModel( */ public com.google.cloud.aiplatform.v1beta1.Model getModel( com.google.cloud.aiplatform.v1beta1.GetModelRequest request) { - return blockingUnaryCall(getChannel(), getGetModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); } /** @@ -1002,7 +1007,8 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel( */ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse listModels( com.google.cloud.aiplatform.v1beta1.ListModelsRequest request) { - return blockingUnaryCall(getChannel(), getListModelsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); } /** @@ -1014,7 +1020,8 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse listModels( */ public com.google.cloud.aiplatform.v1beta1.Model updateModel( com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request) { - return blockingUnaryCall(getChannel(), getUpdateModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelMethod(), getCallOptions(), request); } /** @@ -1028,7 +1035,8 @@ public com.google.cloud.aiplatform.v1beta1.Model updateModel( */ public com.google.longrunning.Operation deleteModel( com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request) { - return blockingUnaryCall(getChannel(), getDeleteModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); } /** @@ -1042,7 +1050,8 @@ public com.google.longrunning.Operation deleteModel( */ public com.google.longrunning.Operation exportModel( com.google.cloud.aiplatform.v1beta1.ExportModelRequest request) { - return blockingUnaryCall(getChannel(), getExportModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); } /** @@ -1054,7 +1063,7 @@ public com.google.longrunning.Operation exportModel( */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation getModelEvaluation( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -1067,7 +1076,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation getModelEvaluation( */ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse listModelEvaluations( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } @@ -1080,7 +1089,7 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse listMode */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluationSlice( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationSliceMethod(), getCallOptions(), request); } @@ -1094,7 +1103,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluati public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse listModelEvaluationSlices( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationSlicesMethod(), getCallOptions(), request); } } @@ -1103,7 +1112,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluati * * *
-   * A service for managing AI Platform's machine learning Models.
+   * A service for managing Vertex AI's machine learning Models.
    * 
*/ public static final class ModelServiceFutureStub @@ -1122,12 +1131,12 @@ protected ModelServiceFutureStub build( * * *
-     * Uploads a Model artifact into AI Platform.
+     * Uploads a Model artifact into Vertex AI.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture uploadModel(com.google.cloud.aiplatform.v1beta1.UploadModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUploadModelMethod(), getCallOptions()), request); } @@ -1141,7 +1150,8 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Model> getModel(com.google.cloud.aiplatform.v1beta1.GetModelRequest request) { - return futureUnaryCall(getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); } /** @@ -1154,7 +1164,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ListModelsResponse> listModels(com.google.cloud.aiplatform.v1beta1.ListModelsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } @@ -1168,7 +1178,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.Model> updateModel(com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); } @@ -1183,7 +1193,7 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteModel(com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } @@ -1198,7 +1208,7 @@ protected ModelServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture exportModel(com.google.cloud.aiplatform.v1beta1.ExportModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request); } @@ -1212,7 +1222,7 @@ protected ModelServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ModelEvaluation> getModelEvaluation(com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); } @@ -1227,7 +1237,7 @@ protected ModelServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse> listModelEvaluations( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); } @@ -1242,7 +1252,7 @@ protected ModelServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice> getModelEvaluationSlice( com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), request); } @@ -1257,7 +1267,7 @@ protected ModelServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse> listModelEvaluationSlices( com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java index 750d5626e..25533716a 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java @@ -16,17 +16,14 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * * *
- * A service for creating and managing AI Platform's pipelines.
+ * A service for creating and managing Vertex AI's pipelines. This includes both
+ * `TrainingPipeline` resources (used for AutoML and custom training) and
+ * `PipelineJob` resources (used for Vertex Pipelines).
  * 
*/ @javax.annotation.Generated( @@ -286,6 +283,234 @@ private PipelineServiceGrpc() {} return getCancelTrainingPipelineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob> + getCreatePipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePipelineJob", + requestType = com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.PipelineJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob> + getCreatePipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("CreatePipelineJob")) + .build(); + } + } + } + return getCreatePipelineJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob> + getGetPipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPipelineJob", + requestType = com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.PipelineJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob> + getGetPipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("GetPipelineJob")) + .build(); + } + } + } + return getGetPipelineJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse> + getListPipelineJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPipelineJobs", + requestType = com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse> + getListPipelineJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("ListPipelineJobs")) + .build(); + } + } + } + return getListPipelineJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, + com.google.longrunning.Operation> + getDeletePipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePipelineJob", + requestType = com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, + com.google.longrunning.Operation> + getDeletePipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.CancelPipelineJobRequest, com.google.protobuf.Empty> + getCancelPipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelPipelineJob", + requestType = com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, com.google.protobuf.Empty> + getCancelPipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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 = @@ -331,7 +556,9 @@ public PipelineServiceFutureStub newStub( * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public abstract static class PipelineServiceImplBase implements io.grpc.BindableService { @@ -348,7 +575,8 @@ public void createTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTrainingPipelineMethod(), responseObserver); } /** @@ -362,7 +590,8 @@ public void getTrainingPipeline( com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTrainingPipelineMethod(), responseObserver); } /** @@ -377,7 +606,8 @@ public void listTrainingPipelines( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListTrainingPipelinesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTrainingPipelinesMethod(), responseObserver); } /** @@ -390,7 +620,8 @@ public void listTrainingPipelines( public void deleteTrainingPipeline( com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTrainingPipelineMethod(), responseObserver); } /** @@ -412,7 +643,90 @@ public void deleteTrainingPipeline( public void cancelTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelTrainingPipelineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelTrainingPipelineMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public void createPipelineJob( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePipelineJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public void getPipelineJob( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPipelineJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a PipelineJob.
+     * 
+ */ + public void deletePipelineJob( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public void cancelPipelineJob( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelPipelineJobMethod(), responseObserver); } @java.lang.Override @@ -420,37 +734,70 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, com.google.cloud.aiplatform.v1beta1.TrainingPipeline>( this, METHODID_CREATE_TRAINING_PIPELINE))) .addMethod( getGetTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, com.google.cloud.aiplatform.v1beta1.TrainingPipeline>( this, METHODID_GET_TRAINING_PIPELINE))) .addMethod( getListTrainingPipelinesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse>( this, METHODID_LIST_TRAINING_PIPELINES))) .addMethod( getDeleteTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_TRAINING_PIPELINE))) .addMethod( getCancelTrainingPipelineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_TRAINING_PIPELINE))) + .addMethod( + getCreatePipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob>( + this, METHODID_CREATE_PIPELINE_JOB))) + .addMethod( + getGetPipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1beta1.PipelineJob>( + this, METHODID_GET_PIPELINE_JOB))) + .addMethod( + getListPipelineJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse>( + this, METHODID_LIST_PIPELINE_JOBS))) + .addMethod( + getDeletePipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PIPELINE_JOB))) + .addMethod( + getCancelPipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_PIPELINE_JOB))) .build(); } } @@ -459,7 +806,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceStub @@ -485,7 +834,7 @@ public void createTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -502,7 +851,7 @@ public void getTrainingPipeline( com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -520,7 +869,7 @@ public void listTrainingPipelines( io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTrainingPipelinesMethod(), getCallOptions()), request, responseObserver); @@ -536,7 +885,7 @@ public void listTrainingPipelines( public void deleteTrainingPipeline( com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTrainingPipelineMethod(), getCallOptions()), request, responseObserver); @@ -561,18 +910,112 @@ public void deleteTrainingPipeline( public void cancelTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelTrainingPipelineMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public void createPipelineJob( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public void cancelPipelineJob( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelPipelineJobMethod(), getCallOptions()), + request, + responseObserver); + } } /** * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceBlockingStub @@ -597,7 +1040,7 @@ protected PipelineServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline createTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateTrainingPipelineMethod(), getCallOptions(), request); } @@ -610,7 +1053,7 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline createTrainingPipeli */ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipeline( com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTrainingPipelineMethod(), getCallOptions(), request); } @@ -623,7 +1066,7 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipeline( */ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse listTrainingPipelines( com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTrainingPipelinesMethod(), getCallOptions(), request); } @@ -636,7 +1079,7 @@ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse listTra */ public com.google.longrunning.Operation deleteTrainingPipeline( com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteTrainingPipelineMethod(), getCallOptions(), request); } @@ -658,16 +1101,92 @@ public com.google.longrunning.Operation deleteTrainingPipeline( */ public com.google.protobuf.Empty cancelTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request) { - return blockingUnaryCall( + 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.v1beta1.PipelineJob createPipelineJob( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePipelineJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob( + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPipelineJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists PipelineJobs in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse listPipelineJobs( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public com.google.protobuf.Empty cancelPipelineJob( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelPipelineJobMethod(), getCallOptions(), request); + } } /** * * *
-   * A service for creating and managing AI Platform's pipelines.
+   * A service for creating and managing Vertex AI's pipelines. This includes both
+   * `TrainingPipeline` resources (used for AutoML and custom training) and
+   * `PipelineJob` resources (used for Vertex Pipelines).
    * 
*/ public static final class PipelineServiceFutureStub @@ -694,7 +1213,7 @@ protected PipelineServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.TrainingPipeline> createTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTrainingPipelineMethod(), getCallOptions()), request); } @@ -709,7 +1228,7 @@ protected PipelineServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.TrainingPipeline> getTrainingPipeline( com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTrainingPipelineMethod(), getCallOptions()), request); } @@ -724,7 +1243,7 @@ protected PipelineServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse> listTrainingPipelines( com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTrainingPipelinesMethod(), getCallOptions()), request); } @@ -738,7 +1257,7 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteTrainingPipeline( com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTrainingPipelineMethod(), getCallOptions()), request); } @@ -761,9 +1280,86 @@ protected PipelineServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture cancelTrainingPipeline( com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request) { - return futureUnaryCall( + 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.v1beta1.PipelineJob> + createPipelineJob(com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob> + getPipelineJob(com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse> + listPipelineJobs(com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelPipelineJob(com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelPipelineJobMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_TRAINING_PIPELINE = 0; @@ -771,6 +1367,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, @@ -818,6 +1419,35 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_PIPELINE_JOB: + serviceImpl.createPipelineJob( + (com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PIPELINE_JOB: + serviceImpl.getPipelineJob( + (com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PIPELINE_JOBS: + serviceImpl.listPipelineJobs( + (com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse>) + responseObserver); + break; + case METHODID_DELETE_PIPELINE_JOB: + serviceImpl.deletePipelineJob( + (com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_PIPELINE_JOB: + serviceImpl.cancelPipelineJob( + (com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -887,6 +1517,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/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java index aa3c7f510..b2c15b76f 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -192,7 +187,7 @@ public void predict( com.google.cloud.aiplatform.v1beta1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } /** @@ -214,7 +209,7 @@ public void explain( com.google.cloud.aiplatform.v1beta1.ExplainRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExplainMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExplainMethod(), responseObserver); } @java.lang.Override @@ -222,13 +217,13 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.PredictRequest, com.google.cloud.aiplatform.v1beta1.PredictResponse>(this, METHODID_PREDICT))) .addMethod( getExplainMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ExplainRequest, com.google.cloud.aiplatform.v1beta1.ExplainResponse>(this, METHODID_EXPLAIN))) @@ -266,7 +261,7 @@ public void predict( com.google.cloud.aiplatform.v1beta1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } @@ -289,7 +284,7 @@ public void explain( com.google.cloud.aiplatform.v1beta1.ExplainRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExplainMethod(), getCallOptions()), request, responseObserver); } } @@ -323,7 +318,8 @@ protected PredictionServiceBlockingStub build( */ public com.google.cloud.aiplatform.v1beta1.PredictResponse predict( com.google.cloud.aiplatform.v1beta1.PredictRequest request) { - return blockingUnaryCall(getChannel(), getPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); } /** @@ -343,7 +339,8 @@ public com.google.cloud.aiplatform.v1beta1.PredictResponse predict( */ public com.google.cloud.aiplatform.v1beta1.ExplainResponse explain( com.google.cloud.aiplatform.v1beta1.ExplainRequest request) { - return blockingUnaryCall(getChannel(), getExplainMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExplainMethod(), getCallOptions(), request); } } @@ -376,7 +373,8 @@ protected PredictionServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.PredictResponse> predict(com.google.cloud.aiplatform.v1beta1.PredictRequest request) { - return futureUnaryCall(getChannel().newCall(getPredictMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request); } /** @@ -397,7 +395,8 @@ protected PredictionServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.ExplainResponse> explain(com.google.cloud.aiplatform.v1beta1.ExplainRequest request) { - return futureUnaryCall(getChannel().newCall(getExplainMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExplainMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java index af23f748c..e2ab08699 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -358,7 +353,8 @@ public abstract static class SpecialistPoolServiceImplBase implements io.grpc.Bi public void createSpecialistPool( com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpecialistPoolMethod(), responseObserver); } /** @@ -372,7 +368,8 @@ public void getSpecialistPool( com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSpecialistPoolMethod(), responseObserver); } /** @@ -386,7 +383,8 @@ public void listSpecialistPools( com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSpecialistPoolsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSpecialistPoolsMethod(), responseObserver); } /** @@ -399,7 +397,8 @@ public void listSpecialistPools( public void deleteSpecialistPool( com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpecialistPoolMethod(), responseObserver); } /** @@ -412,7 +411,8 @@ public void deleteSpecialistPool( public void updateSpecialistPool( com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSpecialistPoolMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpecialistPoolMethod(), responseObserver); } @java.lang.Override @@ -420,33 +420,33 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_SPECIALIST_POOL))) .addMethod( getGetSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest, com.google.cloud.aiplatform.v1beta1.SpecialistPool>( this, METHODID_GET_SPECIALIST_POOL))) .addMethod( getListSpecialistPoolsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest, com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse>( this, METHODID_LIST_SPECIALIST_POOLS))) .addMethod( getDeleteSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_SPECIALIST_POOL))) .addMethod( getUpdateSpecialistPoolMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_SPECIALIST_POOL))) @@ -488,7 +488,7 @@ protected SpecialistPoolServiceStub build( public void createSpecialistPool( com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -505,7 +505,7 @@ public void getSpecialistPool( com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -522,7 +522,7 @@ public void listSpecialistPools( com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSpecialistPoolsMethod(), getCallOptions()), request, responseObserver); @@ -538,7 +538,7 @@ public void listSpecialistPools( public void deleteSpecialistPool( com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -554,7 +554,7 @@ public void deleteSpecialistPool( public void updateSpecialistPool( com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSpecialistPoolMethod(), getCallOptions()), request, responseObserver); @@ -595,7 +595,7 @@ protected SpecialistPoolServiceBlockingStub build( */ public com.google.longrunning.Operation createSpecialistPool( com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSpecialistPoolMethod(), getCallOptions(), request); } @@ -608,7 +608,7 @@ public com.google.longrunning.Operation createSpecialistPool( */ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool( com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSpecialistPoolMethod(), getCallOptions(), request); } @@ -621,7 +621,7 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool( */ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse listSpecialistPools( com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSpecialistPoolsMethod(), getCallOptions(), request); } @@ -634,7 +634,7 @@ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse listSpeci */ public com.google.longrunning.Operation deleteSpecialistPool( com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSpecialistPoolMethod(), getCallOptions(), request); } @@ -647,7 +647,7 @@ public com.google.longrunning.Operation deleteSpecialistPool( */ public com.google.longrunning.Operation updateSpecialistPool( com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSpecialistPoolMethod(), getCallOptions(), request); } } @@ -687,7 +687,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture createSpecialistPool( com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSpecialistPoolMethod(), getCallOptions()), request); } @@ -701,7 +701,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1beta1.SpecialistPool> getSpecialistPool(com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSpecialistPoolMethod(), getCallOptions()), request); } @@ -716,7 +716,7 @@ protected SpecialistPoolServiceFutureStub build( com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse> listSpecialistPools( com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSpecialistPoolsMethod(), getCallOptions()), request); } @@ -730,7 +730,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteSpecialistPool( com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSpecialistPoolMethod(), getCallOptions()), request); } @@ -744,7 +744,7 @@ protected SpecialistPoolServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture updateSpecialistPool( com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSpecialistPoolMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java new file mode 100644 index 000000000..18acd1216 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java @@ -0,0 +1,3287 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * TensorboardService
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto") +public final class TensorboardServiceGrpc { + + private TensorboardServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.TensorboardService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest, + com.google.longrunning.Operation> + getCreateTensorboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTensorboard", + requestType = com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest, + com.google.longrunning.Operation> + getCreateTensorboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest, + com.google.longrunning.Operation> + getCreateTensorboardMethod; + if ((getCreateTensorboardMethod = TensorboardServiceGrpc.getCreateTensorboardMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getCreateTensorboardMethod = TensorboardServiceGrpc.getCreateTensorboardMethod) + == null) { + TensorboardServiceGrpc.getCreateTensorboardMethod = + getCreateTensorboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTensorboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("CreateTensorboard")) + .build(); + } + } + } + return getCreateTensorboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest, + com.google.cloud.aiplatform.v1beta1.Tensorboard> + getGetTensorboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTensorboard", + requestType = com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Tensorboard.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest, + com.google.cloud.aiplatform.v1beta1.Tensorboard> + getGetTensorboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest, + com.google.cloud.aiplatform.v1beta1.Tensorboard> + getGetTensorboardMethod; + if ((getGetTensorboardMethod = TensorboardServiceGrpc.getGetTensorboardMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getGetTensorboardMethod = TensorboardServiceGrpc.getGetTensorboardMethod) == null) { + TensorboardServiceGrpc.getGetTensorboardMethod = + getGetTensorboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTensorboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("GetTensorboard")) + .build(); + } + } + } + return getGetTensorboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest, + com.google.longrunning.Operation> + getUpdateTensorboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTensorboard", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest, + com.google.longrunning.Operation> + getUpdateTensorboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest, + com.google.longrunning.Operation> + getUpdateTensorboardMethod; + if ((getUpdateTensorboardMethod = TensorboardServiceGrpc.getUpdateTensorboardMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getUpdateTensorboardMethod = TensorboardServiceGrpc.getUpdateTensorboardMethod) + == null) { + TensorboardServiceGrpc.getUpdateTensorboardMethod = + getUpdateTensorboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTensorboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("UpdateTensorboard")) + .build(); + } + } + } + return getUpdateTensorboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse> + getListTensorboardsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTensorboards", + requestType = com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse> + getListTensorboardsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse> + getListTensorboardsMethod; + if ((getListTensorboardsMethod = TensorboardServiceGrpc.getListTensorboardsMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getListTensorboardsMethod = TensorboardServiceGrpc.getListTensorboardsMethod) + == null) { + TensorboardServiceGrpc.getListTensorboardsMethod = + getListTensorboardsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTensorboards")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("ListTensorboards")) + .build(); + } + } + } + return getListTensorboardsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest, + com.google.longrunning.Operation> + getDeleteTensorboardMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTensorboard", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest, + com.google.longrunning.Operation> + getDeleteTensorboardMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest, + com.google.longrunning.Operation> + getDeleteTensorboardMethod; + if ((getDeleteTensorboardMethod = TensorboardServiceGrpc.getDeleteTensorboardMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getDeleteTensorboardMethod = TensorboardServiceGrpc.getDeleteTensorboardMethod) + == null) { + TensorboardServiceGrpc.getDeleteTensorboardMethod = + getDeleteTensorboardMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTensorboard")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("DeleteTensorboard")) + .build(); + } + } + } + return getDeleteTensorboardMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getCreateTensorboardExperimentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTensorboardExperiment", + requestType = com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getCreateTensorboardExperimentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getCreateTensorboardExperimentMethod; + if ((getCreateTensorboardExperimentMethod = + TensorboardServiceGrpc.getCreateTensorboardExperimentMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getCreateTensorboardExperimentMethod = + TensorboardServiceGrpc.getCreateTensorboardExperimentMethod) + == null) { + TensorboardServiceGrpc.getCreateTensorboardExperimentMethod = + getCreateTensorboardExperimentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateTensorboardExperiment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "CreateTensorboardExperiment")) + .build(); + } + } + } + return getCreateTensorboardExperimentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getGetTensorboardExperimentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTensorboardExperiment", + requestType = com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getGetTensorboardExperimentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getGetTensorboardExperimentMethod; + if ((getGetTensorboardExperimentMethod = + TensorboardServiceGrpc.getGetTensorboardExperimentMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getGetTensorboardExperimentMethod = + TensorboardServiceGrpc.getGetTensorboardExperimentMethod) + == null) { + TensorboardServiceGrpc.getGetTensorboardExperimentMethod = + getGetTensorboardExperimentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetTensorboardExperiment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "GetTensorboardExperiment")) + .build(); + } + } + } + return getGetTensorboardExperimentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getUpdateTensorboardExperimentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTensorboardExperiment", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getUpdateTensorboardExperimentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getUpdateTensorboardExperimentMethod; + if ((getUpdateTensorboardExperimentMethod = + TensorboardServiceGrpc.getUpdateTensorboardExperimentMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getUpdateTensorboardExperimentMethod = + TensorboardServiceGrpc.getUpdateTensorboardExperimentMethod) + == null) { + TensorboardServiceGrpc.getUpdateTensorboardExperimentMethod = + getUpdateTensorboardExperimentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateTensorboardExperiment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "UpdateTensorboardExperiment")) + .build(); + } + } + } + return getUpdateTensorboardExperimentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + getListTensorboardExperimentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTensorboardExperiments", + requestType = com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + getListTensorboardExperimentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + getListTensorboardExperimentsMethod; + if ((getListTensorboardExperimentsMethod = + TensorboardServiceGrpc.getListTensorboardExperimentsMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getListTensorboardExperimentsMethod = + TensorboardServiceGrpc.getListTensorboardExperimentsMethod) + == null) { + TensorboardServiceGrpc.getListTensorboardExperimentsMethod = + getListTensorboardExperimentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTensorboardExperiments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "ListTensorboardExperiments")) + .build(); + } + } + } + return getListTensorboardExperimentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest, + com.google.longrunning.Operation> + getDeleteTensorboardExperimentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTensorboardExperiment", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest, + com.google.longrunning.Operation> + getDeleteTensorboardExperimentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest, + com.google.longrunning.Operation> + getDeleteTensorboardExperimentMethod; + if ((getDeleteTensorboardExperimentMethod = + TensorboardServiceGrpc.getDeleteTensorboardExperimentMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getDeleteTensorboardExperimentMethod = + TensorboardServiceGrpc.getDeleteTensorboardExperimentMethod) + == null) { + TensorboardServiceGrpc.getDeleteTensorboardExperimentMethod = + getDeleteTensorboardExperimentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTensorboardExperiment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "DeleteTensorboardExperiment")) + .build(); + } + } + } + return getDeleteTensorboardExperimentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getCreateTensorboardRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTensorboardRun", + requestType = com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getCreateTensorboardRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getCreateTensorboardRunMethod; + if ((getCreateTensorboardRunMethod = TensorboardServiceGrpc.getCreateTensorboardRunMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getCreateTensorboardRunMethod = TensorboardServiceGrpc.getCreateTensorboardRunMethod) + == null) { + TensorboardServiceGrpc.getCreateTensorboardRunMethod = + getCreateTensorboardRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateTensorboardRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardRun + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("CreateTensorboardRun")) + .build(); + } + } + } + return getCreateTensorboardRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getGetTensorboardRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTensorboardRun", + requestType = com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getGetTensorboardRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getGetTensorboardRunMethod; + if ((getGetTensorboardRunMethod = TensorboardServiceGrpc.getGetTensorboardRunMethod) == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getGetTensorboardRunMethod = TensorboardServiceGrpc.getGetTensorboardRunMethod) + == null) { + TensorboardServiceGrpc.getGetTensorboardRunMethod = + getGetTensorboardRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTensorboardRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardRun + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("GetTensorboardRun")) + .build(); + } + } + } + return getGetTensorboardRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getUpdateTensorboardRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTensorboardRun", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getUpdateTensorboardRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getUpdateTensorboardRunMethod; + if ((getUpdateTensorboardRunMethod = TensorboardServiceGrpc.getUpdateTensorboardRunMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getUpdateTensorboardRunMethod = TensorboardServiceGrpc.getUpdateTensorboardRunMethod) + == null) { + TensorboardServiceGrpc.getUpdateTensorboardRunMethod = + getUpdateTensorboardRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateTensorboardRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardRun + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("UpdateTensorboardRun")) + .build(); + } + } + } + return getUpdateTensorboardRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse> + getListTensorboardRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTensorboardRuns", + requestType = com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse> + getListTensorboardRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse> + getListTensorboardRunsMethod; + if ((getListTensorboardRunsMethod = TensorboardServiceGrpc.getListTensorboardRunsMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getListTensorboardRunsMethod = TensorboardServiceGrpc.getListTensorboardRunsMethod) + == null) { + TensorboardServiceGrpc.getListTensorboardRunsMethod = + getListTensorboardRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTensorboardRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("ListTensorboardRuns")) + .build(); + } + } + } + return getListTensorboardRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest, + com.google.longrunning.Operation> + getDeleteTensorboardRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTensorboardRun", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest, + com.google.longrunning.Operation> + getDeleteTensorboardRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest, + com.google.longrunning.Operation> + getDeleteTensorboardRunMethod; + if ((getDeleteTensorboardRunMethod = TensorboardServiceGrpc.getDeleteTensorboardRunMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getDeleteTensorboardRunMethod = TensorboardServiceGrpc.getDeleteTensorboardRunMethod) + == null) { + TensorboardServiceGrpc.getDeleteTensorboardRunMethod = + getDeleteTensorboardRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTensorboardRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("DeleteTensorboardRun")) + .build(); + } + } + } + return getDeleteTensorboardRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getCreateTensorboardTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTensorboardTimeSeries", + requestType = com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getCreateTensorboardTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getCreateTensorboardTimeSeriesMethod; + if ((getCreateTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getCreateTensorboardTimeSeriesMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getCreateTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getCreateTensorboardTimeSeriesMethod) + == null) { + TensorboardServiceGrpc.getCreateTensorboardTimeSeriesMethod = + getCreateTensorboardTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateTensorboardTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "CreateTensorboardTimeSeries")) + .build(); + } + } + } + return getCreateTensorboardTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getGetTensorboardTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTensorboardTimeSeries", + requestType = com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getGetTensorboardTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getGetTensorboardTimeSeriesMethod; + if ((getGetTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getGetTensorboardTimeSeriesMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getGetTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getGetTensorboardTimeSeriesMethod) + == null) { + TensorboardServiceGrpc.getGetTensorboardTimeSeriesMethod = + getGetTensorboardTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetTensorboardTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "GetTensorboardTimeSeries")) + .build(); + } + } + } + return getGetTensorboardTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getUpdateTensorboardTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTensorboardTimeSeries", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getUpdateTensorboardTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getUpdateTensorboardTimeSeriesMethod; + if ((getUpdateTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getUpdateTensorboardTimeSeriesMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getUpdateTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getUpdateTensorboardTimeSeriesMethod) + == null) { + TensorboardServiceGrpc.getUpdateTensorboardTimeSeriesMethod = + getUpdateTensorboardTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateTensorboardTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "UpdateTensorboardTimeSeries")) + .build(); + } + } + } + return getUpdateTensorboardTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + getListTensorboardTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTensorboardTimeSeries", + requestType = com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + getListTensorboardTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + getListTensorboardTimeSeriesMethod; + if ((getListTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getListTensorboardTimeSeriesMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getListTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getListTensorboardTimeSeriesMethod) + == null) { + TensorboardServiceGrpc.getListTensorboardTimeSeriesMethod = + getListTensorboardTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTensorboardTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "ListTensorboardTimeSeries")) + .build(); + } + } + } + return getListTensorboardTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest, + com.google.longrunning.Operation> + getDeleteTensorboardTimeSeriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTensorboardTimeSeries", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest, + com.google.longrunning.Operation> + getDeleteTensorboardTimeSeriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest, + com.google.longrunning.Operation> + getDeleteTensorboardTimeSeriesMethod; + if ((getDeleteTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getDeleteTensorboardTimeSeriesMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getDeleteTensorboardTimeSeriesMethod = + TensorboardServiceGrpc.getDeleteTensorboardTimeSeriesMethod) + == null) { + TensorboardServiceGrpc.getDeleteTensorboardTimeSeriesMethod = + getDeleteTensorboardTimeSeriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTensorboardTimeSeries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "DeleteTensorboardTimeSeries")) + .build(); + } + } + } + return getDeleteTensorboardTimeSeriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + getReadTensorboardTimeSeriesDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadTensorboardTimeSeriesData", + requestType = com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.class, + responseType = + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + getReadTensorboardTimeSeriesDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + getReadTensorboardTimeSeriesDataMethod; + if ((getReadTensorboardTimeSeriesDataMethod = + TensorboardServiceGrpc.getReadTensorboardTimeSeriesDataMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getReadTensorboardTimeSeriesDataMethod = + TensorboardServiceGrpc.getReadTensorboardTimeSeriesDataMethod) + == null) { + TensorboardServiceGrpc.getReadTensorboardTimeSeriesDataMethod = + getReadTensorboardTimeSeriesDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ReadTensorboardTimeSeriesData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ReadTensorboardTimeSeriesDataRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ReadTensorboardTimeSeriesDataResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "ReadTensorboardTimeSeriesData")) + .build(); + } + } + } + return getReadTensorboardTimeSeriesDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse> + getReadTensorboardBlobDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadTensorboardBlobData", + requestType = com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse> + getReadTensorboardBlobDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse> + getReadTensorboardBlobDataMethod; + if ((getReadTensorboardBlobDataMethod = TensorboardServiceGrpc.getReadTensorboardBlobDataMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getReadTensorboardBlobDataMethod = + TensorboardServiceGrpc.getReadTensorboardBlobDataMethod) + == null) { + TensorboardServiceGrpc.getReadTensorboardBlobDataMethod = + getReadTensorboardBlobDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ReadTensorboardBlobData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("ReadTensorboardBlobData")) + .build(); + } + } + } + return getReadTensorboardBlobDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + getWriteTensorboardRunDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "WriteTensorboardRunData", + requestType = com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + getWriteTensorboardRunDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + getWriteTensorboardRunDataMethod; + if ((getWriteTensorboardRunDataMethod = TensorboardServiceGrpc.getWriteTensorboardRunDataMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getWriteTensorboardRunDataMethod = + TensorboardServiceGrpc.getWriteTensorboardRunDataMethod) + == null) { + TensorboardServiceGrpc.getWriteTensorboardRunDataMethod = + getWriteTensorboardRunDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "WriteTensorboardRunData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("WriteTensorboardRunData")) + .build(); + } + } + } + return getWriteTensorboardRunDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + getExportTensorboardTimeSeriesDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportTensorboardTimeSeriesData", + requestType = + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.class, + responseType = + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + getExportTensorboardTimeSeriesDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + getExportTensorboardTimeSeriesDataMethod; + if ((getExportTensorboardTimeSeriesDataMethod = + TensorboardServiceGrpc.getExportTensorboardTimeSeriesDataMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getExportTensorboardTimeSeriesDataMethod = + TensorboardServiceGrpc.getExportTensorboardTimeSeriesDataMethod) + == null) { + TensorboardServiceGrpc.getExportTensorboardTimeSeriesDataMethod = + getExportTensorboardTimeSeriesDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportTensorboardTimeSeriesData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ExportTensorboardTimeSeriesDataRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ExportTensorboardTimeSeriesDataResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier( + "ExportTensorboardTimeSeriesData")) + .build(); + } + } + } + return getExportTensorboardTimeSeriesDataMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TensorboardServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TensorboardServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceStub(channel, callOptions); + } + }; + return TensorboardServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TensorboardServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TensorboardServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceBlockingStub(channel, callOptions); + } + }; + return TensorboardServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TensorboardServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TensorboardServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceFutureStub(channel, callOptions); + } + }; + return TensorboardServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * TensorboardService
+   * 
+ */ + public abstract static class TensorboardServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a Tensorboard.
+     * 
+ */ + public void createTensorboard( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTensorboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Tensorboard.
+     * 
+ */ + public void getTensorboard( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTensorboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a Tensorboard.
+     * 
+ */ + public void updateTensorboard( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTensorboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Tensorboards in a Location.
+     * 
+ */ + public void listTensorboards( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTensorboardsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Tensorboard.
+     * 
+ */ + public void deleteTensorboard( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTensorboardMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardExperiment.
+     * 
+ */ + public void createTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTensorboardExperimentMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardExperiment.
+     * 
+ */ + public void getTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTensorboardExperimentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardExperiment.
+     * 
+ */ + public void updateTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTensorboardExperimentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardExperiments in a Location.
+     * 
+ */ + public void listTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTensorboardExperimentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardExperiment.
+     * 
+ */ + public void deleteTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTensorboardExperimentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardRun.
+     * 
+ */ + public void createTensorboardRun( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTensorboardRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardRun.
+     * 
+ */ + public void getTensorboardRun( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTensorboardRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardRun.
+     * 
+ */ + public void updateTensorboardRun( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTensorboardRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardRuns in a Location.
+     * 
+ */ + public void listTensorboardRuns( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTensorboardRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardRun.
+     * 
+ */ + public void deleteTensorboardRun( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTensorboardRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardTimeSeries.
+     * 
+ */ + public void createTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTensorboardTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardTimeSeries.
+     * 
+ */ + public void getTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTensorboardTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardTimeSeries.
+     * 
+ */ + public void updateTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTensorboardTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardTimeSeries in a Location.
+     * 
+ */ + public void listTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTensorboardTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardTimeSeries.
+     * 
+ */ + public void deleteTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTensorboardTimeSeriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Reads a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses. By default, if the number of data points stored is less than
+     * 1000, all data will be returned. Otherwise, 1000 data points will be
+     * randomly selected from this time series and returned. This value can be
+     * changed by changing max_data_points.
+     * 
+ */ + public void readTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReadTensorboardTimeSeriesDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets bytes of TensorboardBlobs.
+     * This is to allow reading blob data stored in consumer project's Cloud
+     * Storage bucket without users having to obtain Cloud Storage access
+     * permission.
+     * 
+ */ + public void readTensorboardBlobData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReadTensorboardBlobDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Write time series data points into multiple TensorboardTimeSeries under
+     * a TensorboardRun. If any data fail to be ingested, an error will be
+     * returned.
+     * 
+ */ + public void writeTensorboardRunData( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getWriteTensorboardRunDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses.
+     * 
+ */ + public void exportTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportTensorboardTimeSeriesDataMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTensorboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_TENSORBOARD))) + .addMethod( + getGetTensorboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest, + com.google.cloud.aiplatform.v1beta1.Tensorboard>( + this, METHODID_GET_TENSORBOARD))) + .addMethod( + getUpdateTensorboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_TENSORBOARD))) + .addMethod( + getListTensorboardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse>( + this, METHODID_LIST_TENSORBOARDS))) + .addMethod( + getDeleteTensorboardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_TENSORBOARD))) + .addMethod( + getCreateTensorboardExperimentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>( + this, METHODID_CREATE_TENSORBOARD_EXPERIMENT))) + .addMethod( + getGetTensorboardExperimentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>( + this, METHODID_GET_TENSORBOARD_EXPERIMENT))) + .addMethod( + getUpdateTensorboardExperimentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>( + this, METHODID_UPDATE_TENSORBOARD_EXPERIMENT))) + .addMethod( + getListTensorboardExperimentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse>( + this, METHODID_LIST_TENSORBOARD_EXPERIMENTS))) + .addMethod( + getDeleteTensorboardExperimentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_TENSORBOARD_EXPERIMENT))) + .addMethod( + getCreateTensorboardRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun>( + this, METHODID_CREATE_TENSORBOARD_RUN))) + .addMethod( + getGetTensorboardRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun>( + this, METHODID_GET_TENSORBOARD_RUN))) + .addMethod( + getUpdateTensorboardRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardRun>( + this, METHODID_UPDATE_TENSORBOARD_RUN))) + .addMethod( + getListTensorboardRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse>( + this, METHODID_LIST_TENSORBOARD_RUNS))) + .addMethod( + getDeleteTensorboardRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_TENSORBOARD_RUN))) + .addMethod( + getCreateTensorboardTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>( + this, METHODID_CREATE_TENSORBOARD_TIME_SERIES))) + .addMethod( + getGetTensorboardTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>( + this, METHODID_GET_TENSORBOARD_TIME_SERIES))) + .addMethod( + getUpdateTensorboardTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>( + this, METHODID_UPDATE_TENSORBOARD_TIME_SERIES))) + .addMethod( + getListTensorboardTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse>( + this, METHODID_LIST_TENSORBOARD_TIME_SERIES))) + .addMethod( + getDeleteTensorboardTimeSeriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_TENSORBOARD_TIME_SERIES))) + .addMethod( + getReadTensorboardTimeSeriesDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse>( + this, METHODID_READ_TENSORBOARD_TIME_SERIES_DATA))) + .addMethod( + getReadTensorboardBlobDataMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse>( + this, METHODID_READ_TENSORBOARD_BLOB_DATA))) + .addMethod( + getWriteTensorboardRunDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse>( + this, METHODID_WRITE_TENSORBOARD_RUN_DATA))) + .addMethod( + getExportTensorboardTimeSeriesDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse>( + this, METHODID_EXPORT_TENSORBOARD_TIME_SERIES_DATA))) + .build(); + } + } + + /** + * + * + *
+   * TensorboardService
+   * 
+ */ + public static final class TensorboardServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TensorboardServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TensorboardServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Tensorboard.
+     * 
+ */ + public void createTensorboard( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTensorboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Tensorboard.
+     * 
+ */ + public void getTensorboard( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTensorboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a Tensorboard.
+     * 
+ */ + public void updateTensorboard( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTensorboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Tensorboards in a Location.
+     * 
+ */ + public void listTensorboards( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTensorboardsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Tensorboard.
+     * 
+ */ + public void deleteTensorboard( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTensorboardMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardExperiment.
+     * 
+ */ + public void createTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTensorboardExperimentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardExperiment.
+     * 
+ */ + public void getTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTensorboardExperimentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardExperiment.
+     * 
+ */ + public void updateTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTensorboardExperimentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardExperiments in a Location.
+     * 
+ */ + public void listTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTensorboardExperimentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardExperiment.
+     * 
+ */ + public void deleteTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTensorboardExperimentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardRun.
+     * 
+ */ + public void createTensorboardRun( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTensorboardRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardRun.
+     * 
+ */ + public void getTensorboardRun( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTensorboardRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardRun.
+     * 
+ */ + public void updateTensorboardRun( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTensorboardRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardRuns in a Location.
+     * 
+ */ + public void listTensorboardRuns( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTensorboardRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardRun.
+     * 
+ */ + public void deleteTensorboardRun( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTensorboardRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a TensorboardTimeSeries.
+     * 
+ */ + public void createTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTensorboardTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a TensorboardTimeSeries.
+     * 
+ */ + public void getTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTensorboardTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a TensorboardTimeSeries.
+     * 
+ */ + public void updateTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTensorboardTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists TensorboardTimeSeries in a Location.
+     * 
+ */ + public void listTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTensorboardTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a TensorboardTimeSeries.
+     * 
+ */ + public void deleteTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTensorboardTimeSeriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Reads a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses. By default, if the number of data points stored is less than
+     * 1000, all data will be returned. Otherwise, 1000 data points will be
+     * randomly selected from this time series and returned. This value can be
+     * changed by changing max_data_points.
+     * 
+ */ + public void readTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadTensorboardTimeSeriesDataMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets bytes of TensorboardBlobs.
+     * This is to allow reading blob data stored in consumer project's Cloud
+     * Storage bucket without users having to obtain Cloud Storage access
+     * permission.
+     * 
+ */ + public void readTensorboardBlobData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getReadTensorboardBlobDataMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Write time series data points into multiple TensorboardTimeSeries under
+     * a TensorboardRun. If any data fail to be ingested, an error will be
+     * returned.
+     * 
+ */ + public void writeTensorboardRunData( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteTensorboardRunDataMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses.
+     * 
+ */ + public void exportTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportTensorboardTimeSeriesDataMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * TensorboardService
+   * 
+ */ + public static final class TensorboardServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TensorboardServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TensorboardServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Tensorboard.
+     * 
+ */ + public com.google.longrunning.Operation createTensorboard( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTensorboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Tensorboard.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTensorboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a Tensorboard.
+     * 
+ */ + public com.google.longrunning.Operation updateTensorboard( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTensorboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Tensorboards in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse listTensorboards( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTensorboardsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Tensorboard.
+     * 
+ */ + public com.google.longrunning.Operation deleteTensorboard( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTensorboardMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a TensorboardExperiment.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment createTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTensorboardExperimentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a TensorboardExperiment.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTensorboardExperimentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a TensorboardExperiment.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment updateTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTensorboardExperimentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists TensorboardExperiments in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + listTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTensorboardExperimentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a TensorboardExperiment.
+     * 
+ */ + public com.google.longrunning.Operation deleteTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTensorboardExperimentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a TensorboardRun.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun createTensorboardRun( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTensorboardRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a TensorboardRun.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTensorboardRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a TensorboardRun.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun updateTensorboardRun( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTensorboardRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists TensorboardRuns in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse listTensorboardRuns( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTensorboardRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a TensorboardRun.
+     * 
+ */ + public com.google.longrunning.Operation deleteTensorboardRun( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTensorboardRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a TensorboardTimeSeries.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries createTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTensorboardTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a TensorboardTimeSeries.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTensorboardTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a TensorboardTimeSeries.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries updateTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTensorboardTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists TensorboardTimeSeries in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + listTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTensorboardTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a TensorboardTimeSeries.
+     * 
+ */ + public com.google.longrunning.Operation deleteTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTensorboardTimeSeriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Reads a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses. By default, if the number of data points stored is less than
+     * 1000, all data will be returned. Otherwise, 1000 data points will be
+     * randomly selected from this time series and returned. This value can be
+     * changed by changing max_data_points.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + readTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReadTensorboardTimeSeriesDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets bytes of TensorboardBlobs.
+     * This is to allow reading blob data stored in consumer project's Cloud
+     * Storage bucket without users having to obtain Cloud Storage access
+     * permission.
+     * 
+ */ + public java.util.Iterator + readTensorboardBlobData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getReadTensorboardBlobDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Write time series data points into multiple TensorboardTimeSeries under
+     * a TensorboardRun. If any data fail to be ingested, an error will be
+     * returned.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + writeTensorboardRunData( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteTensorboardRunDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + exportTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportTensorboardTimeSeriesDataMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * TensorboardService
+   * 
+ */ + public static final class TensorboardServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TensorboardServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TensorboardServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TensorboardServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Tensorboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createTensorboard(com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTensorboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Tensorboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Tensorboard> + getTensorboard(com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTensorboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a Tensorboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateTensorboard(com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTensorboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Tensorboards in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse> + listTensorboards(com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTensorboardsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Tensorboard.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTensorboard(com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTensorboardMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a TensorboardExperiment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + createTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTensorboardExperimentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a TensorboardExperiment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + getTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTensorboardExperimentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a TensorboardExperiment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment> + updateTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTensorboardExperimentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists TensorboardExperiments in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse> + listTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTensorboardExperimentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a TensorboardExperiment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTensorboardExperimentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a TensorboardRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + createTensorboardRun( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTensorboardRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a TensorboardRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + getTensorboardRun(com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTensorboardRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a TensorboardRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardRun> + updateTensorboardRun( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTensorboardRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists TensorboardRuns in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse> + listTensorboardRuns( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTensorboardRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a TensorboardRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTensorboardRun( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTensorboardRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a TensorboardTimeSeries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + createTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTensorboardTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a TensorboardTimeSeries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + getTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTensorboardTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a TensorboardTimeSeries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries> + updateTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTensorboardTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists TensorboardTimeSeries in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse> + listTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTensorboardTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a TensorboardTimeSeries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTensorboardTimeSeriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Reads a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses. By default, if the number of data points stored is less than
+     * 1000, all data will be returned. Otherwise, 1000 data points will be
+     * randomly selected from this time series and returned. This value can be
+     * changed by changing max_data_points.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse> + readTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReadTensorboardTimeSeriesDataMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Write time series data points into multiple TensorboardTimeSeries under
+     * a TensorboardRun. If any data fail to be ingested, an error will be
+     * returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse> + writeTensorboardRunData( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWriteTensorboardRunDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports a TensorboardTimeSeries' data. Data is returned in paginated
+     * responses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse> + exportTensorboardTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportTensorboardTimeSeriesDataMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_CREATE_TENSORBOARD = 0; + private static final int METHODID_GET_TENSORBOARD = 1; + private static final int METHODID_UPDATE_TENSORBOARD = 2; + private static final int METHODID_LIST_TENSORBOARDS = 3; + private static final int METHODID_DELETE_TENSORBOARD = 4; + private static final int METHODID_CREATE_TENSORBOARD_EXPERIMENT = 5; + private static final int METHODID_GET_TENSORBOARD_EXPERIMENT = 6; + private static final int METHODID_UPDATE_TENSORBOARD_EXPERIMENT = 7; + private static final int METHODID_LIST_TENSORBOARD_EXPERIMENTS = 8; + private static final int METHODID_DELETE_TENSORBOARD_EXPERIMENT = 9; + private static final int METHODID_CREATE_TENSORBOARD_RUN = 10; + private static final int METHODID_GET_TENSORBOARD_RUN = 11; + private static final int METHODID_UPDATE_TENSORBOARD_RUN = 12; + private static final int METHODID_LIST_TENSORBOARD_RUNS = 13; + private static final int METHODID_DELETE_TENSORBOARD_RUN = 14; + private static final int METHODID_CREATE_TENSORBOARD_TIME_SERIES = 15; + private static final int METHODID_GET_TENSORBOARD_TIME_SERIES = 16; + private static final int METHODID_UPDATE_TENSORBOARD_TIME_SERIES = 17; + private static final int METHODID_LIST_TENSORBOARD_TIME_SERIES = 18; + private static final int METHODID_DELETE_TENSORBOARD_TIME_SERIES = 19; + private static final int METHODID_READ_TENSORBOARD_TIME_SERIES_DATA = 20; + private static final int METHODID_READ_TENSORBOARD_BLOB_DATA = 21; + private static final int METHODID_WRITE_TENSORBOARD_RUN_DATA = 22; + private static final int METHODID_EXPORT_TENSORBOARD_TIME_SERIES_DATA = 23; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TensorboardServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TensorboardServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TENSORBOARD: + serviceImpl.createTensorboard( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TENSORBOARD: + serviceImpl.getTensorboard( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TENSORBOARD: + serviceImpl.updateTensorboard( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TENSORBOARDS: + serviceImpl.listTensorboards( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse>) + responseObserver); + break; + case METHODID_DELETE_TENSORBOARD: + serviceImpl.deleteTensorboard( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TENSORBOARD_EXPERIMENT: + serviceImpl.createTensorboardExperiment( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>) + responseObserver); + break; + case METHODID_GET_TENSORBOARD_EXPERIMENT: + serviceImpl.getTensorboardExperiment( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>) + responseObserver); + break; + case METHODID_UPDATE_TENSORBOARD_EXPERIMENT: + serviceImpl.updateTensorboardExperiment( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>) + responseObserver); + break; + case METHODID_LIST_TENSORBOARD_EXPERIMENTS: + serviceImpl.listTensorboardExperiments( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse>) + responseObserver); + break; + case METHODID_DELETE_TENSORBOARD_EXPERIMENT: + serviceImpl.deleteTensorboardExperiment( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TENSORBOARD_RUN: + serviceImpl.createTensorboardRun( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TENSORBOARD_RUN: + serviceImpl.getTensorboardRun( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TENSORBOARD_RUN: + serviceImpl.updateTensorboardRun( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TENSORBOARD_RUNS: + serviceImpl.listTensorboardRuns( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse>) + responseObserver); + break; + case METHODID_DELETE_TENSORBOARD_RUN: + serviceImpl.deleteTensorboardRun( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TENSORBOARD_TIME_SERIES: + serviceImpl.createTensorboardTimeSeries( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>) + responseObserver); + break; + case METHODID_GET_TENSORBOARD_TIME_SERIES: + serviceImpl.getTensorboardTimeSeries( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>) + responseObserver); + break; + case METHODID_UPDATE_TENSORBOARD_TIME_SERIES: + serviceImpl.updateTensorboardTimeSeries( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>) + responseObserver); + break; + case METHODID_LIST_TENSORBOARD_TIME_SERIES: + serviceImpl.listTensorboardTimeSeries( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse>) + responseObserver); + break; + case METHODID_DELETE_TENSORBOARD_TIME_SERIES: + serviceImpl.deleteTensorboardTimeSeries( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_READ_TENSORBOARD_TIME_SERIES_DATA: + serviceImpl.readTensorboardTimeSeriesData( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse>) + responseObserver); + break; + case METHODID_READ_TENSORBOARD_BLOB_DATA: + serviceImpl.readTensorboardBlobData( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse>) + responseObserver); + break; + case METHODID_WRITE_TENSORBOARD_RUN_DATA: + serviceImpl.writeTensorboardRunData( + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse>) + responseObserver); + break; + case METHODID_EXPORT_TENSORBOARD_TIME_SERIES_DATA: + serviceImpl.exportTensorboardTimeSeriesData( + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TensorboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TensorboardServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TensorboardService"); + } + } + + private static final class TensorboardServiceFileDescriptorSupplier + extends TensorboardServiceBaseDescriptorSupplier { + TensorboardServiceFileDescriptorSupplier() {} + } + + private static final class TensorboardServiceMethodDescriptorSupplier + extends TensorboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TensorboardServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TensorboardServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TensorboardServiceFileDescriptorSupplier()) + .addMethod(getCreateTensorboardMethod()) + .addMethod(getGetTensorboardMethod()) + .addMethod(getUpdateTensorboardMethod()) + .addMethod(getListTensorboardsMethod()) + .addMethod(getDeleteTensorboardMethod()) + .addMethod(getCreateTensorboardExperimentMethod()) + .addMethod(getGetTensorboardExperimentMethod()) + .addMethod(getUpdateTensorboardExperimentMethod()) + .addMethod(getListTensorboardExperimentsMethod()) + .addMethod(getDeleteTensorboardExperimentMethod()) + .addMethod(getCreateTensorboardRunMethod()) + .addMethod(getGetTensorboardRunMethod()) + .addMethod(getUpdateTensorboardRunMethod()) + .addMethod(getListTensorboardRunsMethod()) + .addMethod(getDeleteTensorboardRunMethod()) + .addMethod(getCreateTensorboardTimeSeriesMethod()) + .addMethod(getGetTensorboardTimeSeriesMethod()) + .addMethod(getUpdateTensorboardTimeSeriesMethod()) + .addMethod(getListTensorboardTimeSeriesMethod()) + .addMethod(getDeleteTensorboardTimeSeriesMethod()) + .addMethod(getReadTensorboardTimeSeriesDataMethod()) + .addMethod(getReadTensorboardBlobDataMethod()) + .addMethod(getWriteTensorboardRunDataMethod()) + .addMethod(getExportTensorboardTimeSeriesDataMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java new file mode 100644 index 000000000..e505f8fc4 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java @@ -0,0 +1,2051 @@ +/* + * 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. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Vertex Vizier API.
+ * Vizier service is a GCP service to solve blackbox optimization problems,
+ * such as tuning machine learning hyperparameters and searching over deep
+ * learning architectures.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/vizier_service.proto") +public final class VizierServiceGrpc { + + private VizierServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.aiplatform.v1beta1.VizierService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getCreateStudyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStudy", + requestType = com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Study.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getCreateStudyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getCreateStudyMethod; + if ((getCreateStudyMethod = VizierServiceGrpc.getCreateStudyMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getCreateStudyMethod = VizierServiceGrpc.getCreateStudyMethod) == null) { + VizierServiceGrpc.getCreateStudyMethod = + getCreateStudyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStudy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("CreateStudy")) + .build(); + } + } + } + return getCreateStudyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getGetStudyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStudy", + requestType = com.google.cloud.aiplatform.v1beta1.GetStudyRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Study.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getGetStudyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getGetStudyMethod; + if ((getGetStudyMethod = VizierServiceGrpc.getGetStudyMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getGetStudyMethod = VizierServiceGrpc.getGetStudyMethod) == null) { + VizierServiceGrpc.getGetStudyMethod = + getGetStudyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStudy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("GetStudy")) + .build(); + } + } + } + return getGetStudyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse> + getListStudiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStudies", + requestType = com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse> + getListStudiesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse> + getListStudiesMethod; + if ((getListStudiesMethod = VizierServiceGrpc.getListStudiesMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getListStudiesMethod = VizierServiceGrpc.getListStudiesMethod) == null) { + VizierServiceGrpc.getListStudiesMethod = + getListStudiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStudies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("ListStudies")) + .build(); + } + } + } + return getListStudiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest, com.google.protobuf.Empty> + getDeleteStudyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStudy", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest, com.google.protobuf.Empty> + getDeleteStudyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest, com.google.protobuf.Empty> + getDeleteStudyMethod; + if ((getDeleteStudyMethod = VizierServiceGrpc.getDeleteStudyMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getDeleteStudyMethod = VizierServiceGrpc.getDeleteStudyMethod) == null) { + VizierServiceGrpc.getDeleteStudyMethod = + getDeleteStudyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStudy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("DeleteStudy")) + .build(); + } + } + } + return getDeleteStudyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getLookupStudyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupStudy", + requestType = com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Study.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getLookupStudyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study> + getLookupStudyMethod; + if ((getLookupStudyMethod = VizierServiceGrpc.getLookupStudyMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getLookupStudyMethod = VizierServiceGrpc.getLookupStudyMethod) == null) { + VizierServiceGrpc.getLookupStudyMethod = + getLookupStudyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupStudy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("LookupStudy")) + .build(); + } + } + } + return getLookupStudyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest, + com.google.longrunning.Operation> + getSuggestTrialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SuggestTrials", + requestType = com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest, + com.google.longrunning.Operation> + getSuggestTrialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest, + com.google.longrunning.Operation> + getSuggestTrialsMethod; + if ((getSuggestTrialsMethod = VizierServiceGrpc.getSuggestTrialsMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getSuggestTrialsMethod = VizierServiceGrpc.getSuggestTrialsMethod) == null) { + VizierServiceGrpc.getSuggestTrialsMethod = + getSuggestTrialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestTrials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VizierServiceMethodDescriptorSupplier("SuggestTrials")) + .build(); + } + } + } + return getSuggestTrialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCreateTrialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTrial", + requestType = com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Trial.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCreateTrialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCreateTrialMethod; + if ((getCreateTrialMethod = VizierServiceGrpc.getCreateTrialMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getCreateTrialMethod = VizierServiceGrpc.getCreateTrialMethod) == null) { + VizierServiceGrpc.getCreateTrialMethod = + getCreateTrialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTrial")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("CreateTrial")) + .build(); + } + } + } + return getCreateTrialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getGetTrialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTrial", + requestType = com.google.cloud.aiplatform.v1beta1.GetTrialRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Trial.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getGetTrialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getGetTrialMethod; + if ((getGetTrialMethod = VizierServiceGrpc.getGetTrialMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getGetTrialMethod = VizierServiceGrpc.getGetTrialMethod) == null) { + VizierServiceGrpc.getGetTrialMethod = + getGetTrialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTrial")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("GetTrial")) + .build(); + } + } + } + return getGetTrialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse> + getListTrialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTrials", + requestType = com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse> + getListTrialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse> + getListTrialsMethod; + if ((getListTrialsMethod = VizierServiceGrpc.getListTrialsMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getListTrialsMethod = VizierServiceGrpc.getListTrialsMethod) == null) { + VizierServiceGrpc.getListTrialsMethod = + getListTrialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTrials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("ListTrials")) + .build(); + } + } + } + return getListTrialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getAddTrialMeasurementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddTrialMeasurement", + requestType = com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Trial.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getAddTrialMeasurementMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getAddTrialMeasurementMethod; + if ((getAddTrialMeasurementMethod = VizierServiceGrpc.getAddTrialMeasurementMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getAddTrialMeasurementMethod = VizierServiceGrpc.getAddTrialMeasurementMethod) + == null) { + VizierServiceGrpc.getAddTrialMeasurementMethod = + getAddTrialMeasurementMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AddTrialMeasurement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance())) + .setSchemaDescriptor( + new VizierServiceMethodDescriptorSupplier("AddTrialMeasurement")) + .build(); + } + } + } + return getAddTrialMeasurementMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCompleteTrialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteTrial", + requestType = com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Trial.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCompleteTrialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getCompleteTrialMethod; + if ((getCompleteTrialMethod = VizierServiceGrpc.getCompleteTrialMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getCompleteTrialMethod = VizierServiceGrpc.getCompleteTrialMethod) == null) { + VizierServiceGrpc.getCompleteTrialMethod = + getCompleteTrialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteTrial")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance())) + .setSchemaDescriptor( + new VizierServiceMethodDescriptorSupplier("CompleteTrial")) + .build(); + } + } + } + return getCompleteTrialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest, com.google.protobuf.Empty> + getDeleteTrialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTrial", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest, com.google.protobuf.Empty> + getDeleteTrialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest, com.google.protobuf.Empty> + getDeleteTrialMethod; + if ((getDeleteTrialMethod = VizierServiceGrpc.getDeleteTrialMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getDeleteTrialMethod = VizierServiceGrpc.getDeleteTrialMethod) == null) { + VizierServiceGrpc.getDeleteTrialMethod = + getDeleteTrialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTrial")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("DeleteTrial")) + .build(); + } + } + } + return getDeleteTrialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest, + com.google.longrunning.Operation> + getCheckTrialEarlyStoppingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckTrialEarlyStoppingState", + requestType = com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest, + com.google.longrunning.Operation> + getCheckTrialEarlyStoppingStateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest, + com.google.longrunning.Operation> + getCheckTrialEarlyStoppingStateMethod; + if ((getCheckTrialEarlyStoppingStateMethod = + VizierServiceGrpc.getCheckTrialEarlyStoppingStateMethod) + == null) { + synchronized (VizierServiceGrpc.class) { + if ((getCheckTrialEarlyStoppingStateMethod = + VizierServiceGrpc.getCheckTrialEarlyStoppingStateMethod) + == null) { + VizierServiceGrpc.getCheckTrialEarlyStoppingStateMethod = + getCheckTrialEarlyStoppingStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CheckTrialEarlyStoppingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .CheckTrialEarlyStoppingStateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VizierServiceMethodDescriptorSupplier("CheckTrialEarlyStoppingState")) + .build(); + } + } + } + return getCheckTrialEarlyStoppingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StopTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getStopTrialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopTrial", + requestType = com.google.cloud.aiplatform.v1beta1.StopTrialRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.Trial.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StopTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getStopTrialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StopTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial> + getStopTrialMethod; + if ((getStopTrialMethod = VizierServiceGrpc.getStopTrialMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getStopTrialMethod = VizierServiceGrpc.getStopTrialMethod) == null) { + VizierServiceGrpc.getStopTrialMethod = + getStopTrialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopTrial")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance())) + .setSchemaDescriptor(new VizierServiceMethodDescriptorSupplier("StopTrial")) + .build(); + } + } + } + return getStopTrialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse> + getListOptimalTrialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOptimalTrials", + requestType = com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse> + getListOptimalTrialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse> + getListOptimalTrialsMethod; + if ((getListOptimalTrialsMethod = VizierServiceGrpc.getListOptimalTrialsMethod) == null) { + synchronized (VizierServiceGrpc.class) { + if ((getListOptimalTrialsMethod = VizierServiceGrpc.getListOptimalTrialsMethod) == null) { + VizierServiceGrpc.getListOptimalTrialsMethod = + getListOptimalTrialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOptimalTrials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VizierServiceMethodDescriptorSupplier("ListOptimalTrials")) + .build(); + } + } + } + return getListOptimalTrialsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VizierServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VizierServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceStub(channel, callOptions); + } + }; + return VizierServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VizierServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VizierServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceBlockingStub(channel, callOptions); + } + }; + return VizierServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VizierServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VizierServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceFutureStub(channel, callOptions); + } + }; + return VizierServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Vertex Vizier API.
+   * Vizier service is a GCP service to solve blackbox optimization problems,
+   * such as tuning machine learning hyperparameters and searching over deep
+   * learning architectures.
+   * 
+ */ + public abstract static class VizierServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a Study. A resource name will be generated after creation of the
+     * Study.
+     * 
+ */ + public void createStudy( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateStudyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Study by name.
+     * 
+ */ + public void getStudy( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStudyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all the studies in a region for an associated project.
+     * 
+ */ + public void listStudies( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListStudiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Study.
+     * 
+ */ + public void deleteStudy( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteStudyMethod(), responseObserver); + } + + /** + * + * + *
+     * Looks a study up using the user-defined display_name field instead of the
+     * fully qualified resource name.
+     * 
+ */ + public void lookupStudy( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLookupStudyMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds one or more Trials to a Study, with parameter values
+     * suggested by Vertex Vizier. Returns a long-running
+     * operation associated with the generation of Trial suggestions.
+     * When this long-running operation succeeds, it will contain
+     * a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
+     * 
+ */ + public void suggestTrials( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuggestTrialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a user provided Trial to a Study.
+     * 
+ */ + public void createTrial( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTrialMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Trial.
+     * 
+ */ + public void getTrial( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTrialMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Trials associated with a Study.
+     * 
+ */ + public void listTrials( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTrialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a measurement of the objective metrics to a Trial. This measurement
+     * is assumed to have been taken before the Trial is complete.
+     * 
+ */ + public void addTrialMeasurement( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddTrialMeasurementMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks a Trial as complete.
+     * 
+ */ + public void completeTrial( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteTrialMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Trial.
+     * 
+ */ + public void deleteTrial( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTrialMethod(), responseObserver); + } + + /** + * + * + *
+     * Checks  whether a Trial should stop or not. Returns a
+     * long-running operation. When the operation is successful,
+     * it will contain a
+     * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
+     * 
+ */ + public void checkTrialEarlyStoppingState( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCheckTrialEarlyStoppingStateMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a Trial.
+     * 
+ */ + public void stopTrial( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopTrialMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the pareto-optimal Trials for multi-objective Study or the
+     * optimal Trials for single-objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ */ + public void listOptimalTrials( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOptimalTrialsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateStudyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study>(this, METHODID_CREATE_STUDY))) + .addMethod( + getGetStudyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study>(this, METHODID_GET_STUDY))) + .addMethod( + getListStudiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse>( + this, METHODID_LIST_STUDIES))) + .addMethod( + getDeleteStudyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_STUDY))) + .addMethod( + getLookupStudyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest, + com.google.cloud.aiplatform.v1beta1.Study>(this, METHODID_LOOKUP_STUDY))) + .addMethod( + getSuggestTrialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest, + com.google.longrunning.Operation>(this, METHODID_SUGGEST_TRIALS))) + .addMethod( + getCreateTrialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial>(this, METHODID_CREATE_TRIAL))) + .addMethod( + getGetTrialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial>(this, METHODID_GET_TRIAL))) + .addMethod( + getListTrialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse>( + this, METHODID_LIST_TRIALS))) + .addMethod( + getAddTrialMeasurementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest, + com.google.cloud.aiplatform.v1beta1.Trial>( + this, METHODID_ADD_TRIAL_MEASUREMENT))) + .addMethod( + getCompleteTrialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial>(this, METHODID_COMPLETE_TRIAL))) + .addMethod( + getDeleteTrialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TRIAL))) + .addMethod( + getCheckTrialEarlyStoppingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest, + com.google.longrunning.Operation>( + this, METHODID_CHECK_TRIAL_EARLY_STOPPING_STATE))) + .addMethod( + getStopTrialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.StopTrialRequest, + com.google.cloud.aiplatform.v1beta1.Trial>(this, METHODID_STOP_TRIAL))) + .addMethod( + getListOptimalTrialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse>( + this, METHODID_LIST_OPTIMAL_TRIALS))) + .build(); + } + } + + /** + * + * + *
+   * Vertex Vizier API.
+   * Vizier service is a GCP service to solve blackbox optimization problems,
+   * such as tuning machine learning hyperparameters and searching over deep
+   * learning architectures.
+   * 
+ */ + public static final class VizierServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private VizierServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VizierServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Study. A resource name will be generated after creation of the
+     * Study.
+     * 
+ */ + public void createStudy( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStudyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Study by name.
+     * 
+ */ + public void getStudy( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStudyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists all the studies in a region for an associated project.
+     * 
+ */ + public void listStudies( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStudiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Study.
+     * 
+ */ + public void deleteStudy( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStudyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Looks a study up using the user-defined display_name field instead of the
+     * fully qualified resource name.
+     * 
+ */ + public void lookupStudy( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupStudyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds one or more Trials to a Study, with parameter values
+     * suggested by Vertex Vizier. Returns a long-running
+     * operation associated with the generation of Trial suggestions.
+     * When this long-running operation succeeds, it will contain
+     * a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
+     * 
+ */ + public void suggestTrials( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSuggestTrialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds a user provided Trial to a Study.
+     * 
+ */ + public void createTrial( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTrialMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Trial.
+     * 
+ */ + public void getTrial( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTrialMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the Trials associated with a Study.
+     * 
+ */ + public void listTrials( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTrialsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Adds a measurement of the objective metrics to a Trial. This measurement
+     * is assumed to have been taken before the Trial is complete.
+     * 
+ */ + public void addTrialMeasurement( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddTrialMeasurementMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks a Trial as complete.
+     * 
+ */ + public void completeTrial( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompleteTrialMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Trial.
+     * 
+ */ + public void deleteTrial( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTrialMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Checks  whether a Trial should stop or not. Returns a
+     * long-running operation. When the operation is successful,
+     * it will contain a
+     * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
+     * 
+ */ + public void checkTrialEarlyStoppingState( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckTrialEarlyStoppingStateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a Trial.
+     * 
+ */ + public void stopTrial( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopTrialMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the pareto-optimal Trials for multi-objective Study or the
+     * optimal Trials for single-objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ */ + public void listOptimalTrials( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOptimalTrialsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Vertex Vizier API.
+   * Vizier service is a GCP service to solve blackbox optimization problems,
+   * such as tuning machine learning hyperparameters and searching over deep
+   * learning architectures.
+   * 
+ */ + public static final class VizierServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VizierServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VizierServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Study. A resource name will be generated after creation of the
+     * Study.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Study createStudy( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStudyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Study by name.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Study getStudy( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStudyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all the studies in a region for an associated project.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse listStudies( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStudiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Study.
+     * 
+ */ + public com.google.protobuf.Empty deleteStudy( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStudyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Looks a study up using the user-defined display_name field instead of the
+     * fully qualified resource name.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Study lookupStudy( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupStudyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds one or more Trials to a Study, with parameter values
+     * suggested by Vertex Vizier. Returns a long-running
+     * operation associated with the generation of Trial suggestions.
+     * When this long-running operation succeeds, it will contain
+     * a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
+     * 
+ */ + public com.google.longrunning.Operation suggestTrials( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuggestTrialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a user provided Trial to a Study.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Trial createTrial( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTrialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Trial.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Trial getTrial( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTrialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Trials associated with a Study.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse listTrials( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTrialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a measurement of the objective metrics to a Trial. This measurement
+     * is assumed to have been taken before the Trial is complete.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Trial addTrialMeasurement( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddTrialMeasurementMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Marks a Trial as complete.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Trial completeTrial( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteTrialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Trial.
+     * 
+ */ + public com.google.protobuf.Empty deleteTrial( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTrialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Checks  whether a Trial should stop or not. Returns a
+     * long-running operation. When the operation is successful,
+     * it will contain a
+     * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
+     * 
+ */ + public com.google.longrunning.Operation checkTrialEarlyStoppingState( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckTrialEarlyStoppingStateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a Trial.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.Trial stopTrial( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopTrialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the pareto-optimal Trials for multi-objective Study or the
+     * optimal Trials for single-objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse listOptimalTrials( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOptimalTrialsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Vertex Vizier API.
+   * Vizier service is a GCP service to solve blackbox optimization problems,
+   * such as tuning machine learning hyperparameters and searching over deep
+   * learning architectures.
+   * 
+ */ + public static final class VizierServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VizierServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VizierServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VizierServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Study. A resource name will be generated after creation of the
+     * Study.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Study> + createStudy(com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStudyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Study by name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Study> + getStudy(com.google.cloud.aiplatform.v1beta1.GetStudyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStudyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all the studies in a region for an associated project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse> + listStudies(com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStudiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Study.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteStudy(com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStudyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Looks a study up using the user-defined display_name field instead of the
+     * fully qualified resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Study> + lookupStudy(com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupStudyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds one or more Trials to a Study, with parameter values
+     * suggested by Vertex Vizier. Returns a long-running
+     * operation associated with the generation of Trial suggestions.
+     * When this long-running operation succeeds, it will contain
+     * a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + suggestTrials(com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSuggestTrialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a user provided Trial to a Study.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Trial> + createTrial(com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTrialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Trial.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Trial> + getTrial(com.google.cloud.aiplatform.v1beta1.GetTrialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTrialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Trials associated with a Study.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse> + listTrials(com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTrialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a measurement of the objective metrics to a Trial. This measurement
+     * is assumed to have been taken before the Trial is complete.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Trial> + addTrialMeasurement( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddTrialMeasurementMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Marks a Trial as complete.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Trial> + completeTrial(com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteTrialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Trial.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTrial(com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTrialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Checks  whether a Trial should stop or not. Returns a
+     * long-running operation. When the operation is successful,
+     * it will contain a
+     * [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + checkTrialEarlyStoppingState( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckTrialEarlyStoppingStateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a Trial.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.Trial> + stopTrial(com.google.cloud.aiplatform.v1beta1.StopTrialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopTrialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the pareto-optimal Trials for multi-objective Study or the
+     * optimal Trials for single-objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse> + listOptimalTrials(com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOptimalTrialsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_STUDY = 0; + private static final int METHODID_GET_STUDY = 1; + private static final int METHODID_LIST_STUDIES = 2; + private static final int METHODID_DELETE_STUDY = 3; + private static final int METHODID_LOOKUP_STUDY = 4; + private static final int METHODID_SUGGEST_TRIALS = 5; + private static final int METHODID_CREATE_TRIAL = 6; + private static final int METHODID_GET_TRIAL = 7; + private static final int METHODID_LIST_TRIALS = 8; + private static final int METHODID_ADD_TRIAL_MEASUREMENT = 9; + private static final int METHODID_COMPLETE_TRIAL = 10; + private static final int METHODID_DELETE_TRIAL = 11; + private static final int METHODID_CHECK_TRIAL_EARLY_STOPPING_STATE = 12; + private static final int METHODID_STOP_TRIAL = 13; + private static final int METHODID_LIST_OPTIMAL_TRIALS = 14; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VizierServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VizierServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_STUDY: + serviceImpl.createStudy( + (com.google.cloud.aiplatform.v1beta1.CreateStudyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_STUDY: + serviceImpl.getStudy( + (com.google.cloud.aiplatform.v1beta1.GetStudyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_STUDIES: + serviceImpl.listStudies( + (com.google.cloud.aiplatform.v1beta1.ListStudiesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_STUDY: + serviceImpl.deleteStudy( + (com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOOKUP_STUDY: + serviceImpl.lookupStudy( + (com.google.cloud.aiplatform.v1beta1.LookupStudyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SUGGEST_TRIALS: + serviceImpl.suggestTrials( + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TRIAL: + serviceImpl.createTrial( + (com.google.cloud.aiplatform.v1beta1.CreateTrialRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TRIAL: + serviceImpl.getTrial( + (com.google.cloud.aiplatform.v1beta1.GetTrialRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TRIALS: + serviceImpl.listTrials( + (com.google.cloud.aiplatform.v1beta1.ListTrialsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_TRIAL_MEASUREMENT: + serviceImpl.addTrialMeasurement( + (com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMPLETE_TRIAL: + serviceImpl.completeTrial( + (com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TRIAL: + serviceImpl.deleteTrial( + (com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_TRIAL_EARLY_STOPPING_STATE: + serviceImpl.checkTrialEarlyStoppingState( + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_TRIAL: + serviceImpl.stopTrial( + (com.google.cloud.aiplatform.v1beta1.StopTrialRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_OPTIMAL_TRIALS: + serviceImpl.listOptimalTrials( + (com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class VizierServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VizierServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VizierService"); + } + } + + private static final class VizierServiceFileDescriptorSupplier + extends VizierServiceBaseDescriptorSupplier { + VizierServiceFileDescriptorSupplier() {} + } + + private static final class VizierServiceMethodDescriptorSupplier + extends VizierServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VizierServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VizierServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VizierServiceFileDescriptorSupplier()) + .addMethod(getCreateStudyMethod()) + .addMethod(getGetStudyMethod()) + .addMethod(getListStudiesMethod()) + .addMethod(getDeleteStudyMethod()) + .addMethod(getLookupStudyMethod()) + .addMethod(getSuggestTrialsMethod()) + .addMethod(getCreateTrialMethod()) + .addMethod(getGetTrialMethod()) + .addMethod(getListTrialsMethod()) + .addMethod(getAddTrialMeasurementMethod()) + .addMethod(getCompleteTrialMethod()) + .addMethod(getDeleteTrialMethod()) + .addMethod(getCheckTrialEarlyStoppingStateMethod()) + .addMethod(getStopTrialMethod()) + .addMethod(getListOptimalTrialsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owlbot.py b/owlbot.py new file mode 100644 index 000000000..dac2bd903 --- /dev/null +++ b/owlbot.py @@ -0,0 +1,30 @@ +# 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. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates( + excludes=[ + ".kokoro/build.sh", + ".kokoro/nightly/samples.cfg", + ".kokoro/presubmit/samples.cfg", + ] +) diff --git a/pom.xml b/pom.xml index aaec93cf0..29a8ebd11 100644 --- a/pom.xml +++ b/pom.xml @@ -4,17 +4,17 @@ com.google.cloud google-cloud-aiplatform-parent pom - 0.4.1 - Google AI Platform Parent + 1.0.0 + Google Cloud Vertex AI Parent https://github.com/googleapis/java- - Java idiomatic client for Google Cloud Platform services. + Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-shared-config - 0.11.1 + 0.12.0 @@ -70,32 +70,32 @@ com.google.cloud google-cloud-aiplatform - 0.4.1 + 1.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 0.4.1 + 1.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.5.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 0.4.1 + 1.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.4.1 + 0.5.0 com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 1.3.0 pom import @@ -121,10 +121,10 @@ google-cloud-aiplatform - proto-google-cloud-aiplatform-v1beta1 - proto-google-cloud-aiplatform-v1 - grpc-google-cloud-aiplatform-v1beta1 grpc-google-cloud-aiplatform-v1 + grpc-google-cloud-aiplatform-v1beta1 + proto-google-cloud-aiplatform-v1 + proto-google-cloud-aiplatform-v1beta1 google-cloud-aiplatform-bom @@ -133,7 +133,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.1.2 @@ -160,7 +160,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.3.0 html diff --git a/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000..1c26623e6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml @@ -0,0 +1,20 @@ + + + + + + + com/google/cloud/aiplatform/v1/*OrBuilder + + 7012 + * has*() + + + + com/google/cloud/aiplatform/v1/schema/trainingjob/definition/*OrBuilder + + 7012 + * has*() + + + diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index 2a402abb9..5865f4780 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 - 0.4.1 + 1.0.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 0.4.1 + 1.0.0 diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java index 9aaef0687..57a86cde2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java @@ -196,6 +196,21 @@ public HumanLabelingBudgetCase getHumanLabelingBudgetCase() { } public static final int MAX_DATA_ITEM_COUNT_FIELD_NUMBER = 1; + /** + * + * + *
+   * Max number of human labeled DataItems.
+   * 
+ * + * int64 max_data_item_count = 1; + * + * @return Whether the maxDataItemCount field is set. + */ + @java.lang.Override + public boolean hasMaxDataItemCount() { + return humanLabelingBudgetCase_ == 1; + } /** * * @@ -216,6 +231,21 @@ public long getMaxDataItemCount() { } public static final int MAX_DATA_ITEM_PERCENTAGE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Max percent of total DataItems for human labeling.
+   * 
+ * + * int32 max_data_item_percentage = 2; + * + * @return Whether the maxDataItemPercentage field is set. + */ + @java.lang.Override + public boolean hasMaxDataItemPercentage() { + return humanLabelingBudgetCase_ == 2; + } /** * * @@ -778,6 +808,20 @@ public Builder clearHumanLabelingBudget() { return this; } + /** + * + * + *
+     * Max number of human labeled DataItems.
+     * 
+ * + * int64 max_data_item_count = 1; + * + * @return Whether the maxDataItemCount field is set. + */ + public boolean hasMaxDataItemCount() { + return humanLabelingBudgetCase_ == 1; + } /** * * @@ -833,6 +877,20 @@ public Builder clearMaxDataItemCount() { return this; } + /** + * + * + *
+     * Max percent of total DataItems for human labeling.
+     * 
+ * + * int32 max_data_item_percentage = 2; + * + * @return Whether the maxDataItemPercentage field is set. + */ + public boolean hasMaxDataItemPercentage() { + return humanLabelingBudgetCase_ == 2; + } /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfigOrBuilder.java index 6ec2924d5..61ad7931f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfigOrBuilder.java @@ -23,6 +23,18 @@ public interface ActiveLearningConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ActiveLearningConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Max number of human labeled DataItems.
+   * 
+ * + * int64 max_data_item_count = 1; + * + * @return Whether the maxDataItemCount field is set. + */ + boolean hasMaxDataItemCount(); /** * * @@ -36,6 +48,18 @@ public interface ActiveLearningConfigOrBuilder */ long getMaxDataItemCount(); + /** + * + * + *
+   * Max percent of total DataItems for human labeling.
+   * 
+ * + * int32 max_data_item_percentage = 2; + * + * @return Whether the maxDataItemPercentage field is set. + */ + boolean hasMaxDataItemPercentage(); /** * * 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 index 8e18374dd..ffc7808e1 100644 --- 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 @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java index b5f8ae868..2ebb92889 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java @@ -270,8 +270,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-   * schema is defined as an
-   * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * schema is defined as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * The schema files that can be used here are found in
    * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
    * chosen schema must be consistent with the parent Dataset's
@@ -299,8 +299,8 @@ public java.lang.String getPayloadSchemaUri() {
    *
    * 
    * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-   * schema is defined as an
-   * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * schema is defined as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * The schema files that can be used here are found in
    * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
    * chosen schema must be consistent with the parent Dataset's
@@ -1348,8 +1348,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-     * schema is defined as an
-     * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * schema is defined as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * The schema files that can be used here are found in
      * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
      * chosen schema must be consistent with the parent Dataset's
@@ -1376,8 +1376,8 @@ public java.lang.String getPayloadSchemaUri() {
      *
      * 
      * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-     * schema is defined as an
-     * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * schema is defined as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * The schema files that can be used here are found in
      * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
      * chosen schema must be consistent with the parent Dataset's
@@ -1404,8 +1404,8 @@ public com.google.protobuf.ByteString getPayloadSchemaUriBytes() {
      *
      * 
      * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-     * schema is defined as an
-     * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * schema is defined as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * The schema files that can be used here are found in
      * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
      * chosen schema must be consistent with the parent Dataset's
@@ -1431,8 +1431,8 @@ public Builder setPayloadSchemaUri(java.lang.String value) {
      *
      * 
      * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-     * schema is defined as an
-     * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * schema is defined as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * The schema files that can be used here are found in
      * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
      * chosen schema must be consistent with the parent Dataset's
@@ -1454,8 +1454,8 @@ public Builder clearPayloadSchemaUri() {
      *
      * 
      * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-     * schema is defined as an
-     * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * schema is defined as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * The schema files that can be used here are found in
      * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
      * chosen schema must be consistent with the parent Dataset's
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
index c24568455..01c716011 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java
index 0429440b6..c67f71827 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java
@@ -53,8 +53,8 @@ public interface AnnotationOrBuilder
    *
    * 
    * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-   * schema is defined as an
-   * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * schema is defined as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * The schema files that can be used here are found in
    * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
    * chosen schema must be consistent with the parent Dataset's
@@ -71,8 +71,8 @@ public interface AnnotationOrBuilder
    *
    * 
    * Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The
-   * schema is defined as an
-   * [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * schema is defined as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * The schema files that can be used here are found in
    * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
    * chosen schema must be consistent with the parent Dataset's
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java
index 40f968e65..c414f6b0d 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java
@@ -1,5 +1,5 @@
 /*
- * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java
index 540d061b0..aefe7db85 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * A description of resources that to large degree are decided by AI Platform,
+ * A description of resources that to large degree are decided by Vertex AI,
  * and require only a modest additional configuration.
  * Each Model supporting these resources documents its specific guidelines.
  * 
@@ -149,7 +149,7 @@ public int getMinReplicaCount() { * outages). If traffic against the DeployedModel increases beyond what its * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, a no upper bound for scaling under heavy - * traffic will be assume, though AI Platform may be unable to scale beyond + * traffic will be assume, though Vertex AI may be unable to scale beyond * certain replica number. *
* @@ -334,7 +334,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A description of resources that to large degree are decided by AI Platform,
+   * A description of resources that to large degree are decided by Vertex AI,
    * and require only a modest additional configuration.
    * Each Model supporting these resources documents its specific guidelines.
    * 
@@ -572,7 +572,7 @@ public Builder clearMinReplicaCount() { * outages). If traffic against the DeployedModel increases beyond what its * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, a no upper bound for scaling under heavy - * traffic will be assume, though AI Platform may be unable to scale beyond + * traffic will be assume, though Vertex AI may be unable to scale beyond * certain replica number. *
* @@ -595,7 +595,7 @@ public int getMaxReplicaCount() { * outages). If traffic against the DeployedModel increases beyond what its * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, a no upper bound for scaling under heavy - * traffic will be assume, though AI Platform may be unable to scale beyond + * traffic will be assume, though Vertex AI may be unable to scale beyond * certain replica number. *
* @@ -621,7 +621,7 @@ public Builder setMaxReplicaCount(int value) { * outages). If traffic against the DeployedModel increases beyond what its * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, a no upper bound for scaling under heavy - * traffic will be assume, though AI Platform may be unable to scale beyond + * traffic will be assume, though Vertex AI may be unable to scale beyond * certain replica number. *
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResourcesOrBuilder.java index e41ec4e37..16049c561 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResourcesOrBuilder.java @@ -51,7 +51,7 @@ public interface AutomaticResourcesOrBuilder * outages). If traffic against the DeployedModel increases beyond what its * replicas at maximum may handle, a portion of the traffic will be dropped. * If this value is not provided, a no upper bound for scaling under heavy - * traffic will be assume, though AI Platform may be unable to scale beyond + * traffic will be assume, though Vertex AI may be unable to scale beyond * certain replica number. *
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java index 02ef10b5e..3743ca9ec 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java @@ -190,7 +190,7 @@ public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuild * *
    * Immutable. The number of machine replicas used at the start of the batch operation.
-   * If not set, AI Platform decides starting number, not greater than
+   * If not set, Vertex AI decides starting number, not greater than
    * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count]
    * 
* @@ -794,7 +794,7 @@ public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuild * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count]
      * 
* @@ -811,7 +811,7 @@ public int getStartingReplicaCount() { * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count]
      * 
* @@ -831,7 +831,7 @@ public Builder setStartingReplicaCount(int value) { * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count]
      * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResourcesOrBuilder.java index dfd29c22e..cdaf89564 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResourcesOrBuilder.java @@ -69,7 +69,7 @@ public interface BatchDedicatedResourcesOrBuilder * *
    * Immutable. The number of machine replicas used at the start of the batch operation.
-   * If not set, AI Platform decides starting number, not greater than
+   * If not set, Vertex AI decides starting number, not greater than
    * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count]
    * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java index fa0751fec..249576963 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java @@ -183,6 +183,18 @@ public interface PartialResultOrBuilder */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + /** + * + * + *
+     * Migrated model resource name.
+     * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); /** * * @@ -208,6 +220,18 @@ public interface PartialResultOrBuilder */ com.google.protobuf.ByteString getModelBytes(); + /** + * + * + *
+     * Migrated dataset resource name.
+     * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); /** * * @@ -510,6 +534,20 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int MODEL_FIELD_NUMBER = 3; + /** + * + * + *
+     * Migrated model resource name.
+     * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return resultCase_ == 3; + } /** * * @@ -566,6 +604,20 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DATASET_FIELD_NUMBER = 4; + /** + * + * + *
+     * Migrated dataset resource name.
+     * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return resultCase_ == 4; + } /** * * @@ -1354,6 +1406,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return errorBuilder_; } + /** + * + * + *
+       * Migrated model resource name.
+       * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return resultCase_ == 3; + } /** * * @@ -1473,6 +1540,21 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+       * Migrated dataset resource name.
+       * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return resultCase_ == 4; + } /** * * 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 6e2883ba7..2aac285b0 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 @@ -2006,8 +2006,8 @@ public interface OutputConfigOrBuilder * * *
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2035,8 +2035,8 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2064,8 +2064,8 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2092,7 +2092,7 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
      * 
@@ -2106,7 +2106,7 @@ public interface OutputConfigOrBuilder * * *
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
      * 
@@ -2416,8 +2416,8 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * * *
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2448,8 +2448,8 @@ public boolean hasBigqueryDestination() {
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2483,8 +2483,8 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2520,7 +2520,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
      *
      *
      * 
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
      * 
@@ -2545,7 +2545,7 @@ public java.lang.String getPredictionsFormat() { * * *
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
      * 
@@ -3381,8 +3381,8 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * * *
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3413,8 +3413,8 @@ public boolean hasBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3455,8 +3455,8 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3495,8 +3495,8 @@ public Builder setBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3532,8 +3532,8 @@ public Builder setBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3582,8 +3582,8 @@ public Builder mergeBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3624,8 +3624,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3654,8 +3654,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3692,8 +3692,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3744,7 +3744,7 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
        * 
@@ -3768,7 +3768,7 @@ public java.lang.String getPredictionsFormat() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
        * 
@@ -3792,7 +3792,7 @@ public com.google.protobuf.ByteString getPredictionsFormatBytes() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
        * 
@@ -3815,7 +3815,7 @@ public Builder setPredictionsFormat(java.lang.String value) { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
        * 
@@ -3834,7 +3834,7 @@ public Builder clearPredictionsFormat() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
        * 
@@ -3915,6 +3915,19 @@ public interface OutputInfoOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+     * Output only. The full path of the Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + boolean hasGcsOutputDirectory(); /** * * @@ -3942,6 +3955,20 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + /** + * + * + *
+     * Output only. The path of the BigQuery dataset created, in
+     * `bq://projectId.bqDatasetId`
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the bigqueryOutputDataset field is set. + */ + boolean hasBigqueryOutputDataset(); /** * * @@ -4121,6 +4148,21 @@ public OutputLocationCase getOutputLocationCase() { } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * Output only. The full path of the Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + public boolean hasGcsOutputDirectory() { + return outputLocationCase_ == 1; + } /** * * @@ -4179,6 +4221,22 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } public static final int BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER = 2; + /** + * + * + *
+     * Output only. The path of the BigQuery dataset created, in
+     * `bq://projectId.bqDatasetId`
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the bigqueryOutputDataset field is set. + */ + public boolean hasBigqueryOutputDataset() { + return outputLocationCase_ == 2; + } /** * * @@ -4627,6 +4685,22 @@ public Builder clearOutputLocation() { return this; } + /** + * + * + *
+       * Output only. The full path of the Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + @java.lang.Override + public boolean hasGcsOutputDirectory() { + return outputLocationCase_ == 1; + } /** * * @@ -4751,6 +4825,24 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) return this; } + /** + * + * + *
+       * Output only. The path of the BigQuery dataset created, in
+       * `bq://projectId.bqDatasetId`
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bigqueryOutputDataset field is set. + */ + @java.lang.Override + public boolean hasBigqueryOutputDataset() { + return outputLocationCase_ == 2; + } /** * * @@ -5365,7 +5457,7 @@ public com.google.cloud.aiplatform.v1.BatchDedicatedResources getDedicatedResour * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -5384,7 +5476,7 @@ public boolean hasManualBatchTuningParameters() { * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -5406,7 +5498,7 @@ public boolean hasManualBatchTuningParameters() { * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -8318,7 +8410,7 @@ public Builder clearDedicatedResources() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8336,7 +8428,7 @@ public boolean hasManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8361,7 +8453,7 @@ public boolean hasManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8388,7 +8480,7 @@ public Builder setManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8412,7 +8504,7 @@ public Builder setManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8444,7 +8536,7 @@ public Builder mergeManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8468,7 +8560,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8487,7 +8579,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8510,7 +8602,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java index 7d847f9fd..26d3d6377 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java index 92db3a756..d465d4df6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java @@ -320,7 +320,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -336,7 +336,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -352,7 +352,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* 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 455250292..ee73bf14a 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 @@ -118,9 +118,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only the project is specified, the Dataset and Table are created.
-   * When the full table reference is specified, the Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -147,9 +147,9 @@ public java.lang.String getOutputUri() {
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only the project is specified, the Dataset and Table are created.
-   * When the full table reference is specified, the Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -496,9 +496,9 @@ public Builder mergeFrom(
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only the project is specified, the Dataset and Table are created.
-     * When the full table reference is specified, the Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -524,9 +524,9 @@ public java.lang.String getOutputUri() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only the project is specified, the Dataset and Table are created.
-     * When the full table reference is specified, the Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -552,9 +552,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only the project is specified, the Dataset and Table are created.
-     * When the full table reference is specified, the Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -579,9 +579,9 @@ public Builder setOutputUri(java.lang.String value) {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only the project is specified, the Dataset and Table are created.
-     * When the full table reference is specified, the Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -602,9 +602,9 @@ public Builder clearOutputUri() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only the project is specified, the Dataset and Table are created.
-     * When the full table reference is specified, the Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
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 156c5c142..6fb34d999 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
@@ -28,9 +28,9 @@ public interface BigQueryDestinationOrBuilder
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only the project is specified, the Dataset and Table are created.
-   * When the full table reference is specified, the Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -46,9 +46,9 @@ public interface BigQueryDestinationOrBuilder
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only the project is specified, the Dataset and Table are created.
-   * When the full table reference is specified, the Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java
index 74ddc4270..02cb14b71 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Request message for [DataLabelingJobService.CancelDataLabelingJob][].
+ * Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} @@ -332,7 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.CancelDataLabelingJob][].
+   * Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java index 65ed7b4fa..0805b625c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.CreateDataLabelingJob][].
+ * Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} @@ -414,7 +414,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.CreateDataLabelingJob][].
+   * Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java index 3a80e0bde..594f3bf34 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java @@ -1,5 +1,5 @@ /* - * 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-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 b75b82606..dddd291bd 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 @@ -175,6 +175,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -190,6 +192,8 @@ public java.util.List getWorkerPo * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -206,6 +210,8 @@ public java.util.List getWorkerPo * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -221,6 +227,8 @@ public int getWorkerPoolSpecsCount() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -236,6 +244,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec getWorkerPoolSpecs(int inde * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -304,8 +314,9 @@ public com.google.cloud.aiplatform.v1.SchedulingOrBuilder getSchedulingOrBuilder *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -330,8 +341,9 @@ public java.lang.String getServiceAccount() { *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -428,7 +440,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -458,7 +470,7 @@ public boolean hasBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -490,7 +502,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -978,6 +990,8 @@ private void ensureWorkerPoolSpecsIsMutable() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -996,6 +1010,8 @@ public java.util.List getWorkerPo * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1014,6 +1030,8 @@ public int getWorkerPoolSpecsCount() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1032,6 +1050,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec getWorkerPoolSpecs(int inde * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1057,6 +1077,8 @@ public Builder setWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1079,6 +1101,8 @@ public Builder setWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1103,6 +1127,8 @@ public Builder addWorkerPoolSpecs(com.google.cloud.aiplatform.v1.WorkerPoolSpec * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1128,6 +1154,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1150,6 +1178,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1172,6 +1202,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1194,6 +1226,8 @@ public Builder addAllWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1215,6 +1249,8 @@ public Builder clearWorkerPoolSpecs() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1236,6 +1272,8 @@ public Builder removeWorkerPoolSpecs(int index) { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1251,6 +1289,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec.Builder getWorkerPoolSpecsB * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1270,6 +1310,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpecOrBuilder getWorkerPoolSpecs * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1289,6 +1331,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpecOrBuilder getWorkerPoolSpecs * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1304,6 +1348,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec.Builder addWorkerPoolSpecsB * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1320,6 +1366,8 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec.Builder addWorkerPoolSpecsB * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1544,8 +1592,9 @@ public com.google.cloud.aiplatform.v1.SchedulingOrBuilder getSchedulingOrBuilder *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1569,8 +1618,9 @@ public java.lang.String getServiceAccount() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1594,8 +1644,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1618,8 +1669,9 @@ public Builder setServiceAccount(java.lang.String value) { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1638,8 +1690,9 @@ public Builder clearServiceAccount() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1820,7 +1873,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1849,7 +1902,7 @@ public boolean hasBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1884,7 +1937,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1921,7 +1974,7 @@ public Builder setBaseOutputDirectory(com.google.cloud.aiplatform.v1.GcsDestinat * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1956,7 +2009,7 @@ public Builder setBaseOutputDirectory( * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1997,7 +2050,7 @@ public Builder mergeBaseOutputDirectory(com.google.cloud.aiplatform.v1.GcsDestin * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2032,7 +2085,7 @@ public Builder clearBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2061,7 +2114,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getBaseOutputDirect * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2095,7 +2148,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getBaseOutputDirect * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` 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 759ecc43a..b81b3cca3 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 @@ -28,6 +28,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -40,6 +42,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -52,6 +56,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -64,6 +70,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -77,6 +85,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -126,8 +136,9 @@ public interface CustomJobSpecOrBuilder *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -141,8 +152,9 @@ public interface CustomJobSpecOrBuilder *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -202,7 +214,7 @@ public interface CustomJobSpecOrBuilder * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -229,7 +241,7 @@ public interface CustomJobSpecOrBuilder * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -256,7 +268,7 @@ public interface CustomJobSpecOrBuilder * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java index c8c437f91..06d76dd9c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java index 60a3c7ff3..3425f51e8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java @@ -1327,9 +1327,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -1344,9 +1344,9 @@ public boolean hasActiveLearningConfig() { * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -1363,9 +1363,9 @@ public com.google.cloud.aiplatform.v1.ActiveLearningConfig getActiveLearningConf * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4772,9 +4772,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4788,9 +4788,9 @@ public boolean hasActiveLearningConfig() { * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4810,9 +4810,9 @@ public com.google.cloud.aiplatform.v1.ActiveLearningConfig getActiveLearningConf * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4835,9 +4835,9 @@ public Builder setActiveLearningConfig( * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4857,9 +4857,9 @@ public Builder setActiveLearningConfig( * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4886,9 +4886,9 @@ public Builder mergeActiveLearningConfig( * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4908,9 +4908,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4925,9 +4925,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -4946,9 +4946,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure the active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java index 079c32a7f..039a880b5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java index 71960ba4f..13d545d4b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java @@ -736,9 +736,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -750,9 +750,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; @@ -764,9 +764,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure the active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java index 67e9a2048..ea579a757 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java index c83fa3a0f..e36b6caa0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java index b05181f9f..498718bad 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java @@ -26,7 +26,7 @@ * given fractions. Any of `training_fraction`, `validation_fraction` and * `test_fraction` may optionally be provided, they must sum to up to 1. If the * provided ones sum to less than 1, the remainder is assigned to sets as - * decided by AI Platform. If none of the fractions are set, by default roughly + * decided by Vertex AI. If none of the fractions are set, by default roughly * 80% of data is used for training, 10% for validation, and 10% for test. *
* @@ -373,7 +373,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * given fractions. Any of `training_fraction`, `validation_fraction` and * `test_fraction` may optionally be provided, they must sum to up to 1. If the * provided ones sum to less than 1, the remainder is assigned to sets as - * decided by AI Platform. If none of the fractions are set, by default roughly + * decided by Vertex AI. If none of the fractions are set, by default roughly * 80% of data is used for training, 10% for validation, and 10% for test. *
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java index e75f5d75f..15dedb0e0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.GetDataLabelingJob][].
+ * Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.GetDataLabelingJobRequest} @@ -332,7 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.GetDataLabelingJob][].
+   * Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.GetDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java index 2e6760ef4..c158c2938 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java @@ -506,7 +506,7 @@ public int getParallelTrialCount() { *
    * The number of failed Trials that need to be seen before failing
    * the HyperparameterTuningJob.
-   * If set to 0, AI Platform decides how many Trials must fail
+   * If set to 0, Vertex AI decides how many Trials must fail
    * before the whole job fails.
    * 
* @@ -2370,7 +2370,7 @@ public Builder clearParallelTrialCount() { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* @@ -2388,7 +2388,7 @@ public int getMaxFailedTrialCount() { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* @@ -2409,7 +2409,7 @@ public Builder setMaxFailedTrialCount(int value) { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java index a3e0f7659..b66f0f762 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java index bd88b07cc..f95a8a68c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java @@ -150,7 +150,7 @@ public interface HyperparameterTuningJobOrBuilder *
    * The number of failed Trials that need to be seen before failing
    * the HyperparameterTuningJob.
-   * If set to 0, AI Platform decides how many Trials must fail
+   * If set to 0, Vertex AI decides how many Trials must fail
    * before the whole job fails.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java index e35c48f85..3c2f79768 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java @@ -401,7 +401,8 @@ public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -426,7 +427,8 @@ public java.lang.String getImportSchemaUri() { *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1312,7 +1314,8 @@ public Builder putAllDataItemLabels(java.util.Map * Required. Points to a YAML file stored on Google Cloud Storage describing the import * format. Validation will be done against the schema. The schema is defined - * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + * as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). *
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1336,7 +1339,8 @@ public java.lang.String getImportSchemaUri() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1360,7 +1364,8 @@ public com.google.protobuf.ByteString getImportSchemaUriBytes() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1383,7 +1388,8 @@ public Builder setImportSchemaUri(java.lang.String value) { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1402,7 +1408,8 @@ public Builder clearImportSchemaUri() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java index 9889b209d..4c2824ca1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java @@ -168,7 +168,8 @@ public interface ImportDataConfigOrBuilder *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -182,7 +183,8 @@ public interface ImportDataConfigOrBuilder *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java index 5b0809265..67ee3c9d1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java @@ -22,7 +22,7 @@ * * *
- * Specifies AI Platform owned input data to be used for training, and
+ * Specifies Vertex AI owned input data to be used for training, and
  * possibly evaluating, the Model.
  * 
* @@ -549,7 +549,7 @@ public com.google.cloud.aiplatform.v1.TimestampSplitOrBuilder getTimestampSplitO * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -579,7 +579,7 @@ public boolean hasGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -612,7 +612,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -800,7 +800,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -831,7 +831,7 @@ public java.lang.String getAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -863,8 +863,8 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -901,8 +901,8 @@ public java.lang.String getAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -1222,7 +1222,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Specifies AI Platform owned input data to be used for training, and
+   * Specifies Vertex AI owned input data to be used for training, and
    * possibly evaluating, the Model.
    * 
* @@ -2377,7 +2377,7 @@ public com.google.cloud.aiplatform.v1.TimestampSplitOrBuilder getTimestampSplitO * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2407,7 +2407,7 @@ public boolean hasGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2447,7 +2447,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2484,7 +2484,7 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination v * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2519,7 +2519,7 @@ public Builder setGcsDestination( * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2565,7 +2565,7 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2605,7 +2605,7 @@ public Builder clearGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2632,7 +2632,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getGcsDestinationBu * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2667,7 +2667,7 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -3192,7 +3192,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3222,7 +3222,7 @@ public java.lang.String getAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3252,7 +3252,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3281,7 +3281,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3306,7 +3306,7 @@ public Builder clearAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3336,8 +3336,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3373,8 +3373,8 @@ public java.lang.String getAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3410,8 +3410,8 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3446,8 +3446,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3478,8 +3478,8 @@ public Builder clearAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java index be255d805..685c3070a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java @@ -179,7 +179,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -206,7 +206,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -233,7 +233,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -372,7 +372,7 @@ public interface InputDataConfigOrBuilder * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -392,7 +392,7 @@ public interface InputDataConfigOrBuilder * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -411,8 +411,8 @@ public interface InputDataConfigOrBuilder * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -438,8 +438,8 @@ public interface InputDataConfigOrBuilder * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java index f77d48d42..498bb9b30 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java @@ -213,6 +213,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -244,6 +245,7 @@ public java.lang.String getFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -914,6 +916,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -944,6 +947,7 @@ public java.lang.String getFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -974,6 +978,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -1003,6 +1008,7 @@ public Builder setFilter(java.lang.String value) { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -1028,6 +1034,7 @@ public Builder clearFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java index ffb39c4ac..9ddb064f4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java @@ -62,6 +62,7 @@ public interface ListBatchPredictionJobsRequestOrBuilder * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -82,6 +83,7 @@ public interface ListBatchPredictionJobsRequestOrBuilder * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java index ac6c1d5c7..bc1b9c33a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.ListDataLabelingJobs][].
+ * Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} @@ -664,7 +664,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.ListDataLabelingJobs][].
+   * Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java index 9a0836b43..9b4b04d5c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java index ab891412c..693dae140 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java @@ -130,10 +130,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -159,10 +160,11 @@ public java.lang.String getMachineType() {
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -600,10 +602,11 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -628,10 +631,11 @@ public java.lang.String getMachineType() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -656,10 +660,11 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -683,10 +688,11 @@ public Builder setMachineType(java.lang.String value) {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -706,10 +712,11 @@ public Builder clearMachineType() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
index 0719ef12a..f72b1eb90 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java
@@ -27,10 +27,11 @@ public interface MachineSpecOrBuilder
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
@@ -45,10 +46,11 @@ public interface MachineSpecOrBuilder
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java
index 99e4f60f1..fb0dbe67c 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java
@@ -5792,8 +5792,9 @@ public boolean hasDataLabelingDataset() {
    *
    *
    * 
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -5810,8 +5811,9 @@ public boolean hasLastMigrateTime() { * * *
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -5830,8 +5832,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { * * *
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -7361,8 +7364,9 @@ public Builder clearDataLabelingDataset() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7378,8 +7382,9 @@ public boolean hasLastMigrateTime() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7401,8 +7406,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7426,8 +7432,9 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7448,8 +7455,9 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderF * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7477,8 +7485,9 @@ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7500,8 +7509,9 @@ public Builder clearLastMigrateTime() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7517,8 +7527,9 @@ public com.google.protobuf.Timestamp.Builder getLastMigrateTimeBuilder() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7538,8 +7549,9 @@ public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { * * *
-     * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-     * Will not be set if there's no migration attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceOrBuilder.java index 7af63e0c4..3f20b189c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceOrBuilder.java @@ -194,8 +194,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -209,8 +210,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -224,8 +226,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when the last migration attempt on this MigratableResource started.
-   * Will not be set if there's no migration attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java index 547cc7564..e609785f6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java @@ -23,7 +23,7 @@ * *
  * Config of migrating one resource from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.MigrateResourceRequest} @@ -286,7 +286,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -299,7 +299,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -313,7 +313,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-   * Config for migrating version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating version in ml.googleapis.com to Vertex AI's Model.
    * 
* * Protobuf type {@code @@ -545,7 +545,7 @@ public com.google.protobuf.ByteString getModelVersionBytes() { * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -569,7 +569,7 @@ public java.lang.String getModelDisplayName() { * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -798,7 +798,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating version in ml.googleapis.com to Vertex AI's Model.
      * 
* * Protobuf type {@code @@ -1256,7 +1256,7 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1279,7 +1279,7 @@ public java.lang.String getModelDisplayName() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1302,7 +1302,7 @@ public com.google.protobuf.ByteString getModelDisplayNameBytes() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1324,7 +1324,7 @@ public Builder setModelDisplayName(java.lang.String value) { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1342,7 +1342,7 @@ public Builder clearModelDisplayName() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1463,7 +1463,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1476,7 +1476,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1490,7 +1490,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's Model.
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's Model.
    * 
* * Protobuf type {@code @@ -1652,7 +1652,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1676,7 +1676,7 @@ public java.lang.String getModelDisplayName() { * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1879,7 +1879,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's Model.
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's Model.
      * 
* * Protobuf type {@code @@ -2193,7 +2193,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2216,7 +2216,7 @@ public java.lang.String getModelDisplayName() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2239,7 +2239,7 @@ public com.google.protobuf.ByteString getModelDisplayNameBytes() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2261,7 +2261,7 @@ public Builder setModelDisplayName(java.lang.String value) { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2279,7 +2279,7 @@ public Builder clearModelDisplayName() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2398,7 +2398,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2411,7 +2411,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2425,7 +2425,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -2590,7 +2590,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2614,7 +2614,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2818,7 +2818,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -3133,7 +3133,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3156,7 +3156,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3179,7 +3179,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3201,7 +3201,7 @@ public Builder setDatasetDisplayName(java.lang.String value) { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3219,7 +3219,7 @@ public Builder clearDatasetDisplayName() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3338,7 +3338,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -3351,7 +3351,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -3366,7 +3366,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3383,7 +3383,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3399,7 +3399,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3413,7 +3413,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3432,7 +3432,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3618,7 +3618,7 @@ public interface MigrateDataLabelingAnnotatedDatasetConfigOrBuilder * *
      * Config for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery.
+     * Vertex AI's SavedQuery.
      * 
* * Protobuf type {@code @@ -3967,7 +3967,7 @@ protected Builder newBuilderForType( * *
        * Config for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery.
+       * Vertex AI's SavedQuery.
        * 
* * Protobuf type {@code @@ -4412,7 +4412,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -4436,7 +4436,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -4467,7 +4467,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4487,7 +4487,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4509,7 +4509,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4526,7 +4526,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4545,7 +4545,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -5145,7 +5145,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5168,7 +5168,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5191,7 +5191,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5213,7 +5213,7 @@ public Builder setDatasetDisplayName(java.lang.String value) { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5231,7 +5231,7 @@ public Builder clearDatasetDisplayName() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5281,7 +5281,7 @@ private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5305,7 +5305,7 @@ private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5325,7 +5325,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5347,7 +5347,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5377,7 +5377,7 @@ public Builder setMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5405,7 +5405,7 @@ public Builder setMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5434,7 +5434,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5464,7 +5464,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5490,7 +5490,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5518,7 +5518,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5548,7 +5548,7 @@ public Builder addAllMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5571,7 +5571,7 @@ public Builder clearMigrateDataLabelingAnnotatedDatasetConfigs() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5594,7 +5594,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5612,7 +5612,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5634,7 +5634,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5660,7 +5660,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5682,7 +5682,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5705,7 +5705,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5865,7 +5865,7 @@ public RequestCase getRequestCase() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5882,7 +5882,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5906,7 +5906,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5931,7 +5931,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -5949,7 +5949,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -5973,7 +5973,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -5997,7 +5997,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6015,7 +6015,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6039,7 +6039,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6064,7 +6064,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6082,7 +6082,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6107,7 +6107,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6378,7 +6378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Config of migrating one resource from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.MigrateResourceRequest} @@ -6608,7 +6608,7 @@ public Builder clearRequest() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6625,7 +6625,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6657,7 +6657,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6683,7 +6683,7 @@ public Builder setMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6707,7 +6707,7 @@ public Builder setMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6747,7 +6747,7 @@ public Builder mergeMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6774,7 +6774,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6790,7 +6790,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6817,7 +6817,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6867,7 +6867,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6885,7 +6885,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6917,7 +6917,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6943,7 +6943,7 @@ public Builder setMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6967,7 +6967,7 @@ public Builder setMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7007,7 +7007,7 @@ public Builder mergeMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7035,7 +7035,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7051,7 +7051,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7077,7 +7077,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7126,7 +7126,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7144,7 +7144,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7176,7 +7176,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7202,7 +7202,7 @@ public Builder setMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7226,7 +7226,7 @@ public Builder setMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7266,7 +7266,7 @@ public Builder mergeMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7294,7 +7294,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7310,7 +7310,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7336,7 +7336,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7388,7 +7388,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7406,7 +7406,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7439,7 +7439,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7466,7 +7466,7 @@ public Builder setMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7491,7 +7491,7 @@ public Builder setMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7532,7 +7532,7 @@ public Builder mergeMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7560,7 +7560,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7577,7 +7577,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7605,7 +7605,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequestOrBuilder.java index 213a5b433..4ffdb0832 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -41,7 +41,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -56,7 +56,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -70,7 +70,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -85,7 +85,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -101,7 +101,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -116,7 +116,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -131,7 +131,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -147,7 +147,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -163,7 +163,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -178,7 +178,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -194,7 +194,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java index 9f5d810d0..de3debdb9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java @@ -181,6 +181,20 @@ public MigratedResourceCase getMigratedResourceCase() { } public static final int DATASET_FIELD_NUMBER = 1; + /** + * + * + *
+   * Migrated Dataset's resource name.
+   * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return migratedResourceCase_ == 1; + } /** * * @@ -237,6 +251,20 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int MODEL_FIELD_NUMBER = 2; + /** + * + * + *
+   * Migrated Model's resource name.
+   * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return migratedResourceCase_ == 2; + } /** * * @@ -753,6 +781,21 @@ public Builder clearMigratedResource() { return this; } + /** + * + * + *
+     * Migrated Dataset's resource name.
+     * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return migratedResourceCase_ == 1; + } /** * * @@ -872,6 +915,21 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Migrated Model's resource name.
+     * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return migratedResourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponseOrBuilder.java index 5273b637e..13de7a82a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponseOrBuilder.java @@ -23,6 +23,18 @@ public interface MigrateResourceResponseOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.MigrateResourceResponse) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Migrated Dataset's resource name.
+   * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); /** * * @@ -48,6 +60,18 @@ public interface MigrateResourceResponseOrBuilder */ com.google.protobuf.ByteString getDatasetBytes(); + /** + * + * + *
+   * Migrated Model's resource name.
+   * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index ff1b7216e..2ed6e2f50 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -403,7 +403,7 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * * *
-     * Resources that to large degree are decided by AI Platform, and require
+     * Resources that to large degree are decided by Vertex AI, and require
      * only a modest additional configuration.
      * 
* @@ -438,7 +438,7 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * * *
-     * Resources that to large degree are decided by AI Platform, and require
+     * Resources that to large degree are decided by Vertex AI, and require
      * only a modest additional configuration.
      * 
* @@ -2214,9 +2214,9 @@ public com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder getPredictSchemat * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -2246,9 +2246,9 @@ public java.lang.String getMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -2472,7 +2472,7 @@ public com.google.protobuf.ByteString getTrainingPipelineBytes() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -2493,7 +2493,7 @@ public boolean hasContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -2516,7 +2516,7 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec getContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -3102,7 +3102,7 @@ public com.google.protobuf.ByteString getSupportedOutputStorageFormatsBytes(int * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3118,7 +3118,7 @@ public boolean hasCreateTime() { * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3134,7 +3134,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4884,9 +4884,9 @@ public com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder getPredictSchemat * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -4915,9 +4915,9 @@ public java.lang.String getMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -4946,9 +4946,9 @@ public com.google.protobuf.ByteString getMetadataSchemaUriBytes() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -4976,9 +4976,9 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -5002,9 +5002,9 @@ public Builder clearMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -5771,7 +5771,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5791,7 +5791,7 @@ public boolean hasContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5817,7 +5817,7 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec getContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5845,7 +5845,7 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpe * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5871,7 +5871,7 @@ public Builder setContainerSpec( * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5903,7 +5903,7 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerS * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5929,7 +5929,7 @@ public Builder clearContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5949,7 +5949,7 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder getContainerSpe * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5973,7 +5973,7 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpecOrBuilder getContainerSp * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -7355,7 +7355,7 @@ public Builder addSupportedOutputStorageFormatsBytes(com.google.protobuf.ByteStr * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7371,7 +7371,7 @@ public boolean hasCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7393,7 +7393,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7417,7 +7417,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7438,7 +7438,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7464,7 +7464,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7486,7 +7486,7 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7502,7 +7502,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7522,7 +7522,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java index 1a9929444..0a4acf064 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java @@ -22,9 +22,9 @@ * * *
- * Specification of a container for serving predictions. This message is a
- * subset of the Kubernetes Container v1 core
- * [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+ * Specification of a container for serving predictions. Some fields in this
+ * message correspond to fields in the [Kubernetes Container v1 core
+ * specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ModelContainerSpec} @@ -196,14 +196,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -230,14 +233,17 @@ public java.lang.String getImageUri() { *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -274,17 +280,17 @@ public com.google.protobuf.ByteString getImageUriBytes() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -296,7 +302,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -319,17 +326,17 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -341,7 +348,8 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -364,17 +372,17 @@ public int getCommandCount() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -386,7 +394,8 @@ public int getCommandCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -410,17 +419,17 @@ public java.lang.String getCommand(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -432,7 +441,8 @@ public java.lang.String getCommand(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -458,17 +468,18 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -480,7 +491,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -502,17 +514,18 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -524,7 +537,8 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -546,17 +560,18 @@ public int getArgsCount() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -568,7 +583,8 @@ public int getArgsCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -591,17 +607,18 @@ public java.lang.String getArgs(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -613,7 +630,8 @@ public java.lang.String getArgs(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -653,7 +671,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -690,7 +709,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -728,7 +748,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -765,7 +786,8 @@ public int getEnvCount() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -802,7 +824,8 @@ public com.google.cloud.aiplatform.v1.EnvVar getEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -820,10 +843,11 @@ public com.google.cloud.aiplatform.v1.EnvVarOrBuilder getEnvOrBuilder(int index) * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -833,9 +857,10 @@ public com.google.cloud.aiplatform.v1.EnvVarOrBuilder getEnvOrBuilder(int index)
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -850,10 +875,11 @@ public java.util.List getPortsList() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -863,9 +889,10 @@ public java.util.List getPortsList() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -881,10 +908,11 @@ public java.util.List getPortsList() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -894,9 +922,10 @@ public java.util.List getPortsList() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -911,10 +940,11 @@ public int getPortsCount() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -924,9 +954,10 @@ public int getPortsCount() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -941,10 +972,11 @@ public com.google.cloud.aiplatform.v1.Port getPorts(int index) { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -954,9 +986,10 @@ public com.google.cloud.aiplatform.v1.Port getPorts(int index) {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -974,12 +1007,12 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index) * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -990,14 +1023,13 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index)
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1020,12 +1052,12 @@ public java.lang.String getPredictRoute() { * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -1036,14 +1068,13 @@ public java.lang.String getPredictRoute() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1069,12 +1100,12 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { * * *
-   * Immutable. HTTP path on the container to send health checks to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -1084,14 +1115,13 @@ public com.google.protobuf.ByteString getPredictRouteBytes() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1114,12 +1144,12 @@ public java.lang.String getHealthRoute() { * * *
-   * Immutable. HTTP path on the container to send health checks to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -1129,14 +1159,13 @@ public java.lang.String getHealthRoute() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1391,9 +1420,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Specification of a container for serving predictions. This message is a
-   * subset of the Kubernetes Container v1 core
-   * [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * Specification of a container for serving predictions. Some fields in this
+   * message correspond to fields in the [Kubernetes Container v1 core
+   * specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.ModelContainerSpec} @@ -1693,14 +1722,17 @@ public Builder mergeFrom( *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1726,14 +1758,17 @@ public java.lang.String getImageUri() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1759,14 +1794,17 @@ public com.google.protobuf.ByteString getImageUriBytes() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1791,14 +1829,17 @@ public Builder setImageUri(java.lang.String value) { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1819,14 +1860,17 @@ public Builder clearImageUri() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1869,17 +1913,17 @@ private void ensureCommandIsMutable() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1891,7 +1935,8 @@ private void ensureCommandIsMutable() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1914,17 +1959,17 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1936,7 +1981,8 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1959,17 +2005,17 @@ public int getCommandCount() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1981,7 +2027,8 @@ public int getCommandCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2005,17 +2052,17 @@ public java.lang.String getCommand(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2027,7 +2074,8 @@ public java.lang.String getCommand(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2051,17 +2099,17 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2073,7 +2121,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2104,17 +2153,17 @@ public Builder setCommand(int index, java.lang.String value) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2126,7 +2175,8 @@ public Builder setCommand(int index, java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2156,17 +2206,17 @@ public Builder addCommand(java.lang.String value) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2178,7 +2228,8 @@ public Builder addCommand(java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2205,17 +2256,17 @@ public Builder addAllCommand(java.lang.Iterable values) { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2227,7 +2278,8 @@ public Builder addAllCommand(java.lang.Iterable values) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2253,17 +2305,17 @@ public Builder clearCommand() { * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2275,7 +2327,8 @@ public Builder clearCommand() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2315,17 +2368,18 @@ private void ensureArgsIsMutable() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2337,7 +2391,8 @@ private void ensureArgsIsMutable() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2359,17 +2414,18 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2381,7 +2437,8 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2403,17 +2460,18 @@ public int getArgsCount() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2425,7 +2483,8 @@ public int getArgsCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2448,17 +2507,18 @@ public java.lang.String getArgs(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2470,7 +2530,8 @@ public java.lang.String getArgs(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2493,17 +2554,18 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2515,7 +2577,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2545,17 +2608,18 @@ public Builder setArgs(int index, java.lang.String value) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2567,7 +2631,8 @@ public Builder setArgs(int index, java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2596,17 +2661,18 @@ public Builder addArgs(java.lang.String value) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2618,7 +2684,8 @@ public Builder addArgs(java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2644,17 +2711,18 @@ public Builder addAllArgs(java.lang.Iterable values) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2666,7 +2734,8 @@ public Builder addAllArgs(java.lang.Iterable values) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2691,17 +2760,18 @@ public Builder clearArgs() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2713,7 +2783,8 @@ public Builder clearArgs() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2774,7 +2845,8 @@ private void ensureEnvIsMutable() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -2814,7 +2886,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -2854,7 +2927,8 @@ public int getEnvCount() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -2894,7 +2968,8 @@ public com.google.cloud.aiplatform.v1.EnvVar getEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -2940,7 +3015,8 @@ public Builder setEnv(int index, com.google.cloud.aiplatform.v1.EnvVar value) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -2984,7 +3060,8 @@ public Builder setEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3030,7 +3107,8 @@ public Builder addEnv(com.google.cloud.aiplatform.v1.EnvVar value) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3076,7 +3154,8 @@ public Builder addEnv(int index, com.google.cloud.aiplatform.v1.EnvVar value) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3119,7 +3198,8 @@ public Builder addEnv(com.google.cloud.aiplatform.v1.EnvVar.Builder builderForVa * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3163,7 +3243,8 @@ public Builder addEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3207,7 +3288,8 @@ public Builder addAllEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3250,7 +3332,8 @@ public Builder clearEnv() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3293,7 +3376,8 @@ public Builder removeEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3329,7 +3413,8 @@ public com.google.cloud.aiplatform.v1.EnvVar.Builder getEnvBuilder(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3369,7 +3454,8 @@ public com.google.cloud.aiplatform.v1.EnvVarOrBuilder getEnvOrBuilder(int index) * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3410,7 +3496,8 @@ public com.google.cloud.aiplatform.v1.EnvVarOrBuilder getEnvOrBuilder(int index) * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3447,7 +3534,8 @@ public com.google.cloud.aiplatform.v1.EnvVar.Builder addEnvBuilder() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3484,7 +3572,8 @@ public com.google.cloud.aiplatform.v1.EnvVar.Builder addEnvBuilder(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3532,10 +3621,11 @@ private void ensurePortsIsMutable() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3545,9 +3635,10 @@ private void ensurePortsIsMutable() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3565,10 +3656,11 @@ public java.util.List getPortsList() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3578,9 +3670,10 @@ public java.util.List getPortsList() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3598,10 +3691,11 @@ public int getPortsCount() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3611,9 +3705,10 @@ public int getPortsCount() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3631,10 +3726,11 @@ public com.google.cloud.aiplatform.v1.Port getPorts(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3644,9 +3740,10 @@ public com.google.cloud.aiplatform.v1.Port getPorts(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3670,10 +3767,11 @@ public Builder setPorts(int index, com.google.cloud.aiplatform.v1.Port value) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3683,9 +3781,10 @@ public Builder setPorts(int index, com.google.cloud.aiplatform.v1.Port value) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3707,10 +3806,11 @@ public Builder setPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3720,9 +3820,10 @@ public Builder setPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3746,10 +3847,11 @@ public Builder addPorts(com.google.cloud.aiplatform.v1.Port value) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3759,9 +3861,10 @@ public Builder addPorts(com.google.cloud.aiplatform.v1.Port value) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3785,10 +3888,11 @@ public Builder addPorts(int index, com.google.cloud.aiplatform.v1.Port value) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3798,9 +3902,10 @@ public Builder addPorts(int index, com.google.cloud.aiplatform.v1.Port value) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3821,10 +3926,11 @@ public Builder addPorts(com.google.cloud.aiplatform.v1.Port.Builder builderForVa * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3834,9 +3940,10 @@ public Builder addPorts(com.google.cloud.aiplatform.v1.Port.Builder builderForVa
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3858,10 +3965,11 @@ public Builder addPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3871,9 +3979,10 @@ public Builder addPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3895,10 +4004,11 @@ public Builder addAllPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3908,9 +4018,10 @@ public Builder addAllPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3931,10 +4042,11 @@ public Builder clearPorts() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3944,9 +4056,10 @@ public Builder clearPorts() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3967,10 +4080,11 @@ public Builder removePorts(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3980,9 +4094,10 @@ public Builder removePorts(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3996,10 +4111,11 @@ public com.google.cloud.aiplatform.v1.Port.Builder getPortsBuilder(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4009,9 +4125,10 @@ public com.google.cloud.aiplatform.v1.Port.Builder getPortsBuilder(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4029,10 +4146,11 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index) * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4042,9 +4160,10 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index)
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4063,10 +4182,11 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index) * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4076,9 +4196,10 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index)
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4093,10 +4214,11 @@ public com.google.cloud.aiplatform.v1.Port.Builder addPortsBuilder() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4106,9 +4228,10 @@ public com.google.cloud.aiplatform.v1.Port.Builder addPortsBuilder() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4123,10 +4246,11 @@ public com.google.cloud.aiplatform.v1.Port.Builder addPortsBuilder(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4136,9 +4260,10 @@ public com.google.cloud.aiplatform.v1.Port.Builder addPortsBuilder(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4171,12 +4296,12 @@ public java.util.List getPortsBuild * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4187,14 +4312,13 @@ public java.util.List getPortsBuild
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4216,12 +4340,12 @@ public java.lang.String getPredictRoute() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4232,14 +4356,13 @@ public java.lang.String getPredictRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4261,12 +4384,12 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4277,14 +4400,13 @@ public com.google.protobuf.ByteString getPredictRouteBytes() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4305,12 +4427,12 @@ public Builder setPredictRoute(java.lang.String value) { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4321,14 +4443,13 @@ public Builder setPredictRoute(java.lang.String value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4345,12 +4466,12 @@ public Builder clearPredictRoute() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4361,14 +4482,13 @@ public Builder clearPredictRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4392,12 +4512,12 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. HTTP path on the container to send health checks to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -4407,14 +4527,13 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4436,12 +4555,12 @@ public java.lang.String getHealthRoute() { * * *
-     * Immutable. HTTP path on the container to send health checks to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -4451,14 +4570,13 @@ public java.lang.String getHealthRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4480,12 +4598,12 @@ public com.google.protobuf.ByteString getHealthRouteBytes() { * * *
-     * Immutable. HTTP path on the container to send health checks to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -4495,14 +4613,13 @@ public com.google.protobuf.ByteString getHealthRouteBytes() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4523,12 +4640,12 @@ public Builder setHealthRoute(java.lang.String value) { * * *
-     * Immutable. HTTP path on the container to send health checks to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -4538,14 +4655,13 @@ public Builder setHealthRoute(java.lang.String value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4562,12 +4678,12 @@ public Builder clearHealthRoute() { * * *
-     * Immutable. HTTP path on the container to send health checks to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -4577,14 +4693,13 @@ public Builder clearHealthRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java index 30795d328..b2a0d4557 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java @@ -29,14 +29,17 @@ public interface ModelContainerSpecOrBuilder *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -52,14 +55,17 @@ public interface ModelContainerSpecOrBuilder *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -83,17 +89,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -105,7 +111,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -126,17 +133,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -148,7 +155,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -169,17 +177,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -191,7 +199,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -213,17 +222,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -235,7 +244,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -257,17 +267,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -279,7 +290,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -299,17 +311,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -321,7 +334,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -341,17 +355,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -363,7 +378,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -384,17 +400,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -406,7 +423,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -442,7 +460,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -476,7 +495,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -510,7 +530,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -544,7 +565,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -578,7 +600,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -591,10 +614,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -604,9 +628,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -618,10 +643,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -631,9 +657,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -645,10 +672,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -658,9 +686,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -672,10 +701,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -685,9 +715,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -699,10 +730,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -712,9 +744,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -727,12 +760,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -743,14 +776,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -762,12 +794,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -778,14 +810,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -798,12 +829,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send health checks to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -813,14 +844,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -832,12 +862,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send health checks to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field.
@@ -847,14 +877,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java index da604b01a..c1f9d2842 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java @@ -221,8 +221,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -247,8 +247,8 @@ public java.lang.String getMetricsSchemaUri() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -977,8 +977,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1002,8 +1002,8 @@ public java.lang.String getMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1027,8 +1027,8 @@ public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1051,8 +1051,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1071,8 +1071,8 @@ public Builder clearMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java index a7a796c8a..3bffe8d91 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java index 7bf6bcb84..8314ee652 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java @@ -54,8 +54,8 @@ public interface ModelEvaluationOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -69,8 +69,8 @@ public interface ModelEvaluationOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java index c85ea550a..e608085b0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java @@ -1170,8 +1170,8 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.SliceOrBuilder getSli *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1196,8 +1196,8 @@ public java.lang.String getMetricsSchemaUri() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2051,8 +2051,8 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.SliceOrBuilder getSli *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2076,8 +2076,8 @@ public java.lang.String getMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2101,8 +2101,8 @@ public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2125,8 +2125,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2145,8 +2145,8 @@ public Builder clearMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java index 4e39d306e..82c6aecab 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceOrBuilder.java index 2dc3feebb..52f96fc3b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceOrBuilder.java @@ -95,8 +95,8 @@ public interface ModelEvaluationSliceOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -110,8 +110,8 @@ public interface ModelEvaluationSliceOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java index 56209629d..44e27a90c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java @@ -1,5 +1,5 @@ /* - * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index 75b5609bb..f73981c92 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -150,9 +150,9 @@ public interface ModelOrBuilder * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -171,9 +171,9 @@ public interface ModelOrBuilder * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -331,7 +331,7 @@ com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder getSupportedExportFor * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -349,7 +349,7 @@ com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder getSupportedExportFor * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -367,7 +367,7 @@ com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder getSupportedExportFor * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -867,7 +867,7 @@ com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType getSupportedDeploym * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -880,7 +880,7 @@ com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType getSupportedDeploym * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -893,7 +893,7 @@ com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType getSupportedDeploym * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineState.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineState.java index ca352eadf..367d004d3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineState.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineState.java @@ -42,7 +42,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline has been just created or resumed and processing has not yet
+   * The pipeline has been created or resumed, and processing has not yet
    * begun.
    * 
* @@ -93,7 +93,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline is being cancelled. From this state the pipeline may only go
+   * The pipeline is being cancelled. From this state, the pipeline may only go
    * to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or
    * PIPELINE_STATE_CANCELLED.
    * 
@@ -138,7 +138,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline has been just created or resumed and processing has not yet
+   * The pipeline has been created or resumed, and processing has not yet
    * begun.
    * 
* @@ -189,7 +189,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline is being cancelled. From this state the pipeline may only go
+   * The pipeline is being cancelled. From this state, the pipeline may only go
    * to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or
    * PIPELINE_STATE_CANCELLED.
    * 
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java index 7b7b50cd5..05d0f1a11 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java @@ -139,9 +139,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -171,9 +171,9 @@ public java.lang.String getInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -206,9 +206,9 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -239,9 +239,9 @@ public java.lang.String getParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -275,9 +275,9 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -307,9 +307,9 @@ public java.lang.String getPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -691,9 +691,9 @@ public Builder mergeFrom( * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -722,9 +722,9 @@ public java.lang.String getInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -753,9 +753,9 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -783,9 +783,9 @@ public Builder setInstanceSchemaUri(java.lang.String value) { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -809,9 +809,9 @@ public Builder clearInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -842,9 +842,9 @@ public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -874,9 +874,9 @@ public java.lang.String getParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -906,9 +906,9 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -937,9 +937,9 @@ public Builder setParametersSchemaUri(java.lang.String value) { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -964,9 +964,9 @@ public Builder clearParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -998,9 +998,9 @@ public Builder setParametersSchemaUriBytes(com.google.protobuf.ByteString value) * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1029,9 +1029,9 @@ public java.lang.String getPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1060,9 +1060,9 @@ public com.google.protobuf.ByteString getPredictionSchemaUriBytes() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1090,9 +1090,9 @@ public Builder setPredictionSchemaUri(java.lang.String value) { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1116,9 +1116,9 @@ public Builder clearPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemataOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemataOrBuilder.java index a31d4043d..1fbe1ec8f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemataOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemataOrBuilder.java @@ -31,9 +31,9 @@ public interface PredictSchemataOrBuilder * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -52,9 +52,9 @@ public interface PredictSchemataOrBuilder * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], * [ExplainRequest.instances][] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -74,9 +74,9 @@ public interface PredictSchemataOrBuilder * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -96,9 +96,9 @@ public interface PredictSchemataOrBuilder * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will @@ -119,9 +119,9 @@ public interface PredictSchemataOrBuilder * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -140,9 +140,9 @@ public interface PredictSchemataOrBuilder * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java index e96819bd0..b75f32fdb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java @@ -169,10 +169,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -195,10 +197,12 @@ public java.lang.String getExecutorImageUri() { * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -928,10 +932,12 @@ public Builder mergeFrom( * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -953,10 +959,12 @@ public java.lang.String getExecutorImageUri() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -978,10 +986,12 @@ public com.google.protobuf.ByteString getExecutorImageUriBytes() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1002,10 +1012,12 @@ public Builder setExecutorImageUri(java.lang.String value) { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1022,10 +1034,12 @@ public Builder clearExecutorImageUri() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpecOrBuilder.java index e06a88b36..7ba58a171 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpecOrBuilder.java @@ -27,10 +27,12 @@ public interface PythonPackageSpecOrBuilder * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,10 +44,12 @@ public interface PythonPackageSpecOrBuilder * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java index 866fbdf35..ecf6c622b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java @@ -349,6 +349,21 @@ public FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase() { } public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER = 1; + /** + * + * + *
+   * The percentage of data needed to be labeled in the first batch.
+   * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + @java.lang.Override + public boolean hasInitialBatchSamplePercentage() { + return initialBatchSampleSizeCase_ == 1; + } /** * * @@ -369,6 +384,22 @@ public int getInitialBatchSamplePercentage() { } public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The percentage of data needed to be labeled in each following batch
+   * (except the first batch).
+   * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + @java.lang.Override + public boolean hasFollowingBatchSamplePercentage() { + return followingBatchSampleSizeCase_ == 3; + } /** * * @@ -863,6 +894,20 @@ public Builder clearFollowingBatchSampleSize() { return this; } + /** + * + * + *
+     * The percentage of data needed to be labeled in the first batch.
+     * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + public boolean hasInitialBatchSamplePercentage() { + return initialBatchSampleSizeCase_ == 1; + } /** * * @@ -918,6 +963,21 @@ public Builder clearInitialBatchSamplePercentage() { return this; } + /** + * + * + *
+     * The percentage of data needed to be labeled in each following batch
+     * (except the first batch).
+     * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + public boolean hasFollowingBatchSamplePercentage() { + return followingBatchSampleSizeCase_ == 3; + } /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfigOrBuilder.java index 7492c4a20..9a2cb4855 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfigOrBuilder.java @@ -23,6 +23,18 @@ public interface SampleConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SampleConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The percentage of data needed to be labeled in the first batch.
+   * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + boolean hasInitialBatchSamplePercentage(); /** * * @@ -36,6 +48,19 @@ public interface SampleConfigOrBuilder */ int getInitialBatchSamplePercentage(); + /** + * + * + *
+   * The percentage of data needed to be labeled in each following batch
+   * (except the first batch).
+   * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + boolean hasFollowingBatchSamplePercentage(); /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java index 406810ea7..0b35572a8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java @@ -140,7 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -169,7 +169,7 @@ public java.lang.String getParent() {
    *
    * 
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -268,15 +268,17 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    *
    * 
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -299,15 +301,17 @@ public java.lang.String getFilter() { * * *
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -703,7 +707,7 @@ public Builder mergeFrom( * *
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -731,7 +735,7 @@ public java.lang.String getParent() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -759,7 +763,7 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -786,7 +790,7 @@ public Builder setParent(java.lang.String value) {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -809,7 +813,7 @@ public Builder clearParent() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -999,15 +1003,17 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1029,15 +1035,17 @@ public java.lang.String getFilter() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1059,15 +1067,17 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1088,15 +1098,17 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1113,15 +1125,17 @@ public Builder clearFilter() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequestOrBuilder.java index 6e5e23be2..46f8f2d4b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface SearchMigratableResourcesRequestOrBuilder * *
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -46,7 +46,7 @@ public interface SearchMigratableResourcesRequestOrBuilder
    *
    * 
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -103,15 +103,17 @@ public interface SearchMigratableResourcesRequestOrBuilder
    *
    *
    * 
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -123,15 +125,17 @@ public interface SearchMigratableResourcesRequestOrBuilder * * *
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resources.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java index 544e34a47..b78e4659c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java @@ -1,5 +1,5 @@ /* - * 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-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 d345f9743..0608bc913 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 @@ -177,7 +177,9 @@ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The default algorithm used by AI Platform Optimization service.
+     * The default algorithm used by Vertex AI for [hyperparameter
+     * tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview)
+     * and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier).
      * 
* * ALGORITHM_UNSPECIFIED = 0; @@ -211,7 +213,9 @@ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The default algorithm used by AI Platform Optimization service.
+     * The default algorithm used by Vertex AI for [hyperparameter
+     * tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview)
+     * and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier).
      * 
* * ALGORITHM_UNSPECIFIED = 0; @@ -338,7 +342,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * The default noise level chosen by the AI Platform service.
+     * The default noise level chosen by Vertex AI.
      * 
* * OBSERVATION_NOISE_UNSPECIFIED = 0; @@ -348,7 +352,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier assumes that the objective function is (nearly)
+     * Vertex AI assumes that the objective function is (nearly)
      * perfectly reproducible, and will never repeat the same Trial
      * parameters.
      * 
@@ -360,7 +364,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier will estimate the amount of noise in metric
+     * Vertex AI will estimate the amount of noise in metric
      * evaluations, it may repeat the same Trial parameters more than once.
      * 
* @@ -374,7 +378,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * The default noise level chosen by the AI Platform service.
+     * The default noise level chosen by Vertex AI.
      * 
* * OBSERVATION_NOISE_UNSPECIFIED = 0; @@ -384,7 +388,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier assumes that the objective function is (nearly)
+     * Vertex AI assumes that the objective function is (nearly)
      * perfectly reproducible, and will never repeat the same Trial
      * parameters.
      * 
@@ -396,7 +400,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier will estimate the amount of noise in metric
+     * Vertex AI will estimate the amount of noise in metric
      * evaluations, it may repeat the same Trial parameters more than once.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java index b36a9f5e3..fcd040da8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java @@ -24,8 +24,8 @@ *
  * The TrainingPipeline orchestrates tasks associated with training a Model. It
  * always executes the training task, and optionally may also
- * export data from AI Platform's Dataset which becomes the training input,
- * [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to AI Platform, and evaluate the
+ * export data from Vertex AI's Dataset which becomes the training input,
+ * [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the
  * Model.
  * 
* @@ -420,7 +420,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -440,7 +440,7 @@ public boolean hasInputDataConfig() {
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -462,7 +462,7 @@ public com.google.cloud.aiplatform.v1.InputDataConfig getInputDataConfig() {
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -679,7 +679,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -707,7 +707,7 @@ public boolean hasModelToUpload() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -737,7 +737,7 @@ public com.google.cloud.aiplatform.v1.Model getModelToUpload() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -1567,8 +1567,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * The TrainingPipeline orchestrates tasks associated with training a Model. It
    * always executes the training task, and optionally may also
-   * export data from AI Platform's Dataset which becomes the training input,
-   * [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to AI Platform, and evaluate the
+   * export data from Vertex AI's Dataset which becomes the training input,
+   * [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the
    * Model.
    * 
* @@ -2132,7 +2132,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2151,7 +2151,7 @@ public boolean hasInputDataConfig() {
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2176,7 +2176,7 @@ public com.google.cloud.aiplatform.v1.InputDataConfig getInputDataConfig() {
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2203,7 +2203,7 @@ public Builder setInputDataConfig(com.google.cloud.aiplatform.v1.InputDataConfig
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2228,7 +2228,7 @@ public Builder setInputDataConfig(
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2259,7 +2259,7 @@ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1.InputDataConf
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2284,7 +2284,7 @@ public Builder clearInputDataConfig() {
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2303,7 +2303,7 @@ public com.google.cloud.aiplatform.v1.InputDataConfig.Builder getInputDataConfig
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2326,7 +2326,7 @@ public com.google.cloud.aiplatform.v1.InputDataConfigOrBuilder getInputDataConfi
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2965,7 +2965,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -2992,7 +2992,7 @@ public boolean hasModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3025,7 +3025,7 @@ public com.google.cloud.aiplatform.v1.Model getModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3060,7 +3060,7 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model value) {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3092,7 +3092,7 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model.Builder bui
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3131,7 +3131,7 @@ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1.Model value) {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3164,7 +3164,7 @@ public Builder clearModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3191,7 +3191,7 @@ public com.google.cloud.aiplatform.v1.Model.Builder getModelToUploadBuilder() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3222,7 +3222,7 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelToUploadOrBuilder()
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java
index 2d48eecad..8e78c24ec 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java
@@ -1,5 +1,5 @@
 /*
- * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java
index 374c3ffcb..7debab093 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java
@@ -77,7 +77,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -94,7 +94,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -111,7 +111,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -273,7 +273,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -298,7 +298,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -323,7 +323,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
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/TrialName.java
index ab0a89628..860a75210 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/TrialName.java
@@ -1,5 +1,5 @@
 /*
- * 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-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java
index 2dd4843b2..10b4b47d7 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java
@@ -194,8 +194,7 @@ public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetOrBuilder() {
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -216,8 +215,7 @@ public boolean hasUpdateMask() {
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -238,8 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -826,8 +823,7 @@ public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetOrBuilder() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -847,8 +843,7 @@ public boolean hasUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -874,8 +869,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -903,8 +897,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -929,8 +922,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -960,8 +952,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -987,8 +978,7 @@ public Builder clearUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -1008,8 +998,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -1033,8 +1022,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequestOrBuilder.java
index 83ebde2b1..b6ffafaf9 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequestOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequestOrBuilder.java
@@ -69,8 +69,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -88,8 +87,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -107,8 +105,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java
index 70f11891f..9e0458f81 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java
@@ -193,9 +193,7 @@ public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() {
    *
    *
    * 
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -211,9 +209,7 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -229,9 +225,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -813,9 +807,7 @@ public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -830,9 +822,7 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -853,9 +843,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -878,9 +866,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -900,9 +886,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -927,9 +911,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -950,9 +932,7 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -967,9 +947,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -988,9 +966,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequestOrBuilder.java index b6d586a46..0799f31b4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequestOrBuilder.java @@ -68,9 +68,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -83,9 +81,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -98,9 +94,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java index cfd088171..af877b7d5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java @@ -189,8 +189,7 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -207,8 +206,7 @@ public boolean hasUpdateMask() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -225,8 +223,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -796,8 +793,7 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -813,8 +809,7 @@ public boolean hasUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -836,8 +831,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -861,8 +855,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -883,8 +876,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -910,8 +902,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -933,8 +924,7 @@ public Builder clearUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -950,8 +940,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -971,8 +960,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java index 4ae443ccc..cdec555ce 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequestOrBuilder.java @@ -66,8 +66,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -81,8 +80,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -96,8 +94,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java index 622b9acb1..b8c335e96 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java @@ -174,6 +174,23 @@ public ReferenceCase getReferenceCase() { } public static final int OPERATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * For API calls that return a long running operation.
+   * Resource name of the long running operation.
+   * Format:
+   * 'projects/{project}/locations/{location}/operations/{operation}'
+   * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + public boolean hasOperation() { + return referenceCase_ == 1; + } /** * * @@ -236,6 +253,23 @@ public com.google.protobuf.ByteString getOperationBytes() { } public static final int DATA_LABELING_JOB_FIELD_NUMBER = 2; + /** + * + * + *
+   * For API calls that start a LabelingJob.
+   * Resource name of the LabelingJob.
+   * Format:
+   * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+   * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + public boolean hasDataLabelingJob() { + return referenceCase_ == 2; + } /** * * @@ -303,8 +337,8 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -327,8 +361,8 @@ public java.lang.String getMethod() { * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -745,6 +779,24 @@ public Builder clearReference() { return this; } + /** + * + * + *
+     * For API calls that return a long running operation.
+     * Resource name of the long running operation.
+     * Format:
+     * 'projects/{project}/locations/{location}/operations/{operation}'
+     * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + @java.lang.Override + public boolean hasOperation() { + return referenceCase_ == 1; + } /** * * @@ -879,6 +931,24 @@ public Builder setOperationBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * For API calls that start a LabelingJob.
+     * Resource name of the LabelingJob.
+     * Format:
+     * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+     * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + @java.lang.Override + public boolean hasDataLabelingJob() { + return referenceCase_ == 2; + } /** * * @@ -1018,8 +1088,8 @@ public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1041,8 +1111,8 @@ public java.lang.String getMethod() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1064,8 +1134,8 @@ public com.google.protobuf.ByteString getMethodBytes() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1086,8 +1156,8 @@ public Builder setMethod(java.lang.String value) { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1104,8 +1174,8 @@ public Builder clearMethod() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceOrBuilder.java index 9770e4d3a..46bbc3c41 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceOrBuilder.java @@ -23,6 +23,21 @@ public interface UserActionReferenceOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UserActionReference) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * For API calls that return a long running operation.
+   * Resource name of the long running operation.
+   * Format:
+   * 'projects/{project}/locations/{location}/operations/{operation}'
+   * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + boolean hasOperation(); /** * * @@ -54,6 +69,21 @@ public interface UserActionReferenceOrBuilder */ com.google.protobuf.ByteString getOperationBytes(); + /** + * + * + *
+   * For API calls that start a LabelingJob.
+   * Resource name of the LabelingJob.
+   * Format:
+   * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+   * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + boolean hasDataLabelingJob(); /** * * @@ -89,8 +119,8 @@ public interface UserActionReferenceOrBuilder * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -102,8 +132,8 @@ public interface UserActionReferenceOrBuilder * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; 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 index 6b5952f31..4a13a2569 100644 --- 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 @@ -1,5 +1,5 @@ /* - * 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-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 a678839d4..d5facd1f0 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 @@ -9763,6 +9763,22 @@ public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObject } public static final int OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Required when optimization_objective is "maximize-precision-at-recall".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectiveRecallValue() { + return additionalOptimizationObjectiveConfigCase_ == 5; + } /** * * @@ -9784,6 +9800,22 @@ public float getOptimizationObjectiveRecallValue() { } public static final int OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Required when optimization_objective is "maximize-recall-at-precision".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectivePrecisionValue() { + return additionalOptimizationObjectiveConfigCase_ == 6; + } /** * * @@ -10869,6 +10901,21 @@ public Builder clearAdditionalOptimizationObjectiveConfig() { private int bitField0_; + /** + * + * + *
+     * Required when optimization_objective is "maximize-precision-at-recall".
+     * Must be between 0 and 1, inclusive.
+     * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + public boolean hasOptimizationObjectiveRecallValue() { + return additionalOptimizationObjectiveConfigCase_ == 5; + } /** * * @@ -10927,6 +10974,21 @@ public Builder clearOptimizationObjectiveRecallValue() { return this; } + /** + * + * + *
+     * Required when optimization_objective is "maximize-recall-at-precision".
+     * Must be between 0 and 1, inclusive.
+     * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + public boolean hasOptimizationObjectivePrecisionValue() { + return additionalOptimizationObjectiveConfigCase_ == 6; + } /** * * 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 7997df6c8..29ebc3f4a 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 @@ -23,6 +23,19 @@ public interface AutoMlTablesInputsOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Required when optimization_objective is "maximize-precision-at-recall".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + boolean hasOptimizationObjectiveRecallValue(); /** * * @@ -37,6 +50,19 @@ public interface AutoMlTablesInputsOrBuilder */ float getOptimizationObjectiveRecallValue(); + /** + * + * + *
+   * Required when optimization_objective is "maximize-recall-at-precision".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + boolean hasOptimizationObjectivePrecisionValue(); /** * * 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 14e6c6b83..545cf2786 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 @@ -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. @@ -40,8 +40,8 @@ message Annotation { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The - // schema is defined as an - // [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + // schema is defined as an [OpenAPI 3.0.2 Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the // chosen schema must be consistent with the parent Dataset's 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 d087278a1..bbcb03266 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 @@ -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-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 dab242c3d..f99371b23 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 @@ -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. @@ -96,8 +96,8 @@ message BatchPredictionJob { // containing only `code` and `message` fields. GcsDestination gcs_destination = 2; - // The BigQuery project location where the output is to be written to. - // In the given project a new dataset is created with name + // The BigQuery project or dataset location where the output is to be + // written to. If project is provided, a new dataset is created with name // `prediction__` // where is made // BigQuery-dataset-name compatible (for example, most special characters @@ -117,9 +117,8 @@ message BatchPredictionJob { BigQueryDestination bigquery_destination = 3; } - // Required. The format in which AI Platform gives the predictions, must be one of the + // Required. The format in which Vertex AI gives the predictions, must be one of the // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] - // // [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. string predictions_format = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -188,7 +187,7 @@ message BatchPredictionJob { BatchDedicatedResources dedicated_resources = 7; // Immutable. Parameters configuring the batch behavior. Currently only applicable when - // [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does + // [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does // the tuning itself). ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(google.api.field_behavior) = IMMUTABLE]; 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 2e37bcc47..56dddbad7 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 @@ -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-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 eb9125ad7..fd66585e4 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 @@ -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. @@ -93,6 +93,8 @@ message CustomJob { // Represents the spec of a CustomJob. message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. + // All worker pools except the first one are optional and can be skipped by + // providing an empty value. repeated WorkerPoolSpec worker_pool_specs = 1 [(google.api.field_behavior) = REQUIRED]; // Scheduling options for a CustomJob. @@ -100,8 +102,9 @@ message CustomJobSpec { // Specifies the service account for workload run-as account. // Users submitting jobs must have act-as permission on this run-as account. - // If unspecified, the AI Platform Custom Code Service Agent for the - // CustomJob's project is used. + // If unspecified, the [AI Platform Custom Code Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // for the CustomJob's project is used. string service_account = 4; // The full name of the Compute Engine @@ -123,7 +126,7 @@ message CustomJobSpec { // [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's // baseOutputDirectory. // - // The following AI Platform environment variables will be passed to + // The following Vertex AI environment variables will be passed to // containers or python modules when this field is set: // // For CustomJob: @@ -183,10 +186,12 @@ message ContainerSpec { // The spec of a Python packaged code. message PythonPackageSpec { - // Required. The URI of a container image in the Container Registry that will run the - // provided python package. AI Platform provides wide range of executor images - // with pre-installed packages to meet users' various use cases. Only one of - // the provided images can be set here. + // Required. The URI of a container image in Artifact Registry that will run the + // provided Python package. Vertex AI provides a wide range of executor + // images with pre-installed packages to meet users' various use cases. See + // the list of [pre-built containers for + // training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). + // You must use an image from this list. string executor_image_uri = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The Google Cloud Storage location of the Python package files which are 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 fdc2e5bdc..399de0e8a 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 @@ -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-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 c6af38262..a95f27c3b 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 @@ -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. @@ -134,9 +134,9 @@ message DataLabelingJob { // the EncryptionSpec of the Dataset they are exported to. EncryptionSpec encryption_spec = 20; - // Parameters that configure the active learning pipeline. Active learning will - // label the data incrementally via several iterations. For every iteration, - // it will select a batch of data based on the sampling strategy. + // Parameters that configure the active learning pipeline. Active learning + // will label the data incrementally via several iterations. For every + // iteration, it will select a batch of data based on the sampling strategy. ActiveLearningConfig active_learning_config = 21; } 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 7aabab486..e970c8cf2 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 @@ -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. @@ -109,7 +109,8 @@ message ImportDataConfig { // Required. Points to a YAML file stored on Google Cloud Storage describing the import // format. Validation will be done against the schema. The schema is defined - // as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + // as an [OpenAPI 3.0.2 Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string import_schema_uri = 4 [(google.api.field_behavior) = REQUIRED]; } 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 8c6ea31fe..75a71664c 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 @@ -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. @@ -180,8 +180,7 @@ message UpdateDatasetRequest { Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. // Updatable fields: // // * `display_name` @@ -358,7 +357,6 @@ message ListDataItemsResponse { message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. // Format: - // // `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -375,7 +373,6 @@ message GetAnnotationSpecRequest { message ListAnnotationsRequest { // Required. The resource name of the DataItem to list Annotations from. // Format: - // // `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, 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 f3e6184c8..c0a954e0e 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 @@ -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-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 dd97fb48b..36e2578e9 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 @@ -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-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 3b9afe32f..7c5277e43 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 @@ -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-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 f055c6051..ca3352f54 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 @@ -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. @@ -212,9 +212,7 @@ message UpdateEndpointRequest { // Required. The Endpoint which replaces the resource on the server. Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. - // See - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } 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 8071a70de..9bb71f6b5 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 @@ -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-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 2f3a1011d..f1c3990b7 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 @@ -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. @@ -60,7 +60,7 @@ message HyperparameterTuningJob { // The number of failed Trials that need to be seen before failing // the HyperparameterTuningJob. // - // If set to 0, AI Platform decides how many Trials must fail + // If set to 0, Vertex AI decides how many Trials must fail // before the whole job fails. int32 max_failed_trial_count = 7; 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 c32c66e79..6df4ac568 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 @@ -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. @@ -53,9 +53,9 @@ message BigQuerySource { message BigQueryDestination { // Required. BigQuery URI to a project or table, up to 2000 characters long. // - // When only the project is specified, the Dataset and Table are created. - // When the full table reference is specified, the Dataset must exist and table must - // not exist. + // When only the project is specified, the Dataset and Table is created. + // When the full table reference is specified, the Dataset must exist and + // table must not exist. // // Accepted forms: // 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 b9bff3d3e..0bbee54b8 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 @@ -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. @@ -35,7 +35,7 @@ option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; -// A service for creating and managing AI Platform's jobs. +// A service for creating and managing Vertex AI's jobs. service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -362,7 +362,7 @@ message CancelCustomJobRequest { ]; } -// Request message for [DataLabelingJobService.CreateDataLabelingJob][]. +// Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob]. message CreateDataLabelingJobRequest { // Required. The parent of the DataLabelingJob. // Format: `projects/{project}/locations/{location}` @@ -377,11 +377,10 @@ message CreateDataLabelingJobRequest { DataLabelingJob data_labeling_job = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [DataLabelingJobService.GetDataLabelingJob][]. +// Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob]. message GetDataLabelingJobRequest { // Required. The name of the DataLabelingJob. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -391,7 +390,7 @@ message GetDataLabelingJobRequest { ]; } -// Request message for [DataLabelingJobService.ListDataLabelingJobs][]. +// Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. message ListDataLabelingJobsRequest { // Required. The parent of the DataLabelingJob. // Format: `projects/{project}/locations/{location}` @@ -453,7 +452,6 @@ message ListDataLabelingJobsResponse { message DeleteDataLabelingJobRequest { // Required. The name of the DataLabelingJob to be deleted. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -463,11 +461,10 @@ message DeleteDataLabelingJobRequest { ]; } -// Request message for [DataLabelingJobService.CancelDataLabelingJob][]. +// Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob]. message CancelDataLabelingJobRequest { // Required. The name of the DataLabelingJob. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -496,7 +493,6 @@ message CreateHyperparameterTuningJobRequest { message GetHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob resource. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -565,7 +561,6 @@ message ListHyperparameterTuningJobsResponse { message DeleteHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -579,7 +574,6 @@ message DeleteHyperparameterTuningJobRequest { message CancelHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob to cancel. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -608,7 +602,6 @@ message CreateBatchPredictionJobRequest { message GetBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob resource. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -637,6 +630,8 @@ message ListBatchPredictionJobsRequest { // // * `state` supports = and !=. // + // * `model_display_name` supports = and != + // // Some examples of using the filter are: // // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` @@ -676,7 +671,6 @@ message ListBatchPredictionJobsResponse { message DeleteBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -690,7 +684,6 @@ message DeleteBatchPredictionJobRequest { message CancelBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob to cancel. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, 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 e0a600a8b..18504390f 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 @@ -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-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 f10cd4e1d..4bf84df8e 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 @@ -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. @@ -27,10 +27,13 @@ option java_package = "com.google.cloud.aiplatform.v1"; // Specification of a single machine. message MachineSpec { - // Immutable. The type of the machine. For the machine types supported for prediction, - // see https://tinyurl.com/aip-docs/predictions/machine-types. - // For machine types supported for creating a custom training job, see - // https://tinyurl.com/aip-docs/training/configure-compute. + // Immutable. The type of the machine. + // + // See the [list of machine types supported for + // prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) + // + // See the [list of machine types supported for custom + // training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). // // For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default // value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of @@ -77,7 +80,7 @@ message DedicatedResources { int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; } -// A description of resources that to large degree are decided by AI Platform, +// A description of resources that to large degree are decided by Vertex AI, // and require only a modest additional configuration. // Each Model supporting these resources documents its specific guidelines. message AutomaticResources { @@ -95,7 +98,7 @@ message AutomaticResources { // outages). If traffic against the DeployedModel increases beyond what its // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, a no upper bound for scaling under heavy - // traffic will be assume, though AI Platform may be unable to scale beyond + // traffic will be assume, though Vertex AI may be unable to scale beyond // certain replica number. int32 max_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; } @@ -110,7 +113,7 @@ message BatchDedicatedResources { ]; // Immutable. The number of machine replicas used at the start of the batch operation. - // If not set, AI Platform decides starting number, not greater than + // If not set, Vertex AI decides starting number, not greater than // [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] int32 starting_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; 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 da258a7bc..0266b286e 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 @@ -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-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 9e126901b..ca2918cff 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 @@ -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. @@ -100,7 +100,6 @@ message MigratableResource { message DataLabelingAnnotatedDataset { // Full resource name of data labeling AnnotatedDataset. // Format: - // // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. string annotated_dataset = 1 [(google.api.resource_reference) = { type: "datalabeling.googleapis.com/AnnotatedDataset" @@ -139,8 +138,9 @@ message MigratableResource { DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Output only. Timestamp when the last migration attempt on this MigratableResource started. - // Will not be set if there's no migration attempt on this MigratableResource. + // Output only. Timestamp when the last migration attempt on this MigratableResource + // started. Will not be set if there's no migration attempt on this + // MigratableResource. google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp when this MigratableResource was last updated. 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 353bcd619..ccdbe39a4 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 @@ -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. @@ -33,14 +33,14 @@ option java_outer_classname = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; // A service that migrates resources from automl.googleapis.com, -// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +// datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. service MigrationService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Searches all of the resources in automl.googleapis.com, // datalabeling.googleapis.com and ml.googleapis.com that can be migrated to - // AI Platform's given location. + // Vertex AI's given location. rpc SearchMigratableResources(SearchMigratableResourcesRequest) returns (SearchMigratableResourcesResponse) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/migratableResources:search" @@ -50,7 +50,7 @@ service MigrationService { } // Batch migrates resources from ml.googleapis.com, automl.googleapis.com, - // and datalabeling.googleapis.com to AI Platform (Unified). + // and datalabeling.googleapis.com to Vertex AI. rpc BatchMigrateResources(BatchMigrateResourcesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/migratableResources:batchMigrate" @@ -67,7 +67,7 @@ service MigrationService { // Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. message SearchMigratableResourcesRequest { // Required. The location that the migratable resources should be searched from. - // It's the AI Platform location that the resources can be migrated to, not + // It's the Vertex AI location that the resources can be migrated to, not // the resources' original location. // Format: // `projects/{project}/locations/{location}` @@ -85,15 +85,18 @@ message SearchMigratableResourcesRequest { // The standard page token. string page_token = 3; - // Supported filters are: - // * Resource type: For a specific type of MigratableResource. - // * `ml_engine_model_version:*` - // * `automl_model:*`, - // * `automl_dataset:*` - // * `data_labeling_dataset:*`. - // * Migrated or not: Filter migrated resource or not by last_migrate_time. - // * `last_migrate_time:*` will filter migrated resources. - // * `NOT last_migrate_time:*` will filter not yet migrated resources. + // A filter for your search. You can use the following types of filters: + // + // * Resource type filters. The following strings filter for a specific type + // of [MigratableResource][google.cloud.aiplatform.v1.MigratableResource]: + // * `ml_engine_model_version:*` + // * `automl_model:*` + // * `automl_dataset:*` + // * `data_labeling_dataset:*` + // * "Migrated or not" filters. The following strings filter for resources + // that either have or have not already been migrated: + // * `last_migrate_time:*` filters for migrated resources. + // * `NOT last_migrate_time:*` filters for not yet migrated resources. string filter = 4; } @@ -127,9 +130,9 @@ message BatchMigrateResourcesRequest { } // Config of migrating one resource from automl.googleapis.com, -// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +// datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. message MigrateResourceRequest { - // Config for migrating version in ml.googleapis.com to AI Platform's Model. + // Config for migrating version in ml.googleapis.com to Vertex AI's Model. message MigrateMlEngineModelVersionConfig { // Required. The ml.googleapis.com endpoint that this model version should be migrated // from. @@ -153,12 +156,12 @@ message MigrateResourceRequest { } ]; - // Required. Display name of the model in AI Platform. + // Required. Display name of the model in Vertex AI. // System will pick a display name if unspecified. string model_display_name = 3 [(google.api.field_behavior) = REQUIRED]; } - // Config for migrating Model in automl.googleapis.com to AI Platform's Model. + // Config for migrating Model in automl.googleapis.com to Vertex AI's Model. message MigrateAutomlModelConfig { // Required. Full resource name of automl Model. // Format: @@ -170,12 +173,12 @@ message MigrateResourceRequest { } ]; - // Optional. Display name of the model in AI Platform. + // Optional. Display name of the model in Vertex AI. // System will pick a display name if unspecified. string model_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Config for migrating Dataset in automl.googleapis.com to Vertex AI's // Dataset. message MigrateAutomlDatasetConfig { // Required. Full resource name of automl Dataset. @@ -188,7 +191,7 @@ message MigrateResourceRequest { } ]; - // Required. Display name of the Dataset in AI Platform. + // Required. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. string dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -197,11 +200,10 @@ message MigrateResourceRequest { // Platform's Dataset. message MigrateDataLabelingDatasetConfig { // Config for migrating AnnotatedDataset in datalabeling.googleapis.com to - // AI Platform's SavedQuery. + // Vertex AI's SavedQuery. message MigrateDataLabelingAnnotatedDatasetConfig { // Required. Full resource name of data labeling AnnotatedDataset. // Format: - // // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. string annotated_dataset = 1 [ (google.api.field_behavior) = REQUIRED, @@ -221,30 +223,30 @@ message MigrateResourceRequest { } ]; - // Optional. Display name of the Dataset in AI Platform. + // Optional. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. string dataset_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to - // AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong + // Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong // to the datalabeling Dataset. repeated MigrateDataLabelingAnnotatedDatasetConfig migrate_data_labeling_annotated_dataset_configs = 3 [(google.api.field_behavior) = OPTIONAL]; } oneof request { - // Config for migrating Version in ml.googleapis.com to AI Platform's Model. + // Config for migrating Version in ml.googleapis.com to Vertex AI's Model. MigrateMlEngineModelVersionConfig migrate_ml_engine_model_version_config = 1; - // Config for migrating Model in automl.googleapis.com to AI Platform's + // Config for migrating Model in automl.googleapis.com to Vertex AI's // Model. MigrateAutomlModelConfig migrate_automl_model_config = 2; - // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Config for migrating Dataset in automl.googleapis.com to Vertex AI's // Dataset. MigrateAutomlDatasetConfig migrate_automl_dataset_config = 3; // Config for migrating Dataset in datalabeling.googleapis.com to - // AI Platform's Dataset. + // Vertex AI's Dataset. MigrateDataLabelingDatasetConfig migrate_data_labeling_dataset_config = 4; } } @@ -257,7 +259,7 @@ message BatchMigrateResourcesResponse { // Describes a successfully migrated resource. message MigrateResourceResponse { - // After migration, the resource name in AI Platform. + // After migration, the resource name in Vertex AI. oneof migrated_resource { // Migrated Dataset's resource name. string dataset = 1 [(google.api.resource_reference) = { 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 cf003c645..1b8bcf5f9 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 @@ -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. @@ -93,7 +93,7 @@ message Model { // higher degree of manual configuration. DEDICATED_RESOURCES = 1; - // Resources that to large degree are decided by AI Platform, and require + // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. AUTOMATIC_RESOURCES = 2; } @@ -117,9 +117,9 @@ message Model { // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional // information about the Model, that is specific to it. Unset if the Model // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform, if no + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI, if no // additional metadata is needed, this field is set to an empty string. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will @@ -146,7 +146,7 @@ message Model { // Input only. The specification of the container that is to be used when deploying // this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - // and stored internally by AI Platform. + // and stored internally by Vertex AI. // Not present for AutoML Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; @@ -242,7 +242,7 @@ message Model { // [PredictionService.Explain][]. repeated string supported_output_storage_formats = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Timestamp when this Model was uploaded into AI Platform. + // Output only. Timestamp when this Model was uploaded into Vertex AI. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp when this Model was most recently updated. @@ -278,9 +278,9 @@ message PredictSchemata { // of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], // [ExplainRequest.instances][] and // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. @@ -290,9 +290,9 @@ message PredictSchemata { // parameters of prediction and explanation via // [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and // [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform, if no + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI, if no // parameters are supported, then it is set to an empty string. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will @@ -303,31 +303,35 @@ message PredictSchemata { // of a single prediction produced by this Model, which are returned via // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. string prediction_schema_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; } -// Specification of a container for serving predictions. This message is a -// subset of the Kubernetes Container v1 core -// [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). +// Specification of a container for serving predictions. Some fields in this +// message correspond to fields in the [Kubernetes Container v1 core +// specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). message ModelContainerSpec { // Required. Immutable. URI of the Docker image to be used as the custom container for serving // predictions. This URI must identify an image in Artifact Registry or - // Container Registry. Learn more about the container publishing - // requirements, including permissions requirements for the AI Platform - // Service Agent, - // [here](https://tinyurl.com/cust-cont-reqs#publishing). + // Container Registry. Learn more about the [container publishing + // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing), + // including permissions requirements for the AI Platform Service Agent. // // The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored // internally, and this original path is afterwards not used. // // To learn about the requirements for the Docker image itself, see - // [Custom container requirements](https://tinyurl.com/cust-cont-reqs). + // [Custom container + // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#). + // + // You can use the URI to one of Vertex AI's [pre-built container images for + // prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers) + // in this field. string image_uri = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -343,19 +347,19 @@ message ModelContainerSpec { // in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the // container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), // if either exists. If this field is not specified and the container does not - // have an `ENTRYPOINT`, then refer to the Docker documentation about how + // have an `ENTRYPOINT`, then refer to the Docker documentation about [how // `CMD` and `ENTRYPOINT` - // [interact](https://tinyurl.com/h3kdcgs). + // interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). // // If you specify this field, then you can also specify the `args` field to // provide additional arguments for this command. However, if you specify this // field, then the container's `CMD` is ignored. See the - // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // [Kubernetes documentation about how the // `command` and `args` fields interact with a container's `ENTRYPOINT` and - // `CMD`. + // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // - // In this field, you can reference environment variables - // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // In this field, you can reference [environment variables set by Vertex + // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. // You cannot reference environment variables set in the Docker image. In // order for environment variables to be expanded, reference them by using the @@ -367,7 +371,8 @@ message ModelContainerSpec { // syntax with `$$`; for example: // $$(VARIABLE_NAME) // This field corresponds to the `command` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated string command = 2 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Specifies arguments for the command that runs when the container starts. @@ -379,19 +384,20 @@ message ModelContainerSpec { // If you don't specify this field but do specify the // [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the // `command` field runs without any additional arguments. See the - // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // [Kubernetes documentation about how the // `command` and `args` fields interact with a container's `ENTRYPOINT` and - // `CMD`. + // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // // If you don't specify this field and don't specify the `command` field, // then the container's // [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and // `CMD` determine what runs based on their default behavior. See the Docker - // documentation about how `CMD` and `ENTRYPOINT` - // [interact](https://tinyurl.com/h3kdcgs). + // documentation about [how `CMD` and `ENTRYPOINT` + // interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). // - // In this field, you can reference environment variables - // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // In this field, you can reference [environment variables + // set by Vertex + // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. // You cannot reference environment variables set in the Docker image. In // order for environment variables to be expanded, reference them by using the @@ -403,7 +409,8 @@ message ModelContainerSpec { // syntax with `$$`; for example: // $$(VARIABLE_NAME) // This field corresponds to the `args` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated string args = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. List of environment variables to set in the container. After the container @@ -432,13 +439,15 @@ message ModelContainerSpec { // does not occur. // // This field corresponds to the `env` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated EnvVar env = 4 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. List of ports to expose from the container. AI Platform sends any + // Immutable. List of ports to expose from the container. Vertex AI sends any // prediction requests that it receives to the first port on this list. AI // Platform also sends - // [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health) + // [liveness and health + // checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness) // to this port. // // If you do not specify this field, it defaults to following value: @@ -451,18 +460,19 @@ message ModelContainerSpec { // ] // ``` // - // AI Platform does not use ports other than the first one listed. This field + // Vertex AI does not use ports other than the first one listed. This field // corresponds to the `ports` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated Port ports = 5 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. HTTP path on the container to send prediction requests to. AI Platform + // Immutable. HTTP path on the container to send prediction requests to. Vertex AI // forwards requests sent using // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this - // path on the container's IP address and port. AI Platform then returns the + // path on the container's IP address and port. Vertex AI then returns the // container's response in the API response. // - // For example, if you set this field to `/foo`, then when AI Platform + // For example, if you set this field to `/foo`, then when Vertex AI // receives a prediction request, it forwards the request body in a POST // request to the `/foo` path on the port of your container specified by the // first value of this `ModelContainerSpec`'s @@ -475,24 +485,23 @@ message ModelContainerSpec { // // * ENDPOINT: The last segment (following `endpoints/`)of the // Endpoint.name][] field of the Endpoint where this Model has been - // deployed. (AI Platform makes this value available to your container code - // as the - // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // deployed. (Vertex AI makes this value available to your container code + // as the [`AIP_ENDPOINT_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. - // (AI Platform makes this value available to your container code + // (Vertex AI makes this value available to your container code // as the [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://tinyurl.com/cust-cont-reqs#aip-variables).) + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string predict_route = 6 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. HTTP path on the container to send health checks to. AI Platform + // Immutable. HTTP path on the container to send health checks to. Vertex AI // intermittently sends GET requests to this path on the container's IP // address and port to check that the container is healthy. Read more about // [health - // checks](https://tinyurl.com/cust-cont-reqs#checks). + // checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health). // - // For example, if you set this field to `/bar`, then AI Platform + // For example, if you set this field to `/bar`, then Vertex AI // intermittently sends a GET request to the `/bar` path on the port of your // container specified by the first value of this `ModelContainerSpec`'s // [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field. @@ -504,15 +513,14 @@ message ModelContainerSpec { // // * ENDPOINT: The last segment (following `endpoints/`)of the // Endpoint.name][] field of the Endpoint where this Model has been - // deployed. (AI Platform makes this value available to your container code - // as the - // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // deployed. (Vertex AI makes this value available to your container code + // as the [`AIP_ENDPOINT_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. - // (AI Platform makes this value available to your container code as the - // [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // (Vertex AI makes this value available to your container code as the + // [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; } 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 6596a4fc2..402acd83e 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 @@ -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. @@ -40,8 +40,8 @@ message ModelEvaluation { // Output only. Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is - // defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string metrics_schema_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in 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 78656ed7a..6fc6f9bdb 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 @@ -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. @@ -56,8 +56,8 @@ message ModelEvaluationSlice { // Output only. Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The - // schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string metrics_schema_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored 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 55c3bf99c..93c9b79c0 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 @@ -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. @@ -33,12 +33,12 @@ option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; -// A service for managing AI Platform's machine learning Models. +// A service for managing Vertex AI's machine learning Models. service ModelService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Uploads a Model artifact into AI Platform. + // Uploads a Model artifact into Vertex AI. rpc UploadModel(UploadModelRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/models:upload" @@ -247,8 +247,7 @@ message UpdateModelRequest { Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -335,7 +334,6 @@ message ExportModelResponse { message GetModelEvaluationRequest { // Required. The name of the ModelEvaluation resource. // Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -386,7 +384,6 @@ message ListModelEvaluationsResponse { message GetModelEvaluationSliceRequest { // Required. The name of the ModelEvaluationSlice resource. // Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -400,7 +397,6 @@ message GetModelEvaluationSliceRequest { message ListModelEvaluationSlicesRequest { // Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices // from. Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, 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 e3b1d3c73..0b775ad48 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 @@ -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-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 60d06d60c..33807e82d 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 @@ -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. @@ -30,7 +30,9 @@ option java_multiple_files = true; option java_outer_classname = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; -// A service for creating and managing AI Platform's pipelines. +// A service for creating and managing Vertex AI's pipelines. This includes both +// `TrainingPipeline` resources (used for AutoML and custom training) and +// `PipelineJob` resources (used for Vertex Pipelines). service PipelineService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -111,7 +113,6 @@ message CreateTrainingPipelineRequest { message GetTrainingPipelineRequest { // Required. The name of the TrainingPipeline resource. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -177,7 +178,6 @@ message ListTrainingPipelinesResponse { message DeleteTrainingPipelineRequest { // Required. The name of the TrainingPipeline resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -191,7 +191,6 @@ message DeleteTrainingPipelineRequest { message CancelTrainingPipelineRequest { // Required. The name of the TrainingPipeline to cancel. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, 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 42abd26f1..1f0565acb 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 @@ -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. @@ -28,7 +28,7 @@ enum PipelineState { // The pipeline state is unspecified. PIPELINE_STATE_UNSPECIFIED = 0; - // The pipeline has been just created or resumed and processing has not yet + // The pipeline has been created or resumed, and processing has not yet // begun. PIPELINE_STATE_QUEUED = 1; @@ -44,7 +44,7 @@ enum PipelineState { // The pipeline failed. PIPELINE_STATE_FAILED = 5; - // The pipeline is being cancelled. From this state the pipeline may only go + // The pipeline is being cancelled. From this state, the pipeline may only go // to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or // PIPELINE_STATE_CANCELLED. PIPELINE_STATE_CANCELLING = 6; 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 146c1a47a..e8cdad763 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 @@ -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-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 fa34d829a..6edde6ea9 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 @@ -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-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 17121a34b..42fc99732 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 @@ -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-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 e10d11e4d..bec1d6746 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 @@ -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-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 f7baf1582..8adb28325 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 @@ -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-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 927f807a4..6a20c75a9 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 @@ -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-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 4d5f32b98..4ee124384 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 @@ -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-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 b3520dd82..74e80068f 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 @@ -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-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 d552a4ade..0a7cbb883 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 @@ -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-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 ac5cb96ad..959ad9494 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 @@ -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-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 d85d8a280..d4a9e4b8d 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 @@ -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-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 975dfdc1d..50775f03c 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 @@ -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-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 39c0181c6..f1ae51c1e 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 @@ -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-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 78a3b5043..1c5fb631d 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 @@ -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-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 b5db64438..76c636ec8 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 @@ -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-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 9f7e90d15..235199208 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 @@ -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-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 2fe492c5d..a11739285 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 @@ -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-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 b3456f4de..28c75b4d8 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 @@ -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-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 973dcbc79..01a119095 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 @@ -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-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 75023856a..a2a3c94f8 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 @@ -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-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 f93acb9a6..e45ccef2a 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 @@ -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-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 c518a73f8..873350394 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 @@ -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-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 375bd1494..2a39204b7 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 @@ -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-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 ef40620e6..d5f365aef 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 @@ -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-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 5d01485a0..5abceb55b 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 @@ -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-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 23452641b..09ecd2dd7 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 @@ -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-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 f0080be30..3f03fcb97 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 @@ -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-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 157d81260..9a08edd6e 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 @@ -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-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 6b5b02b4a..2d9120976 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 @@ -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-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 b502ff78e..8ed75139a 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 @@ -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-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 d20921518..ca94acd18 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 @@ -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-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 66d3ee349..d7a931119 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 @@ -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-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 799f4e896..a22461df9 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 @@ -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-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 2f2900433..936363775 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 @@ -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-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 3ac9f3889..68fe29397 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 @@ -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. @@ -121,7 +121,6 @@ message CreateSpecialistPoolOperationMetadata { message GetSpecialistPoolRequest { // Required. The name of the SpecialistPool resource. // The form is - // // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -195,7 +194,6 @@ message UpdateSpecialistPoolRequest { message UpdateSpecialistPoolOperationMetadata { // Output only. The name of the SpecialistPool to which the specialists are being added. // Format: - // // `projects/{project_id}/locations/{location_id}/specialistPools/{specialist_pool}` string specialist_pool = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, 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 7e54aa9b4..1873ba14a 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 @@ -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. @@ -260,7 +260,9 @@ message StudySpec { // The available search algorithms for the Study. enum Algorithm { - // The default algorithm used by AI Platform Optimization service. + // The default algorithm used by Vertex AI for [hyperparameter + // tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview) + // and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier). ALGORITHM_UNSPECIFIED = 0; // Simple grid search within the feasible space. To use grid search, @@ -276,15 +278,15 @@ message StudySpec { // "Noisy" means that the repeated observations with the same Trial parameters // may lead to different metric evaluations. enum ObservationNoise { - // The default noise level chosen by the AI Platform service. + // The default noise level chosen by Vertex AI. OBSERVATION_NOISE_UNSPECIFIED = 0; - // AI Platform Vizier assumes that the objective function is (nearly) + // Vertex AI assumes that the objective function is (nearly) // perfectly reproducible, and will never repeat the same Trial // parameters. LOW = 1; - // AI Platform Vizier will estimate the amount of noise in metric + // Vertex AI will estimate the amount of noise in metric // evaluations, it may repeat the same Trial parameters more than once. HIGH = 2; } 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 1ede99df0..8ac39343c 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 @@ -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. @@ -36,8 +36,8 @@ option java_package = "com.google.cloud.aiplatform.v1"; // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also -// export data from AI Platform's Dataset which becomes the training input, -// [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to AI Platform, and evaluate the +// export data from Vertex AI's Dataset which becomes the training input, +// [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the // Model. message TrainingPipeline { option (google.api.resource) = { @@ -51,7 +51,7 @@ message TrainingPipeline { // Required. The user-defined name of this TrainingPipeline. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Specifies AI Platform owned input data that may be used for training the + // Specifies Vertex AI owned input data that may be used for training the // Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make // clear whether this config is used and if there are any special requirements // on how it should be filled. If nothing about this config is mentioned in @@ -90,7 +90,7 @@ message TrainingPipeline { // a need of this information, or that training task does not support // uploading a Model as part of the pipeline. // When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and - // the trained Model had been uploaded into AI Platform, then the + // the trained Model had been uploaded into Vertex AI, then the // model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model // is always uploaded into the Project and Location in which this pipeline // is. @@ -135,7 +135,7 @@ message TrainingPipeline { EncryptionSpec encryption_spec = 18; } -// Specifies AI Platform owned input data to be used for training, and +// Specifies Vertex AI owned input data to be used for training, and // possibly evaluating, the Model. message InputDataConfig { // The instructions how the input data should be split between the @@ -167,7 +167,7 @@ message InputDataConfig { // * For non-tabular data: "jsonl". // * For tabular data: "csv" and "bigquery". // - // The following AI Platform environment variables are passed to containers + // The following Vertex AI environment variables are passed to containers // or python modules of the training task when this field is set: // // * AIP_DATA_FORMAT : Exported data format. @@ -182,21 +182,18 @@ message InputDataConfig { // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. // All training input data is written into that directory. // - // The AI Platform environment variables representing Cloud Storage + // The Vertex AI environment variables representing Cloud Storage // data URIs are represented in the Cloud Storage wildcard // format to support sharded data. e.g.: "gs://.../training-*.jsonl" // // * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data // * AIP_TRAINING_DATA_URI = - // // "gcs_destination/dataset---
* * int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -45,13 +45,13 @@ public interface AutomaticResourcesOrBuilder * *
    * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-   * the traffic against it increases. If requested value is too large,
+   * the traffic against it increases. If the requested value is too large,
    * the deployment will error, but if deployment succeeds then the ability
    * to scale the model to that many replicas is guaranteed (barring service
    * outages). If traffic against the DeployedModel increases beyond what its
    * replicas at maximum may handle, a portion of the traffic will be dropped.
    * If this value is not provided, a no upper bound for scaling under heavy
-   * traffic will be assume, though AI Platform may be unable to scale beyond
+   * traffic will be assume, though Vertex AI may be unable to scale beyond
    * certain replica number.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java new file mode 100644 index 000000000..605ef012b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java @@ -0,0 +1,771 @@ +/* + * 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/machine_resources.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * 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.v1beta1.AutoscalingMetricSpec} + */ +public final class AutoscalingMetricSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec) + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec build() { + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec) + private static final com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpecOrBuilder.java new file mode 100644 index 000000000..1b03ab21c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/machine_resources.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface AutoscalingMetricSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java new file mode 100644 index 000000000..f7280adc3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java @@ -0,0 +1,756 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The storage details for Avro input content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AvroSource} + */ +public final class AvroSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AvroSource) + AvroSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroSource.newBuilder() to construct. + private AvroSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AvroSource( + 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.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = 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.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_AvroSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AvroSource.class, + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder.class); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return gcsSource_ != null; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + return getGcsSource(); + } + + 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 (gcsSource_ != null) { + output.writeMessage(1, getGcsSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + } + 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.AvroSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AvroSource other = + (com.google.cloud.aiplatform.v1beta1.AvroSource) obj; + + if (hasGcsSource() != other.hasGcsSource()) return false; + if (hasGcsSource()) { + if (!getGcsSource().equals(other.getGcsSource())) 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 (hasGcsSource()) { + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource 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.AvroSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource 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.AvroSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource 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.AvroSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource 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.AvroSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource 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.AvroSource 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.AvroSource 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.AvroSource 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 storage details for Avro input content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AvroSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AvroSource) + com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_AvroSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AvroSource.class, + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AvroSource.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 (gcsSourceBuilder_ == null) { + gcsSource_ = null; + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSource build() { + com.google.cloud.aiplatform.v1beta1.AvroSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.AvroSource result = + new com.google.cloud.aiplatform.v1beta1.AvroSource(this); + if (gcsSourceBuilder_ == null) { + result.gcsSource_ = gcsSource_; + } else { + result.gcsSource_ = gcsSourceBuilder_.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.AvroSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AvroSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AvroSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance()) return this; + if (other.hasGcsSource()) { + mergeGcsSource(other.getGcsSource()); + } + 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.AvroSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.AvroSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + public boolean hasGcsSource() { + return gcsSourceBuilder_ != null || gcsSource_ != null; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } else { + return gcsSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsSource( + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + gcsSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (gcsSource_ != null) { + gcsSource_ = + com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + gcsSource_ = value; + } + onChanged(); + } else { + gcsSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + gcsSource_ = null; + onChanged(); + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { + + onChanged(); + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (gcsSourceBuilder_ != null) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); + gcsSource_ = null; + } + return gcsSourceBuilder_; + } + + @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.AvroSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AvroSource) + private static final com.google.cloud.aiplatform.v1beta1.AvroSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AvroSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.AvroSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AvroSource(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.AvroSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSourceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSourceOrBuilder.java new file mode 100644 index 000000000..8bd63585d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSourceOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface AvroSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AvroSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java new file mode 100644 index 000000000..cba13cfd7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java @@ -0,0 +1,761 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform batch create Features.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} + */ +public final class BatchCreateFeaturesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + BatchCreateFeaturesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateFeaturesOperationMetadata.newBuilder() to construct. + private BatchCreateFeaturesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateFeaturesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateFeaturesOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchCreateFeaturesOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .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 Feature.
+   * 
+ * + * .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 Feature.
+   * 
+ * + * .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.BatchCreateFeaturesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) 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.BatchCreateFeaturesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + 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.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata 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 batch create Features.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(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.BatchCreateFeaturesOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + .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.BatchCreateFeaturesOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + 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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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.BatchCreateFeaturesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateFeaturesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchCreateFeaturesOperationMetadata(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.BatchCreateFeaturesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..bb4f13e12 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchCreateFeaturesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .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/BatchCreateFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java new file mode 100644 index 000000000..d9c9ffdd6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java @@ -0,0 +1,1298 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} + */ +public final class BatchCreateFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + BatchCreateFeaturesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateFeaturesRequest.newBuilder() to construct. + private BatchCreateFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateFeaturesRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateFeaturesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchCreateFeaturesRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.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)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + 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_BatchCreateFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the EntityType to create the batch of Features under.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType to create the batch of Features under.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + private java.util.List requests_; + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + 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_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.BatchCreateFeaturesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest other = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest 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.BatchCreateFeaturesRequest 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.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.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_BatchCreateFeaturesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest build() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest result = + new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(this); + int from_bitField0_ = bitField0_; + result.parent_ = parent_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.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.BatchCreateFeaturesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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.BatchCreateFeaturesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType to create the batch of Features under.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create the batch of Features under.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create the batch of Features under.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create the batch of Features under.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create the batch of Features under.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The request message specifying the Features to create. All Features must be
+     * created under the same parent EntityType. The `parent` field in each child
+     * request message can be omitted. If `parent` is set in a child request, then
+     * the value must match the `parent` value in this request message.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.BatchCreateFeaturesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + private static final com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchCreateFeaturesRequest(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.BatchCreateFeaturesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequestOrBuilder.java new file mode 100644 index 000000000..b1e0fd27c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchCreateFeaturesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the EntityType to create the batch of Features under.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType to create the batch of Features under.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest getRequests(int index); + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The request message specifying the Features to create. All Features must be
+   * created under the same parent EntityType. The `parent` field in each child
+   * request message can be omitted. If `parent` is set in a child request, then
+   * the value must match the `parent` value in this request message.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java new file mode 100644 index 000000000..4b2028c32 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java @@ -0,0 +1,958 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} + */ +public final class BatchCreateFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + BatchCreateFeaturesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateFeaturesResponse.newBuilder() to construct. + private BatchCreateFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateFeaturesResponse() { + features_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateFeaturesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchCreateFeaturesResponse( + 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)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Feature.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)) { + features_ = java.util.Collections.unmodifiableList(features_); + } + 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_BatchCreateFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.Builder.class); + } + + public static final int FEATURES_FIELD_NUMBER = 1; + private java.util.List features_; + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List getFeaturesList() { + return features_; + } + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List + getFeaturesOrBuilderList() { + return features_; + } + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public int getFeaturesCount() { + return features_.size(); + } + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + return features_.get(index); + } + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + return features_.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 < features_.size(); i++) { + output.writeMessage(1, features_.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 < features_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, features_.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.BatchCreateFeaturesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse other = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) obj; + + if (!getFeaturesList().equals(other.getFeaturesList())) 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 (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeaturesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse 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.BatchCreateFeaturesResponse 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 [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeaturesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featuresBuilder_.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_BatchCreateFeaturesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse build() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse result = + new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(this); + int from_bitField0_ = bitField0_; + if (featuresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.features_ = features_; + } else { + result.features_ = featuresBuilder_.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.BatchCreateFeaturesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.getDefaultInstance()) + return this; + if (featuresBuilder_ == null) { + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + } else { + if (!other.features_.isEmpty()) { + if (featuresBuilder_.isEmpty()) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; + } else { + featuresBuilder_.addAllMessages(other.features_); + } + } + } + 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.BatchCreateFeaturesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List features_ = + java.util.Collections.emptyList(); + + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + featuresBuilder_; + + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List getFeaturesList() { + if (featuresBuilder_ == null) { + return java.util.Collections.unmodifiableList(features_); + } else { + return featuresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public int getFeaturesCount() { + if (featuresBuilder_ == null) { + return features_.size(); + } else { + return featuresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + } else { + featuresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.set(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + } else { + featuresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(index, value); + onChanged(); + } else { + featuresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + onChanged(); + } else { + featuresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder clearFeatures() { + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featuresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder removeFeatures(int index) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.remove(index); + onChanged(); + } else { + featuresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeaturesBuilder(int index) { + return getFeaturesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesOrBuilderList() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(features_); + } + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder() { + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features created.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesBuilderList() { + return getFeaturesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + features_ = null; + } + return featuresBuilder_; + } + + @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.BatchCreateFeaturesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + private static final com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchCreateFeaturesResponse(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.BatchCreateFeaturesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponseOrBuilder.java new file mode 100644 index 000000000..876083895 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchCreateFeaturesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List getFeaturesList(); + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index); + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + int getFeaturesCount(); + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List + getFeaturesOrBuilderList(); + /** + * + * + *
+   * The Features created.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java index d32637983..4f99a1c4a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java @@ -190,7 +190,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * *
    * Immutable. The number of machine replicas used at the start of the batch operation.
-   * If not set, AI Platform decides starting number, not greater than
+   * If not set, Vertex AI decides starting number, not greater than
    * [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count]
    * 
* @@ -794,7 +794,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count]
      * 
* @@ -811,7 +811,7 @@ public int getStartingReplicaCount() { * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count]
      * 
* @@ -831,7 +831,7 @@ public Builder setStartingReplicaCount(int value) { * *
      * Immutable. The number of machine replicas used at the start of the batch operation.
-     * If not set, AI Platform decides starting number, not greater than
+     * If not set, Vertex AI decides starting number, not greater than
      * [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count]
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResourcesOrBuilder.java index 79520163c..b0c4afa2d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResourcesOrBuilder.java @@ -69,7 +69,7 @@ public interface BatchDedicatedResourcesOrBuilder * *
    * Immutable. The number of machine replicas used at the start of the batch operation.
-   * If not set, AI Platform decides starting number, not greater than
+   * If not set, Vertex AI decides starting number, not greater than
    * [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count]
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java index dbfb12ec4..cf089b05f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java @@ -185,6 +185,18 @@ public interface PartialResultOrBuilder */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + /** + * + * + *
+     * Migrated model resource name.
+     * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); /** * * @@ -210,6 +222,18 @@ public interface PartialResultOrBuilder */ com.google.protobuf.ByteString getModelBytes(); + /** + * + * + *
+     * Migrated dataset resource name.
+     * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); /** * * @@ -281,7 +305,7 @@ public interface PartialResultOrBuilder * * *
-   * Represents a partial result in batch migration opreation for one
+   * Represents a partial result in batch migration operation for one
    * [MigrateResourceRequest][google.cloud.aiplatform.v1beta1.MigrateResourceRequest].
    * 
* @@ -513,6 +537,20 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int MODEL_FIELD_NUMBER = 3; + /** + * + * + *
+     * Migrated model resource name.
+     * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return resultCase_ == 3; + } /** * * @@ -569,6 +607,20 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DATASET_FIELD_NUMBER = 4; + /** + * + * + *
+     * Migrated dataset resource name.
+     * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return resultCase_ == 4; + } /** * * @@ -921,7 +973,7 @@ protected Builder newBuilderForType( * * *
-     * Represents a partial result in batch migration opreation for one
+     * Represents a partial result in batch migration operation for one
      * [MigrateResourceRequest][google.cloud.aiplatform.v1beta1.MigrateResourceRequest].
      * 
* @@ -1369,6 +1421,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return errorBuilder_; } + /** + * + * + *
+       * Migrated model resource name.
+       * 
+ * + * string model = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return resultCase_ == 3; + } /** * * @@ -1488,6 +1555,21 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+       * Migrated dataset resource name.
+       * 
+ * + * string dataset = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return resultCase_ == 4; + } /** * * @@ -1921,7 +2003,7 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -1938,7 +2020,7 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -1957,7 +2039,7 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -1972,7 +2054,7 @@ public int getPartialResultsCount() { * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -1988,7 +2070,7 @@ public int getPartialResultsCount() { * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -2629,7 +2711,7 @@ private void ensurePartialResultsIsMutable() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2650,7 +2732,7 @@ private void ensurePartialResultsIsMutable() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2668,7 +2750,7 @@ public int getPartialResultsCount() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2687,7 +2769,7 @@ public int getPartialResultsCount() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2714,7 +2796,7 @@ public Builder setPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2739,7 +2821,7 @@ public Builder setPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2765,7 +2847,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2792,7 +2874,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2816,7 +2898,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2841,7 +2923,7 @@ public Builder addPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2867,7 +2949,7 @@ public Builder addAllPartialResults( * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2888,7 +2970,7 @@ public Builder clearPartialResults() { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2909,7 +2991,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2925,7 +3007,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2945,7 +3027,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2967,7 +3049,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -2986,7 +3068,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * @@ -3006,7 +3088,7 @@ public Builder removePartialResults(int index) { * * *
-     * Partial results that reflects the latest migration operation progress.
+     * Partial results that reflect the latest migration operation progress.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadataOrBuilder.java index b613cd4c8..f68b60e2e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadataOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadataOrBuilder.java @@ -63,7 +63,7 @@ public interface BatchMigrateResourcesOperationMetadataOrBuilder * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -77,7 +77,7 @@ public interface BatchMigrateResourcesOperationMetadataOrBuilder * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -90,7 +90,7 @@ public interface BatchMigrateResourcesOperationMetadataOrBuilder * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -102,7 +102,7 @@ public interface BatchMigrateResourcesOperationMetadataOrBuilder * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * @@ -118,7 +118,7 @@ public interface BatchMigrateResourcesOperationMetadataOrBuilder * * *
-   * Partial results that reflects the latest migration operation progress.
+   * Partial results that reflect the latest migration operation progress.
    * 
* * 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 ce4996373..64cd3d253 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 @@ -2043,8 +2043,8 @@ public interface OutputConfigOrBuilder * * *
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2072,8 +2072,8 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2101,8 +2101,8 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2130,7 +2130,7 @@ public interface OutputConfigOrBuilder
      *
      *
      * 
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
      * 
@@ -2144,7 +2144,7 @@ public interface OutputConfigOrBuilder * * *
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
      * 
@@ -2457,8 +2457,8 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * * *
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2489,8 +2489,8 @@ public boolean hasBigqueryDestination() {
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2524,8 +2524,8 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin
      *
      *
      * 
-     * The BigQuery project location where the output is to be written to.
-     * In the given project a new dataset is created with name
+     * The BigQuery project or dataset location where the output is to be
+     * written to. If project is provided, a new dataset is created with name
      * `prediction_<model-display-name>_<job-create-time>`
      * where <model-display-name> is made
      * BigQuery-dataset-name compatible (for example, most special characters
@@ -2561,7 +2561,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin
      *
      *
      * 
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
      * 
@@ -2586,7 +2586,7 @@ public java.lang.String getPredictionsFormat() { * * *
-     * Required. The format in which AI Platform gives the predictions, must be one of the
+     * Required. The format in which Vertex AI gives the predictions, must be one of the
      * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
      * 
@@ -3428,8 +3428,8 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * * *
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3460,8 +3460,8 @@ public boolean hasBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3502,8 +3502,8 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3542,8 +3542,8 @@ public Builder setBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3579,8 +3579,8 @@ public Builder setBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3629,8 +3629,8 @@ public Builder mergeBigqueryDestination(
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3671,8 +3671,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3701,8 +3701,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3739,8 +3739,8 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * The BigQuery project location where the output is to be written to.
-       * In the given project a new dataset is created with name
+       * The BigQuery project or dataset location where the output is to be
+       * written to. If project is provided, a new dataset is created with name
        * `prediction_<model-display-name>_<job-create-time>`
        * where <model-display-name> is made
        * BigQuery-dataset-name compatible (for example, most special characters
@@ -3792,7 +3792,7 @@ public Builder clearBigqueryDestination() {
        *
        *
        * 
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
        * 
@@ -3816,7 +3816,7 @@ public java.lang.String getPredictionsFormat() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
        * 
@@ -3840,7 +3840,7 @@ public com.google.protobuf.ByteString getPredictionsFormatBytes() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
        * 
@@ -3863,7 +3863,7 @@ public Builder setPredictionsFormat(java.lang.String value) { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
        * 
@@ -3882,7 +3882,7 @@ public Builder clearPredictionsFormat() { * * *
-       * Required. The format in which AI Platform gives the predictions, must be one of the
+       * Required. The format in which Vertex AI gives the predictions, must be one of the
        * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
        * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
        * 
@@ -3963,6 +3963,19 @@ public interface OutputInfoOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+     * Output only. The full path of the Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + boolean hasGcsOutputDirectory(); /** * * @@ -3990,6 +4003,20 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + /** + * + * + *
+     * Output only. The path of the BigQuery dataset created, in
+     * `bq://projectId.bqDatasetId`
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the bigqueryOutputDataset field is set. + */ + boolean hasBigqueryOutputDataset(); /** * * @@ -4169,6 +4196,21 @@ public OutputLocationCase getOutputLocationCase() { } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * Output only. The full path of the Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + public boolean hasGcsOutputDirectory() { + return outputLocationCase_ == 1; + } /** * * @@ -4227,6 +4269,22 @@ public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { } public static final int BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER = 2; + /** + * + * + *
+     * Output only. The path of the BigQuery dataset created, in
+     * `bq://projectId.bqDatasetId`
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the bigqueryOutputDataset field is set. + */ + public boolean hasBigqueryOutputDataset() { + return outputLocationCase_ == 2; + } /** * * @@ -4680,6 +4738,22 @@ public Builder clearOutputLocation() { return this; } + /** + * + * + *
+       * Output only. The full path of the Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the gcsOutputDirectory field is set. + */ + @java.lang.Override + public boolean hasGcsOutputDirectory() { + return outputLocationCase_ == 1; + } /** * * @@ -4804,6 +4878,24 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) return this; } + /** + * + * + *
+       * Output only. The path of the BigQuery dataset created, in
+       * `bq://projectId.bqDatasetId`
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bigqueryOutputDataset field is set. + */ + @java.lang.Override + public boolean hasBigqueryOutputDataset() { + return outputLocationCase_ == 2; + } /** * * @@ -5419,7 +5511,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources getDedicatedR * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -5438,7 +5530,7 @@ public boolean hasManualBatchTuningParameters() { * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -5460,7 +5552,7 @@ public boolean hasManualBatchTuningParameters() { * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -5490,8 +5582,8 @@ public boolean hasManualBatchTuningParameters() { * keyed `explanation`. The value of the entry is a JSON object that * conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. * * `csv`: Generating explanations for CSV format is not supported. - * If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - * populated. + * If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. *
* * bool generate_explanation = 23; @@ -8529,7 +8621,7 @@ public Builder clearDedicatedResources() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8547,7 +8639,7 @@ public boolean hasManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8572,7 +8664,7 @@ public boolean hasManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8599,7 +8691,7 @@ public Builder setManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8623,7 +8715,7 @@ public Builder setManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8655,7 +8747,7 @@ public Builder mergeManualBatchTuningParameters( * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8679,7 +8771,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8698,7 +8790,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8721,7 +8813,7 @@ public Builder clearManualBatchTuningParameters() { * *
      * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+     * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
      * the tuning itself).
      * 
* @@ -8761,8 +8853,8 @@ public Builder clearManualBatchTuningParameters() { * keyed `explanation`. The value of the entry is a JSON object that * conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. * * `csv`: Generating explanations for CSV format is not supported. - * If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - * populated. + * If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. *
* * bool generate_explanation = 23; @@ -8787,8 +8879,8 @@ public boolean getGenerateExplanation() { * keyed `explanation`. The value of the entry is a JSON object that * conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. * * `csv`: Generating explanations for CSV format is not supported. - * If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - * populated. + * If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. *
* * bool generate_explanation = 23; @@ -8816,8 +8908,8 @@ public Builder setGenerateExplanation(boolean value) { * keyed `explanation`. The value of the entry is a JSON object that * conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. * * `csv`: Generating explanations for CSV format is not supported. - * If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - * populated. + * If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. *
* * bool generate_explanation = 23; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java index 66e2f0b15..f99cd490a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java index bb249963f..cfeeb7a39 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java @@ -322,7 +322,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -338,7 +338,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -354,7 +354,7 @@ public interface BatchPredictionJobOrBuilder * *
    * Immutable. Parameters configuring the batch behavior. Currently only applicable when
-   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does
+   * [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does
    * the tuning itself).
    * 
* @@ -379,8 +379,8 @@ public interface BatchPredictionJobOrBuilder * keyed `explanation`. The value of the entry is a JSON object that * conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. * * `csv`: Generating explanations for CSV format is not supported. - * If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - * populated. + * If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. *
* * bool generate_explanation = 23; 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 afffd8030..c27adedbc 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 @@ -69,67 +69,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\0327google/cloud/aiplatform/v1beta1/" + "machine_resources.proto\032Dgoogle/cloud/ai" + "platform/v1beta1/manual_batch_tuning_par" - + "ameters.proto\032\034google/protobuf/struct.pr" - + "oto\032\037google/protobuf/timestamp.proto\032\027go" - + "ogle/rpc/status.proto\032\034google/api/annota" - + "tions.proto\"\353\020\n\022BatchPredictionJob\022\021\n\004na" - + "me\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.goog" - + "leapis.com/Model\022Z\n\014input_config\030\004 \001(\0132?" - + ".google.cloud.aiplatform.v1beta1.BatchPr" - + "edictionJob.InputConfigB\003\340A\002\0220\n\020model_pa" - + "rameters\030\005 \001(\0132\026.google.protobuf.Value\022\\" - + "\n\routput_config\030\006 \001(\0132@.google.cloud.aip" - + "latform.v1beta1.BatchPredictionJob.Outpu" - + "tConfigB\003\340A\002\022U\n\023dedicated_resources\030\007 \001(" - + "\01328.google.cloud.aiplatform.v1beta1.Batc" - + "hDedicatedResources\022i\n\036manual_batch_tuni" - + "ng_parameters\030\010 \001(\0132<.google.cloud.aipla" - + "tform.v1beta1.ManualBatchTuningParameter" - + "sB\003\340A\005\022\034\n\024generate_explanation\030\027 \001(\010\022J\n\020" - + "explanation_spec\030\031 \001(\01320.google.cloud.ai" - + "platform.v1beta1.ExplanationSpec\022X\n\013outp" - + "ut_info\030\t \001(\0132>.google.cloud.aiplatform." - + "v1beta1.BatchPredictionJob.OutputInfoB\003\340" - + "A\003\022=\n\005state\030\n \001(\0162).google.cloud.aiplatf" - + "orm.v1beta1.JobStateB\003\340A\003\022&\n\005error\030\013 \001(\013" - + "2\022.google.rpc.StatusB\003\340A\003\0221\n\020partial_fai" - + "lures\030\014 \003(\0132\022.google.rpc.StatusB\003\340A\003\022S\n\022" - + "resources_consumed\030\r \001(\01322.google.cloud." - + "aiplatform.v1beta1.ResourcesConsumedB\003\340A" - + "\003\022O\n\020completion_stats\030\016 \001(\01320.google.clo" - + "ud.aiplatform.v1beta1.CompletionStatsB\003\340" - + "A\003\0224\n\013create_time\030\017 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0223\n\nstart_time\030\020 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" - + "e\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\022 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022O\n\006labels\030\023 \003(\0132?.google." - + "cloud.aiplatform.v1beta1.BatchPrediction" - + "Job.LabelsEntry\022H\n\017encryption_spec\030\030 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.Encry" - + "ptionSpec\032\304\001\n\013InputConfig\022@\n\ngcs_source\030" - + "\002 \001(\0132*.google.cloud.aiplatform.v1beta1." - + "GcsSourceH\000\022J\n\017bigquery_source\030\003 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.BigQueryS" - + "ourceH\000\022\035\n\020instances_format\030\001 \001(\tB\003\340A\002B\010" - + "\n\006source\032\340\001\n\014OutputConfig\022J\n\017gcs_destina" - + "tion\030\002 \001(\0132/.google.cloud.aiplatform.v1b" - + "eta1.GcsDestinationH\000\022T\n\024bigquery_destin" - + "ation\030\003 \001(\01324.google.cloud.aiplatform.v1" - + "beta1.BigQueryDestinationH\000\022\037\n\022predictio" - + "ns_format\030\001 \001(\tB\003\340A\002B\r\n\013destination\032l\n\nO" - + "utputInfo\022#\n\024gcs_output_directory\030\001 \001(\tB" - + "\003\340A\003H\000\022&\n\027bigquery_output_dataset\030\002 \001(\tB" - + "\003\340A\003H\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/BatchPredicti" - + "onJob\022Rprojects/{project}/locations/{loc" - + "ation}/batchPredictionJobs/{batch_predic" - + "tion_job}B\213\001\n#com.google.cloud.aiplatfor" - + "m.v1beta1B\027BatchPredictionJobProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatformb\006proto3" + + "ameters.proto\0326google/cloud/aiplatform/v" + + "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" + + "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" + + "t_config\030\004 \001(\0132?.google.cloud.aiplatform" + + ".v1beta1.BatchPredictionJob.InputConfigB" + + "\003\340A\002\0220\n\020model_parameters\030\005 \001(\0132\026.google." + + "protobuf.Value\022\\\n\routput_config\030\006 \001(\0132@." + + "google.cloud.aiplatform.v1beta1.BatchPre" + + "dictionJob.OutputConfigB\003\340A\002\022U\n\023dedicate" + + "d_resources\030\007 \001(\01328.google.cloud.aiplatf" + + "orm.v1beta1.BatchDedicatedResources\022i\n\036m" + + "anual_batch_tuning_parameters\030\010 \001(\0132<.go" + + "ogle.cloud.aiplatform.v1beta1.ManualBatc" + + "hTuningParametersB\003\340A\005\022\034\n\024generate_expla" + + "nation\030\027 \001(\010\022J\n\020explanation_spec\030\031 \001(\01320" + + ".google.cloud.aiplatform.v1beta1.Explana" + + "tionSpec\022X\n\013output_info\030\t \001(\0132>.google.c" + + "loud.aiplatform.v1beta1.BatchPredictionJ" + + "ob.OutputInfoB\003\340A\003\022=\n\005state\030\n \001(\0162).goog" + + "le.cloud.aiplatform.v1beta1.JobStateB\003\340A" + + "\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003\0221\n\020partial_failures\030\014 \003(\0132\022.google.rpc" + + ".StatusB\003\340A\003\022S\n\022resources_consumed\030\r \001(\013" + + "22.google.cloud.aiplatform.v1beta1.Resou" + + "rcesConsumedB\003\340A\003\022O\n\020completion_stats\030\016 " + + "\001(\01320.google.cloud.aiplatform.v1beta1.Co" + + "mpletionStatsB\003\340A\003\0224\n\013create_time\030\017 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0223\n\nstar" + + "t_time\030\020 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0221\n\010end_time\030\021 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\022 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022O\n\006labels" + + "\030\023 \003(\0132?.google.cloud.aiplatform.v1beta1" + + ".BatchPredictionJob.LabelsEntry\022H\n\017encry" + + "ption_spec\030\030 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.EncryptionSpec\032\304\001\n\013InputConfi" + + "g\022@\n\ngcs_source\030\002 \001(\0132*.google.cloud.aip" + + "latform.v1beta1.GcsSourceH\000\022J\n\017bigquery_" + + "source\030\003 \001(\0132/.google.cloud.aiplatform.v" + + "1beta1.BigQuerySourceH\000\022\035\n\020instances_for" + + "mat\030\001 \001(\tB\003\340A\002B\010\n\006source\032\340\001\n\014OutputConfi" + + "g\022J\n\017gcs_destination\030\002 \001(\0132/.google.clou" + + "d.aiplatform.v1beta1.GcsDestinationH\000\022T\n" + + "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -144,6 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -234,6 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java new file mode 100644 index 000000000..05cb36cb2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java @@ -0,0 +1,769 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that batch reads Feature values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} + */ +public final class BatchReadFeatureValuesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + BatchReadFeatureValuesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchReadFeatureValuesOperationMetadata.newBuilder() to construct. + private BatchReadFeatureValuesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchReadFeatureValuesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchReadFeatureValuesOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchReadFeatureValuesOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore batch read Features values.
+   * 
+ * + * .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 Featurestore batch read Features values.
+   * 
+ * + * .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 Featurestore batch read Features values.
+   * 
+ * + * .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.BatchReadFeatureValuesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) 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.BatchReadFeatureValuesOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata + 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.BatchReadFeatureValuesOperationMetadata 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 batch reads Feature values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(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.BatchReadFeatureValuesOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + .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.BatchReadFeatureValuesOperationMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + 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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore batch read Features values.
+     * 
+ * + * .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 Featurestore batch read Features values.
+     * 
+ * + * .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.BatchReadFeatureValuesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchReadFeatureValuesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchReadFeatureValuesOperationMetadata(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.BatchReadFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..48c4e34c6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchReadFeatureValuesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore batch read Features values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore batch read Features values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore batch read Features values.
+   * 
+ * + * .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/BatchReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java new file mode 100644 index 000000000..60ceff281 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java @@ -0,0 +1,3899 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues].
+ * (- Next Id: 6 -)
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} + */ +public final class BatchReadFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + BatchReadFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchReadFeatureValuesRequest.newBuilder() to construct. + private BatchReadFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchReadFeatureValuesRequest() { + featurestore_ = ""; + entityTypeSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchReadFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchReadFeatureValuesRequest( + 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(); + + featurestore_ = s; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder subBuilder = null; + if (readOptionCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_).toBuilder(); + } + readOption_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.CsvSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_); + readOption_ = subBuilder.buildPartial(); + } + readOptionCase_ = 3; + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder subBuilder = null; + if (destination_ != null) { + subBuilder = destination_.toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destination_); + destination_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityTypeSpecs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpec>(); + mutable_bitField0_ |= 0x00000001; + } + entityTypeSpecs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpec.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)) { + entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); + } + 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_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); + } + + 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; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + settingsBuilder_; + + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public java.util.List + getSettingsList() { + if (settingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(settings_); + } else { + return settingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public int getSettingsCount() { + if (settingsBuilder_ == null) { + return settings_.size(); + } else { + return settingsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index) { + if (settingsBuilder_ == null) { + return settings_.get(index); + } else { + return settingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder setSettings( + int index, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.set(index, value); + onChanged(); + } else { + settingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder setSettings( + int index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.set(index, builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder addSettings( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.add(value); + onChanged(); + } else { + settingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder addSettings( + int index, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.add(index, value); + onChanged(); + } else { + settingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder addSettings( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.add(builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder addSettings( + int index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.add(index, builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder addAllSettings( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting> + values) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, settings_); + onChanged(); + } else { + settingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder clearSettings() { + if (settingsBuilder_ == null) { + settings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + settingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public Builder removeSettings(int index) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.remove(index); + onChanged(); + } else { + settingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder + getSettingsBuilder(int index) { + return getSettingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder + getSettingsOrBuilder(int index) { + if (settingsBuilder_ == null) { + return settings_.get(index); + } else { + return settingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsOrBuilderList() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(settings_); + } + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder + addSettingsBuilder() { + return getSettingsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance()); + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder + addSettingsBuilder(int index) { + return getSettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance()); + } + /** + * + * + *
+       * Per-Feature settings for the batch read.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + public java.util.List + getSettingsBuilderList() { + return getSettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder>( + settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + @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.BatchReadFeatureValuesRequest.EntityTypeSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + private static final com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityTypeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityTypeSpec(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.BatchReadFeatureValuesRequest.EntityTypeSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int readOptionCase_ = 0; + private java.lang.Object readOption_; + + public enum ReadOptionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CSV_READ_INSTANCES(3), + READOPTION_NOT_SET(0); + private final int value; + + private ReadOptionCase(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 ReadOptionCase valueOf(int value) { + return forNumber(value); + } + + public static ReadOptionCase forNumber(int value) { + switch (value) { + case 3: + return CSV_READ_INSTANCES; + case 0: + return READOPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReadOptionCase getReadOptionCase() { + return ReadOptionCase.forNumber(readOptionCase_); + } + + public static final int CSV_READ_INSTANCES_FIELD_NUMBER = 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 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 (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; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstancesOrBuilder() { + if (readOptionCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + + public static final int FEATURESTORE_FIELD_NUMBER = 1; + private volatile 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. + */ + @java.lang.Override + public java.lang.String getFeaturestore() { + java.lang.Object ref = featurestore_; + 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(); + featurestore_ = s; + return s; + } + } + /** + * + * + *
+   * 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. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeaturestoreBytes() { + java.lang.Object ref = featurestore_; + if (ref instanceof java.lang.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; + } + } + + public static final int DESTINATION_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.FeatureValueDestination destination_; + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + @java.lang.Override + public boolean hasDestination() { + return destination_ != null; + } + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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_; + } + /** + * + * + *
+   * 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 ENTITY_TYPE_SPECS_FIELD_NUMBER = 7; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec> + entityTypeSpecs_; + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec> + getEntityTypeSpecsList() { + return entityTypeSpecs_; + } + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder> + getEntityTypeSpecsOrBuilderList() { + return entityTypeSpecs_; + } + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEntityTypeSpecsCount() { + return entityTypeSpecs_.size(); + } + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + getEntityTypeSpecs(int index) { + return entityTypeSpecs_.get(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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpecOrBuilder + getEntityTypeSpecsOrBuilder(int index) { + return entityTypeSpecs_.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 (!getFeaturestoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, featurestore_); + } + if (readOptionCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_); + } + if (destination_ != null) { + output.writeMessage(4, getDestination()); + } + for (int i = 0; i < entityTypeSpecs_.size(); i++) { + output.writeMessage(7, entityTypeSpecs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFeaturestoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featurestore_); + } + if (readOptionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_); + } + if (destination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDestination()); + } + for (int i = 0; i < entityTypeSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, entityTypeSpecs_.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)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) obj; + + if (!getFeaturestore().equals(other.getFeaturestore())) return false; + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) 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 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) + FEATURESTORE_FIELD_NUMBER; + hash = (53 * hash) + getFeaturestore().hashCode(); + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + } + if (getEntityTypeSpecsCount() > 0) { + hash = (37 * hash) + ENTITY_TYPE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getEntityTypeSpecsList().hashCode(); + } + switch (readOptionCase_) { + case 3: + hash = (37 * hash) + CSV_READ_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getCsvReadInstances().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest 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 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest 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 parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest 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 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 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 + 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 + 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 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) { + getEntityTypeSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + featurestore_ = ""; + + if (destinationBuilder_ == null) { + destination_ = null; + } else { + destination_ = null; + destinationBuilder_ = null; + } + if (entityTypeSpecsBuilder_ == null) { + entityTypeSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } 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(); + } + } + result.featurestore_ = featurestore_; + if (destinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = destinationBuilder_.build(); + } + if (entityTypeSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + 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 (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_); + } + } + } + switch (other.getReadOptionCase()) { + case CSV_READ_INSTANCES: + { + mergeCsvReadInstances(other.getCsvReadInstances()); + break; + } + case READOPTION_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.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; + } + + private int readOptionCase_ = 0; + private java.lang.Object readOption_; + + public ReadOptionCase getReadOptionCase() { + return ReadOptionCase.forNumber(readOptionCase_); + } + + public Builder clearReadOption() { + readOptionCase_ = 0; + readOption_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + 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; + } + /** + * + * + *
+     * 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; + } + /** + * + * + *
+     * 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; + } + /** + * + * + *
+     * 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(); + } + /** + * + * + *
+     * 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 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 { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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; + } + } + /** + * + * + *
+     * 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(); + } + + 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() { + + 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); + + 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.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return destinationBuilder_ != null || destination_ != null; + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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_; + } else { + return destinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + destinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + onChanged(); + } else { + destinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestination() { + if (destinationBuilder_ == null) { + destination_ = null; + onChanged(); + } else { + destination_ = null; + destinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder + getDestinationBuilder() { + + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Specifies output location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder + getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + 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]; + * + */ + 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; + } + return destinationBuilder_; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec> + entityTypeSpecs_ = java.util.Collections.emptyList(); + + private void ensureEntityTypeSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entityTypeSpecs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec>( + entityTypeSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder> + entityTypeSpecsBuilder_; + + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec> + getEntityTypeSpecsList() { + if (entityTypeSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(entityTypeSpecs_); + } else { + return entityTypeSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEntityTypeSpecsCount() { + if (entityTypeSpecsBuilder_ == null) { + return entityTypeSpecs_.size(); + } else { + return entityTypeSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + getEntityTypeSpecs(int index) { + if (entityTypeSpecsBuilder_ == null) { + return entityTypeSpecs_.get(index); + } else { + return entityTypeSpecsBuilder_.getMessage(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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityTypeSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec value) { + if (entityTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.set(index, value); + onChanged(); + } else { + entityTypeSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityTypeSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + builderForValue) { + if (entityTypeSpecsBuilder_ == null) { + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + entityTypeSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntityTypeSpecs( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec value) { + if (entityTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.add(value); + onChanged(); + } else { + entityTypeSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntityTypeSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec value) { + if (entityTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.add(index, value); + onChanged(); + } else { + entityTypeSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntityTypeSpecs( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + builderForValue) { + if (entityTypeSpecsBuilder_ == null) { + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.add(builderForValue.build()); + onChanged(); + } else { + entityTypeSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntityTypeSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + builderForValue) { + if (entityTypeSpecsBuilder_ == null) { + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + entityTypeSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEntityTypeSpecs( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpec> + values) { + if (entityTypeSpecsBuilder_ == null) { + ensureEntityTypeSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityTypeSpecs_); + onChanged(); + } else { + entityTypeSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEntityTypeSpecs() { + if (entityTypeSpecsBuilder_ == null) { + entityTypeSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entityTypeSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEntityTypeSpecs(int index) { + if (entityTypeSpecsBuilder_ == null) { + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.remove(index); + onChanged(); + } else { + entityTypeSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + getEntityTypeSpecsBuilder(int index) { + return getEntityTypeSpecsFieldBuilder().getBuilder(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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpecOrBuilder + getEntityTypeSpecsOrBuilder(int index) { + if (entityTypeSpecsBuilder_ == null) { + return entityTypeSpecs_.get(index); + } else { + return entityTypeSpecsBuilder_.getMessageOrBuilder(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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder> + getEntityTypeSpecsOrBuilderList() { + if (entityTypeSpecsBuilder_ != null) { + return entityTypeSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entityTypeSpecs_); + } + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + addEntityTypeSpecsBuilder() { + return getEntityTypeSpecsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .getDefaultInstance()); + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.Builder + addEntityTypeSpecsBuilder(int index) { + return getEntityTypeSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .getDefaultInstance()); + } + /** + * + * + *
+     * 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
+     * [BatchReadFeatureValuesRequest.request][] .
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder> + getEntityTypeSpecsBuilderList() { + return getEntityTypeSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder> + getEntityTypeSpecsFieldBuilder() { + if (entityTypeSpecsBuilder_ == null) { + entityTypeSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder>( + entityTypeSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entityTypeSpecs_ = null; + } + return entityTypeSpecsBuilder_; + } + + @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.BatchReadFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchReadFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchReadFeatureValuesRequest(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.BatchReadFeatureValuesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..a9ccc8878 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequestOrBuilder.java @@ -0,0 +1,273 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchReadFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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. + */ + boolean hasCsvReadInstances(); + /** + * + * + *
+   * 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. + */ + com.google.cloud.aiplatform.v1beta1.CsvSource getCsvReadInstances(); + /** + * + * + *
+   * 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; + */ + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstancesOrBuilder(); + + /** + * + * + *
+   * 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. + */ + java.lang.String getFeaturestore(); + /** + * + * + *
+   * 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. + */ + com.google.protobuf.ByteString getFeaturestoreBytes(); + + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination(); + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getEntityTypeSpecsList(); + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + getEntityTypeSpecs(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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .EntityTypeSpecOrBuilder> + getEntityTypeSpecsOrBuilderList(); + /** + * + * + *
+   * 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
+   * [BatchReadFeatureValuesRequest.request][] .
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpecOrBuilder + getEntityTypeSpecsOrBuilder(int index); + + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.ReadOptionCase + getReadOptionCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java new file mode 100644 index 000000000..9d147be34 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponse.java @@ -0,0 +1,469 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} + */ +public final class BatchReadFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + BatchReadFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchReadFeatureValuesResponse.newBuilder() to construct. + private BatchReadFeatureValuesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchReadFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchReadFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchReadFeatureValuesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + 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.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse 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.BatchReadFeatureValuesResponse 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 [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchReadFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchReadFeatureValuesResponse(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.BatchReadFeatureValuesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000..0335a7613 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BatchReadFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder {} 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 7f47accd5..7923a8b5d 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 @@ -118,9 +118,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only project is specified, Dataset and Table is created.
-   * When full table reference is specified, Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -147,9 +147,9 @@ public java.lang.String getOutputUri() {
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only project is specified, Dataset and Table is created.
-   * When full table reference is specified, Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -497,9 +497,9 @@ public Builder mergeFrom(
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only project is specified, Dataset and Table is created.
-     * When full table reference is specified, Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -525,9 +525,9 @@ public java.lang.String getOutputUri() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only project is specified, Dataset and Table is created.
-     * When full table reference is specified, Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -553,9 +553,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only project is specified, Dataset and Table is created.
-     * When full table reference is specified, Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -580,9 +580,9 @@ public Builder setOutputUri(java.lang.String value) {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only project is specified, Dataset and Table is created.
-     * When full table reference is specified, Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -603,9 +603,9 @@ public Builder clearOutputUri() {
      *
      * 
      * Required. BigQuery URI to a project or table, up to 2000 characters long.
-     * When only project is specified, Dataset and Table is created.
-     * When full table reference is specified, Dataset must exist and table must
-     * not exist.
+     * When only the project is specified, the Dataset and Table is created.
+     * When the full table reference is specified, the Dataset must exist and
+     * table must not exist.
      * Accepted forms:
      * *  BigQuery path. For example:
      * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
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 0ff99b258..9ebffa7b4 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
@@ -28,9 +28,9 @@ public interface BigQueryDestinationOrBuilder
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only project is specified, Dataset and Table is created.
-   * When full table reference is specified, Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
@@ -46,9 +46,9 @@ public interface BigQueryDestinationOrBuilder
    *
    * 
    * Required. BigQuery URI to a project or table, up to 2000 characters long.
-   * When only project is specified, Dataset and Table is created.
-   * When full table reference is specified, Dataset must exist and table must
-   * not exist.
+   * When only the project is specified, the Dataset and Table is created.
+   * When the full table reference is specified, the Dataset must exist and
+   * table must not exist.
    * Accepted forms:
    * *  BigQuery path. For example:
    * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java
new file mode 100644
index 000000000..4d182f370
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java
@@ -0,0 +1,701 @@
+/*
+ * 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/types.proto
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * A list of boolean values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BoolArray} + */ +public final class BoolArray extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BoolArray) + BoolArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoolArray.newBuilder() to construct. + private BoolArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BoolArray() { + values_ = emptyBooleanList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BoolArray(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BoolArray( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = newBooleanList(); + mutable_bitField0_ |= 0x00000001; + } + values_.addBoolean(input.readBool()); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + values_ = newBooleanList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + values_.addBoolean(input.readBool()); + } + input.popLimit(limit); + 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)) { + values_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_BoolArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BoolArray.class, + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.BooleanList values_; + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeBoolNoTag(values_.getBoolean(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 1 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.BoolArray)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BoolArray other = + (com.google.cloud.aiplatform.v1beta1.BoolArray) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray 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.BoolArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray 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.BoolArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray 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.BoolArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray 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.BoolArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray 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.BoolArray 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.BoolArray 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.BoolArray 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 boolean values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BoolArray} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BoolArray) + com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_BoolArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BoolArray.class, + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.BoolArray.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(); + values_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArray getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArray build() { + com.google.cloud.aiplatform.v1beta1.BoolArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArray buildPartial() { + com.google.cloud.aiplatform.v1beta1.BoolArray result = + new com.google.cloud.aiplatform.v1beta1.BoolArray(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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.BoolArray) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.BoolArray) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BoolArray other) { + if (other == com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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.BoolArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.BoolArray) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.BooleanList values_ = emptyBooleanList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = mutableCopy(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(values_) + : values_; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, boolean value) { + ensureValuesIsMutable(); + values_.setBoolean(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(boolean value) { + ensureValuesIsMutable(); + values_.addBoolean(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated bool values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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.BoolArray) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BoolArray) + private static final com.google.cloud.aiplatform.v1beta1.BoolArray DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.BoolArray(); + } + + public static com.google.cloud.aiplatform.v1beta1.BoolArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoolArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoolArray(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.BoolArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArrayOrBuilder.java new file mode 100644 index 000000000..55bda13b1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArrayOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface BoolArrayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BoolArray) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated bool values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + boolean getValues(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java index 3e3cbcdd3..6466b476e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.CancelDataLabelingJob][].
+ * Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} @@ -332,7 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.CancelDataLabelingJob][].
+   * Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java new file mode 100644 index 000000000..d73ac4ba8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} + */ +public final class CancelPipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.CancelPipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest build() { + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CancelPipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..553f82ea8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CancelPipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java new file mode 100644 index 000000000..8c37629f9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java @@ -0,0 +1,1127 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * This message will be placed in the metadata field of a
+ * google.longrunning.Operation associated with a CheckTrialEarlyStoppingState
+ * request.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata} + */ +public final class CheckTrialEarlyStoppingStateMetatdata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) + CheckTrialEarlyStoppingStateMetatdataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckTrialEarlyStoppingStateMetatdata.newBuilder() to construct. + private CheckTrialEarlyStoppingStateMetatdata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckTrialEarlyStoppingStateMetatdata() { + study_ = ""; + trial_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckTrialEarlyStoppingStateMetatdata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckTrialEarlyStoppingStateMetatdata( + 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; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + study_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + trial_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .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 suggesting Trials.
+   * 
+ * + * .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 suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + public static final int STUDY_FIELD_NUMBER = 2; + private volatile java.lang.Object study_; + /** + * + * + *
+   * The name of the Study that the Trial belongs to.
+   * 
+ * + * string study = 2; + * + * @return The study. + */ + @java.lang.Override + public java.lang.String getStudy() { + java.lang.Object ref = study_; + 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(); + study_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Study that the Trial belongs to.
+   * 
+ * + * string study = 2; + * + * @return The bytes for study. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStudyBytes() { + java.lang.Object ref = study_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + study_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIAL_FIELD_NUMBER = 3; + private volatile java.lang.Object trial_; + /** + * + * + *
+   * The Trial name.
+   * 
+ * + * string trial = 3; + * + * @return The trial. + */ + @java.lang.Override + public java.lang.String getTrial() { + java.lang.Object ref = trial_; + 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(); + trial_ = s; + return s; + } + } + /** + * + * + *
+   * The Trial name.
+   * 
+ * + * string trial = 3; + * + * @return The bytes for trial. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrialBytes() { + java.lang.Object ref = trial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trial_ = 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 (genericMetadata_ != null) { + output.writeMessage(1, getGenericMetadata()); + } + if (!getStudyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, study_); + } + if (!getTrialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, trial_); + } + 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()); + } + if (!getStudyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, study_); + } + if (!getTrialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, trial_); + } + 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.CheckTrialEarlyStoppingStateMetatdata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata other = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getStudy().equals(other.getStudy())) return false; + if (!getTrial().equals(other.getTrial())) 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 = (37 * hash) + STUDY_FIELD_NUMBER; + hash = (53 * hash) + getStudy().hashCode(); + hash = (37 * hash) + TRIAL_FIELD_NUMBER; + hash = (53 * hash) + getTrial().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + 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.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata 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.CheckTrialEarlyStoppingStateMetatdata 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; + } + /** + * + * + *
+   * This message will be placed in the metadata field of a
+   * google.longrunning.Operation associated with a CheckTrialEarlyStoppingState
+   * request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata.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; + } + study_ = ""; + + trial_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata build() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata result = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + result.study_ = study_; + result.trial_ = trial_; + 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.CheckTrialEarlyStoppingStateMetatdata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (!other.getStudy().isEmpty()) { + study_ = other.study_; + onChanged(); + } + if (!other.getTrial().isEmpty()) { + trial_ = other.trial_; + 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.CheckTrialEarlyStoppingStateMetatdata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) + 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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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_; + } + + private java.lang.Object study_ = ""; + /** + * + * + *
+     * The name of the Study that the Trial belongs to.
+     * 
+ * + * string study = 2; + * + * @return The study. + */ + public java.lang.String getStudy() { + java.lang.Object ref = study_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + study_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Study that the Trial belongs to.
+     * 
+ * + * string study = 2; + * + * @return The bytes for study. + */ + public com.google.protobuf.ByteString getStudyBytes() { + java.lang.Object ref = study_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + study_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Study that the Trial belongs to.
+     * 
+ * + * string study = 2; + * + * @param value The study to set. + * @return This builder for chaining. + */ + public Builder setStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + study_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Study that the Trial belongs to.
+     * 
+ * + * string study = 2; + * + * @return This builder for chaining. + */ + public Builder clearStudy() { + + study_ = getDefaultInstance().getStudy(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Study that the Trial belongs to.
+     * 
+ * + * string study = 2; + * + * @param value The bytes for study to set. + * @return This builder for chaining. + */ + public Builder setStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + study_ = value; + onChanged(); + return this; + } + + private java.lang.Object trial_ = ""; + /** + * + * + *
+     * The Trial name.
+     * 
+ * + * string trial = 3; + * + * @return The trial. + */ + public java.lang.String getTrial() { + java.lang.Object ref = trial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Trial name.
+     * 
+ * + * string trial = 3; + * + * @return The bytes for trial. + */ + public com.google.protobuf.ByteString getTrialBytes() { + java.lang.Object ref = trial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Trial name.
+     * 
+ * + * string trial = 3; + * + * @param value The trial to set. + * @return This builder for chaining. + */ + public Builder setTrial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trial_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Trial name.
+     * 
+ * + * string trial = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrial() { + + trial_ = getDefaultInstance().getTrial(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Trial name.
+     * 
+ * + * string trial = 3; + * + * @param value The bytes for trial to set. + * @return This builder for chaining. + */ + public Builder setTrialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trial_ = 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.CheckTrialEarlyStoppingStateMetatdata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) + private static final com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckTrialEarlyStoppingStateMetatdata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckTrialEarlyStoppingStateMetatdata(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.CheckTrialEarlyStoppingStateMetatdata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdataOrBuilder.java new file mode 100644 index 000000000..9ed9aca1f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdataOrBuilder.java @@ -0,0 +1,111 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CheckTrialEarlyStoppingStateMetatdataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The name of the Study that the Trial belongs to.
+   * 
+ * + * string study = 2; + * + * @return The study. + */ + java.lang.String getStudy(); + /** + * + * + *
+   * The name of the Study that the Trial belongs to.
+   * 
+ * + * string study = 2; + * + * @return The bytes for study. + */ + com.google.protobuf.ByteString getStudyBytes(); + + /** + * + * + *
+   * The Trial name.
+   * 
+ * + * string trial = 3; + * + * @return The trial. + */ + java.lang.String getTrial(); + /** + * + * + *
+   * The Trial name.
+   * 
+ * + * string trial = 3; + * + * @return The bytes for trial. + */ + com.google.protobuf.ByteString getTrialBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java new file mode 100644 index 000000000..2aeefdbfc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java @@ -0,0 +1,682 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest} + */ +public final class CheckTrialEarlyStoppingStateRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) + CheckTrialEarlyStoppingStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckTrialEarlyStoppingStateRequest.newBuilder() to construct. + private CheckTrialEarlyStoppingStateRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckTrialEarlyStoppingStateRequest() { + trialName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckTrialEarlyStoppingStateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckTrialEarlyStoppingStateRequest( + 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(); + + trialName_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.Builder.class); + } + + public static final int TRIAL_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object trialName_; + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The trialName. + */ + @java.lang.Override + public java.lang.String getTrialName() { + java.lang.Object ref = trialName_; + 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(); + trialName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trialName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrialNameBytes() { + java.lang.Object ref = trialName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trialName_ = 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 (!getTrialNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trialName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTrialNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trialName_); + } + 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.CheckTrialEarlyStoppingStateRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest other = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) obj; + + if (!getTrialName().equals(other.getTrialName())) 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) + TRIAL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTrialName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + 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.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest 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.CheckTrialEarlyStoppingStateRequest 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 [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest.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(); + trialName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest build() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest result = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest(this); + result.trialName_ = trialName_; + 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.CheckTrialEarlyStoppingStateRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + .getDefaultInstance()) return this; + if (!other.getTrialName().isEmpty()) { + trialName_ = other.trialName_; + 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.CheckTrialEarlyStoppingStateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object trialName_ = ""; + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The trialName. + */ + public java.lang.String getTrialName() { + java.lang.Object ref = trialName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trialName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trialName. + */ + public com.google.protobuf.ByteString getTrialNameBytes() { + java.lang.Object ref = trialName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trialName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The trialName to set. + * @return This builder for chaining. + */ + public Builder setTrialName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trialName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTrialName() { + + trialName_ = getDefaultInstance().getTrialName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for trialName to set. + * @return This builder for chaining. + */ + public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trialName_ = 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.CheckTrialEarlyStoppingStateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) + private static final com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckTrialEarlyStoppingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckTrialEarlyStoppingStateRequest(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.CheckTrialEarlyStoppingStateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequestOrBuilder.java new file mode 100644 index 000000000..915e60371 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CheckTrialEarlyStoppingStateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The trialName. + */ + java.lang.String getTrialName(); + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trialName. + */ + com.google.protobuf.ByteString getTrialNameBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java new file mode 100644 index 000000000..c67c9c7aa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java @@ -0,0 +1,565 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse} + */ +public final class CheckTrialEarlyStoppingStateResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) + CheckTrialEarlyStoppingStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CheckTrialEarlyStoppingStateResponse.newBuilder() to construct. + private CheckTrialEarlyStoppingStateResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckTrialEarlyStoppingStateResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckTrialEarlyStoppingStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CheckTrialEarlyStoppingStateResponse( + 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: + { + shouldStop_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse.Builder.class); + } + + public static final int SHOULD_STOP_FIELD_NUMBER = 1; + private boolean shouldStop_; + /** + * + * + *
+   * True if the Trial should stop.
+   * 
+ * + * bool should_stop = 1; + * + * @return The shouldStop. + */ + @java.lang.Override + public boolean getShouldStop() { + return shouldStop_; + } + + 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 (shouldStop_ != false) { + output.writeBool(1, shouldStop_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (shouldStop_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, shouldStop_); + } + 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.CheckTrialEarlyStoppingStateResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse other = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) obj; + + if (getShouldStop() != other.getShouldStop()) 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) + SHOULD_STOP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShouldStop()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + 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.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse 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.CheckTrialEarlyStoppingStateResponse 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 [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse.class, + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse.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(); + shouldStop_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse build() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse result = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse(this); + result.shouldStop_ = shouldStop_; + 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.CheckTrialEarlyStoppingStateResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + .getDefaultInstance()) return this; + if (other.getShouldStop() != false) { + setShouldStop(other.getShouldStop()); + } + 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.CheckTrialEarlyStoppingStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean shouldStop_; + /** + * + * + *
+     * True if the Trial should stop.
+     * 
+ * + * bool should_stop = 1; + * + * @return The shouldStop. + */ + @java.lang.Override + public boolean getShouldStop() { + return shouldStop_; + } + /** + * + * + *
+     * True if the Trial should stop.
+     * 
+ * + * bool should_stop = 1; + * + * @param value The shouldStop to set. + * @return This builder for chaining. + */ + public Builder setShouldStop(boolean value) { + + shouldStop_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * True if the Trial should stop.
+     * 
+ * + * bool should_stop = 1; + * + * @return This builder for chaining. + */ + public Builder clearShouldStop() { + + shouldStop_ = 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.CheckTrialEarlyStoppingStateResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) + private static final com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckTrialEarlyStoppingStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CheckTrialEarlyStoppingStateResponse(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.CheckTrialEarlyStoppingStateResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponseOrBuilder.java new file mode 100644 index 000000000..e50c4acd1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CheckTrialEarlyStoppingStateResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * True if the Trial should stop.
+   * 
+ * + * bool should_stop = 1; + * + * @return The shouldStop. + */ + boolean getShouldStop(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java new file mode 100644 index 000000000..d4cee6d32 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java @@ -0,0 +1,1271 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.CompleteTrial][google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CompleteTrialRequest} + */ +public final class CompleteTrialRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CompleteTrialRequest) + CompleteTrialRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteTrialRequest.newBuilder() to construct. + private CompleteTrialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteTrialRequest() { + name_ = ""; + infeasibleReason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompleteTrialRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteTrialRequest( + 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: + { + com.google.cloud.aiplatform.v1beta1.Measurement.Builder subBuilder = null; + if (finalMeasurement_ != null) { + subBuilder = finalMeasurement_.toBuilder(); + } + finalMeasurement_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Measurement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finalMeasurement_); + finalMeasurement_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + trialInfeasible_ = input.readBool(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + infeasibleReason_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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 Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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 FINAL_MEASUREMENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Measurement finalMeasurement_; + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the finalMeasurement field is set. + */ + @java.lang.Override + public boolean hasFinalMeasurement() { + return finalMeasurement_ != null; + } + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The finalMeasurement. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Measurement getFinalMeasurement() { + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : finalMeasurement_; + } + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { + return getFinalMeasurement(); + } + + public static final int TRIAL_INFEASIBLE_FIELD_NUMBER = 3; + private boolean trialInfeasible_; + /** + * + * + *
+   * Optional. True if the Trial cannot be run with the given Parameter, and
+   * final_measurement will be ignored.
+   * 
+ * + * bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trialInfeasible. + */ + @java.lang.Override + public boolean getTrialInfeasible() { + return trialInfeasible_; + } + + public static final int INFEASIBLE_REASON_FIELD_NUMBER = 4; + private volatile java.lang.Object infeasibleReason_; + /** + * + * + *
+   * Optional. A human readable reason why the trial was infeasible. This should
+   * only be provided if `trial_infeasible` is true.
+   * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A human readable reason why the trial was infeasible. This should
+   * only be provided if `trial_infeasible` is true.
+   * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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 (finalMeasurement_ != null) { + output.writeMessage(2, getFinalMeasurement()); + } + if (trialInfeasible_ != false) { + output.writeBool(3, trialInfeasible_); + } + if (!getInfeasibleReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, infeasibleReason_); + } + 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 (finalMeasurement_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFinalMeasurement()); + } + if (trialInfeasible_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trialInfeasible_); + } + if (!getInfeasibleReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, infeasibleReason_); + } + 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.CompleteTrialRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest other = + (com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasFinalMeasurement() != other.hasFinalMeasurement()) return false; + if (hasFinalMeasurement()) { + if (!getFinalMeasurement().equals(other.getFinalMeasurement())) return false; + } + if (getTrialInfeasible() != other.getTrialInfeasible()) return false; + if (!getInfeasibleReason().equals(other.getInfeasibleReason())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasFinalMeasurement()) { + hash = (37 * hash) + FINAL_MEASUREMENT_FIELD_NUMBER; + hash = (53 * hash) + getFinalMeasurement().hashCode(); + } + hash = (37 * hash) + TRIAL_INFEASIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrialInfeasible()); + hash = (37 * hash) + INFEASIBLE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getInfeasibleReason().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest 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.CompleteTrialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest 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.CompleteTrialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest 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.CompleteTrialRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest 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.CompleteTrialRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest 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.CompleteTrialRequest 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.CompleteTrialRequest 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.CompleteTrialRequest 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 [VizierService.CompleteTrial][google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CompleteTrialRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CompleteTrialRequest) + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.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_ = ""; + + if (finalMeasurementBuilder_ == null) { + finalMeasurement_ = null; + } else { + finalMeasurement_ = null; + finalMeasurementBuilder_ = null; + } + trialInfeasible_ = false; + + infeasibleReason_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest build() { + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest result = + new com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest(this); + result.name_ = name_; + if (finalMeasurementBuilder_ == null) { + result.finalMeasurement_ = finalMeasurement_; + } else { + result.finalMeasurement_ = finalMeasurementBuilder_.build(); + } + result.trialInfeasible_ = trialInfeasible_; + result.infeasibleReason_ = infeasibleReason_; + 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.CompleteTrialRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasFinalMeasurement()) { + mergeFinalMeasurement(other.getFinalMeasurement()); + } + if (other.getTrialInfeasible() != false) { + setTrialInfeasible(other.getTrialInfeasible()); + } + if (!other.getInfeasibleReason().isEmpty()) { + infeasibleReason_ = other.infeasibleReason_; + 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.CompleteTrialRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Measurement finalMeasurement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder> + finalMeasurementBuilder_; + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the finalMeasurement field is set. + */ + public boolean hasFinalMeasurement() { + return finalMeasurementBuilder_ != null || finalMeasurement_ != null; + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The finalMeasurement. + */ + public com.google.cloud.aiplatform.v1beta1.Measurement getFinalMeasurement() { + if (finalMeasurementBuilder_ == null) { + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : finalMeasurement_; + } else { + return finalMeasurementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { + if (finalMeasurementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finalMeasurement_ = value; + onChanged(); + } else { + finalMeasurementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFinalMeasurement( + com.google.cloud.aiplatform.v1beta1.Measurement.Builder builderForValue) { + if (finalMeasurementBuilder_ == null) { + finalMeasurement_ = builderForValue.build(); + onChanged(); + } else { + finalMeasurementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { + if (finalMeasurementBuilder_ == null) { + if (finalMeasurement_ != null) { + finalMeasurement_ = + com.google.cloud.aiplatform.v1beta1.Measurement.newBuilder(finalMeasurement_) + .mergeFrom(value) + .buildPartial(); + } else { + finalMeasurement_ = value; + } + onChanged(); + } else { + finalMeasurementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFinalMeasurement() { + if (finalMeasurementBuilder_ == null) { + finalMeasurement_ = null; + onChanged(); + } else { + finalMeasurement_ = null; + finalMeasurementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Measurement.Builder getFinalMeasurementBuilder() { + + onChanged(); + return getFinalMeasurementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { + if (finalMeasurementBuilder_ != null) { + return finalMeasurementBuilder_.getMessageOrBuilder(); + } else { + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : finalMeasurement_; + } + } + /** + * + * + *
+     * Optional. If provided, it will be used as the completed Trial's
+     * final_measurement; Otherwise, the service will auto-select a
+     * previously reported measurement as the final-measurement
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder> + getFinalMeasurementFieldBuilder() { + if (finalMeasurementBuilder_ == null) { + finalMeasurementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder>( + getFinalMeasurement(), getParentForChildren(), isClean()); + finalMeasurement_ = null; + } + return finalMeasurementBuilder_; + } + + private boolean trialInfeasible_; + /** + * + * + *
+     * Optional. True if the Trial cannot be run with the given Parameter, and
+     * final_measurement will be ignored.
+     * 
+ * + * bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trialInfeasible. + */ + @java.lang.Override + public boolean getTrialInfeasible() { + return trialInfeasible_; + } + /** + * + * + *
+     * Optional. True if the Trial cannot be run with the given Parameter, and
+     * final_measurement will be ignored.
+     * 
+ * + * bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The trialInfeasible to set. + * @return This builder for chaining. + */ + public Builder setTrialInfeasible(boolean value) { + + trialInfeasible_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. True if the Trial cannot be run with the given Parameter, and
+     * final_measurement will be ignored.
+     * 
+ * + * bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTrialInfeasible() { + + trialInfeasible_ = false; + onChanged(); + return this; + } + + private java.lang.Object infeasibleReason_ = ""; + /** + * + * + *
+     * Optional. A human readable reason why the trial was infeasible. This should
+     * only be provided if `trial_infeasible` is true.
+     * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A human readable reason why the trial was infeasible. This should
+     * only be provided if `trial_infeasible` is true.
+     * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A human readable reason why the trial was infeasible. This should
+     * only be provided if `trial_infeasible` is true.
+     * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A human readable reason why the trial was infeasible. This should
+     * only be provided if `trial_infeasible` is true.
+     * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInfeasibleReason() { + + infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A human readable reason why the trial was infeasible. This should
+     * only be provided if `trial_infeasible` is true.
+     * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.CompleteTrialRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CompleteTrialRequest) + private static final com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteTrialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteTrialRequest(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.CompleteTrialRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequestOrBuilder.java new file mode 100644 index 000000000..569877f74 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CompleteTrialRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CompleteTrialRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the finalMeasurement field is set. + */ + boolean hasFinalMeasurement(); + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The finalMeasurement. + */ + com.google.cloud.aiplatform.v1beta1.Measurement getFinalMeasurement(); + /** + * + * + *
+   * Optional. If provided, it will be used as the completed Trial's
+   * final_measurement; Otherwise, the service will auto-select a
+   * previously reported measurement as the final-measurement
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurementOrBuilder(); + + /** + * + * + *
+   * Optional. True if the Trial cannot be run with the given Parameter, and
+   * final_measurement will be ignored.
+   * 
+ * + * bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trialInfeasible. + */ + boolean getTrialInfeasible(); + + /** + * + * + *
+   * Optional. A human readable reason why the trial was infeasible. This should
+   * only be provided if `trial_infeasible` is true.
+   * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The infeasibleReason. + */ + java.lang.String getInfeasibleReason(); + /** + * + * + *
+   * Optional. A human readable reason why the trial was infeasible. This should
+   * only be provided if `trial_infeasible` is true.
+   * 
+ * + * string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for infeasibleReason. + */ + com.google.protobuf.ByteString getInfeasibleReasonBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java index c838a5ac1..f2341131a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java @@ -22,7 +22,7 @@ * * *
- * The Container Regsitry location for the container image.
+ * The Container Registry location for the container image.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ContainerRegistryDestination} @@ -338,7 +338,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The Container Regsitry location for the container image.
+   * The Container Registry location for the container image.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ContainerRegistryDestination} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java new file mode 100644 index 000000000..eec47a519 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java @@ -0,0 +1,3132 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instance of a general context.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Context} + */ +public final class Context extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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; + schemaTitle_ = ""; + schemaVersion_ = ""; + description_ = ""; + } + + @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; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaTitle_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaVersion_ = s; + break; + } + case 122: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Context.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_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); + } + + public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; + private volatile java.lang.Object schemaTitle_; + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + @java.lang.Override + public java.lang.String getSchemaTitle() { + java.lang.Object ref = schemaTitle_; + 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(); + schemaTitle_ = s; + return s; + } + } + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaTitleBytes() { + java.lang.Object ref = schemaTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; + private volatile java.lang.Object schemaVersion_; + /** + * + * + *
+   * The version of the schema in schema_name to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + @java.lang.Override + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + 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(); + schemaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the schema in schema_name to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 15; + private com.google.protobuf.Struct metadata_; + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 16; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of the Context
+   * 
+ * + * string description = 16; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of the Context
+   * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 (!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)); + } + if (!getSchemaTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, schemaTitle_); + } + if (!getSchemaVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, schemaVersion_); + } + if (metadata_ != null) { + output.writeMessage(15, getMetadata()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); + } + 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(); + } + if (!getSchemaTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, schemaTitle_); + } + if (!getSchemaVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, schemaVersion_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getMetadata()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); + } + 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.Context)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Context other = + (com.google.cloud.aiplatform.v1beta1.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 (!getSchemaTitle().equals(other.getSchemaTitle())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getDescription().equals(other.getDescription())) 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 = (37 * hash) + SCHEMA_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getSchemaTitle().hashCode(); + hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Context parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Context} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Context) + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Context.class, + com.google.cloud.aiplatform.v1beta1.Context.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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); + schemaTitle_ = ""; + + schemaVersion_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContextProto + .internal_static_google_cloud_aiplatform_v1beta1_Context_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context build() { + com.google.cloud.aiplatform.v1beta1.Context result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context buildPartial() { + com.google.cloud.aiplatform.v1beta1.Context result = + new com.google.cloud.aiplatform.v1beta1.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_; + result.schemaTitle_ = schemaTitle_; + result.schemaVersion_ = schemaVersion_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.description_ = description_; + 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.Context) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Context) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Context other) { + if (other == com.google.cloud.aiplatform.v1beta1.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(); + } + if (!other.getSchemaTitle().isEmpty()) { + schemaTitle_ = other.schemaTitle_; + onChanged(); + } + if (!other.getSchemaVersion().isEmpty()) { + schemaVersion_ = other.schemaVersion_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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.Context parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.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; + } + + private java.lang.Object schemaTitle_ = ""; + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + public java.lang.String getSchemaTitle() { + java.lang.Object ref = schemaTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + public com.google.protobuf.ByteString getSchemaTitleBytes() { + java.lang.Object ref = schemaTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @param value The schemaTitle to set. + * @return This builder for chaining. + */ + public Builder setSchemaTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return This builder for chaining. + */ + public Builder clearSchemaTitle() { + + schemaTitle_ = getDefaultInstance().getSchemaTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @param value The bytes for schemaTitle to set. + * @return This builder for chaining. + */ + public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaTitle_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaVersion_ = ""; + /** + * + * + *
+     * The version of the schema in schema_name to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the schema in schema_name to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the schema in schema_name to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the schema in schema_name to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + + schemaVersion_ = getDefaultInstance().getSchemaVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the schema in schema_name to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @param value The bytes for schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * Properties of the Context.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Description of the Context
+     * 
+ * + * string description = 16; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of the Context
+     * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of the Context
+     * 
+ * + * string description = 16; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Context
+     * 
+ * + * string description = 16; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Context
+     * 
+ * + * string description = 16; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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.Context) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Context) + private static final com.google.cloud.aiplatform.v1beta1.Context DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Context(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java new file mode 100644 index 000000000..30f6e4adf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java @@ -0,0 +1,269 @@ +/* + * 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 ContextName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_METADATA_STORE_CONTEXT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String metadataStore; + private final String context; + + @Deprecated + protected ContextName() { + project = null; + location = null; + metadataStore = null; + context = null; + } + + private ContextName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + metadataStore = Preconditions.checkNotNull(builder.getMetadataStore()); + context = Preconditions.checkNotNull(builder.getContext()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getContext() { + return context; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContextName of( + String project, String location, String metadataStore, String context) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setContext(context) + .build(); + } + + public static String format( + String project, String location, String metadataStore, String context) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setContext(context) + .build() + .toString(); + } + + public static ContextName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_METADATA_STORE_CONTEXT.validatedMatch( + formattedString, "ContextName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("metadata_store"), + matchMap.get("context")); + } + + 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 (ContextName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_METADATA_STORE_CONTEXT.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 (metadataStore != null) { + fieldMapBuilder.put("metadata_store", metadataStore); + } + if (context != null) { + fieldMapBuilder.put("context", context); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_METADATA_STORE_CONTEXT.instantiate( + "project", + project, + "location", + location, + "metadata_store", + metadataStore, + "context", + context); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ContextName that = ((ContextName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.metadataStore, that.metadataStore) + && Objects.equals(this.context, that.context); + } + 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(metadataStore); + h *= 1000003; + h ^= Objects.hashCode(context); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}. + */ + public static class Builder { + private String project; + private String location; + private String metadataStore; + private String context; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getContext() { + return context; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMetadataStore(String metadataStore) { + this.metadataStore = metadataStore; + return this; + } + + public Builder setContext(String context) { + this.context = context; + return this; + } + + private Builder(ContextName contextName) { + project = contextName.project; + location = contextName.location; + metadataStore = contextName.metadataStore; + context = contextName.context; + } + + public ContextName build() { + return new ContextName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java new file mode 100644 index 000000000..3b2791cb1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java @@ -0,0 +1,444 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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); + + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + java.lang.String getSchemaTitle(); + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + com.google.protobuf.ByteString getSchemaTitleBytes(); + + /** + * + * + *
+   * The version of the schema in schema_name to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + java.lang.String getSchemaVersion(); + /** + * + * + *
+   * The version of the schema in schema_name to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + com.google.protobuf.ByteString getSchemaVersionBytes(); + + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + /** + * + * + *
+   * Properties of the Context.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Description of the Context
+   * 
+ * + * string description = 16; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of the Context
+   * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} 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 new file mode 100644 index 000000000..e59fa62d3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java @@ -0,0 +1,127 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1beta1; + +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_v1beta1_Context_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Context_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Context_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_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/v1beta1/contex" + + "t.proto\022\037google.cloud.aiplatform.v1beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032+google/cloud/aipla" + + "tform/v1beta1/value.proto\032\034google/protob" + + "uf/struct.proto\032\037google/protobuf/timesta" + + "mp.proto\032\034google/api/annotations.proto\"\330" + + "\004\n\007Context\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\002 \001(\t\022\014\n\004etag\030\010 \001(\t\022D\n\006labels\030\t \003(" + + "\01324.google.cloud.aiplatform.v1beta1.Cont" + + "ext.LabelsEntry\0224\n\013create_time\030\n \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + + "time\030\013 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022B\n\017parent_contexts\030\014 \003(\tB)\340A\003\372A#\n!ai" + + "platform.googleapis.com/Context\022\024\n\014schem" + + "a_title\030\r \001(\t\022\026\n\016schema_version\030\016 \001(\t\022)\n" + + "\010metadata\030\017 \001(\0132\027.google.protobuf.Struct" + + "\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n!aipl" + + "atform.googleapis.com/Context\022Zprojects/" + + "{project}/locations/{location}/metadataS" + + "tores/{metadata_store}/contexts/{context" + + "}B\200\001\n#com.google.cloud.aiplatform.v1beta" + + "1B\014ContextProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatformb\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.v1beta1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Context_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Context_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Context_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Etag", + "Labels", + "CreateTime", + "UpdateTime", + "ParentContexts", + "SchemaTitle", + "SchemaVersion", + "Metadata", + "Description", + }); + internal_static_google_cloud_aiplatform_v1beta1_Context_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Context_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Context_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java new file mode 100644 index 000000000..9149ab446 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java @@ -0,0 +1,1195 @@ +/* + * 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.CreateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateArtifactRequest} + */ +public final class CreateArtifactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + CreateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactRequest.newBuilder() to construct. + private CreateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateArtifactRequest() { + parent_ = ""; + artifactId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateArtifactRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateArtifactRequest( + 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.v1beta1.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + artifactId_ = 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_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Artifact should
+   * be created.
+   * 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 resource name of the MetadataStore where the Artifact should
+   * be created.
+   * 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 ARTIFACT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Artifact artifact_; + /** + * + * + *
+   * Required. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + @java.lang.Override + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * + * + *
+   * Required. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } + /** + * + * + *
+   * Required. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object artifactId_; + /** + * + * + *
+   * The {artifact} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * If not provided, the Artifact's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Artifact.)
+   * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + @java.lang.Override + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + 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(); + artifactId_ = s; + return s; + } + } + /** + * + * + *
+   * The {artifact} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * If not provided, the Artifact's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Artifact.)
+   * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = 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 (artifact_ != null) { + output.writeMessage(2, getArtifact()); + } + if (!getArtifactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, artifactId_); + } + 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 (artifact_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArtifact()); + } + if (!getArtifactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, artifactId_); + } + 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.CreateArtifactRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact().equals(other.getArtifact())) return false; + } + if (!getArtifactId().equals(other.getArtifactId())) 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 (hasArtifact()) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + } + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest 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.CreateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest 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.CreateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest 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.CreateArtifactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest 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.CreateArtifactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest 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.CreateArtifactRequest 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.CreateArtifactRequest 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.CreateArtifactRequest 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.CreateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateArtifactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.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 (artifactBuilder_ == null) { + artifact_ = null; + } else { + artifact_ = null; + artifactBuilder_ = null; + } + artifactId_ = ""; + + 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_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(this); + result.parent_ = parent_; + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + result.artifactId_ = artifactId_; + 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.CreateArtifactRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + 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.CreateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore where the Artifact should
+     * be created.
+     * 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 resource name of the MetadataStore where the Artifact should
+     * be created.
+     * 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 resource name of the MetadataStore where the Artifact should
+     * be created.
+     * 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 resource name of the MetadataStore where the Artifact should
+     * be created.
+     * 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 resource name of the MetadataStore where the Artifact should
+     * be created.
+     * 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 com.google.cloud.aiplatform.v1beta1.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + artifactBuilder_; + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setArtifact( + com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + com.google.cloud.aiplatform.v1beta1.Artifact.newBuilder(artifact_) + .mergeFrom(value) + .buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } + } + /** + * + * + *
+     * Required. The Artifact to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder>( + getArtifact(), getParentForChildren(), isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + + private java.lang.Object artifactId_ = ""; + /** + * + * + *
+     * The {artifact} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * If not provided, the Artifact's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Artifact.)
+     * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The {artifact} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * If not provided, the Artifact's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Artifact.)
+     * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The {artifact} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * If not provided, the Artifact's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Artifact.)
+     * 
+ * + * string artifact_id = 3; + * + * @param value The artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The {artifact} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * If not provided, the Artifact's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Artifact.)
+     * 
+ * + * string artifact_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The {artifact} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * If not provided, the Artifact's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Artifact.)
+     * 
+ * + * string artifact_id = 3; + * + * @param value The bytes for artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = 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.CreateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateArtifactRequest(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.CreateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequestOrBuilder.java new file mode 100644 index 000000000..155a70fcd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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 CreateArtifactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Artifact should
+   * be created.
+   * 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 resource name of the MetadataStore where the Artifact should
+   * be created.
+   * 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. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + boolean hasArtifact(); + /** + * + * + *
+   * Required. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + com.google.cloud.aiplatform.v1beta1.Artifact getArtifact(); + /** + * + * + *
+   * Required. The Artifact to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder(); + + /** + * + * + *
+   * The {artifact} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * If not provided, the Artifact's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Artifact.)
+   * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + java.lang.String getArtifactId(); + /** + * + * + *
+   * The {artifact} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * If not provided, the Artifact's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Artifact.)
+   * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + com.google.protobuf.ByteString getArtifactIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java new file mode 100644 index 000000000..c3ebda117 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java @@ -0,0 +1,1194 @@ +/* + * 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.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateContextRequest} + */ +public final class CreateContextRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateContextRequest) + CreateContextRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateContextRequest.newBuilder() to construct. + private CreateContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateContextRequest() { + parent_ = ""; + contextId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateContextRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateContextRequest( + 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.v1beta1.Context.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + contextId_ = 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_CreateContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateContextRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Context should be
+   * created.
+   * 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 resource name of the MetadataStore where the Context should be
+   * created.
+   * 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 CONTEXT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Context context_; + /** + * + * + *
+   * Required. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + * + * + *
+   * Required. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getContext() { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } + /** + * + * + *
+   * Required. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int CONTEXT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object contextId_; + /** + * + * + *
+   * The {context} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+   * If not provided, the Context's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Context.)
+   * 
+ * + * string context_id = 3; + * + * @return The contextId. + */ + @java.lang.Override + public java.lang.String getContextId() { + java.lang.Object ref = contextId_; + 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(); + contextId_ = s; + return s; + } + } + /** + * + * + *
+   * The {context} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+   * If not provided, the Context's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Context.)
+   * 
+ * + * string context_id = 3; + * + * @return The bytes for contextId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextIdBytes() { + java.lang.Object ref = contextId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextId_ = 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 (context_ != null) { + output.writeMessage(2, getContext()); + } + if (!getContextIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contextId_); + } + 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 (context_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContext()); + } + if (!getContextIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contextId_); + } + 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.CreateContextRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateContextRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateContextRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext().equals(other.getContext())) return false; + } + if (!getContextId().equals(other.getContextId())) 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 (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContextId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest 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.CreateContextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest 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.CreateContextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest 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.CreateContextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest 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.CreateContextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest 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.CreateContextRequest 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.CreateContextRequest 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.CreateContextRequest 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.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateContextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateContextRequest) + com.google.cloud.aiplatform.v1beta1.CreateContextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateContextRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateContextRequest.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 (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + contextId_ = ""; + + 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_CreateContextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateContextRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateContextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateContextRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateContextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateContextRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateContextRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateContextRequest(this); + result.parent_ = parent_; + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + result.contextId_ = contextId_; + 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.CreateContextRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateContextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateContextRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateContextRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (!other.getContextId().isEmpty()) { + contextId_ = other.contextId_; + 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.CreateContextRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateContextRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore where the Context should be
+     * created.
+     * 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 resource name of the MetadataStore where the Context should be
+     * created.
+     * 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 resource name of the MetadataStore where the Context should be
+     * created.
+     * 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 resource name of the MetadataStore where the Context should be
+     * created.
+     * 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 resource name of the MetadataStore where the Context should be
+     * created.
+     * 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 com.google.cloud.aiplatform.v1beta1.Context context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + contextBuilder_; + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + public com.google.cloud.aiplatform.v1beta1.Context getContext() { + if (contextBuilder_ == null) { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.cloud.aiplatform.v1beta1.Context.newBuilder(context_) + .mergeFrom(value) + .buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } + } + /** + * + * + *
+     * Required. The Context to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>( + getContext(), getParentForChildren(), isClean()); + context_ = null; + } + return contextBuilder_; + } + + private java.lang.Object contextId_ = ""; + /** + * + * + *
+     * The {context} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+     * If not provided, the Context's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Context.)
+     * 
+ * + * string context_id = 3; + * + * @return The contextId. + */ + public java.lang.String getContextId() { + java.lang.Object ref = contextId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The {context} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+     * If not provided, the Context's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Context.)
+     * 
+ * + * string context_id = 3; + * + * @return The bytes for contextId. + */ + public com.google.protobuf.ByteString getContextIdBytes() { + java.lang.Object ref = contextId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The {context} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+     * If not provided, the Context's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Context.)
+     * 
+ * + * string context_id = 3; + * + * @param value The contextId to set. + * @return This builder for chaining. + */ + public Builder setContextId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contextId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The {context} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+     * If not provided, the Context's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Context.)
+     * 
+ * + * string context_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearContextId() { + + contextId_ = getDefaultInstance().getContextId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The {context} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+     * If not provided, the Context's ID will be a UUID generated by the service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+     * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+     * caller can't view the preexisting Context.)
+     * 
+ * + * string context_id = 3; + * + * @param value The bytes for contextId to set. + * @return This builder for chaining. + */ + public Builder setContextIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contextId_ = 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.CreateContextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateContextRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateContextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateContextRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateContextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateContextRequest(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.CreateContextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequestOrBuilder.java new file mode 100644 index 000000000..eb50f90b0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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 CreateContextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Context should be
+   * created.
+   * 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 resource name of the MetadataStore where the Context should be
+   * created.
+   * 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. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * + * + *
+   * Required. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + com.google.cloud.aiplatform.v1beta1.Context getContext(); + /** + * + * + *
+   * Required. The Context to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder(); + + /** + * + * + *
+   * The {context} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+   * If not provided, the Context's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Context.)
+   * 
+ * + * string context_id = 3; + * + * @return The contextId. + */ + java.lang.String getContextId(); + /** + * + * + *
+   * The {context} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
+   * If not provided, the Context's ID will be a UUID generated by the service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Contexts in the parent MetadataStore. (Otherwise
+   * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
+   * caller can't view the preexisting Context.)
+   * 
+ * + * string context_id = 3; + * + * @return The bytes for contextId. + */ + com.google.protobuf.ByteString getContextIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java index a39c8ade4..76b520d92 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.CreateDataLabelingJob][].
+ * Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} @@ -416,7 +416,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.CreateDataLabelingJob][].
+   * Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java new file mode 100644 index 000000000..dd90ddac9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java @@ -0,0 +1,755 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform create EntityType.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} + */ +public final class CreateEntityTypeOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + CreateEntityTypeOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntityTypeOperationMetadata.newBuilder() to construct. + private CreateEntityTypeOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntityTypeOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntityTypeOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateEntityTypeOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for EntityType.
+   * 
+ * + * .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 EntityType.
+   * 
+ * + * .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 EntityType.
+   * 
+ * + * .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.CreateEntityTypeOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) 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.CreateEntityTypeOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + 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.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata 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.CreateEntityTypeOperationMetadata 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 create EntityType.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(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.CreateEntityTypeOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + .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.CreateEntityTypeOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + 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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for EntityType.
+     * 
+ * + * .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 EntityType.
+     * 
+ * + * .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.CreateEntityTypeOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEntityTypeOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEntityTypeOperationMetadata(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.CreateEntityTypeOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadataOrBuilder.java new file mode 100644 index 000000000..205e5974a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateEntityTypeOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for EntityType.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for EntityType.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for EntityType.
+   * 
+ * + * .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/CreateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java new file mode 100644 index 000000000..71473900e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java @@ -0,0 +1,1150 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} + */ +public final class CreateEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + CreateEntityTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntityTypeRequest.newBuilder() to construct. + private CreateEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntityTypeRequest() { + parent_ = ""; + entityTypeId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntityTypeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateEntityTypeRequest( + 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.v1beta1.EntityType.Builder subBuilder = null; + if (entityType_ != null) { + subBuilder = entityType_.toBuilder(); + } + entityType_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EntityType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityType_); + entityType_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityTypeId_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Featurestore to create EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 Featurestore to create EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 ENTITY_TYPE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.EntityType entityType_; + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return Whether the entityType field is set. + */ + @java.lang.Override + public boolean hasEntityType() { + return entityType_ != null; + } + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { + return getEntityType(); + } + + public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object entityTypeId_; + /** + * + * + *
+   * Required. The ID to use for the EntityType, which will become the final component of
+   * the EntityType's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within a featurestore.
+   * 
+ * + * string entity_type_id = 3 [(.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. The ID to use for the EntityType, which will become the final component of
+   * the EntityType's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within a featurestore.
+   * 
+ * + * string entity_type_id = 3 [(.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; + } + } + + 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 (entityType_ != null) { + output.writeMessage(2, getEntityType()); + } + if (!getEntityTypeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entityTypeId_); + } + 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 (entityType_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityType()); + } + if (!getEntityTypeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entityTypeId_); + } + 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.CreateEntityTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasEntityType() != other.hasEntityType()) return false; + if (hasEntityType()) { + if (!getEntityType().equals(other.getEntityType())) return false; + } + if (!getEntityTypeId().equals(other.getEntityTypeId())) 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 (hasEntityType()) { + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + } + hash = (37 * hash) + ENTITY_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityTypeId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest 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.CreateEntityTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest 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.CreateEntityTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest 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.CreateEntityTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest 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.CreateEntityTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest 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.CreateEntityTypeRequest 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.CreateEntityTypeRequest 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.CreateEntityTypeRequest 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.CreateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.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 (entityTypeBuilder_ == null) { + entityType_ = null; + } else { + entityType_ = null; + entityTypeBuilder_ = null; + } + entityTypeId_ = ""; + + 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_CreateEntityTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(this); + result.parent_ = parent_; + if (entityTypeBuilder_ == null) { + result.entityType_ = entityType_; + } else { + result.entityType_ = entityTypeBuilder_.build(); + } + result.entityTypeId_ = entityTypeId_; + 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.CreateEntityTypeRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasEntityType()) { + mergeEntityType(other.getEntityType()); + } + if (!other.getEntityTypeId().isEmpty()) { + entityTypeId_ = other.entityTypeId_; + 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.CreateEntityTypeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Featurestore to create EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to create EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to create EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to create EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to create EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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.v1beta1.EntityType entityType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + entityTypeBuilder_; + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return Whether the entityType field is set. + */ + public boolean hasEntityType() { + return entityTypeBuilder_ != null || entityType_ != null; + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return The entityType. + */ + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { + if (entityTypeBuilder_ == null) { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } else { + return entityTypeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public Builder setEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityType_ = value; + onChanged(); + } else { + entityTypeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public Builder setEntityType( + com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { + if (entityTypeBuilder_ == null) { + entityType_ = builderForValue.build(); + onChanged(); + } else { + entityTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypeBuilder_ == null) { + if (entityType_ != null) { + entityType_ = + com.google.cloud.aiplatform.v1beta1.EntityType.newBuilder(entityType_) + .mergeFrom(value) + .buildPartial(); + } else { + entityType_ = value; + } + onChanged(); + } else { + entityTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public Builder clearEntityType() { + if (entityTypeBuilder_ == null) { + entityType_ = null; + onChanged(); + } else { + entityType_ = null; + entityTypeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public com.google.cloud.aiplatform.v1beta1.EntityType.Builder getEntityTypeBuilder() { + + onChanged(); + return getEntityTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { + if (entityTypeBuilder_ != null) { + return entityTypeBuilder_.getMessageOrBuilder(); + } else { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } + } + /** + * + * + *
+     * The EntityType to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + getEntityTypeFieldBuilder() { + if (entityTypeBuilder_ == null) { + entityTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder>( + getEntityType(), getParentForChildren(), isClean()); + entityType_ = null; + } + return entityTypeBuilder_; + } + + private java.lang.Object entityTypeId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the EntityType, which will become the final component of
+     * the EntityType's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within a featurestore.
+     * 
+ * + * string entity_type_id = 3 [(.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. The ID to use for the EntityType, which will become the final component of
+     * the EntityType's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within a featurestore.
+     * 
+ * + * string entity_type_id = 3 [(.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. The ID to use for the EntityType, which will become the final component of
+     * the EntityType's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within a featurestore.
+     * 
+ * + * string entity_type_id = 3 [(.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. The ID to use for the EntityType, which will become the final component of
+     * the EntityType's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within a featurestore.
+     * 
+ * + * string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityTypeId() { + + entityTypeId_ = getDefaultInstance().getEntityTypeId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the EntityType, which will become the final component of
+     * the EntityType's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within a featurestore.
+     * 
+ * + * string entity_type_id = 3 [(.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; + } + + @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.CreateEntityTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEntityTypeRequest(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.CreateEntityTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequestOrBuilder.java new file mode 100644 index 000000000..b42bf8f6d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateEntityTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Featurestore to create EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 Featurestore to create EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return Whether the entityType field is set. + */ + boolean hasEntityType(); + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + * + * @return The entityType. + */ + com.google.cloud.aiplatform.v1beta1.EntityType getEntityType(); + /** + * + * + *
+   * The EntityType to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; + */ + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the EntityType, which will become the final component of
+   * the EntityType's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within a featurestore.
+   * 
+ * + * string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityTypeId. + */ + java.lang.String getEntityTypeId(); + /** + * + * + *
+   * Required. The ID to use for the EntityType, which will become the final component of
+   * the EntityType's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within a featurestore.
+   * 
+ * + * string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityTypeId. + */ + com.google.protobuf.ByteString getEntityTypeIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java new file mode 100644 index 000000000..b57bf21e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java @@ -0,0 +1,1202 @@ +/* + * 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.CreateExecution][google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateExecutionRequest} + */ +public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + CreateExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExecutionRequest.newBuilder() to construct. + private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExecutionRequest() { + parent_ = ""; + executionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateExecutionRequest( + 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.v1beta1.Execution.Builder subBuilder = null; + if (execution_ != null) { + subBuilder = execution_.toBuilder(); + } + execution_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Execution.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(execution_); + execution_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + executionId_ = 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_CreateExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Execution should
+   * be created.
+   * 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 resource name of the MetadataStore where the Execution should
+   * be created.
+   * 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 EXECUTION_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Execution execution_; + /** + * + * + *
+   * Required. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return execution_ != null; + } + /** + * + * + *
+   * Required. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + /** + * + * + *
+   * Required. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { + return getExecution(); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object executionId_; + /** + * + * + *
+   * The {execution} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * If not provided, the Execution's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Executions in the parent MetadataStore.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting Execution.)
+   * 
+ * + * string execution_id = 3; + * + * @return The executionId. + */ + @java.lang.Override + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + 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(); + executionId_ = s; + return s; + } + } + /** + * + * + *
+   * The {execution} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * If not provided, the Execution's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Executions in the parent MetadataStore.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting Execution.)
+   * 
+ * + * string execution_id = 3; + * + * @return The bytes for executionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + executionId_ = 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 (execution_ != null) { + output.writeMessage(2, getExecution()); + } + if (!getExecutionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executionId_); + } + 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 (execution_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecution()); + } + if (!getExecutionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executionId_); + } + 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.CreateExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasExecution() != other.hasExecution()) return false; + if (hasExecution()) { + if (!getExecution().equals(other.getExecution())) return false; + } + if (!getExecutionId().equals(other.getExecutionId())) 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 (hasExecution()) { + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + } + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest 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.CreateExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest 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.CreateExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest 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.CreateExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest 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.CreateExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest 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.CreateExecutionRequest 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.CreateExecutionRequest 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.CreateExecutionRequest 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.CreateExecution][google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.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 (executionBuilder_ == null) { + execution_ = null; + } else { + execution_ = null; + executionBuilder_ = null; + } + executionId_ = ""; + + 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_CreateExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(this); + result.parent_ = parent_; + if (executionBuilder_ == null) { + result.execution_ = execution_; + } else { + result.execution_ = executionBuilder_.build(); + } + result.executionId_ = executionId_; + 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.CreateExecutionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasExecution()) { + mergeExecution(other.getExecution()); + } + if (!other.getExecutionId().isEmpty()) { + executionId_ = other.executionId_; + 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.CreateExecutionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore where the Execution should
+     * be created.
+     * 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 resource name of the MetadataStore where the Execution should
+     * be created.
+     * 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 resource name of the MetadataStore where the Execution should
+     * be created.
+     * 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 resource name of the MetadataStore where the Execution should
+     * be created.
+     * 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 resource name of the MetadataStore where the Execution should
+     * be created.
+     * 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 com.google.cloud.aiplatform.v1beta1.Execution execution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + executionBuilder_; + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + public boolean hasExecution() { + return executionBuilder_ != null || execution_ != null; + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + if (executionBuilder_ == null) { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } else { + return executionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execution_ = value; + onChanged(); + } else { + executionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution( + com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionBuilder_ == null) { + execution_ = builderForValue.build(); + onChanged(); + } else { + executionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionBuilder_ == null) { + if (execution_ != null) { + execution_ = + com.google.cloud.aiplatform.v1beta1.Execution.newBuilder(execution_) + .mergeFrom(value) + .buildPartial(); + } else { + execution_ = value; + } + onChanged(); + } else { + executionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExecution() { + if (executionBuilder_ == null) { + execution_ = null; + onChanged(); + } else { + execution_ = null; + executionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { + + onChanged(); + return getExecutionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { + if (executionBuilder_ != null) { + return executionBuilder_.getMessageOrBuilder(); + } else { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + } + /** + * + * + *
+     * Required. The Execution to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + getExecutionFieldBuilder() { + if (executionBuilder_ == null) { + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); + execution_ = null; + } + return executionBuilder_; + } + + private java.lang.Object executionId_ = ""; + /** + * + * + *
+     * The {execution} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * If not provided, the Execution's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Executions in the parent MetadataStore.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting Execution.)
+     * 
+ * + * string execution_id = 3; + * + * @return The executionId. + */ + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The {execution} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * If not provided, the Execution's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Executions in the parent MetadataStore.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting Execution.)
+     * 
+ * + * string execution_id = 3; + * + * @return The bytes for executionId. + */ + public com.google.protobuf.ByteString getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The {execution} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * If not provided, the Execution's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Executions in the parent MetadataStore.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting Execution.)
+     * 
+ * + * string execution_id = 3; + * + * @param value The executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The {execution} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * If not provided, the Execution's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Executions in the parent MetadataStore.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting Execution.)
+     * 
+ * + * string execution_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearExecutionId() { + + executionId_ = getDefaultInstance().getExecutionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The {execution} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * If not provided, the Execution's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all Executions in the parent MetadataStore.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting Execution.)
+     * 
+ * + * string execution_id = 3; + * + * @param value The bytes for executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executionId_ = 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.CreateExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateExecutionRequest(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.CreateExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequestOrBuilder.java new file mode 100644 index 000000000..d5529236b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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 CreateExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the Execution should
+   * be created.
+   * 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 resource name of the MetadataStore where the Execution should
+   * be created.
+   * 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. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + * + * + *
+   * Required. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + com.google.cloud.aiplatform.v1beta1.Execution getExecution(); + /** + * + * + *
+   * Required. The Execution to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder(); + + /** + * + * + *
+   * The {execution} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * If not provided, the Execution's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Executions in the parent MetadataStore.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting Execution.)
+   * 
+ * + * string execution_id = 3; + * + * @return The executionId. + */ + java.lang.String getExecutionId(); + /** + * + * + *
+   * The {execution} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * If not provided, the Execution's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all Executions in the parent MetadataStore.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting Execution.)
+   * 
+ * + * string execution_id = 3; + * + * @return The bytes for executionId. + */ + com.google.protobuf.ByteString getExecutionIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java new file mode 100644 index 000000000..8114087b3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java @@ -0,0 +1,755 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform create Feature.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} + */ +public final class CreateFeatureOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + CreateFeatureOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFeatureOperationMetadata.newBuilder() to construct. + private CreateFeatureOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFeatureOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeatureOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFeatureOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .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 Feature.
+   * 
+ * + * .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 Feature.
+   * 
+ * + * .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.CreateFeatureOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) 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.CreateFeatureOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + 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.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata 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 create Feature.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(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.CreateFeatureOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + .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.CreateFeatureOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + 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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Feature.
+     * 
+ * + * .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 Feature.
+     * 
+ * + * .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.CreateFeatureOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureOperationMetadata(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.CreateFeatureOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadataOrBuilder.java new file mode 100644 index 000000000..6d1e5cb3c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateFeatureOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Feature.
+   * 
+ * + * .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/CreateFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java new file mode 100644 index 000000000..9c51f930e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java @@ -0,0 +1,1173 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeatureRequest} + */ +public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateFeatureRequest) + CreateFeatureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFeatureRequest.newBuilder() to construct. + private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFeatureRequest() { + parent_ = ""; + featureId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeatureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFeatureRequest( + 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.v1beta1.Feature.Builder subBuilder = null; + if (feature_ != null) { + subBuilder = feature_.toBuilder(); + } + feature_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feature_); + feature_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + featureId_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the EntityType to create a Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType to create a Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 FEATURE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Feature feature_; + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + @java.lang.Override + public boolean hasFeature() { + return feature_ != null; + } + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { + return getFeature(); + } + + public static final int FEATURE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object featureId_; + /** + * + * + *
+   * Required. The ID to use for the Feature, which will become the final component of
+   * the Feature's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within an EntityType.
+   * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + @java.lang.Override + public java.lang.String getFeatureId() { + java.lang.Object ref = featureId_; + 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(); + featureId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for the Feature, which will become the final component of
+   * the Feature's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within an EntityType.
+   * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureIdBytes() { + java.lang.Object ref = featureId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureId_ = 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 (feature_ != null) { + output.writeMessage(2, getFeature()); + } + if (!getFeatureIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, featureId_); + } + 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 (feature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeature()); + } + if (!getFeatureIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, featureId_); + } + 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.CreateFeatureRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFeature() != other.hasFeature()) return false; + if (hasFeature()) { + if (!getFeature().equals(other.getFeature())) return false; + } + if (!getFeatureId().equals(other.getFeatureId())) 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 (hasFeature()) { + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getFeature().hashCode(); + } + hash = (37 * hash) + FEATURE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFeatureId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest 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.CreateFeatureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest 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.CreateFeatureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest 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.CreateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest 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.CreateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest 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.CreateFeatureRequest 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.CreateFeatureRequest 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.CreateFeatureRequest 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.CreateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeatureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateFeatureRequest) + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.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 (featureBuilder_ == null) { + feature_ = null; + } else { + feature_ = null; + featureBuilder_ = null; + } + featureId_ = ""; + + 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_CreateFeatureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(this); + result.parent_ = parent_; + if (featureBuilder_ == null) { + result.feature_ = feature_; + } else { + result.feature_ = featureBuilder_.build(); + } + result.featureId_ = featureId_; + 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.CreateFeatureRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasFeature()) { + mergeFeature(other.getFeature()); + } + if (!other.getFeatureId().isEmpty()) { + featureId_ = other.featureId_; + 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.CreateFeatureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType to create a Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create a Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create a Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create a Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to create a Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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.v1beta1.Feature feature_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + featureBuilder_; + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + public boolean hasFeature() { + return featureBuilder_ != null || feature_ != null; + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { + if (featureBuilder_ == null) { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } else { + return featureBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feature_ = value; + onChanged(); + } else { + featureBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featureBuilder_ == null) { + feature_ = builderForValue.build(); + onChanged(); + } else { + featureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featureBuilder_ == null) { + if (feature_ != null) { + feature_ = + com.google.cloud.aiplatform.v1beta1.Feature.newBuilder(feature_) + .mergeFrom(value) + .buildPartial(); + } else { + feature_ = value; + } + onChanged(); + } else { + featureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeature() { + if (featureBuilder_ == null) { + feature_ = null; + onChanged(); + } else { + feature_ = null; + featureBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeatureBuilder() { + + onChanged(); + return getFeatureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { + if (featureBuilder_ != null) { + return featureBuilder_.getMessageOrBuilder(); + } else { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } + } + /** + * + * + *
+     * Required. The Feature to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + getFeatureFieldBuilder() { + if (featureBuilder_ == null) { + featureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder>( + getFeature(), getParentForChildren(), isClean()); + feature_ = null; + } + return featureBuilder_; + } + + private java.lang.Object featureId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the Feature, which will become the final component of
+     * the Feature's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within an EntityType.
+     * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + public java.lang.String getFeatureId() { + java.lang.Object ref = featureId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featureId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Feature, which will become the final component of
+     * the Feature's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within an EntityType.
+     * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + public com.google.protobuf.ByteString getFeatureIdBytes() { + java.lang.Object ref = featureId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Feature, which will become the final component of
+     * the Feature's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within an EntityType.
+     * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The featureId to set. + * @return This builder for chaining. + */ + public Builder setFeatureId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + featureId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Feature, which will become the final component of
+     * the Feature's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within an EntityType.
+     * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFeatureId() { + + featureId_ = getDefaultInstance().getFeatureId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Feature, which will become the final component of
+     * the Feature's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within an EntityType.
+     * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for featureId to set. + * @return This builder for chaining. + */ + public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + featureId_ = 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.CreateFeatureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateFeatureRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(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.CreateFeatureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java new file mode 100644 index 000000000..5025d9c63 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateFeatureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateFeatureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the EntityType to create a Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType to create a Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + boolean hasFeature(); + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + com.google.cloud.aiplatform.v1beta1.Feature getFeature(); + /** + * + * + *
+   * Required. The Feature to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the Feature, which will become the final component of
+   * the Feature's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within an EntityType.
+   * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + java.lang.String getFeatureId(); + /** + * + * + *
+   * Required. The ID to use for the Feature, which will become the final component of
+   * the Feature's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within an EntityType.
+   * 
+ * + * string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + com.google.protobuf.ByteString getFeatureIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java new file mode 100644 index 000000000..37d93abc4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java @@ -0,0 +1,760 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform create Featurestore.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} + */ +public final class CreateFeaturestoreOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + CreateFeaturestoreOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFeaturestoreOperationMetadata.newBuilder() to construct. + private CreateFeaturestoreOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFeaturestoreOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeaturestoreOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFeaturestoreOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .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 Featurestore.
+   * 
+ * + * .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 Featurestore.
+   * 
+ * + * .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.CreateFeaturestoreOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) 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.CreateFeaturestoreOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + 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.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata 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 create Featurestore.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(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.CreateFeaturestoreOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + .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.CreateFeaturestoreOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + 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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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.CreateFeaturestoreOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeaturestoreOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeaturestoreOperationMetadata(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.CreateFeaturestoreOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadataOrBuilder.java new file mode 100644 index 000000000..f3f5b60b6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateFeaturestoreOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .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/CreateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java new file mode 100644 index 000000000..13534cbd5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java @@ -0,0 +1,1178 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} + */ +public final class CreateFeaturestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + CreateFeaturestoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFeaturestoreRequest.newBuilder() to construct. + private CreateFeaturestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFeaturestoreRequest() { + parent_ = ""; + featurestoreId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFeaturestoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFeaturestoreRequest( + 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.v1beta1.Featurestore.Builder subBuilder = null; + if (featurestore_ != null) { + subBuilder = featurestore_.toBuilder(); + } + featurestore_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Featurestore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(featurestore_); + featurestore_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + featurestoreId_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.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 Featurestores.
+   * 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 Featurestores.
+   * 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 FEATURESTORE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Featurestore featurestore_; + /** + * + * + *
+   * Required. The Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + @java.lang.Override + public boolean hasFeaturestore() { + return featurestore_ != null; + } + /** + * + * + *
+   * Required. The Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } + /** + * + * + *
+   * Required. The Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { + return getFeaturestore(); + } + + public static final int FEATURESTORE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object featurestoreId_; + /** + * + * + *
+   * Required. The ID to use for this Featurestore, which will become the final component
+   * of the Featurestore's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within the project and location.
+   * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featurestoreId. + */ + @java.lang.Override + public java.lang.String getFeaturestoreId() { + java.lang.Object ref = featurestoreId_; + 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(); + featurestoreId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for this Featurestore, which will become the final component
+   * of the Featurestore's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within the project and location.
+   * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featurestoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeaturestoreIdBytes() { + java.lang.Object ref = featurestoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featurestoreId_ = 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 (featurestore_ != null) { + output.writeMessage(2, getFeaturestore()); + } + if (!getFeaturestoreIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, featurestoreId_); + } + 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 (featurestore_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeaturestore()); + } + if (!getFeaturestoreIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, featurestoreId_); + } + 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.CreateFeaturestoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFeaturestore() != other.hasFeaturestore()) return false; + if (hasFeaturestore()) { + if (!getFeaturestore().equals(other.getFeaturestore())) return false; + } + if (!getFeaturestoreId().equals(other.getFeaturestoreId())) 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 (hasFeaturestore()) { + hash = (37 * hash) + FEATURESTORE_FIELD_NUMBER; + hash = (53 * hash) + getFeaturestore().hashCode(); + } + hash = (37 * hash) + FEATURESTORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFeaturestoreId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest 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.CreateFeaturestoreRequest 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.CreateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.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 (featurestoreBuilder_ == null) { + featurestore_ = null; + } else { + featurestore_ = null; + featurestoreBuilder_ = null; + } + featurestoreId_ = ""; + + 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_CreateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(this); + result.parent_ = parent_; + if (featurestoreBuilder_ == null) { + result.featurestore_ = featurestore_; + } else { + result.featurestore_ = featurestoreBuilder_.build(); + } + result.featurestoreId_ = featurestoreId_; + 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.CreateFeaturestoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasFeaturestore()) { + mergeFeaturestore(other.getFeaturestore()); + } + if (!other.getFeaturestoreId().isEmpty()) { + featurestoreId_ = other.featurestoreId_; + 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.CreateFeaturestoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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.v1beta1.Featurestore featurestore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + featurestoreBuilder_; + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + public boolean hasFeaturestore() { + return featurestoreBuilder_ != null || featurestore_ != null; + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { + if (featurestoreBuilder_ == null) { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } else { + return featurestoreBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featurestore_ = value; + onChanged(); + } else { + featurestoreBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeaturestore( + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { + if (featurestoreBuilder_ == null) { + featurestore_ = builderForValue.build(); + onChanged(); + } else { + featurestoreBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoreBuilder_ == null) { + if (featurestore_ != null) { + featurestore_ = + com.google.cloud.aiplatform.v1beta1.Featurestore.newBuilder(featurestore_) + .mergeFrom(value) + .buildPartial(); + } else { + featurestore_ = value; + } + onChanged(); + } else { + featurestoreBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeaturestore() { + if (featurestoreBuilder_ == null) { + featurestore_ = null; + onChanged(); + } else { + featurestore_ = null; + featurestoreBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder getFeaturestoreBuilder() { + + onChanged(); + return getFeaturestoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { + if (featurestoreBuilder_ != null) { + return featurestoreBuilder_.getMessageOrBuilder(); + } else { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } + } + /** + * + * + *
+     * Required. The Featurestore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + getFeaturestoreFieldBuilder() { + if (featurestoreBuilder_ == null) { + featurestoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder>( + getFeaturestore(), getParentForChildren(), isClean()); + featurestore_ = null; + } + return featurestoreBuilder_; + } + + private java.lang.Object featurestoreId_ = ""; + /** + * + * + *
+     * Required. The ID to use for this Featurestore, which will become the final component
+     * of the Featurestore's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within the project and location.
+     * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featurestoreId. + */ + public java.lang.String getFeaturestoreId() { + java.lang.Object ref = featurestoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featurestoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for this Featurestore, which will become the final component
+     * of the Featurestore's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within the project and location.
+     * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featurestoreId. + */ + public com.google.protobuf.ByteString getFeaturestoreIdBytes() { + java.lang.Object ref = featurestoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featurestoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for this Featurestore, which will become the final component
+     * of the Featurestore's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within the project and location.
+     * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The featurestoreId to set. + * @return This builder for chaining. + */ + public Builder setFeaturestoreId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + featurestoreId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for this Featurestore, which will become the final component
+     * of the Featurestore's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within the project and location.
+     * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFeaturestoreId() { + + featurestoreId_ = getDefaultInstance().getFeaturestoreId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for this Featurestore, which will become the final component
+     * of the Featurestore's resource name.
+     * This value may be up to 60 characters, and valid characters are
+     * `[a-z0-9_]`. The first character cannot be a number.
+     * The value must be unique within the project and location.
+     * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for featurestoreId to set. + * @return This builder for chaining. + */ + public Builder setFeaturestoreIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + featurestoreId_ = 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.CreateFeaturestoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeaturestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeaturestoreRequest(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.CreateFeaturestoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequestOrBuilder.java new file mode 100644 index 000000000..3d6e155e0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateFeaturestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create Featurestores.
+   * 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 Featurestores.
+   * 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 Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + boolean hasFeaturestore(); + /** + * + * + *
+   * Required. The Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore(); + /** + * + * + *
+   * Required. The Featurestore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for this Featurestore, which will become the final component
+   * of the Featurestore's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within the project and location.
+   * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featurestoreId. + */ + java.lang.String getFeaturestoreId(); + /** + * + * + *
+   * Required. The ID to use for this Featurestore, which will become the final component
+   * of the Featurestore's resource name.
+   * This value may be up to 60 characters, and valid characters are
+   * `[a-z0-9_]`. The first character cannot be a number.
+   * The value must be unique within the project and location.
+   * 
+ * + * string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featurestoreId. + */ + com.google.protobuf.ByteString getFeaturestoreIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java new file mode 100644 index 000000000..4f4e7aac6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java @@ -0,0 +1,763 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for
+ * [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} + */ +public final class CreateIndexEndpointOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + CreateIndexEndpointOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexEndpointOperationMetadata.newBuilder() to construct. + private CreateIndexEndpointOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIndexEndpointOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIndexEndpointOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexEndpointOperationMetadata( + 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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.CreateIndexEndpointOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) 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.CreateIndexEndpointOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + 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.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for
+   * [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(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.CreateIndexEndpointOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + .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.CreateIndexEndpointOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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.CreateIndexEndpointOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIndexEndpointOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIndexEndpointOperationMetadata(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.CreateIndexEndpointOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadataOrBuilder.java new file mode 100644 index 000000000..30dfd0b09 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadataOrBuilder.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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateIndexEndpointOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/CreateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java new file mode 100644 index 000000000..efea99aec --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java @@ -0,0 +1,967 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} + */ +public final class CreateIndexEndpointRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + CreateIndexEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexEndpointRequest.newBuilder() to construct. + private CreateIndexEndpointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIndexEndpointRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIndexEndpointRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexEndpointRequest( + 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.v1beta1.IndexEndpoint.Builder subBuilder = null; + if (indexEndpoint_ != null) { + subBuilder = indexEndpoint_.toBuilder(); + } + indexEndpoint_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexEndpoint_); + indexEndpoint_ = 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.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 IndexEndpoint 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 IndexEndpoint 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 INDEX_ENDPOINT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.IndexEndpoint indexEndpoint_; + /** + * + * + *
+   * Required. The IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + @java.lang.Override + public boolean hasIndexEndpoint() { + return indexEndpoint_ != null; + } + /** + * + * + *
+   * Required. The IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } + /** + * + * + *
+   * Required. The IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { + return getIndexEndpoint(); + } + + 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 (indexEndpoint_ != null) { + output.writeMessage(2, getIndexEndpoint()); + } + 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 (indexEndpoint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexEndpoint()); + } + 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.CreateIndexEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasIndexEndpoint() != other.hasIndexEndpoint()) return false; + if (hasIndexEndpoint()) { + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) 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 (hasIndexEndpoint()) { + hash = (37 * hash) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest 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.CreateIndexEndpointRequest 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 [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.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 (indexEndpointBuilder_ == null) { + indexEndpoint_ = null; + } else { + indexEndpoint_ = null; + indexEndpointBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(this); + result.parent_ = parent_; + if (indexEndpointBuilder_ == null) { + result.indexEndpoint_ = indexEndpoint_; + } else { + result.indexEndpoint_ = indexEndpointBuilder_.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.CreateIndexEndpointRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasIndexEndpoint()) { + mergeIndexEndpoint(other.getIndexEndpoint()); + } + 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.CreateIndexEndpointRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + 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 IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint 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.v1beta1.IndexEndpoint indexEndpoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + indexEndpointBuilder_; + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + public boolean hasIndexEndpoint() { + return indexEndpointBuilder_ != null || indexEndpoint_ != null; + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { + if (indexEndpointBuilder_ == null) { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } else { + return indexEndpointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexEndpoint_ = value; + onChanged(); + } else { + indexEndpointBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { + if (indexEndpointBuilder_ == null) { + indexEndpoint_ = builderForValue.build(); + onChanged(); + } else { + indexEndpointBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointBuilder_ == null) { + if (indexEndpoint_ != null) { + indexEndpoint_ = + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.newBuilder(indexEndpoint_) + .mergeFrom(value) + .buildPartial(); + } else { + indexEndpoint_ = value; + } + onChanged(); + } else { + indexEndpointBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIndexEndpoint() { + if (indexEndpointBuilder_ == null) { + indexEndpoint_ = null; + onChanged(); + } else { + indexEndpoint_ = null; + indexEndpointBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder getIndexEndpointBuilder() { + + onChanged(); + return getIndexEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { + if (indexEndpointBuilder_ != null) { + return indexEndpointBuilder_.getMessageOrBuilder(); + } else { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } + } + /** + * + * + *
+     * Required. The IndexEndpoint to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + getIndexEndpointFieldBuilder() { + if (indexEndpointBuilder_ == null) { + indexEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder>( + getIndexEndpoint(), getParentForChildren(), isClean()); + indexEndpoint_ = null; + } + return indexEndpointBuilder_; + } + + @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.CreateIndexEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIndexEndpointRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIndexEndpointRequest(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.CreateIndexEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequestOrBuilder.java new file mode 100644 index 000000000..3e31c738d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateIndexEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + boolean hasIndexEndpoint(); + /** + * + * + *
+   * Required. The IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint(); + /** + * + * + *
+   * Required. The IndexEndpoint to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java new file mode 100644 index 000000000..1437138b4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java @@ -0,0 +1,1077 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} + */ +public final class CreateIndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + CreateIndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexOperationMetadata.newBuilder() to construct. + private CreateIndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIndexOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIndexOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexOperationMetadata( + 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; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + subBuilder = null; + if (nearestNeighborSearchOperationMetadata_ != null) { + subBuilder = nearestNeighborSearchOperationMetadata_.toBuilder(); + } + nearestNeighborSearchOperationMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nearestNeighborSearchOperationMetadata_); + nearestNeighborSearchOperationMetadata_ = 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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + nearestNeighborSearchOperationMetadata_; + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + @java.lang.Override + public boolean hasNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadata_ != null; + } + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder() { + return getNearestNeighborSearchOperationMetadata(); + } + + 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()); + } + if (nearestNeighborSearchOperationMetadata_ != null) { + output.writeMessage(2, getNearestNeighborSearchOperationMetadata()); + } + 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()); + } + if (nearestNeighborSearchOperationMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getNearestNeighborSearchOperationMetadata()); + } + 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.CreateIndexOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (hasNearestNeighborSearchOperationMetadata() + != other.hasNearestNeighborSearchOperationMetadata()) return false; + if (hasNearestNeighborSearchOperationMetadata()) { + if (!getNearestNeighborSearchOperationMetadata() + .equals(other.getNearestNeighborSearchOperationMetadata())) 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(); + } + if (hasNearestNeighborSearchOperationMetadata()) { + hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getNearestNeighborSearchOperationMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata 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.CreateIndexOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.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; + } + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = null; + } else { + nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; + } else { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_.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.CreateIndexOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.getDefaultInstance()) + return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (other.hasNearestNeighborSearchOperationMetadata()) { + mergeNearestNeighborSearchOperationMetadata( + other.getNearestNeighborSearchOperationMetadata()); + } + 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.CreateIndexOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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_; + } + + private com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + nearestNeighborSearchOperationMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder> + nearestNeighborSearchOperationMetadataBuilder_; + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + public boolean hasNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadataBuilder_ != null + || nearestNeighborSearchOperationMetadata_ != null; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } else { + return nearestNeighborSearchOperationMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder setNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearestNeighborSearchOperationMetadata_ = value; + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder setNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + builderForValue) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = builderForValue.build(); + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder mergeNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + if (nearestNeighborSearchOperationMetadata_ != null) { + nearestNeighborSearchOperationMetadata_ = + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.newBuilder( + nearestNeighborSearchOperationMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + nearestNeighborSearchOperationMetadata_ = value; + } + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder clearNearestNeighborSearchOperationMetadata() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = null; + onChanged(); + } else { + nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + getNearestNeighborSearchOperationMetadataBuilder() { + + onChanged(); + return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder() { + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + return nearestNeighborSearchOperationMetadataBuilder_.getMessageOrBuilder(); + } else { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder> + getNearestNeighborSearchOperationMetadataFieldBuilder() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1 + .NearestNeighborSearchOperationMetadataOrBuilder>( + getNearestNeighborSearchOperationMetadata(), getParentForChildren(), isClean()); + nearestNeighborSearchOperationMetadata_ = null; + } + return nearestNeighborSearchOperationMetadataBuilder_; + } + + @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.CreateIndexOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIndexOperationMetadata(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.CreateIndexOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadataOrBuilder.java new file mode 100644 index 000000000..02730ecf2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadataOrBuilder.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateIndexOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + boolean hasNearestNeighborSearchOperationMetadata(); + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata(); + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java new file mode 100644 index 000000000..6e5498da3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java @@ -0,0 +1,957 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexRequest} + */ +public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateIndexRequest) + CreateIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexRequest.newBuilder() to construct. + private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIndexRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexRequest( + 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.v1beta1.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = 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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.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 Index 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 Index 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 INDEX_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Index index_; + /** + * + * + *
+   * Required. The Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return index_ != null; + } + /** + * + * + *
+   * Required. The Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index getIndex() { + return index_ == null ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() : index_; + } + /** + * + * + *
+   * Required. The Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { + return getIndex(); + } + + 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 (index_ != null) { + output.writeMessage(2, getIndex()); + } + 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 (index_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex()); + } + 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.CreateIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateIndexRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex().equals(other.getIndex())) 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 (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest 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.CreateIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest 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.CreateIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest 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.CreateIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest 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.CreateIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest 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.CreateIndexRequest 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.CreateIndexRequest 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.CreateIndexRequest 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 [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateIndexRequest) + com.google.cloud.aiplatform.v1beta1.CreateIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.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 (indexBuilder_ == null) { + index_ = null; + } else { + index_ = null; + indexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateIndexRequest(this); + result.parent_ = parent_; + if (indexBuilder_ == null) { + result.index_ = index_; + } else { + result.index_ = indexBuilder_.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.CreateIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateIndexRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasIndex()) { + mergeIndex(other.getIndex()); + } + 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.CreateIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateIndexRequest) 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 Index 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 Index 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 Index 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 Index 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 Index 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.v1beta1.Index index_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + indexBuilder_; + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + public boolean hasIndex() { + return indexBuilder_ != null || index_ != null; + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + public com.google.cloud.aiplatform.v1beta1.Index getIndex() { + if (indexBuilder_ == null) { + return index_ == null + ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() + : index_; + } else { + return indexBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + onChanged(); + } else { + indexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { + if (indexBuilder_ == null) { + index_ = builderForValue.build(); + onChanged(); + } else { + indexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexBuilder_ == null) { + if (index_ != null) { + index_ = + com.google.cloud.aiplatform.v1beta1.Index.newBuilder(index_) + .mergeFrom(value) + .buildPartial(); + } else { + index_ = value; + } + onChanged(); + } else { + indexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIndex() { + if (indexBuilder_ == null) { + index_ = null; + onChanged(); + } else { + index_ = null; + indexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Index.Builder getIndexBuilder() { + + onChanged(); + return getIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { + if (indexBuilder_ != null) { + return indexBuilder_.getMessageOrBuilder(); + } else { + return index_ == null + ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() + : index_; + } + } + /** + * + * + *
+     * Required. The Index to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + getIndexFieldBuilder() { + if (indexBuilder_ == null) { + indexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder>( + getIndex(), getParentForChildren(), isClean()); + index_ = null; + } + return indexBuilder_; + } + + @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.CreateIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIndexRequest(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.CreateIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequestOrBuilder.java new file mode 100644 index 000000000..bb9659b2c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the Index 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 Index 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 Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + * + * + *
+   * Required. The Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + com.google.cloud.aiplatform.v1beta1.Index getIndex(); + /** + * + * + *
+   * Required. The Index to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java new file mode 100644 index 000000000..e2a5f5b58 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java @@ -0,0 +1,1211 @@ +/* + * 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.CreateMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} + */ +public final class CreateMetadataSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + CreateMetadataSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMetadataSchemaRequest.newBuilder() to construct. + private CreateMetadataSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMetadataSchemaRequest() { + parent_ = ""; + metadataSchemaId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMetadataSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateMetadataSchemaRequest( + 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.v1beta1.MetadataSchema.Builder subBuilder = null; + if (metadataSchema_ != null) { + subBuilder = metadataSchema_.toBuilder(); + } + metadataSchema_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadataSchema_); + metadataSchema_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + metadataSchemaId_ = 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_CreateMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the MetadataSchema should
+   * be created.
+   * 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 resource name of the MetadataStore where the MetadataSchema should
+   * be created.
+   * 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 METADATA_SCHEMA_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.MetadataSchema metadataSchema_; + /** + * + * + *
+   * Required. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataSchema field is set. + */ + @java.lang.Override + public boolean hasMetadataSchema() { + return metadataSchema_ != null; + } + /** + * + * + *
+   * Required. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataSchema. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema() { + return metadataSchema_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance() + : metadataSchema_; + } + /** + * + * + *
+   * Required. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemaOrBuilder() { + return getMetadataSchema(); + } + + public static final int METADATA_SCHEMA_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object metadataSchemaId_; + /** + * + * + *
+   * The {metadata_schema} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataSchemas in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataSchema.)
+   * 
+ * + * string metadata_schema_id = 3; + * + * @return The metadataSchemaId. + */ + @java.lang.Override + public java.lang.String getMetadataSchemaId() { + java.lang.Object ref = metadataSchemaId_; + 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(); + metadataSchemaId_ = s; + return s; + } + } + /** + * + * + *
+   * The {metadata_schema} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataSchemas in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataSchema.)
+   * 
+ * + * string metadata_schema_id = 3; + * + * @return The bytes for metadataSchemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataSchemaIdBytes() { + java.lang.Object ref = metadataSchemaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataSchemaId_ = 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 (metadataSchema_ != null) { + output.writeMessage(2, getMetadataSchema()); + } + if (!getMetadataSchemaIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadataSchemaId_); + } + 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 (metadataSchema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadataSchema()); + } + if (!getMetadataSchemaIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadataSchemaId_); + } + 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.CreateMetadataSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMetadataSchema() != other.hasMetadataSchema()) return false; + if (hasMetadataSchema()) { + if (!getMetadataSchema().equals(other.getMetadataSchema())) return false; + } + if (!getMetadataSchemaId().equals(other.getMetadataSchemaId())) 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 (hasMetadataSchema()) { + hash = (37 * hash) + METADATA_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getMetadataSchema().hashCode(); + } + hash = (37 * hash) + METADATA_SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getMetadataSchemaId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest 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.CreateMetadataSchemaRequest 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.CreateMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.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 (metadataSchemaBuilder_ == null) { + metadataSchema_ = null; + } else { + metadataSchema_ = null; + metadataSchemaBuilder_ = null; + } + metadataSchemaId_ = ""; + + 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_CreateMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(this); + result.parent_ = parent_; + if (metadataSchemaBuilder_ == null) { + result.metadataSchema_ = metadataSchema_; + } else { + result.metadataSchema_ = metadataSchemaBuilder_.build(); + } + result.metadataSchemaId_ = metadataSchemaId_; + 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.CreateMetadataSchemaRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasMetadataSchema()) { + mergeMetadataSchema(other.getMetadataSchema()); + } + if (!other.getMetadataSchemaId().isEmpty()) { + metadataSchemaId_ = other.metadataSchemaId_; + 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.CreateMetadataSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore where the MetadataSchema should
+     * be created.
+     * 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 resource name of the MetadataStore where the MetadataSchema should
+     * be created.
+     * 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 resource name of the MetadataStore where the MetadataSchema should
+     * be created.
+     * 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 resource name of the MetadataStore where the MetadataSchema should
+     * be created.
+     * 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 resource name of the MetadataStore where the MetadataSchema should
+     * be created.
+     * 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 com.google.cloud.aiplatform.v1beta1.MetadataSchema metadataSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder> + metadataSchemaBuilder_; + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataSchema field is set. + */ + public boolean hasMetadataSchema() { + return metadataSchemaBuilder_ != null || metadataSchema_ != null; + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataSchema. + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema() { + if (metadataSchemaBuilder_ == null) { + return metadataSchema_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance() + : metadataSchema_; + } else { + return metadataSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetadataSchema(com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { + if (metadataSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataSchema_ = value; + onChanged(); + } else { + metadataSchemaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetadataSchema( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder builderForValue) { + if (metadataSchemaBuilder_ == null) { + metadataSchema_ = builderForValue.build(); + onChanged(); + } else { + metadataSchemaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetadataSchema(com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { + if (metadataSchemaBuilder_ == null) { + if (metadataSchema_ != null) { + metadataSchema_ = + com.google.cloud.aiplatform.v1beta1.MetadataSchema.newBuilder(metadataSchema_) + .mergeFrom(value) + .buildPartial(); + } else { + metadataSchema_ = value; + } + onChanged(); + } else { + metadataSchemaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetadataSchema() { + if (metadataSchemaBuilder_ == null) { + metadataSchema_ = null; + onChanged(); + } else { + metadataSchema_ = null; + metadataSchemaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder getMetadataSchemaBuilder() { + + onChanged(); + return getMetadataSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder + getMetadataSchemaOrBuilder() { + if (metadataSchemaBuilder_ != null) { + return metadataSchemaBuilder_.getMessageOrBuilder(); + } else { + return metadataSchema_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance() + : metadataSchema_; + } + } + /** + * + * + *
+     * Required. The MetadataSchema to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder> + getMetadataSchemaFieldBuilder() { + if (metadataSchemaBuilder_ == null) { + metadataSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder>( + getMetadataSchema(), getParentForChildren(), isClean()); + metadataSchema_ = null; + } + return metadataSchemaBuilder_; + } + + private java.lang.Object metadataSchemaId_ = ""; + /** + * + * + *
+     * The {metadata_schema} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataSchemas in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataSchema.)
+     * 
+ * + * string metadata_schema_id = 3; + * + * @return The metadataSchemaId. + */ + public java.lang.String getMetadataSchemaId() { + java.lang.Object ref = metadataSchemaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataSchemaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The {metadata_schema} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataSchemas in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataSchema.)
+     * 
+ * + * string metadata_schema_id = 3; + * + * @return The bytes for metadataSchemaId. + */ + public com.google.protobuf.ByteString getMetadataSchemaIdBytes() { + java.lang.Object ref = metadataSchemaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataSchemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The {metadata_schema} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataSchemas in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataSchema.)
+     * 
+ * + * string metadata_schema_id = 3; + * + * @param value The metadataSchemaId to set. + * @return This builder for chaining. + */ + public Builder setMetadataSchemaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataSchemaId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The {metadata_schema} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataSchemas in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataSchema.)
+     * 
+ * + * string metadata_schema_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearMetadataSchemaId() { + + metadataSchemaId_ = getDefaultInstance().getMetadataSchemaId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The {metadata_schema} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataSchemas in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataSchema.)
+     * 
+ * + * string metadata_schema_id = 3; + * + * @param value The bytes for metadataSchemaId to set. + * @return This builder for chaining. + */ + public Builder setMetadataSchemaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataSchemaId_ = 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.CreateMetadataSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetadataSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMetadataSchemaRequest(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.CreateMetadataSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequestOrBuilder.java new file mode 100644 index 000000000..49e3038e2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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 CreateMetadataSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore where the MetadataSchema should
+   * be created.
+   * 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 resource name of the MetadataStore where the MetadataSchema should
+   * be created.
+   * 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. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataSchema field is set. + */ + boolean hasMetadataSchema(); + /** + * + * + *
+   * Required. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataSchema. + */ + com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema(); + /** + * + * + *
+   * Required. The MetadataSchema to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemaOrBuilder(); + + /** + * + * + *
+   * The {metadata_schema} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataSchemas in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataSchema.)
+   * 
+ * + * string metadata_schema_id = 3; + * + * @return The metadataSchemaId. + */ + java.lang.String getMetadataSchemaId(); + /** + * + * + *
+   * The {metadata_schema} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataSchemas in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataSchema.)
+   * 
+ * + * string metadata_schema_id = 3; + * + * @return The bytes for metadataSchemaId. + */ + com.google.protobuf.ByteString getMetadataSchemaIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java new file mode 100644 index 000000000..b6115a68f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java @@ -0,0 +1,761 @@ +/* + * 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.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} + */ +public final class CreateMetadataStoreOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + CreateMetadataStoreOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMetadataStoreOperationMetadata.newBuilder() to construct. + private CreateMetadataStoreOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMetadataStoreOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMetadataStoreOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateMetadataStoreOperationMetadata( + 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_CreateMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for creating a MetadataStore.
+   * 
+ * + * .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 creating a MetadataStore.
+   * 
+ * + * .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 creating a MetadataStore.
+   * 
+ * + * .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.CreateMetadataStoreOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) 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.CreateMetadataStoreOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + 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.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata 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.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.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_CreateMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(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.CreateMetadataStoreOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + .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.CreateMetadataStoreOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + 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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for creating a MetadataStore.
+     * 
+ * + * .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 creating a MetadataStore.
+     * 
+ * + * .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.CreateMetadataStoreOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetadataStoreOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMetadataStoreOperationMetadata(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.CreateMetadataStoreOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadataOrBuilder.java new file mode 100644 index 000000000..5db3f3941 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadataOrBuilder.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 CreateMetadataStoreOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for creating a MetadataStore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for creating a MetadataStore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for creating a MetadataStore.
+   * 
+ * + * .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/CreateMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java new file mode 100644 index 000000000..f68549b22 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java @@ -0,0 +1,1202 @@ +/* + * 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.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} + */ +public final class CreateMetadataStoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + CreateMetadataStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMetadataStoreRequest.newBuilder() to construct. + private CreateMetadataStoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMetadataStoreRequest() { + parent_ = ""; + metadataStoreId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMetadataStoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateMetadataStoreRequest( + 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.v1beta1.MetadataStore.Builder subBuilder = null; + if (metadataStore_ != null) { + subBuilder = metadataStore_.toBuilder(); + } + metadataStore_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetadataStore.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadataStore_); + metadataStore_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + metadataStoreId_ = 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_CreateMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location where the MetadataStore should
+   * be created.
+   * 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 where the MetadataStore should
+   * be created.
+   * 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 METADATA_STORE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.MetadataStore metadataStore_; + /** + * + * + *
+   * Required. The MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataStore field is set. + */ + @java.lang.Override + public boolean hasMetadataStore() { + return metadataStore_ != null; + } + /** + * + * + *
+   * Required. The MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore() { + return metadataStore_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance() + : metadataStore_; + } + /** + * + * + *
+   * Required. The MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoreOrBuilder() { + return getMetadataStore(); + } + + public static final int METADATA_STORE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object metadataStoreId_; + /** + * + * + *
+   * The {metadatastore} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataStores in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataStore.)
+   * 
+ * + * string metadata_store_id = 3; + * + * @return The metadataStoreId. + */ + @java.lang.Override + public java.lang.String getMetadataStoreId() { + java.lang.Object ref = metadataStoreId_; + 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(); + metadataStoreId_ = s; + return s; + } + } + /** + * + * + *
+   * The {metadatastore} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataStores in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataStore.)
+   * 
+ * + * string metadata_store_id = 3; + * + * @return The bytes for metadataStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataStoreIdBytes() { + java.lang.Object ref = metadataStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreId_ = 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 (metadataStore_ != null) { + output.writeMessage(2, getMetadataStore()); + } + if (!getMetadataStoreIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadataStoreId_); + } + 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 (metadataStore_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadataStore()); + } + if (!getMetadataStoreIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadataStoreId_); + } + 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.CreateMetadataStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMetadataStore() != other.hasMetadataStore()) return false; + if (hasMetadataStore()) { + if (!getMetadataStore().equals(other.getMetadataStore())) return false; + } + if (!getMetadataStoreId().equals(other.getMetadataStoreId())) 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 (hasMetadataStore()) { + hash = (37 * hash) + METADATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getMetadataStore().hashCode(); + } + hash = (37 * hash) + METADATA_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getMetadataStoreId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest 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.CreateMetadataStoreRequest 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.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.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 (metadataStoreBuilder_ == null) { + metadataStore_ = null; + } else { + metadataStore_ = null; + metadataStoreBuilder_ = null; + } + metadataStoreId_ = ""; + + 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_CreateMetadataStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(this); + result.parent_ = parent_; + if (metadataStoreBuilder_ == null) { + result.metadataStore_ = metadataStore_; + } else { + result.metadataStore_ = metadataStoreBuilder_.build(); + } + result.metadataStoreId_ = metadataStoreId_; + 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.CreateMetadataStoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasMetadataStore()) { + mergeMetadataStore(other.getMetadataStore()); + } + if (!other.getMetadataStoreId().isEmpty()) { + metadataStoreId_ = other.metadataStoreId_; + 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.CreateMetadataStoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + 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 where the MetadataStore should
+     * be created.
+     * 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 where the MetadataStore should
+     * be created.
+     * 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 where the MetadataStore should
+     * be created.
+     * 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 where the MetadataStore should
+     * be created.
+     * 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 where the MetadataStore should
+     * be created.
+     * 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.v1beta1.MetadataStore metadataStore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder> + metadataStoreBuilder_; + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataStore field is set. + */ + public boolean hasMetadataStore() { + return metadataStoreBuilder_ != null || metadataStore_ != null; + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataStore. + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore() { + if (metadataStoreBuilder_ == null) { + return metadataStore_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance() + : metadataStore_; + } else { + return metadataStoreBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetadataStore(com.google.cloud.aiplatform.v1beta1.MetadataStore value) { + if (metadataStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataStore_ = value; + onChanged(); + } else { + metadataStoreBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetadataStore( + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder builderForValue) { + if (metadataStoreBuilder_ == null) { + metadataStore_ = builderForValue.build(); + onChanged(); + } else { + metadataStoreBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetadataStore(com.google.cloud.aiplatform.v1beta1.MetadataStore value) { + if (metadataStoreBuilder_ == null) { + if (metadataStore_ != null) { + metadataStore_ = + com.google.cloud.aiplatform.v1beta1.MetadataStore.newBuilder(metadataStore_) + .mergeFrom(value) + .buildPartial(); + } else { + metadataStore_ = value; + } + onChanged(); + } else { + metadataStoreBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetadataStore() { + if (metadataStoreBuilder_ == null) { + metadataStore_ = null; + onChanged(); + } else { + metadataStore_ = null; + metadataStoreBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder getMetadataStoreBuilder() { + + onChanged(); + return getMetadataStoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoreOrBuilder() { + if (metadataStoreBuilder_ != null) { + return metadataStoreBuilder_.getMessageOrBuilder(); + } else { + return metadataStore_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance() + : metadataStore_; + } + } + /** + * + * + *
+     * Required. The MetadataStore to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder> + getMetadataStoreFieldBuilder() { + if (metadataStoreBuilder_ == null) { + metadataStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder>( + getMetadataStore(), getParentForChildren(), isClean()); + metadataStore_ = null; + } + return metadataStoreBuilder_; + } + + private java.lang.Object metadataStoreId_ = ""; + /** + * + * + *
+     * The {metadatastore} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataStores in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataStore.)
+     * 
+ * + * string metadata_store_id = 3; + * + * @return The metadataStoreId. + */ + public java.lang.String getMetadataStoreId() { + java.lang.Object ref = metadataStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The {metadatastore} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataStores in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataStore.)
+     * 
+ * + * string metadata_store_id = 3; + * + * @return The bytes for metadataStoreId. + */ + public com.google.protobuf.ByteString getMetadataStoreIdBytes() { + java.lang.Object ref = metadataStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The {metadatastore} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataStores in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataStore.)
+     * 
+ * + * string metadata_store_id = 3; + * + * @param value The metadataStoreId to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataStoreId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The {metadatastore} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataStores in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataStore.)
+     * 
+ * + * string metadata_store_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearMetadataStoreId() { + + metadataStoreId_ = getDefaultInstance().getMetadataStoreId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The {metadatastore} portion of the resource name with the format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * If not provided, the MetadataStore's ID will be a UUID generated by the
+     * service.
+     * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+     * Must be unique across all MetadataStores in the parent Location.
+     * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+     * if the caller can't view the preexisting MetadataStore.)
+     * 
+ * + * string metadata_store_id = 3; + * + * @param value The bytes for metadataStoreId to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataStoreId_ = 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.CreateMetadataStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMetadataStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMetadataStoreRequest(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.CreateMetadataStoreRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequestOrBuilder.java new file mode 100644 index 000000000..e85c6ed91 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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 CreateMetadataStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location where the MetadataStore should
+   * be created.
+   * 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 where the MetadataStore should
+   * be created.
+   * 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 MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metadataStore field is set. + */ + boolean hasMetadataStore(); + /** + * + * + *
+   * Required. The MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metadataStore. + */ + com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore(); + /** + * + * + *
+   * Required. The MetadataStore to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoreOrBuilder(); + + /** + * + * + *
+   * The {metadatastore} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataStores in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataStore.)
+   * 
+ * + * string metadata_store_id = 3; + * + * @return The metadataStoreId. + */ + java.lang.String getMetadataStoreId(); + /** + * + * + *
+   * The {metadatastore} portion of the resource name with the format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * If not provided, the MetadataStore's ID will be a UUID generated by the
+   * service.
+   * Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
+   * Must be unique across all MetadataStores in the parent Location.
+   * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
+   * if the caller can't view the preexisting MetadataStore.)
+   * 
+ * + * string metadata_store_id = 3; + * + * @return The bytes for metadataStoreId. + */ + com.google.protobuf.ByteString getMetadataStoreIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..8ddf38f82 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,1005 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} + */ +public final class CreateModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + CreateModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private CreateModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateModelDeploymentMonitoringJobRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateModelDeploymentMonitoringJobRequest( + 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.v1beta1.ModelDeploymentMonitoringJob.Builder subBuilder = + null; + if (modelDeploymentMonitoringJob_ != null) { + subBuilder = modelDeploymentMonitoringJob_.toBuilder(); + } + modelDeploymentMonitoringJob_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelDeploymentMonitoringJob_); + modelDeploymentMonitoringJob_ = 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.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent of the ModelDeploymentMonitoringJob.
+   * 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 parent of the ModelDeploymentMonitoringJob.
+   * 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 MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + modelDeploymentMonitoringJob_; + /** + * + * + *
+   * Required. The ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + @java.lang.Override + public boolean hasModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob_ != null; + } + /** + * + * + *
+   * Required. The ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } + /** + * + * + *
+   * Required. The ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder() { + return getModelDeploymentMonitoringJob(); + } + + 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 (modelDeploymentMonitoringJob_ != null) { + output.writeMessage(2, getModelDeploymentMonitoringJob()); + } + 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 (modelDeploymentMonitoringJob_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getModelDeploymentMonitoringJob()); + } + 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.CreateModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasModelDeploymentMonitoringJob() != other.hasModelDeploymentMonitoringJob()) return false; + if (hasModelDeploymentMonitoringJob()) { + if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) + 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 (hasModelDeploymentMonitoringJob()) { + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest + 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.CreateModelDeploymentMonitoringJobRequest 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
+   * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.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 (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = null; + } else { + modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(this); + result.parent_ = parent_; + if (modelDeploymentMonitoringJobBuilder_ == null) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } else { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.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.CreateModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasModelDeploymentMonitoringJob()) { + mergeModelDeploymentMonitoringJob(other.getModelDeploymentMonitoringJob()); + } + 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.CreateModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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.v1beta1.ModelDeploymentMonitoringJob + modelDeploymentMonitoringJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + modelDeploymentMonitoringJobBuilder_; + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + public boolean hasModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } else { + return modelDeploymentMonitoringJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelDeploymentMonitoringJob_ = value; + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = builderForValue.build(); + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + if (modelDeploymentMonitoringJob_ != null) { + modelDeploymentMonitoringJob_ = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.newBuilder( + modelDeploymentMonitoringJob_) + .mergeFrom(value) + .buildPartial(); + } else { + modelDeploymentMonitoringJob_ = value; + } + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearModelDeploymentMonitoringJob() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = null; + onChanged(); + } else { + modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder + getModelDeploymentMonitoringJobBuilder() { + + onChanged(); + return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder() { + if (modelDeploymentMonitoringJobBuilder_ != null) { + return modelDeploymentMonitoringJobBuilder_.getMessageOrBuilder(); + } else { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } + } + /** + * + * + *
+     * Required. The ModelDeploymentMonitoringJob to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobFieldBuilder() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder>( + getModelDeploymentMonitoringJob(), getParentForChildren(), isClean()); + modelDeploymentMonitoringJob_ = null; + } + return modelDeploymentMonitoringJobBuilder_; + } + + @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.CreateModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateModelDeploymentMonitoringJobRequest(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.CreateModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..fe8e3ace5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequestOrBuilder.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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the ModelDeploymentMonitoringJob.
+   * 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 parent of the ModelDeploymentMonitoringJob.
+   * 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 ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + boolean hasModelDeploymentMonitoringJob(); + /** + * + * + *
+   * Required. The ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob(); + /** + * + * + *
+   * Required. The ModelDeploymentMonitoringJob to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java new file mode 100644 index 000000000..bd93f6f71 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java @@ -0,0 +1,1170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} + */ +public final class CreatePipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.Builder subBuilder = null; + if (pipelineJob_ != null) { + subBuilder = pipelineJob_.toBuilder(); + } + pipelineJob_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipelineJob_; + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob() { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.CreatePipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest build() { + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipelineJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder> + pipelineJobBuilder_; + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob() { + if (pipelineJobBuilder_ == null) { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } else { + return pipelineJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineJob(com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineJob( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePipelineJob(com.google.cloud.aiplatform.v1beta1.PipelineJob value) { + if (pipelineJobBuilder_ == null) { + if (pipelineJob_ != null) { + pipelineJob_ = + com.google.cloud.aiplatform.v1beta1.PipelineJob.newBuilder(pipelineJob_) + .mergeFrom(value) + .buildPartial(); + } else { + pipelineJob_ = value; + } + onChanged(); + } else { + pipelineJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder getPipelineJobBuilder() { + + onChanged(); + return getPipelineJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobOrBuilder() { + if (pipelineJobBuilder_ != null) { + return pipelineJobBuilder_.getMessageOrBuilder(); + } else { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder> + getPipelineJobFieldBuilder() { + if (pipelineJobBuilder_ == null) { + pipelineJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.CreatePipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..c23b640aa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreatePipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob(); + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java new file mode 100644 index 000000000..91ddab705 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java @@ -0,0 +1,957 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.CreateStudy][google.cloud.aiplatform.v1beta1.VizierService.CreateStudy].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateStudyRequest} + */ +public final class CreateStudyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateStudyRequest) + CreateStudyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateStudyRequest.newBuilder() to construct. + private CreateStudyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateStudyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateStudyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateStudyRequest( + 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.v1beta1.Study.Builder subBuilder = null; + if (study_ != null) { + subBuilder = study_.toBuilder(); + } + study_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Study.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(study_); + study_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.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 CustomJob 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 CustomJob 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 STUDY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Study study_; + /** + * + * + *
+   * Required. The Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the study field is set. + */ + @java.lang.Override + public boolean hasStudy() { + return study_ != null; + } + /** + * + * + *
+   * Required. The Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The study. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study getStudy() { + return study_ == null ? com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance() : study_; + } + /** + * + * + *
+   * Required. The Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudyOrBuilder() { + return getStudy(); + } + + 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 (study_ != null) { + output.writeMessage(2, getStudy()); + } + 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 (study_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStudy()); + } + 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.CreateStudyRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateStudyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasStudy() != other.hasStudy()) return false; + if (hasStudy()) { + if (!getStudy().equals(other.getStudy())) 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 (hasStudy()) { + hash = (37 * hash) + STUDY_FIELD_NUMBER; + hash = (53 * hash) + getStudy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest 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.CreateStudyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest 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.CreateStudyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest 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.CreateStudyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest 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.CreateStudyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest 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.CreateStudyRequest 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.CreateStudyRequest 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.CreateStudyRequest 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 [VizierService.CreateStudy][google.cloud.aiplatform.v1beta1.VizierService.CreateStudy].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateStudyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateStudyRequest) + com.google.cloud.aiplatform.v1beta1.CreateStudyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.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 (studyBuilder_ == null) { + study_ = null; + } else { + study_ = null; + studyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateStudyRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateStudyRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateStudyRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateStudyRequest(this); + result.parent_ = parent_; + if (studyBuilder_ == null) { + result.study_ = study_; + } else { + result.study_ = studyBuilder_.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.CreateStudyRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateStudyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateStudyRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateStudyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasStudy()) { + mergeStudy(other.getStudy()); + } + 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.CreateStudyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateStudyRequest) 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 CustomJob 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 CustomJob 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 CustomJob 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 CustomJob 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 CustomJob 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.v1beta1.Study study_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder> + studyBuilder_; + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the study field is set. + */ + public boolean hasStudy() { + return studyBuilder_ != null || study_ != null; + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The study. + */ + public com.google.cloud.aiplatform.v1beta1.Study getStudy() { + if (studyBuilder_ == null) { + return study_ == null + ? com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance() + : study_; + } else { + return studyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study value) { + if (studyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + study_ = value; + onChanged(); + } else { + studyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study.Builder builderForValue) { + if (studyBuilder_ == null) { + study_ = builderForValue.build(); + onChanged(); + } else { + studyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStudy(com.google.cloud.aiplatform.v1beta1.Study value) { + if (studyBuilder_ == null) { + if (study_ != null) { + study_ = + com.google.cloud.aiplatform.v1beta1.Study.newBuilder(study_) + .mergeFrom(value) + .buildPartial(); + } else { + study_ = value; + } + onChanged(); + } else { + studyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStudy() { + if (studyBuilder_ == null) { + study_ = null; + onChanged(); + } else { + study_ = null; + studyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Study.Builder getStudyBuilder() { + + onChanged(); + return getStudyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudyOrBuilder() { + if (studyBuilder_ != null) { + return studyBuilder_.getMessageOrBuilder(); + } else { + return study_ == null + ? com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance() + : study_; + } + } + /** + * + * + *
+     * Required. The Study configuration used to create the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder> + getStudyFieldBuilder() { + if (studyBuilder_ == null) { + studyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder>( + getStudy(), getParentForChildren(), isClean()); + study_ = null; + } + return studyBuilder_; + } + + @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.CreateStudyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateStudyRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateStudyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateStudyRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateStudyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStudyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateStudyRequest(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.CreateStudyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequestOrBuilder.java new file mode 100644 index 000000000..e6e13dddf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateStudyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateStudyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the CustomJob 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 CustomJob 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 Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the study field is set. + */ + boolean hasStudy(); + /** + * + * + *
+   * Required. The Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The study. + */ + com.google.cloud.aiplatform.v1beta1.Study getStudy(); + /** + * + * + *
+   * Required. The Study configuration used to create the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudyOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java new file mode 100644 index 000000000..2ca9e2708 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java @@ -0,0 +1,1173 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest} + */ +public final class CreateTensorboardExperimentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) + CreateTensorboardExperimentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTensorboardExperimentRequest.newBuilder() to construct. + private CreateTensorboardExperimentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTensorboardExperimentRequest() { + parent_ = ""; + tensorboardExperimentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTensorboardExperimentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTensorboardExperimentRequest( + 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.v1beta1.TensorboardExperiment.Builder subBuilder = null; + if (tensorboardExperiment_ != null) { + subBuilder = tensorboardExperiment_.toBuilder(); + } + tensorboardExperiment_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardExperiment_); + tensorboardExperiment_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + tensorboardExperimentId_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Tensorboard to create the TensorboardExperiment
+   * in. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+   * in. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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 TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboardExperiment_; + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * @return Whether the tensorboardExperiment field is set. + */ + @java.lang.Override + public boolean hasTensorboardExperiment() { + return tensorboardExperiment_ != null; + } + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * @return The tensorboardExperiment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment() { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder() { + return getTensorboardExperiment(); + } + + public static final int TENSORBOARD_EXPERIMENT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object tensorboardExperimentId_; + /** + * + * + *
+   * Required. The ID to use for the Tensorboard experiment, which will become the final
+   * component of the Tensorboard experiment's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardExperimentId. + */ + @java.lang.Override + public java.lang.String getTensorboardExperimentId() { + java.lang.Object ref = tensorboardExperimentId_; + 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(); + tensorboardExperimentId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for the Tensorboard experiment, which will become the final
+   * component of the Tensorboard experiment's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardExperimentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardExperimentIdBytes() { + java.lang.Object ref = tensorboardExperimentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardExperimentId_ = 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 (tensorboardExperiment_ != null) { + output.writeMessage(2, getTensorboardExperiment()); + } + if (!getTensorboardExperimentIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tensorboardExperimentId_); + } + 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 (tensorboardExperiment_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardExperiment()); + } + if (!getTensorboardExperimentIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tensorboardExperimentId_); + } + 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.CreateTensorboardExperimentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTensorboardExperiment() != other.hasTensorboardExperiment()) return false; + if (hasTensorboardExperiment()) { + if (!getTensorboardExperiment().equals(other.getTensorboardExperiment())) return false; + } + if (!getTensorboardExperimentId().equals(other.getTensorboardExperimentId())) 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 (hasTensorboardExperiment()) { + hash = (37 * hash) + TENSORBOARD_EXPERIMENT_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardExperiment().hashCode(); + } + hash = (37 * hash) + TENSORBOARD_EXPERIMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardExperimentId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + 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.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest 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.CreateTensorboardExperimentRequest 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 [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.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 (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = null; + } else { + tensorboardExperiment_ = null; + tensorboardExperimentBuilder_ = null; + } + tensorboardExperimentId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest(this); + result.parent_ = parent_; + if (tensorboardExperimentBuilder_ == null) { + result.tensorboardExperiment_ = tensorboardExperiment_; + } else { + result.tensorboardExperiment_ = tensorboardExperimentBuilder_.build(); + } + result.tensorboardExperimentId_ = tensorboardExperimentId_; + 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.CreateTensorboardExperimentRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTensorboardExperiment()) { + mergeTensorboardExperiment(other.getTensorboardExperiment()); + } + if (!other.getTensorboardExperimentId().isEmpty()) { + tensorboardExperimentId_ = other.tensorboardExperimentId_; + 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.CreateTensorboardExperimentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Tensorboard to create the TensorboardExperiment
+     * in. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+     * in. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+     * in. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+     * in. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+     * in. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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.v1beta1.TensorboardExperiment tensorboardExperiment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + tensorboardExperimentBuilder_; + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * + * @return Whether the tensorboardExperiment field is set. + */ + public boolean hasTensorboardExperiment() { + return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * + * @return The tensorboardExperiment. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment() { + if (tensorboardExperimentBuilder_ == null) { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } else { + return tensorboardExperimentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public Builder setTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardExperiment_ = value; + onChanged(); + } else { + tensorboardExperimentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public Builder setTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = builderForValue.build(); + onChanged(); + } else { + tensorboardExperimentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public Builder mergeTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentBuilder_ == null) { + if (tensorboardExperiment_ != null) { + tensorboardExperiment_ = + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.newBuilder( + tensorboardExperiment_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardExperiment_ = value; + } + onChanged(); + } else { + tensorboardExperimentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public Builder clearTensorboardExperiment() { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = null; + onChanged(); + } else { + tensorboardExperiment_ = null; + tensorboardExperimentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder + getTensorboardExperimentBuilder() { + + onChanged(); + return getTensorboardExperimentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder() { + if (tensorboardExperimentBuilder_ != null) { + return tensorboardExperimentBuilder_.getMessageOrBuilder(); + } else { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } + } + /** + * + * + *
+     * The TensorboardExperiment to create.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + getTensorboardExperimentFieldBuilder() { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperimentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder>( + getTensorboardExperiment(), getParentForChildren(), isClean()); + tensorboardExperiment_ = null; + } + return tensorboardExperimentBuilder_; + } + + private java.lang.Object tensorboardExperimentId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the Tensorboard experiment, which will become the final
+     * component of the Tensorboard experiment's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardExperimentId. + */ + public java.lang.String getTensorboardExperimentId() { + java.lang.Object ref = tensorboardExperimentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardExperimentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard experiment, which will become the final
+     * component of the Tensorboard experiment's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardExperimentId. + */ + public com.google.protobuf.ByteString getTensorboardExperimentIdBytes() { + java.lang.Object ref = tensorboardExperimentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardExperimentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard experiment, which will become the final
+     * component of the Tensorboard experiment's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tensorboardExperimentId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardExperimentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardExperimentId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard experiment, which will become the final
+     * component of the Tensorboard experiment's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTensorboardExperimentId() { + + tensorboardExperimentId_ = getDefaultInstance().getTensorboardExperimentId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard experiment, which will become the final
+     * component of the Tensorboard experiment's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tensorboardExperimentId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardExperimentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardExperimentId_ = 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.CreateTensorboardExperimentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTensorboardExperimentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTensorboardExperimentRequest(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.CreateTensorboardExperimentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java new file mode 100644 index 000000000..977e1c6f8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTensorboardExperimentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Tensorboard to create the TensorboardExperiment
+   * in. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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 Tensorboard to create the TensorboardExperiment
+   * in. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * @return Whether the tensorboardExperiment field is set. + */ + boolean hasTensorboardExperiment(); + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + * + * @return The tensorboardExperiment. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment(); + /** + * + * + *
+   * The TensorboardExperiment to create.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the Tensorboard experiment, which will become the final
+   * component of the Tensorboard experiment's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardExperimentId. + */ + java.lang.String getTensorboardExperimentId(); + /** + * + * + *
+   * Required. The ID to use for the Tensorboard experiment, which will become the final
+   * component of the Tensorboard experiment's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardExperimentId. + */ + com.google.protobuf.ByteString getTensorboardExperimentIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java new file mode 100644 index 000000000..3d5a78946 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java @@ -0,0 +1,756 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform create Tensorboard.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata} + */ +public final class CreateTensorboardOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) + CreateTensorboardOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTensorboardOperationMetadata.newBuilder() to construct. + private CreateTensorboardOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTensorboardOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTensorboardOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTensorboardOperationMetadata( + 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .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 Tensorboard.
+   * 
+ * + * .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 Tensorboard.
+   * 
+ * + * .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.CreateTensorboardOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) 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.CreateTensorboardOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + 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.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata 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.CreateTensorboardOperationMetadata 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 create Tensorboard.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata(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.CreateTensorboardOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + .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.CreateTensorboardOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) + 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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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.CreateTensorboardOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTensorboardOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTensorboardOperationMetadata(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.CreateTensorboardOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadataOrBuilder.java new file mode 100644 index 000000000..a58281484 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadataOrBuilder.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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTensorboardOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .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/CreateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java new file mode 100644 index 000000000..2806baf9c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java @@ -0,0 +1,963 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardRequest} + */ +public final class CreateTensorboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) + CreateTensorboardRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTensorboardRequest.newBuilder() to construct. + private CreateTensorboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTensorboardRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTensorboardRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTensorboardRequest( + 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.v1beta1.Tensorboard.Builder subBuilder = null; + if (tensorboard_ != null) { + subBuilder = tensorboard_.toBuilder(); + } + tensorboard_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tensorboard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboard_); + tensorboard_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.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 Tensorboard 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 Tensorboard 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 TENSORBOARD_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Tensorboard tensorboard_; + /** + * + * + *
+   * Required. The Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + @java.lang.Override + public boolean hasTensorboard() { + return tensorboard_ != null; + } + /** + * + * + *
+   * Required. The Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } + /** + * + * + *
+   * Required. The Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { + return getTensorboard(); + } + + 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 (tensorboard_ != null) { + output.writeMessage(2, getTensorboard()); + } + 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 (tensorboard_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboard()); + } + 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.CreateTensorboardRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTensorboard() != other.hasTensorboard()) return false; + if (hasTensorboard()) { + if (!getTensorboard().equals(other.getTensorboard())) 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 (hasTensorboard()) { + hash = (37 * hash) + TENSORBOARD_FIELD_NUMBER; + hash = (53 * hash) + getTensorboard().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest 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.CreateTensorboardRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest 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.CreateTensorboardRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest 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.CreateTensorboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest 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.CreateTensorboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest 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.CreateTensorboardRequest 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.CreateTensorboardRequest 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.CreateTensorboardRequest 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 [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.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 (tensorboardBuilder_ == null) { + tensorboard_ = null; + } else { + tensorboard_ = null; + tensorboardBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest(this); + result.parent_ = parent_; + if (tensorboardBuilder_ == null) { + result.tensorboard_ = tensorboard_; + } else { + result.tensorboard_ = tensorboardBuilder_.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.CreateTensorboardRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTensorboard()) { + mergeTensorboard(other.getTensorboard()); + } + 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.CreateTensorboardRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) 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 Tensorboard 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 Tensorboard 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 Tensorboard 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 Tensorboard 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 Tensorboard 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.v1beta1.Tensorboard tensorboard_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + tensorboardBuilder_; + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + public boolean hasTensorboard() { + return tensorboardBuilder_ != null || tensorboard_ != null; + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { + if (tensorboardBuilder_ == null) { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } else { + return tensorboardBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboard_ = value; + onChanged(); + } else { + tensorboardBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboard( + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { + if (tensorboardBuilder_ == null) { + tensorboard_ = builderForValue.build(); + onChanged(); + } else { + tensorboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardBuilder_ == null) { + if (tensorboard_ != null) { + tensorboard_ = + com.google.cloud.aiplatform.v1beta1.Tensorboard.newBuilder(tensorboard_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboard_ = value; + } + onChanged(); + } else { + tensorboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboard() { + if (tensorboardBuilder_ == null) { + tensorboard_ = null; + onChanged(); + } else { + tensorboard_ = null; + tensorboardBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder getTensorboardBuilder() { + + onChanged(); + return getTensorboardFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { + if (tensorboardBuilder_ != null) { + return tensorboardBuilder_.getMessageOrBuilder(); + } else { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } + } + /** + * + * + *
+     * Required. The Tensorboard to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + getTensorboardFieldBuilder() { + if (tensorboardBuilder_ == null) { + tensorboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder>( + getTensorboard(), getParentForChildren(), isClean()); + tensorboard_ = null; + } + return tensorboardBuilder_; + } + + @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.CreateTensorboardRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTensorboardRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTensorboardRequest(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.CreateTensorboardRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequestOrBuilder.java new file mode 100644 index 000000000..ce2f38d63 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTensorboardRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTensorboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the Tensorboard 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 Tensorboard 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 Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + boolean hasTensorboard(); + /** + * + * + *
+   * Required. The Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard(); + /** + * + * + *
+   * Required. The Tensorboard to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java new file mode 100644 index 000000000..2ca396960 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java @@ -0,0 +1,1176 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest} + */ +public final class CreateTensorboardRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) + CreateTensorboardRunRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTensorboardRunRequest.newBuilder() to construct. + private CreateTensorboardRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTensorboardRunRequest() { + parent_ = ""; + tensorboardRunId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTensorboardRunRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTensorboardRunRequest( + 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.v1beta1.TensorboardRun.Builder subBuilder = null; + if (tensorboardRun_ != null) { + subBuilder = tensorboardRun_.toBuilder(); + } + tensorboardRun_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardRun_); + tensorboardRun_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + tensorboardRunId_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Tensorboard to create the TensorboardRun in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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 TENSORBOARD_RUN_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardRun tensorboardRun_; + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + @java.lang.Override + public boolean hasTensorboardRun() { + return tensorboardRun_ != null; + } + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { + return getTensorboardRun(); + } + + public static final int TENSORBOARD_RUN_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object tensorboardRunId_; + /** + * + * + *
+   * Required. The ID to use for the Tensorboard run, which will become the final
+   * component of the Tensorboard run's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardRunId. + */ + @java.lang.Override + public java.lang.String getTensorboardRunId() { + java.lang.Object ref = tensorboardRunId_; + 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(); + tensorboardRunId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for the Tensorboard run, which will become the final
+   * component of the Tensorboard run's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardRunId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardRunIdBytes() { + java.lang.Object ref = tensorboardRunId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardRunId_ = 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 (tensorboardRun_ != null) { + output.writeMessage(2, getTensorboardRun()); + } + if (!getTensorboardRunIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tensorboardRunId_); + } + 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 (tensorboardRun_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardRun()); + } + if (!getTensorboardRunIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tensorboardRunId_); + } + 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.CreateTensorboardRunRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTensorboardRun() != other.hasTensorboardRun()) return false; + if (hasTensorboardRun()) { + if (!getTensorboardRun().equals(other.getTensorboardRun())) return false; + } + if (!getTensorboardRunId().equals(other.getTensorboardRunId())) 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 (hasTensorboardRun()) { + hash = (37 * hash) + TENSORBOARD_RUN_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardRun().hashCode(); + } + hash = (37 * hash) + TENSORBOARD_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardRunId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest 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.CreateTensorboardRunRequest 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 [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.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 (tensorboardRunBuilder_ == null) { + tensorboardRun_ = null; + } else { + tensorboardRun_ = null; + tensorboardRunBuilder_ = null; + } + tensorboardRunId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest(this); + result.parent_ = parent_; + if (tensorboardRunBuilder_ == null) { + result.tensorboardRun_ = tensorboardRun_; + } else { + result.tensorboardRun_ = tensorboardRunBuilder_.build(); + } + result.tensorboardRunId_ = tensorboardRunId_; + 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.CreateTensorboardRunRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTensorboardRun()) { + mergeTensorboardRun(other.getTensorboardRun()); + } + if (!other.getTensorboardRunId().isEmpty()) { + tensorboardRunId_ = other.tensorboardRunId_; + 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.CreateTensorboardRunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Tensorboard to create the TensorboardRun in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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.v1beta1.TensorboardRun tensorboardRun_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + tensorboardRunBuilder_; + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + public boolean hasTensorboardRun() { + return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { + if (tensorboardRunBuilder_ == null) { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } else { + return tensorboardRunBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardRun_ = value; + onChanged(); + } else { + tensorboardRunBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardRun( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { + if (tensorboardRunBuilder_ == null) { + tensorboardRun_ = builderForValue.build(); + onChanged(); + } else { + tensorboardRunBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunBuilder_ == null) { + if (tensorboardRun_ != null) { + tensorboardRun_ = + com.google.cloud.aiplatform.v1beta1.TensorboardRun.newBuilder(tensorboardRun_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardRun_ = value; + } + onChanged(); + } else { + tensorboardRunBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboardRun() { + if (tensorboardRunBuilder_ == null) { + tensorboardRun_ = null; + onChanged(); + } else { + tensorboardRun_ = null; + tensorboardRunBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboardRunBuilder() { + + onChanged(); + return getTensorboardRunFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder + getTensorboardRunOrBuilder() { + if (tensorboardRunBuilder_ != null) { + return tensorboardRunBuilder_.getMessageOrBuilder(); + } else { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } + } + /** + * + * + *
+     * Required. The TensorboardRun to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + getTensorboardRunFieldBuilder() { + if (tensorboardRunBuilder_ == null) { + tensorboardRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder>( + getTensorboardRun(), getParentForChildren(), isClean()); + tensorboardRun_ = null; + } + return tensorboardRunBuilder_; + } + + private java.lang.Object tensorboardRunId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the Tensorboard run, which will become the final
+     * component of the Tensorboard run's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardRunId. + */ + public java.lang.String getTensorboardRunId() { + java.lang.Object ref = tensorboardRunId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardRunId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard run, which will become the final
+     * component of the Tensorboard run's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardRunId. + */ + public com.google.protobuf.ByteString getTensorboardRunIdBytes() { + java.lang.Object ref = tensorboardRunId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard run, which will become the final
+     * component of the Tensorboard run's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tensorboardRunId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardRunId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardRunId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard run, which will become the final
+     * component of the Tensorboard run's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTensorboardRunId() { + + tensorboardRunId_ = getDefaultInstance().getTensorboardRunId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the Tensorboard run, which will become the final
+     * component of the Tensorboard run's resource name.
+     * This value should be 1-128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tensorboardRunId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardRunIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardRunId_ = 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.CreateTensorboardRunRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTensorboardRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTensorboardRunRequest(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.CreateTensorboardRunRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java new file mode 100644 index 000000000..ae078af64 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTensorboardRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Tensorboard to create the TensorboardRun in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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 Tensorboard to create the TensorboardRun in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + boolean hasTensorboardRun(); + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun(); + /** + * + * + *
+   * Required. The TensorboardRun to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the Tensorboard run, which will become the final
+   * component of the Tensorboard run's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardRunId. + */ + java.lang.String getTensorboardRunId(); + /** + * + * + *
+   * Required. The ID to use for the Tensorboard run, which will become the final
+   * component of the Tensorboard run's resource name.
+   * This value should be 1-128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardRunId. + */ + com.google.protobuf.ByteString getTensorboardRunIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java new file mode 100644 index 000000000..41c52f322 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java @@ -0,0 +1,1195 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest} + */ +public final class CreateTensorboardTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) + CreateTensorboardTimeSeriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTensorboardTimeSeriesRequest.newBuilder() to construct. + private CreateTensorboardTimeSeriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTensorboardTimeSeriesRequest() { + parent_ = ""; + tensorboardTimeSeriesId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTensorboardTimeSeriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTensorboardTimeSeriesRequest( + 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.v1beta1.TensorboardTimeSeries.Builder subBuilder = null; + if (tensorboardTimeSeries_ != null) { + subBuilder = tensorboardTimeSeries_.toBuilder(); + } + tensorboardTimeSeries_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardTimeSeries_); + tensorboardTimeSeries_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + tensorboardTimeSeriesId_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to create the
+   * TensorboardTimeSeries in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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 TensorboardRun to create the
+   * TensorboardTimeSeries in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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 TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object tensorboardTimeSeriesId_; + /** + * + * + *
+   * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+   * will become the final component of the TensorboardTimeSeries's resource
+   * name. Ref: go/ucaip-user-specified-id
+   * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+   * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tensorboardTimeSeriesId. + */ + @java.lang.Override + public java.lang.String getTensorboardTimeSeriesId() { + java.lang.Object ref = tensorboardTimeSeriesId_; + 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(); + tensorboardTimeSeriesId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+   * will become the final component of the TensorboardTimeSeries's resource
+   * name. Ref: go/ucaip-user-specified-id
+   * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+   * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeriesId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboardTimeSeries_; + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + @java.lang.Override + public boolean hasTensorboardTimeSeries() { + return tensorboardTimeSeries_ != null; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries() { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder() { + return getTensorboardTimeSeries(); + } + + 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 (tensorboardTimeSeries_ != null) { + output.writeMessage(2, getTensorboardTimeSeries()); + } + if (!getTensorboardTimeSeriesIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tensorboardTimeSeriesId_); + } + 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 (tensorboardTimeSeries_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardTimeSeries()); + } + if (!getTensorboardTimeSeriesIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tensorboardTimeSeriesId_); + } + 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.CreateTensorboardTimeSeriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getTensorboardTimeSeriesId().equals(other.getTensorboardTimeSeriesId())) return false; + if (hasTensorboardTimeSeries() != other.hasTensorboardTimeSeries()) return false; + if (hasTensorboardTimeSeries()) { + if (!getTensorboardTimeSeries().equals(other.getTensorboardTimeSeries())) 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) + TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeriesId().hashCode(); + if (hasTensorboardTimeSeries()) { + hash = (37 * hash) + TENSORBOARD_TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeries().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + 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.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest 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.CreateTensorboardTimeSeriesRequest 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 [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.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_ = ""; + + tensorboardTimeSeriesId_ = ""; + + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = null; + } else { + tensorboardTimeSeries_ = null; + tensorboardTimeSeriesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest(this); + result.parent_ = parent_; + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + if (tensorboardTimeSeriesBuilder_ == null) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } else { + result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.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.CreateTensorboardTimeSeriesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getTensorboardTimeSeriesId().isEmpty()) { + tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + onChanged(); + } + if (other.hasTensorboardTimeSeries()) { + mergeTensorboardTimeSeries(other.getTensorboardTimeSeries()); + } + 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.CreateTensorboardTimeSeriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to create the
+     * TensorboardTimeSeries in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to create the
+     * TensorboardTimeSeries in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to create the
+     * TensorboardTimeSeries in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to create the
+     * TensorboardTimeSeries in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to create the
+     * TensorboardTimeSeries in.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 tensorboardTimeSeriesId_ = ""; + /** + * + * + *
+     * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+     * will become the final component of the TensorboardTimeSeries's resource
+     * name. Ref: go/ucaip-user-specified-id
+     * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+     * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tensorboardTimeSeriesId. + */ + public java.lang.String getTensorboardTimeSeriesId() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardTimeSeriesId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+     * will become the final component of the TensorboardTimeSeries's resource
+     * name. Ref: go/ucaip-user-specified-id
+     * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+     * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeriesId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+     * will become the final component of the TensorboardTimeSeries's resource
+     * name. Ref: go/ucaip-user-specified-id
+     * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+     * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tensorboardTimeSeriesId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardTimeSeriesId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+     * will become the final component of the TensorboardTimeSeries's resource
+     * name. Ref: go/ucaip-user-specified-id
+     * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+     * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTensorboardTimeSeriesId() { + + tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+     * will become the final component of the TensorboardTimeSeries's resource
+     * name. Ref: go/ucaip-user-specified-id
+     * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+     * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tensorboardTimeSeriesId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardTimeSeriesId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboardTimeSeries_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + tensorboardTimeSeriesBuilder_; + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + public boolean hasTensorboardTimeSeries() { + return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries() { + if (tensorboardTimeSeriesBuilder_ == null) { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } else { + return tensorboardTimeSeriesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardTimeSeries_ = value; + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = builderForValue.build(); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (tensorboardTimeSeries_ != null) { + tensorboardTimeSeries_ = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.newBuilder( + tensorboardTimeSeries_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardTimeSeries_ = value; + } + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboardTimeSeries() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = null; + onChanged(); + } else { + tensorboardTimeSeries_ = null; + tensorboardTimeSeriesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder + getTensorboardTimeSeriesBuilder() { + + onChanged(); + return getTensorboardTimeSeriesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder() { + if (tensorboardTimeSeriesBuilder_ != null) { + return tensorboardTimeSeriesBuilder_.getMessageOrBuilder(); + } else { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + getTensorboardTimeSeriesFieldBuilder() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeriesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder>( + getTensorboardTimeSeries(), getParentForChildren(), isClean()); + tensorboardTimeSeries_ = null; + } + return tensorboardTimeSeriesBuilder_; + } + + @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.CreateTensorboardTimeSeriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTensorboardTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTensorboardTimeSeriesRequest(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.CreateTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequestOrBuilder.java new file mode 100644 index 000000000..ed9a8f768 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTensorboardTimeSeriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to create the
+   * TensorboardTimeSeries in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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 TensorboardRun to create the
+   * TensorboardTimeSeries in.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+   * will become the final component of the TensorboardTimeSeries's resource
+   * name. Ref: go/ucaip-user-specified-id
+   * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+   * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tensorboardTimeSeriesId. + */ + java.lang.String getTensorboardTimeSeriesId(); + /** + * + * + *
+   * Optional. The user specified unique ID to use for the TensorboardTimeSeries, which
+   * will become the final component of the TensorboardTimeSeries's resource
+   * name. Ref: go/ucaip-user-specified-id
+   * This value should match "[a-z0-9][a-z0-9-]{0, 127}"
+   * 
+ * + * string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes(); + + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + boolean hasTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java new file mode 100644 index 000000000..c99fde74f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java @@ -0,0 +1,957 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.CreateTrial][google.cloud.aiplatform.v1beta1.VizierService.CreateTrial].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTrialRequest} + */ +public final class CreateTrialRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateTrialRequest) + CreateTrialRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTrialRequest.newBuilder() to construct. + private CreateTrialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTrialRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTrialRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTrialRequest( + 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.v1beta1.Trial.Builder subBuilder = null; + if (trial_ != null) { + subBuilder = trial_.toBuilder(); + } + trial_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Trial.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trial_); + trial_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Study to create the Trial in.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study to create the Trial in.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 TRIAL_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trial trial_; + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the trial field is set. + */ + @java.lang.Override + public boolean hasTrial() { + return trial_ != null; + } + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The trial. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trial getTrial() { + return trial_ == null ? com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance() : trial_; + } + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialOrBuilder() { + return getTrial(); + } + + 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 (trial_ != null) { + output.writeMessage(2, getTrial()); + } + 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 (trial_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTrial()); + } + 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.CreateTrialRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateTrialRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTrial() != other.hasTrial()) return false; + if (hasTrial()) { + if (!getTrial().equals(other.getTrial())) 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 (hasTrial()) { + hash = (37 * hash) + TRIAL_FIELD_NUMBER; + hash = (53 * hash) + getTrial().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest 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.CreateTrialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest 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.CreateTrialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest 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.CreateTrialRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest 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.CreateTrialRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest 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.CreateTrialRequest 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.CreateTrialRequest 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.CreateTrialRequest 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 [VizierService.CreateTrial][google.cloud.aiplatform.v1beta1.VizierService.CreateTrial].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateTrialRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateTrialRequest) + com.google.cloud.aiplatform.v1beta1.CreateTrialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.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 (trialBuilder_ == null) { + trial_ = null; + } else { + trial_ = null; + trialBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTrialRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTrialRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateTrialRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateTrialRequest(this); + result.parent_ = parent_; + if (trialBuilder_ == null) { + result.trial_ = trial_; + } else { + result.trial_ = trialBuilder_.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.CreateTrialRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateTrialRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateTrialRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CreateTrialRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTrial()) { + mergeTrial(other.getTrial()); + } + 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.CreateTrialRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateTrialRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Study to create the Trial in.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to create the Trial in.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to create the Trial in.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to create the Trial in.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to create the Trial in.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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.v1beta1.Trial trial_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + trialBuilder_; + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the trial field is set. + */ + public boolean hasTrial() { + return trialBuilder_ != null || trial_ != null; + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The trial. + */ + public com.google.cloud.aiplatform.v1beta1.Trial getTrial() { + if (trialBuilder_ == null) { + return trial_ == null + ? com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance() + : trial_; + } else { + return trialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trial_ = value; + onChanged(); + } else { + trialBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialBuilder_ == null) { + trial_ = builderForValue.build(); + onChanged(); + } else { + trialBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialBuilder_ == null) { + if (trial_ != null) { + trial_ = + com.google.cloud.aiplatform.v1beta1.Trial.newBuilder(trial_) + .mergeFrom(value) + .buildPartial(); + } else { + trial_ = value; + } + onChanged(); + } else { + trialBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTrial() { + if (trialBuilder_ == null) { + trial_ = null; + onChanged(); + } else { + trial_ = null; + trialBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder getTrialBuilder() { + + onChanged(); + return getTrialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialOrBuilder() { + if (trialBuilder_ != null) { + return trialBuilder_.getMessageOrBuilder(); + } else { + return trial_ == null + ? com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance() + : trial_; + } + } + /** + * + * + *
+     * Required. The Trial to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + getTrialFieldBuilder() { + if (trialBuilder_ == null) { + trialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>( + getTrial(), getParentForChildren(), isClean()); + trial_ = null; + } + return trialBuilder_; + } + + @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.CreateTrialRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateTrialRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateTrialRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateTrialRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateTrialRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTrialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTrialRequest(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.CreateTrialRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequestOrBuilder.java new file mode 100644 index 000000000..c93a825f6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateTrialRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateTrialRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Study to create the Trial in.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study to create the Trial in.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the trial field is set. + */ + boolean hasTrial(); + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The trial. + */ + com.google.cloud.aiplatform.v1beta1.Trial getTrial(); + /** + * + * + *
+   * Required. The Trial to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java new file mode 100644 index 000000000..437baeadf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java @@ -0,0 +1,760 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The storage details for CSV output content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CsvDestination} + */ +public final class CsvDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CsvDestination) + CsvDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use CsvDestination.newBuilder() to construct. + private CsvDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvDestination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CsvDestination( + 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.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = 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.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CsvDestination.class, + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder.class); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return gcsDestination_ != null; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + return getGcsDestination(); + } + + 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 (gcsDestination_ != null) { + output.writeMessage(1, getGcsDestination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + } + 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.CsvDestination)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CsvDestination other = + (com.google.cloud.aiplatform.v1beta1.CsvDestination) obj; + + if (hasGcsDestination() != other.hasGcsDestination()) return false; + if (hasGcsDestination()) { + if (!getGcsDestination().equals(other.getGcsDestination())) 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 (hasGcsDestination()) { + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination 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.CsvDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination 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.CsvDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination 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.CsvDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination 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.CsvDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination 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.CsvDestination 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.CsvDestination 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.CsvDestination 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 storage details for CSV output content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CsvDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CsvDestination) + com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CsvDestination.class, + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CsvDestination.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 (gcsDestinationBuilder_ == null) { + gcsDestination_ = null; + } else { + gcsDestination_ = null; + gcsDestinationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestination getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestination build() { + com.google.cloud.aiplatform.v1beta1.CsvDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestination buildPartial() { + com.google.cloud.aiplatform.v1beta1.CsvDestination result = + new com.google.cloud.aiplatform.v1beta1.CsvDestination(this); + if (gcsDestinationBuilder_ == null) { + result.gcsDestination_ = gcsDestination_; + } else { + result.gcsDestination_ = gcsDestinationBuilder_.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.CsvDestination) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CsvDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CsvDestination other) { + if (other == com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance()) + return this; + if (other.hasGcsDestination()) { + mergeGcsDestination(other.getGcsDestination()); + } + 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.CsvDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CsvDestination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + public boolean hasGcsDestination() { + return gcsDestinationBuilder_ != null || gcsDestination_ != null; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } else { + return gcsDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsDestination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + gcsDestination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (gcsDestination_ != null) { + gcsDestination_ = + com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + gcsDestination_ = value; + } + onChanged(); + } else { + gcsDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + gcsDestination_ = null; + onChanged(); + } else { + gcsDestination_ = null; + gcsDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { + + onChanged(); + return getGcsDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder + getGcsDestinationOrBuilder() { + if (gcsDestinationBuilder_ != null) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); + gcsDestination_ = null; + } + return gcsDestinationBuilder_; + } + + @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.CsvDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CsvDestination) + private static final com.google.cloud.aiplatform.v1beta1.CsvDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CsvDestination(); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CsvDestination(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.CsvDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestinationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestinationOrBuilder.java new file mode 100644 index 000000000..7db4a0485 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestinationOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CsvDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CsvDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java new file mode 100644 index 000000000..d756ac74d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java @@ -0,0 +1,756 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The storage details for CSV input content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CsvSource} + */ +public final class CsvSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CsvSource) + CsvSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use CsvSource.newBuilder() to construct. + private CsvSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CsvSource( + 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.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = 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.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CsvSource.class, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder.class); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return gcsSource_ != null; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + return getGcsSource(); + } + + 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 (gcsSource_ != null) { + output.writeMessage(1, getGcsSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + } + 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.CsvSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CsvSource other = + (com.google.cloud.aiplatform.v1beta1.CsvSource) obj; + + if (hasGcsSource() != other.hasGcsSource()) return false; + if (hasGcsSource()) { + if (!getGcsSource().equals(other.getGcsSource())) 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 (hasGcsSource()) { + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource 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.CsvSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource 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.CsvSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource 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.CsvSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource 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.CsvSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource 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.CsvSource 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.CsvSource 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.CsvSource 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 storage details for CSV input content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CsvSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CsvSource) + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CsvSource.class, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CsvSource.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 (gcsSourceBuilder_ == null) { + gcsSource_ = null; + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource build() { + com.google.cloud.aiplatform.v1beta1.CsvSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.CsvSource result = + new com.google.cloud.aiplatform.v1beta1.CsvSource(this); + if (gcsSourceBuilder_ == null) { + result.gcsSource_ = gcsSource_; + } else { + result.gcsSource_ = gcsSourceBuilder_.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.CsvSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CsvSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CsvSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance()) return this; + if (other.hasGcsSource()) { + mergeGcsSource(other.getGcsSource()); + } + 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.CsvSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.CsvSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + public boolean hasGcsSource() { + return gcsSourceBuilder_ != null || gcsSource_ != null; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } else { + return gcsSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsSource( + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + gcsSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (gcsSource_ != null) { + gcsSource_ = + com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + gcsSource_ = value; + } + onChanged(); + } else { + gcsSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + gcsSource_ = null; + onChanged(); + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { + + onChanged(); + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (gcsSourceBuilder_ != null) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); + gcsSource_ = null; + } + return gcsSourceBuilder_; + } + + @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.CsvSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CsvSource) + private static final com.google.cloud.aiplatform.v1beta1.CsvSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CsvSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.CsvSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CsvSource(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.CsvSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSourceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSourceOrBuilder.java new file mode 100644 index 000000000..98bb9b2b3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSourceOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CsvSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CsvSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java index f501cbc7f..90ce797ab 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java @@ -1,5 +1,5 @@ /* - * 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/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 78f43fce9..94929b930 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 @@ -95,34 +95,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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}\"\233\002\n\rCustomJobSpec\022O\n" + + "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\022\017\n\007network\030\005 \001(\t\022N\n\025base_output" - + "_directory\030\006 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1beta1.GcsDestination\"\333\002\n\016WorkerPool" - + "Spec\022H\n\016container_spec\030\006 \001(\0132..google.cl" - + "oud.aiplatform.v1beta1.ContainerSpecH\000\022Q" - + "\n\023python_package_spec\030\007 \001(\01322.google.clo" - + "ud.aiplatform.v1beta1.PythonPackageSpecH" - + "\000\022J\n\014machine_spec\030\001 \001(\0132,.google.cloud.a" - + "iplatform.v1beta1.MachineSpecB\006\340A\001\340A\005\022\032\n" - + "\rreplica_count\030\002 \001(\003B\003\340A\001\022<\n\tdisk_spec\030\005" - + " \001(\0132).google.cloud.aiplatform.v1beta1.D" - + "iskSpecB\006\n\004task\"F\n\rContainerSpec\022\026\n\timag" - + "e_uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004arg" - + "s\030\003 \003(\t\"y\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\"_\n\nScheduling\022*\n\007timeout\030\001 \001(" - + "\0132\031.google.protobuf.Duration\022%\n\035restart_" - + "job_on_worker_restart\030\003 \001(\010B\202\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\016CustomJobPr" - + "otoP\001ZIgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1beta1;aiplatform" - + "b\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -174,7 +176,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CustomJobSpec_descriptor, new java.lang.String[] { - "WorkerPoolSpecs", "Scheduling", "ServiceAccount", "Network", "BaseOutputDirectory", + "WorkerPoolSpecs", + "Scheduling", + "ServiceAccount", + "Network", + "BaseOutputDirectory", + "Tensorboard", }); internal_static_google_cloud_aiplatform_v1beta1_WorkerPoolSpec_descriptor = getDescriptor().getMessageTypes().get(2); @@ -217,6 +224,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-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 b0c020694..d1da17a48 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 @@ -41,6 +41,7 @@ private CustomJobSpec() { workerPoolSpecs_ = java.util.Collections.emptyList(); serviceAccount_ = ""; network_ = ""; + tensorboard_ = ""; } @java.lang.Override @@ -131,6 +132,13 @@ private CustomJobSpec( baseOutputDirectory_ = subBuilder.buildPartial(); } + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + tensorboard_ = s; break; } default: @@ -177,6 +185,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -193,6 +203,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -209,6 +221,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -224,6 +238,8 @@ public int getWorkerPoolSpecsCount() { * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -239,6 +255,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec getWorkerPoolSpecs(int * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -307,8 +325,9 @@ public com.google.cloud.aiplatform.v1beta1.SchedulingOrBuilder getSchedulingOrBu *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -333,8 +352,9 @@ public java.lang.String getServiceAccount() { *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -371,7 +391,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. */ @@ -402,7 +422,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. */ @@ -431,7 +451,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -461,7 +481,7 @@ public boolean hasBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -493,7 +513,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getBaseOutputDirectory * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -513,6 +533,65 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getBaseOutputDirectory return getBaseOutputDirectory(); } + public static final int TENSORBOARD_FIELD_NUMBER = 7; + private volatile java.lang.Object tensorboard_; + /** + * + * + *
+   * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+   * will upload Tensorboard logs.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + @java.lang.Override + public java.lang.String getTensorboard() { + java.lang.Object ref = tensorboard_; + 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(); + tensorboard_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+   * will upload Tensorboard logs.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardBytes() { + java.lang.Object ref = tensorboard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -542,6 +621,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (baseOutputDirectory_ != null) { output.writeMessage(6, getBaseOutputDirectory()); } + if (!getTensorboardBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tensorboard_); + } unknownFields.writeTo(output); } @@ -566,6 +648,9 @@ public int getSerializedSize() { if (baseOutputDirectory_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBaseOutputDirectory()); } + if (!getTensorboardBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tensorboard_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -593,6 +678,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBaseOutputDirectory()) { if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false; } + if (!getTensorboard().equals(other.getTensorboard())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -620,6 +706,8 @@ public int hashCode() { hash = (37 * hash) + BASE_OUTPUT_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getBaseOutputDirectory().hashCode(); } + hash = (37 * hash) + TENSORBOARD_FIELD_NUMBER; + hash = (53 * hash) + getTensorboard().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -789,6 +877,8 @@ public Builder clear() { baseOutputDirectory_ = null; baseOutputDirectoryBuilder_ = null; } + tensorboard_ = ""; + return this; } @@ -838,6 +928,7 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec buildPartial() { } else { result.baseOutputDirectory_ = baseOutputDirectoryBuilder_.build(); } + result.tensorboard_ = tensorboard_; onBuilt(); return result; } @@ -929,6 +1020,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other if (other.hasBaseOutputDirectory()) { mergeBaseOutputDirectory(other.getBaseOutputDirectory()); } + if (!other.getTensorboard().isEmpty()) { + tensorboard_ = other.tensorboard_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -984,6 +1079,8 @@ private void ensureWorkerPoolSpecsIsMutable() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1003,6 +1100,8 @@ private void ensureWorkerPoolSpecsIsMutable() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1021,6 +1120,8 @@ public int getWorkerPoolSpecsCount() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1039,6 +1140,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec getWorkerPoolSpecs(int * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1064,6 +1167,8 @@ public Builder setWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1086,6 +1191,8 @@ public Builder setWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1110,6 +1217,8 @@ public Builder addWorkerPoolSpecs(com.google.cloud.aiplatform.v1beta1.WorkerPool * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1135,6 +1244,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1157,6 +1268,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1179,6 +1292,8 @@ public Builder addWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1201,6 +1316,8 @@ public Builder addAllWorkerPoolSpecs( * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1222,6 +1339,8 @@ public Builder clearWorkerPoolSpecs() { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1243,6 +1362,8 @@ public Builder removeWorkerPoolSpecs(int index) { * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1258,6 +1379,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.Builder getWorkerPoolS * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1277,6 +1400,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPool * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1296,6 +1421,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPool * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1311,6 +1438,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.Builder addWorkerPoolS * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1328,6 +1457,8 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.Builder addWorkerPoolS * *
      * Required. The spec of the worker pools including machine type and Docker image.
+     * All worker pools except the first one are optional and can be skipped by
+     * providing an empty value.
      * 
* * @@ -1552,8 +1683,9 @@ public com.google.cloud.aiplatform.v1beta1.SchedulingOrBuilder getSchedulingOrBu *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1577,8 +1709,9 @@ public java.lang.String getServiceAccount() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1602,8 +1735,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1626,8 +1760,9 @@ public Builder setServiceAccount(java.lang.String value) { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1646,8 +1781,9 @@ public Builder clearServiceAccount() { *
      * Specifies the service account for workload run-as account.
      * Users submitting jobs must have act-as permission on this run-as account.
-     * If unspecified, the AI Platform Custom Code Service Agent for the
-     * CustomJob's project is used.
+     * If unspecified, the [AI Platform Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * for the CustomJob's project is used.
      * 
* * string service_account = 4; @@ -1682,7 +1818,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. */ @@ -1712,7 +1848,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. */ @@ -1742,7 +1878,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. @@ -1771,7 +1907,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. */ @@ -1796,7 +1932,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. @@ -1828,7 +1964,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1857,7 +1993,7 @@ public boolean hasBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1892,7 +2028,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getBaseOutputDirectory * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1930,7 +2066,7 @@ public Builder setBaseOutputDirectory( * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -1965,7 +2101,7 @@ public Builder setBaseOutputDirectory( * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2007,7 +2143,7 @@ public Builder mergeBaseOutputDirectory( * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2042,7 +2178,7 @@ public Builder clearBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2072,7 +2208,7 @@ public Builder clearBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2106,7 +2242,7 @@ public Builder clearBaseOutputDirectory() { * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -2137,6 +2273,137 @@ public Builder clearBaseOutputDirectory() { return baseOutputDirectoryBuilder_; } + private java.lang.Object tensorboard_ = ""; + /** + * + * + *
+     * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+     * will upload Tensorboard logs.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + public java.lang.String getTensorboard() { + java.lang.Object ref = tensorboard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+     * will upload Tensorboard logs.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + public com.google.protobuf.ByteString getTensorboardBytes() { + java.lang.Object ref = tensorboard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+     * will upload Tensorboard logs.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tensorboard to set. + * @return This builder for chaining. + */ + public Builder setTensorboard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboard_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+     * will upload Tensorboard logs.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTensorboard() { + + tensorboard_ = getDefaultInstance().getTensorboard(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+     * will upload Tensorboard logs.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tensorboard to set. + * @return This builder for chaining. + */ + public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboard_ = 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/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java index 483100384..12e488546 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 @@ -28,6 +28,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -40,6 +42,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -52,6 +56,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -64,6 +70,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -77,6 +85,8 @@ public interface CustomJobSpecOrBuilder * *
    * Required. The spec of the worker pools including machine type and Docker image.
+   * All worker pools except the first one are optional and can be skipped by
+   * providing an empty value.
    * 
* * @@ -127,8 +137,9 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -142,8 +153,9 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr *
    * Specifies the service account for workload run-as account.
    * Users submitting jobs must have act-as permission on this run-as account.
-   * If unspecified, the AI Platform Custom Code Service Agent for the
-   * CustomJob's project is used.
+   * If unspecified, the [AI Platform Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * for the CustomJob's project is used.
    * 
* * string service_account = 4; @@ -167,7 +179,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * unspecified, the job is not peered with any network. *
* - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The network. */ @@ -187,7 +199,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * unspecified, the job is not peered with any network. *
* - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The bytes for network. */ @@ -203,7 +215,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -230,7 +242,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -257,7 +269,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * each child CustomJob backing a Trial is set to a subdirectory of name * [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's * baseOutputDirectory. - * The following AI Platform environment variables will be passed to + * The following Vertex AI environment variables will be passed to * containers or python modules when this field is set: * For CustomJob: * * AIP_MODEL_DIR = `<base_output_directory>/model/` @@ -272,4 +284,39 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * .google.cloud.aiplatform.v1beta1.GcsDestination base_output_directory = 6; */ com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getBaseOutputDirectoryOrBuilder(); + + /** + * + * + *
+   * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+   * will upload Tensorboard logs.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + java.lang.String getTensorboard(); + /** + * + * + *
+   * Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob
+   * will upload Tensorboard logs.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + com.google.protobuf.ByteString getTensorboardBytes(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java index 9a0881fca..2a1406b2a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java @@ -524,7 +524,7 @@ public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { * * *
-   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -548,7 +548,7 @@ public java.lang.String getEtag() { * * *
-   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -1952,7 +1952,7 @@ public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { * * *
-     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -1975,7 +1975,7 @@ public java.lang.String getEtag() { * * *
-     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -1998,7 +1998,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2020,7 +2020,7 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2038,7 +2038,7 @@ public Builder clearEtag() { * * *
-     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java index 324c44307..7bec06534 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java index 51b99beb6..d649c854b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java @@ -263,7 +263,7 @@ public interface DataItemOrBuilder * * *
-   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -276,7 +276,7 @@ public interface DataItemOrBuilder * * *
-   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java index 2df6ab022..75dbfa77b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java @@ -1328,9 +1328,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -1345,9 +1345,9 @@ public boolean hasActiveLearningConfig() { * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -1364,9 +1364,9 @@ public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig getActiveLearnin * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4776,9 +4776,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4793,9 +4793,9 @@ public boolean hasActiveLearningConfig() { * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4816,9 +4816,9 @@ public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig getActiveLearnin * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4842,9 +4842,9 @@ public Builder setActiveLearningConfig( * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4865,9 +4865,9 @@ public Builder setActiveLearningConfig( * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4896,9 +4896,9 @@ public Builder mergeActiveLearningConfig( * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4919,9 +4919,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4937,9 +4937,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -4959,9 +4959,9 @@ public Builder clearActiveLearningConfig() { * * *
-     * Parameters that configure active learning pipeline. Active learning will
-     * label the data incrementally via several iterations. For every iteration,
-     * it will select a batch of data based on the sampling strategy.
+     * Parameters that configure the active learning pipeline. Active learning
+     * will label the data incrementally via several iterations. For every
+     * iteration, it will select a batch of data based on the sampling strategy.
      * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java index 0801fabc7..cebcdbaad 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java index 5e4ffea31..d65cafe29 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java @@ -736,9 +736,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -750,9 +750,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; @@ -764,9 +764,9 @@ java.lang.String getAnnotationLabelsOrDefault( * * *
-   * Parameters that configure active learning pipeline. Active learning will
-   * label the data incrementally via several iterations. For every iteration,
-   * it will select a batch of data based on the sampling strategy.
+   * Parameters that configure the active learning pipeline. Active learning
+   * will label the data incrementally via several iterations. For every
+   * iteration, it will select a batch of data based on the sampling strategy.
    * 
* * .google.cloud.aiplatform.v1beta1.ActiveLearningConfig active_learning_config = 21; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java index c7b27cc8f..f59725557 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java @@ -1,5 +1,5 @@ /* - * 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/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 40764db33..0ca877976 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 @@ -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,20 @@ private DedicatedResources( maxReplicaCount_ = input.readInt32(); break; } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + autoscalingMetricSpecs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec>(); + mutable_bitField0_ |= 0x00000001; + } + autoscalingMetricSpecs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -109,6 +126,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(); } @@ -216,7 +236,7 @@ public int getMinReplicaCount() { * *
    * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-   * the traffic against it increases. If requested value is too large,
+   * the traffic against it increases. If the requested value is too large,
    * the deployment will error, but if deployment succeeds then the ability
    * to scale the model to that many replicas is guaranteed (barring service
    * outages). If traffic against the DeployedModel increases beyond what its
@@ -234,6 +254,170 @@ 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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder> + 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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder + getAutoscalingMetricSpecsOrBuilder(int index) { + return autoscalingMetricSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -257,6 +441,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 +462,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 +489,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 +510,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; @@ -457,7 +655,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 @@ -473,6 +673,12 @@ public Builder clear() { maxReplicaCount_ = 0; + if (autoscalingMetricSpecsBuilder_ == null) { + autoscalingMetricSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + autoscalingMetricSpecsBuilder_.clear(); + } return this; } @@ -500,6 +706,7 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources build() { public com.google.cloud.aiplatform.v1beta1.DedicatedResources buildPartial() { com.google.cloud.aiplatform.v1beta1.DedicatedResources result = new com.google.cloud.aiplatform.v1beta1.DedicatedResources(this); + int from_bitField0_ = bitField0_; if (machineSpecBuilder_ == null) { result.machineSpec_ = machineSpec_; } else { @@ -507,6 +714,15 @@ public com.google.cloud.aiplatform.v1beta1.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; } @@ -566,6 +782,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources 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; @@ -596,6 +839,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.MachineSpec, @@ -882,7 +1127,7 @@ public Builder clearMinReplicaCount() { * *
      * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-     * the traffic against it increases. If requested value is too large,
+     * the traffic against it increases. If the requested value is too large,
      * the deployment will error, but if deployment succeeds then the ability
      * to scale the model to that many replicas is guaranteed (barring service
      * outages). If traffic against the DeployedModel increases beyond what its
@@ -904,7 +1149,7 @@ public int getMaxReplicaCount() {
      *
      * 
      * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-     * the traffic against it increases. If requested value is too large,
+     * the traffic against it increases. If the requested value is too large,
      * the deployment will error, but if deployment succeeds then the ability
      * to scale the model to that many replicas is guaranteed (barring service
      * outages). If traffic against the DeployedModel increases beyond what its
@@ -929,7 +1174,7 @@ public Builder setMaxReplicaCount(int value) {
      *
      * 
      * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-     * the traffic against it increases. If requested value is too large,
+     * the traffic against it increases. If the requested value is too large,
      * the deployment will error, but if deployment succeeds then the ability
      * to scale the model to that many replicas is guaranteed (barring service
      * outages). If traffic against the DeployedModel increases beyond what its
@@ -949,6 +1194,701 @@ 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.v1beta1.AutoscalingMetricSpec,
+            com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder,
+            com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAutoscalingMetricSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder> + 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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder + addAutoscalingMetricSpecsBuilder() { + return getAutoscalingMetricSpecsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder + addAutoscalingMetricSpecsBuilder(int index) { + return getAutoscalingMetricSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.AutoscalingMetricSpec, + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder> + getAutoscalingMetricSpecsFieldBuilder() { + if (autoscalingMetricSpecsBuilder_ == null) { + autoscalingMetricSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec, + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.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-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 886f73268..6769d34f2 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 @@ -90,7 +90,7 @@ public interface DedicatedResourcesOrBuilder * *
    * Immutable. The maximum number of replicas this DeployedModel may be deployed on when
-   * the traffic against it increases. If requested value is too large,
+   * the traffic against it increases. If the requested value is too large,
    * the deployment will error, but if deployment succeeds then the ability
    * to scale the model to that many replicas is guaranteed (barring service
    * outages). If traffic against the DeployedModel increases beyond what its
@@ -104,4 +104,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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder + getAutoscalingMetricSpecsOrBuilder(int index); } 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 new file mode 100644 index 000000000..cc87b0c4b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java @@ -0,0 +1,767 @@ +/* + * 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.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteContextRequest} + */ +public final class DeleteContextRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteContextRequest) + DeleteContextRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteContextRequest.newBuilder() to construct. + private DeleteContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteContextRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteContextRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteContextRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + 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_DeleteContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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 Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_; + /** + * + * + *
+   * 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).
+   * 
+ * + * bool force = 2; + * + * @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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.DeleteContextRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteContextRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.DeleteContextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest 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.DeleteContextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest 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.DeleteContextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest 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.DeleteContextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest 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.DeleteContextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest 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.DeleteContextRequest 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.DeleteContextRequest 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.DeleteContextRequest 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.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteContextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteContextRequest) + com.google.cloud.aiplatform.v1beta1.DeleteContextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.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_ = ""; + + 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_DeleteContextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteContextRequest(this); + result.name_ = name_; + 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.DeleteContextRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteContextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteContextRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteContextRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.DeleteContextRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteContextRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 boolean force_; + /** + * + * + *
+     * 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).
+     * 
+ * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * 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).
+     * 
+ * + * bool force = 2; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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).
+     * 
+ * + * bool force = 2; + * + * @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.DeleteContextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteContextRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteContextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteContextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteContextRequest(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.DeleteContextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..3a307d919 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequestOrBuilder.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteContextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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 Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + 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).
+   * 
+ * + * bool force = 2; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java new file mode 100644 index 000000000..8aedba824 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java @@ -0,0 +1,759 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.DeleteEntityTypes][].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} + */ +public final class DeleteEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + DeleteEntityTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEntityTypeRequest.newBuilder() to construct. + private DeleteEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEntityTypeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEntityTypeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteEntityTypeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the EntityType to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_; + /** + * + * + *
+   * If set to true, any Features for this EntityType will also be deleted.
+   * (Otherwise, the request will only work if the EntityType has no Features.)
+   * 
+ * + * bool force = 2; + * + * @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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.DeleteEntityTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.DeleteEntityTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest 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.DeleteEntityTypeRequest 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.DeleteEntityTypes][].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.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_ = ""; + + force_ = false; + + 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_DeleteEntityTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(this); + result.name_ = name_; + 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.DeleteEntityTypeRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.DeleteEntityTypeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the EntityType to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 boolean force_; + /** + * + * + *
+     * If set to true, any Features for this EntityType will also be deleted.
+     * (Otherwise, the request will only work if the EntityType has no Features.)
+     * 
+ * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * If set to true, any Features for this EntityType will also be deleted.
+     * (Otherwise, the request will only work if the EntityType has no Features.)
+     * 
+ * + * bool force = 2; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, any Features for this EntityType will also be deleted.
+     * (Otherwise, the request will only work if the EntityType has no Features.)
+     * 
+ * + * bool force = 2; + * + * @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.DeleteEntityTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteEntityTypeRequest(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.DeleteEntityTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequestOrBuilder.java new file mode 100644 index 000000000..3f0d2a109 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteEntityTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EntityType to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EntityType to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If set to true, any Features for this EntityType will also be deleted.
+   * (Otherwise, the request will only work if the EntityType has no Features.)
+   * 
+ * + * bool force = 2; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java new file mode 100644 index 000000000..9d6e2e299 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.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/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} + */ +public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) + DeleteFeatureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeatureRequest.newBuilder() to construct. + private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeatureRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeatureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeatureRequest( + 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Features to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * 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 Features to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * 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.v1beta1.DeleteFeatureRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) 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.v1beta1.DeleteFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest 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.DeleteFeatureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest 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.DeleteFeatureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest 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.DeleteFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest 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.DeleteFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest 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.DeleteFeatureRequest 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.DeleteFeatureRequest 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.DeleteFeatureRequest 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.DeleteFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(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.v1beta1.DeleteFeatureRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.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.v1beta1.DeleteFeatureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Features to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * 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 Features to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * 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 Features to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * 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 Features to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * 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 Features to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * 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.v1beta1.DeleteFeatureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(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.DeleteFeatureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequestOrBuilder.java new file mode 100644 index 000000000..494a8e091 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteFeatureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Features to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Features to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java new file mode 100644 index 000000000..bc23decad --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java @@ -0,0 +1,767 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} + */ +public final class DeleteFeaturestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + DeleteFeaturestoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeaturestoreRequest.newBuilder() to construct. + private DeleteFeaturestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeaturestoreRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeaturestoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeaturestoreRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Featurestore to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 Featurestore to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_; + /** + * + * + *
+   * If set to true, any EntityTypes and Features for this Featurestore will
+   * also be deleted. (Otherwise, the request will only work if the Featurestore
+   * has no EntityTypes.)
+   * 
+ * + * bool force = 2; + * + * @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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.DeleteFeaturestoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.DeleteFeaturestoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest 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.DeleteFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.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_ = ""; + + force_ = false; + + 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_DeleteFeaturestoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(this); + result.name_ = name_; + 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.DeleteFeaturestoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.DeleteFeaturestoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Featurestore to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 boolean force_; + /** + * + * + *
+     * If set to true, any EntityTypes and Features for this Featurestore will
+     * also be deleted. (Otherwise, the request will only work if the Featurestore
+     * has no EntityTypes.)
+     * 
+ * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * If set to true, any EntityTypes and Features for this Featurestore will
+     * also be deleted. (Otherwise, the request will only work if the Featurestore
+     * has no EntityTypes.)
+     * 
+ * + * bool force = 2; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, any EntityTypes and Features for this Featurestore will
+     * also be deleted. (Otherwise, the request will only work if the Featurestore
+     * has no EntityTypes.)
+     * 
+ * + * bool force = 2; + * + * @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.DeleteFeaturestoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeaturestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeaturestoreRequest(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.DeleteFeaturestoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequestOrBuilder.java new file mode 100644 index 000000000..60dc5c29d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequestOrBuilder.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/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteFeaturestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Featurestore to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Featurestore to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If set to true, any EntityTypes and Features for this Featurestore will
+   * also be deleted. (Otherwise, the request will only work if the Featurestore
+   * has no EntityTypes.)
+   * 
+ * + * bool force = 2; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java new file mode 100644 index 000000000..1213ca0fd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java @@ -0,0 +1,671 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} + */ +public final class DeleteIndexEndpointRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + DeleteIndexEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIndexEndpointRequest.newBuilder() to construct. + private DeleteIndexEndpointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIndexEndpointRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIndexEndpointRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteIndexEndpointRequest( + 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.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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 IndexEndpoint resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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.v1beta1.DeleteIndexEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) 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.v1beta1.DeleteIndexEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest 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 [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.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.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(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.v1beta1.DeleteIndexEndpointRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.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.v1beta1.DeleteIndexEndpointRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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.v1beta1.DeleteIndexEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIndexEndpointRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIndexEndpointRequest(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.DeleteIndexEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequestOrBuilder.java new file mode 100644 index 000000000..6ad8629e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteIndexEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java new file mode 100644 index 000000000..14895281d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexService.DeleteIndex][google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteIndexRequest} + */ +public final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + DeleteIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIndexRequest.newBuilder() to construct. + private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIndexRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteIndexRequest( + 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.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Index resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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 Index resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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.v1beta1.DeleteIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) 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.v1beta1.DeleteIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest 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.DeleteIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest 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.DeleteIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest 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.DeleteIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest 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.DeleteIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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.DeleteIndexRequest 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 [IndexService.DeleteIndex][google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.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.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(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.v1beta1.DeleteIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest.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.v1beta1.DeleteIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Index resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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.v1beta1.DeleteIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIndexRequest(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.DeleteIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequestOrBuilder.java new file mode 100644 index 000000000..d26385a03 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Index resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Index resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java new file mode 100644 index 000000000..e57b2d23c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java @@ -0,0 +1,761 @@ +/* + * 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.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} + */ +public final class DeleteMetadataStoreOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + DeleteMetadataStoreOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMetadataStoreOperationMetadata.newBuilder() to construct. + private DeleteMetadataStoreOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMetadataStoreOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMetadataStoreOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteMetadataStoreOperationMetadata( + 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_DeleteMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for deleting a MetadataStore.
+   * 
+ * + * .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 deleting a MetadataStore.
+   * 
+ * + * .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 deleting a MetadataStore.
+   * 
+ * + * .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.DeleteMetadataStoreOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) 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.DeleteMetadataStoreOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + 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.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.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_DeleteMetadataStoreOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(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.DeleteMetadataStoreOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + .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.DeleteMetadataStoreOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + 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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for deleting a MetadataStore.
+     * 
+ * + * .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 deleting a MetadataStore.
+     * 
+ * + * .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.DeleteMetadataStoreOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMetadataStoreOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMetadataStoreOperationMetadata(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.DeleteMetadataStoreOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadataOrBuilder.java new file mode 100644 index 000000000..ebf9b9681 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadataOrBuilder.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 DeleteMetadataStoreOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for deleting a MetadataStore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for deleting a MetadataStore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for deleting a MetadataStore.
+   * 
+ * + * .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/DeleteMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java new file mode 100644 index 000000000..b0ab5ea74 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java @@ -0,0 +1,769 @@ +/* + * 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.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} + */ +public final class DeleteMetadataStoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + DeleteMetadataStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMetadataStoreRequest.newBuilder() to construct. + private DeleteMetadataStoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMetadataStoreRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMetadataStoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteMetadataStoreRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + 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_DeleteMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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 MetadataStore to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_; + /** + * + * + *
+   * If set to true, any child resources of this MetadataStore will be deleted.
+   * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
+   * MetadataStore has any child resources.)
+   * 
+ * + * bool force = 2; + * + * @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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.DeleteMetadataStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.DeleteMetadataStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest 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.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.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_ = ""; + + 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_DeleteMetadataStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(this); + result.name_ = name_; + 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.DeleteMetadataStoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.DeleteMetadataStoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 boolean force_; + /** + * + * + *
+     * If set to true, any child resources of this MetadataStore will be deleted.
+     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
+     * MetadataStore has any child resources.)
+     * 
+ * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * If set to true, any child resources of this MetadataStore will be deleted.
+     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
+     * MetadataStore has any child resources.)
+     * 
+ * + * bool force = 2; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, any child resources of this MetadataStore will be deleted.
+     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
+     * MetadataStore has any child resources.)
+     * 
+ * + * bool force = 2; + * + * @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.DeleteMetadataStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMetadataStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMetadataStoreRequest(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.DeleteMetadataStoreRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.java new file mode 100644 index 000000000..0d4c3c61c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequestOrBuilder.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteMetadataStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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 MetadataStore to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If set to true, any child resources of this MetadataStore will be deleted.
+   * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
+   * MetadataStore has any child resources.)
+   * 
+ * + * bool force = 2; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..6dcd91633 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,695 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.DeleteModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} + */ +public final class DeleteModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + DeleteModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private DeleteModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteModelDeploymentMonitoringJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteModelDeploymentMonitoringJobRequest( + 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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the model monitoring job to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the model monitoring job to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.DeleteModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) 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.v1beta1.DeleteModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest + 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.DeleteModelDeploymentMonitoringJobRequest 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
+   * [JobService.DeleteModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(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.v1beta1.DeleteModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + .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.v1beta1.DeleteModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the model monitoring job to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the model monitoring job to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the model monitoring job to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the model monitoring job to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the model monitoring job to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelDeploymentMonitoringJobRequest(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.DeleteModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..c2995458d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the model monitoring job to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
+   * 
+ * + * + * 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 model monitoring job to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java new file mode 100644 index 000000000..1ac19bb9b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} + */ +public final class DeletePipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.DeletePipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest build() { + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.DeletePipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..66e1ee43e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeletePipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java new file mode 100644 index 000000000..3ff7549de --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java @@ -0,0 +1,658 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.DeleteStudy][google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteStudyRequest} + */ +public final class DeleteStudyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteStudyRequest) + DeleteStudyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteStudyRequest.newBuilder() to construct. + private DeleteStudyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteStudyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteStudyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteStudyRequest( + 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Study resource to be deleted.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study resource to be deleted.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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.v1beta1.DeleteStudyRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest) 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.v1beta1.DeleteStudyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest 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.DeleteStudyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest 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.DeleteStudyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest 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.DeleteStudyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest 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.DeleteStudyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest 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.DeleteStudyRequest 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.DeleteStudyRequest 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.DeleteStudyRequest 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 [VizierService.DeleteStudy][google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteStudyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteStudyRequest) + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest(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.v1beta1.DeleteStudyRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest.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.v1beta1.DeleteStudyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Study resource to be deleted.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource to be deleted.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource to be deleted.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource to be deleted.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource to be deleted.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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.v1beta1.DeleteStudyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteStudyRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStudyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteStudyRequest(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.DeleteStudyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequestOrBuilder.java new file mode 100644 index 000000000..d2c4c5dbd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteStudyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteStudyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Study resource to be deleted.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Study resource to be deleted.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java new file mode 100644 index 000000000..e2d3eb72f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java @@ -0,0 +1,678 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest} + */ +public final class DeleteTensorboardExperimentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) + DeleteTensorboardExperimentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTensorboardExperimentRequest.newBuilder() to construct. + private DeleteTensorboardExperimentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTensorboardExperimentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTensorboardExperimentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTensorboardExperimentRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardExperiment to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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 TensorboardExperiment to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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.v1beta1.DeleteTensorboardExperimentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) 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.v1beta1.DeleteTensorboardExperimentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + 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.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest 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.DeleteTensorboardExperimentRequest 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 [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest(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.v1beta1.DeleteTensorboardExperimentRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + .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.v1beta1.DeleteTensorboardExperimentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardExperiment to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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.v1beta1.DeleteTensorboardExperimentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTensorboardExperimentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTensorboardExperimentRequest(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.DeleteTensorboardExperimentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequestOrBuilder.java new file mode 100644 index 000000000..1d8263092 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteTensorboardExperimentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardExperiment to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardExperiment to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java new file mode 100644 index 000000000..746089630 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java @@ -0,0 +1,668 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest} + */ +public final class DeleteTensorboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) + DeleteTensorboardRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTensorboardRequest.newBuilder() to construct. + private DeleteTensorboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTensorboardRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTensorboardRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTensorboardRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Tensorboard to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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 Tensorboard to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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.v1beta1.DeleteTensorboardRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) 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.v1beta1.DeleteTensorboardRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest 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.DeleteTensorboardRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest 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.DeleteTensorboardRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest 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.DeleteTensorboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest 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.DeleteTensorboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest 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.DeleteTensorboardRequest 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.DeleteTensorboardRequest 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.DeleteTensorboardRequest 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 [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest(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.v1beta1.DeleteTensorboardRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest.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.v1beta1.DeleteTensorboardRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Tensorboard to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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.v1beta1.DeleteTensorboardRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTensorboardRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTensorboardRequest(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.DeleteTensorboardRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequestOrBuilder.java new file mode 100644 index 000000000..5c9759586 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteTensorboardRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Tensorboard to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Tensorboard to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java new file mode 100644 index 000000000..c860bed5d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java @@ -0,0 +1,672 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest} + */ +public final class DeleteTensorboardRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) + DeleteTensorboardRunRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTensorboardRunRequest.newBuilder() to construct. + private DeleteTensorboardRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTensorboardRunRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTensorboardRunRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTensorboardRunRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardRun to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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 TensorboardRun to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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.v1beta1.DeleteTensorboardRunRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) 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.v1beta1.DeleteTensorboardRunRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest 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.DeleteTensorboardRunRequest 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 [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest(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.v1beta1.DeleteTensorboardRunRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest.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.v1beta1.DeleteTensorboardRunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardRun to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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.v1beta1.DeleteTensorboardRunRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTensorboardRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTensorboardRunRequest(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.DeleteTensorboardRunRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequestOrBuilder.java new file mode 100644 index 000000000..c89481d54 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteTensorboardRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardRun to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardRun to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java new file mode 100644 index 000000000..0d5721e10 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java @@ -0,0 +1,678 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest} + */ +public final class DeleteTensorboardTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) + DeleteTensorboardTimeSeriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTensorboardTimeSeriesRequest.newBuilder() to construct. + private DeleteTensorboardTimeSeriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTensorboardTimeSeriesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTensorboardTimeSeriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTensorboardTimeSeriesRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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 TensorboardTimeSeries to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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.v1beta1.DeleteTensorboardTimeSeriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) 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.v1beta1.DeleteTensorboardTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + 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.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest 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.DeleteTensorboardTimeSeriesRequest 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 [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest(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.v1beta1.DeleteTensorboardTimeSeriesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + .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.v1beta1.DeleteTensorboardTimeSeriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardTimeSeries to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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.v1beta1.DeleteTensorboardTimeSeriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTensorboardTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTensorboardTimeSeriesRequest(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.DeleteTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequestOrBuilder.java new file mode 100644 index 000000000..ec36887a9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteTensorboardTimeSeriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java new file mode 100644 index 000000000..529d9e283 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.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/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.DeleteTrial][google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTrialRequest} + */ +public final class DeleteTrialRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteTrialRequest) + DeleteTrialRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTrialRequest.newBuilder() to construct. + private DeleteTrialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTrialRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTrialRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTrialRequest( + 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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 Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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.v1beta1.DeleteTrialRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest) 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.v1beta1.DeleteTrialRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest 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.DeleteTrialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest 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.DeleteTrialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest 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.DeleteTrialRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest 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.DeleteTrialRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest 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.DeleteTrialRequest 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.DeleteTrialRequest 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.DeleteTrialRequest 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 [VizierService.DeleteTrial][google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteTrialRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteTrialRequest) + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest(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.v1beta1.DeleteTrialRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest.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.v1beta1.DeleteTrialRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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.v1beta1.DeleteTrialRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteTrialRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTrialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTrialRequest(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.DeleteTrialRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequestOrBuilder.java new file mode 100644 index 000000000..d3e1e31cc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteTrialRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteTrialRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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-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 new file mode 100644 index 000000000..88587b60f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java @@ -0,0 +1,750 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} + */ +public final class DeployIndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + DeployIndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployIndexOperationMetadata.newBuilder() to construct. + private DeployIndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployIndexOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployIndexOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployIndexOperationMetadata( + 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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.DeployIndexOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) 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.DeployIndexOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata 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.DeployIndexOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(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.DeployIndexOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.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.DeployIndexOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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.DeployIndexOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployIndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployIndexOperationMetadata(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.DeployIndexOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..40bff8ee4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadataOrBuilder.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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployIndexOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/DeployIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java new file mode 100644 index 000000000..182c3d44b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java @@ -0,0 +1,968 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexRequest} + */ +public final class DeployIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployIndexRequest) + DeployIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployIndexRequest.newBuilder() to construct. + private DeployIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployIndexRequest() { + indexEndpoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployIndexRequest( + 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(); + + indexEndpoint_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder subBuilder = null; + if (deployedIndex_ != null) { + subBuilder = deployedIndex_.toBuilder(); + } + deployedIndex_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedIndex_); + deployedIndex_ = 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.Builder.class); + } + + public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; + private volatile java.lang.Object indexEndpoint_; + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + @java.lang.Override + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + 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(); + indexEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_INDEX_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployedIndex field is set. + */ + @java.lang.Override + public boolean hasDeployedIndex() { + return deployedIndex_ != null; + } + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployedIndex. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { + return getDeployedIndex(); + } + + 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 (!getIndexEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexEndpoint_); + } + if (deployedIndex_ != null) { + output.writeMessage(2, getDeployedIndex()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIndexEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexEndpoint_); + } + if (deployedIndex_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployedIndex()); + } + 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.DeployIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.DeployIndexRequest) obj; + + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) return false; + if (hasDeployedIndex() != other.hasDeployedIndex()) return false; + if (hasDeployedIndex()) { + if (!getDeployedIndex().equals(other.getDeployedIndex())) 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) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + if (hasDeployedIndex()) { + hash = (37 * hash) + DEPLOYED_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndex().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest 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.DeployIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest 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.DeployIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest 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.DeployIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest 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.DeployIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest 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.DeployIndexRequest 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.DeployIndexRequest 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.DeployIndexRequest 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 [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployIndexRequest) + com.google.cloud.aiplatform.v1beta1.DeployIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.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(); + indexEndpoint_ = ""; + + if (deployedIndexBuilder_ == null) { + deployedIndex_ = null; + } else { + deployedIndex_ = null; + deployedIndexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.DeployIndexRequest(this); + result.indexEndpoint_ = indexEndpoint_; + if (deployedIndexBuilder_ == null) { + result.deployedIndex_ = deployedIndex_; + } else { + result.deployedIndex_ = deployedIndexBuilder_.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.DeployIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployIndexRequest.getDefaultInstance()) + return this; + if (!other.getIndexEndpoint().isEmpty()) { + indexEndpoint_ = other.indexEndpoint_; + onChanged(); + } + if (other.hasDeployedIndex()) { + mergeDeployedIndex(other.getDeployedIndex()); + } + 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.DeployIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object indexEndpoint_ = ""; + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indexEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + indexEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIndexEndpoint() { + + indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indexEndpoint_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + deployedIndexBuilder_; + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployedIndex field is set. + */ + public boolean hasDeployedIndex() { + return deployedIndexBuilder_ != null || deployedIndex_ != null; + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployedIndex. + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { + if (deployedIndexBuilder_ == null) { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } else { + return deployedIndexBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedIndex_ = value; + onChanged(); + } else { + deployedIndexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployedIndex( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { + if (deployedIndexBuilder_ == null) { + deployedIndex_ = builderForValue.build(); + onChanged(); + } else { + deployedIndexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexBuilder_ == null) { + if (deployedIndex_ != null) { + deployedIndex_ = + com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedIndex_ = value; + } + onChanged(); + } else { + deployedIndexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployedIndex() { + if (deployedIndexBuilder_ == null) { + deployedIndex_ = null; + onChanged(); + } else { + deployedIndex_ = null; + deployedIndexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { + + onChanged(); + return getDeployedIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { + if (deployedIndexBuilder_ != null) { + return deployedIndexBuilder_.getMessageOrBuilder(); + } else { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } + } + /** + * + * + *
+     * Required. The DeployedIndex to be created within the IndexEndpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + getDeployedIndexFieldBuilder() { + if (deployedIndexBuilder_ == null) { + deployedIndexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder>( + getDeployedIndex(), getParentForChildren(), isClean()); + deployedIndex_ = null; + } + return deployedIndexBuilder_; + } + + @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.DeployIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeployIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployIndexRequest(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.DeployIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequestOrBuilder.java new file mode 100644 index 000000000..b79e32550 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequestOrBuilder.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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + java.lang.String getIndexEndpoint(); + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource into which to deploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + com.google.protobuf.ByteString getIndexEndpointBytes(); + + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployedIndex field is set. + */ + boolean hasDeployedIndex(); + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployedIndex. + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex(); + /** + * + * + *
+   * Required. The DeployedIndex to be created within the IndexEndpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java new file mode 100644 index 000000000..ab56bfb94 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java @@ -0,0 +1,736 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexResponse} + */ +public final class DeployIndexResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployIndexResponse) + DeployIndexResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployIndexResponse.newBuilder() to construct. + private DeployIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployIndexResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployIndexResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployIndexResponse( + 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.DeployedIndex.Builder subBuilder = null; + if (deployedIndex_ != null) { + subBuilder = deployedIndex_.toBuilder(); + } + deployedIndex_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedIndex_); + deployedIndex_ = 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.Builder.class); + } + + public static final int DEPLOYED_INDEX_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return Whether the deployedIndex field is set. + */ + @java.lang.Override + public boolean hasDeployedIndex() { + return deployedIndex_ != null; + } + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return The deployedIndex. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { + return getDeployedIndex(); + } + + 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 (deployedIndex_ != null) { + output.writeMessage(1, getDeployedIndex()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedIndex_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedIndex()); + } + 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.DeployIndexResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse other = + (com.google.cloud.aiplatform.v1beta1.DeployIndexResponse) obj; + + if (hasDeployedIndex() != other.hasDeployedIndex()) return false; + if (hasDeployedIndex()) { + if (!getDeployedIndex().equals(other.getDeployedIndex())) 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 (hasDeployedIndex()) { + hash = (37 * hash) + DEPLOYED_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndex().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse 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.DeployIndexResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse 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.DeployIndexResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse 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.DeployIndexResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse 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.DeployIndexResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse 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.DeployIndexResponse 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.DeployIndexResponse 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.DeployIndexResponse 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 [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployIndexResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployIndexResponse) + com.google.cloud.aiplatform.v1beta1.DeployIndexResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.class, + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.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 (deployedIndexBuilder_ == null) { + deployedIndex_ = null; + } else { + deployedIndex_ = null; + deployedIndexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexResponse build() { + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployIndexResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployIndexResponse result = + new com.google.cloud.aiplatform.v1beta1.DeployIndexResponse(this); + if (deployedIndexBuilder_ == null) { + result.deployedIndex_ = deployedIndex_; + } else { + result.deployedIndex_ = deployedIndexBuilder_.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.DeployIndexResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployIndexResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployIndexResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployIndexResponse.getDefaultInstance()) + return this; + if (other.hasDeployedIndex()) { + mergeDeployedIndex(other.getDeployedIndex()); + } + 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.DeployIndexResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployIndexResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + deployedIndexBuilder_; + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return Whether the deployedIndex field is set. + */ + public boolean hasDeployedIndex() { + return deployedIndexBuilder_ != null || deployedIndex_ != null; + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return The deployedIndex. + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { + if (deployedIndexBuilder_ == null) { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } else { + return deployedIndexBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedIndex_ = value; + onChanged(); + } else { + deployedIndexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public Builder setDeployedIndex( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { + if (deployedIndexBuilder_ == null) { + deployedIndex_ = builderForValue.build(); + onChanged(); + } else { + deployedIndexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexBuilder_ == null) { + if (deployedIndex_ != null) { + deployedIndex_ = + com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedIndex_ = value; + } + onChanged(); + } else { + deployedIndexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public Builder clearDeployedIndex() { + if (deployedIndexBuilder_ == null) { + deployedIndex_ = null; + onChanged(); + } else { + deployedIndex_ = null; + deployedIndexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { + + onChanged(); + return getDeployedIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { + if (deployedIndexBuilder_ != null) { + return deployedIndexBuilder_.getMessageOrBuilder(); + } else { + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; + } + } + /** + * + * + *
+     * The DeployedIndex that had been deployed in the IndexEndpoint.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + getDeployedIndexFieldBuilder() { + if (deployedIndexBuilder_ == null) { + deployedIndexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder>( + getDeployedIndex(), getParentForChildren(), isClean()); + deployedIndex_ = null; + } + return deployedIndexBuilder_; + } + + @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.DeployIndexResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployIndexResponse) + private static final com.google.cloud.aiplatform.v1beta1.DeployIndexResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployIndexResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployIndexResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployIndexResponse(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.DeployIndexResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponseOrBuilder.java new file mode 100644 index 000000000..c6ccea3aa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponseOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployIndexResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployIndexResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return Whether the deployedIndex field is set. + */ + boolean hasDeployedIndex(); + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + * + * @return The deployedIndex. + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex(); + /** + * + * + *
+   * The DeployedIndex that had been deployed in the IndexEndpoint.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder(); +} 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 new file mode 100644 index 000000000..040aac1ed --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java @@ -0,0 +1,2938 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndex} + */ +public final class DeployedIndex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployedIndex) + DeployedIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployedIndex.newBuilder() to construct. + private DeployedIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployedIndex() { + id_ = ""; + index_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployedIndex(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployedIndex( + 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(); + + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + index_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + 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 42: + { + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder subBuilder = null; + if (privateEndpoints_ != null) { + subBuilder = privateEndpoints_.toBuilder(); + } + privateEndpoints_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateEndpoints_); + privateEndpoints_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (indexSyncTime_ != null) { + subBuilder = indexSyncTime_.toBuilder(); + } + indexSyncTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexSyncTime_); + indexSyncTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder subBuilder = null; + if (automaticResources_ != null) { + subBuilder = automaticResources_.toBuilder(); + } + automaticResources_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AutomaticResources.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(automaticResources_); + automaticResources_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + enableAccessLogging_ = input.readBool(); + break; + } + case 74: + { + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder subBuilder = null; + if (deployedIndexAuthConfig_ != null) { + subBuilder = deployedIndexAuthConfig_.toBuilder(); + } + deployedIndexAuthConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedIndexAuthConfig_); + deployedIndexAuthConfig_ = 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.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Required. The user specified ID of the DeployedIndex.
+   * The ID can be up to 128 characters long and must start with a letter and
+   * only contain letters, numbers, and underscores.
+   * The ID must be unique within the project it is created in.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user specified ID of the DeployedIndex.
+   * The ID can be up to 128 characters long and must start with a letter and
+   * only contain letters, numbers, and underscores.
+   * The ID must be unique within the project it is created in.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.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; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + private volatile java.lang.Object index_; + /** + * + * + *
+   * Required. The name of the Index this is the deployment of.
+   * We may refer to this Index as the DeployedIndex's "original" Index.
+   * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The index. + */ + @java.lang.Override + public java.lang.String getIndex() { + java.lang.Object ref = index_; + 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(); + index_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Index this is the deployment of.
+   * We may refer to this Index as the DeployedIndex's "original" Index.
+   * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The display name of the DeployedIndex. If not provided upon creation,
+   * the Index's display_name is used.
+   * 
+ * + * string display_name = 3; + * + * @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 DeployedIndex. If not provided upon creation,
+   * the Index's display_name is used.
+   * 
+ * + * string display_name = 3; + * + * @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 = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints privateEndpoints_; + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + @java.lang.Override + public boolean hasPrivateEndpoints() { + return privateEndpoints_ != null; + } + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getPrivateEndpoints() { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder + getPrivateEndpointsOrBuilder() { + return getPrivateEndpoints(); + } + + public static final int INDEX_SYNC_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp indexSyncTime_; + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexSyncTime field is set. + */ + @java.lang.Override + public boolean hasIndexSyncTime() { + return indexSyncTime_ != null; + } + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexSyncTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getIndexSyncTime() { + return indexSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexSyncTime_; + } + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { + return getIndexSyncTime(); + } + + public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.AutomaticResources automaticResources_; + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. + */ + @java.lang.Override + public boolean hasAutomaticResources() { + return automaticResources_ != null; + } + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResources() { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder + getAutomaticResourcesOrBuilder() { + return getAutomaticResources(); + } + + public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 8; + private boolean enableAccessLogging_; + /** + * + * + *
+   * Optional. If true, private endpoint's access logs are sent to StackDriver Logging.
+   * These logs are like standard server access logs, containing
+   * information like timestamp and latency for each MatchRequest.
+   * Note that Stackdriver logs may incur a cost, especially if the deployed
+   * index receives a high queries per second rate (QPS).
+   * Estimate your costs before enabling this option.
+   * 
+ * + * bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAccessLogging. + */ + @java.lang.Override + public boolean getEnableAccessLogging() { + return enableAccessLogging_; + } + + public static final int DEPLOYED_INDEX_AUTH_CONFIG_FIELD_NUMBER = 9; + private com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployedIndexAuthConfig_; + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deployedIndexAuthConfig field is set. + */ + @java.lang.Override + public boolean hasDeployedIndexAuthConfig() { + return deployedIndexAuthConfig_ != null; + } + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deployedIndexAuthConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDeployedIndexAuthConfig() { + return deployedIndexAuthConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance() + : deployedIndexAuthConfig_; + } + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder + getDeployedIndexAuthConfigOrBuilder() { + return getDeployedIndexAuthConfig(); + } + + 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getIndexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, index_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (privateEndpoints_ != null) { + output.writeMessage(5, getPrivateEndpoints()); + } + if (indexSyncTime_ != null) { + output.writeMessage(6, getIndexSyncTime()); + } + if (automaticResources_ != null) { + output.writeMessage(7, getAutomaticResources()); + } + if (enableAccessLogging_ != false) { + output.writeBool(8, enableAccessLogging_); + } + if (deployedIndexAuthConfig_ != null) { + output.writeMessage(9, getDeployedIndexAuthConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getIndexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, index_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (privateEndpoints_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPrivateEndpoints()); + } + if (indexSyncTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIndexSyncTime()); + } + if (automaticResources_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutomaticResources()); + } + if (enableAccessLogging_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableAccessLogging_); + } + if (deployedIndexAuthConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeployedIndexAuthConfig()); + } + 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.DeployedIndex)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployedIndex other = + (com.google.cloud.aiplatform.v1beta1.DeployedIndex) obj; + + if (!getId().equals(other.getId())) return false; + if (!getIndex().equals(other.getIndex())) 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 (hasPrivateEndpoints() != other.hasPrivateEndpoints()) return false; + if (hasPrivateEndpoints()) { + if (!getPrivateEndpoints().equals(other.getPrivateEndpoints())) return false; + } + if (hasIndexSyncTime() != other.hasIndexSyncTime()) return false; + if (hasIndexSyncTime()) { + if (!getIndexSyncTime().equals(other.getIndexSyncTime())) return false; + } + if (hasAutomaticResources() != other.hasAutomaticResources()) return false; + if (hasAutomaticResources()) { + if (!getAutomaticResources().equals(other.getAutomaticResources())) return false; + } + if (getEnableAccessLogging() != other.getEnableAccessLogging()) return false; + if (hasDeployedIndexAuthConfig() != other.hasDeployedIndexAuthConfig()) return false; + if (hasDeployedIndexAuthConfig()) { + if (!getDeployedIndexAuthConfig().equals(other.getDeployedIndexAuthConfig())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().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 (hasPrivateEndpoints()) { + hash = (37 * hash) + PRIVATE_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoints().hashCode(); + } + if (hasIndexSyncTime()) { + hash = (37 * hash) + INDEX_SYNC_TIME_FIELD_NUMBER; + hash = (53 * hash) + getIndexSyncTime().hashCode(); + } + if (hasAutomaticResources()) { + hash = (37 * hash) + AUTOMATIC_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getAutomaticResources().hashCode(); + } + hash = (37 * hash) + ENABLE_ACCESS_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAccessLogging()); + if (hasDeployedIndexAuthConfig()) { + hash = (37 * hash) + DEPLOYED_INDEX_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexAuthConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex 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.DeployedIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex 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.DeployedIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex 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.DeployedIndex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex 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.DeployedIndex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex 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.DeployedIndex 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.DeployedIndex 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.DeployedIndex 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 deployment of an Index. IndexEndpoints contain one or more DeployedIndexes.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployedIndex) + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployedIndex.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(); + id_ = ""; + + index_ = ""; + + displayName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = null; + } else { + privateEndpoints_ = null; + privateEndpointsBuilder_ = null; + } + if (indexSyncTimeBuilder_ == null) { + indexSyncTime_ = null; + } else { + indexSyncTime_ = null; + indexSyncTimeBuilder_ = null; + } + if (automaticResourcesBuilder_ == null) { + automaticResources_ = null; + } else { + automaticResources_ = null; + automaticResourcesBuilder_ = null; + } + enableAccessLogging_ = false; + + if (deployedIndexAuthConfigBuilder_ == null) { + deployedIndexAuthConfig_ = null; + } else { + deployedIndexAuthConfig_ = null; + deployedIndexAuthConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex build() { + com.google.cloud.aiplatform.v1beta1.DeployedIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployedIndex result = + new com.google.cloud.aiplatform.v1beta1.DeployedIndex(this); + result.id_ = id_; + result.index_ = index_; + result.displayName_ = displayName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (privateEndpointsBuilder_ == null) { + result.privateEndpoints_ = privateEndpoints_; + } else { + result.privateEndpoints_ = privateEndpointsBuilder_.build(); + } + if (indexSyncTimeBuilder_ == null) { + result.indexSyncTime_ = indexSyncTime_; + } else { + result.indexSyncTime_ = indexSyncTimeBuilder_.build(); + } + if (automaticResourcesBuilder_ == null) { + result.automaticResources_ = automaticResources_; + } else { + result.automaticResources_ = automaticResourcesBuilder_.build(); + } + result.enableAccessLogging_ = enableAccessLogging_; + if (deployedIndexAuthConfigBuilder_ == null) { + result.deployedIndexAuthConfig_ = deployedIndexAuthConfig_; + } else { + result.deployedIndexAuthConfig_ = deployedIndexAuthConfigBuilder_.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.DeployedIndex) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployedIndex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndex other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getIndex().isEmpty()) { + index_ = other.index_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasPrivateEndpoints()) { + mergePrivateEndpoints(other.getPrivateEndpoints()); + } + if (other.hasIndexSyncTime()) { + mergeIndexSyncTime(other.getIndexSyncTime()); + } + if (other.hasAutomaticResources()) { + mergeAutomaticResources(other.getAutomaticResources()); + } + if (other.getEnableAccessLogging() != false) { + setEnableAccessLogging(other.getEnableAccessLogging()); + } + if (other.hasDeployedIndexAuthConfig()) { + mergeDeployedIndexAuthConfig(other.getDeployedIndexAuthConfig()); + } + 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.DeployedIndex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployedIndex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Required. The user specified ID of the DeployedIndex.
+     * The ID can be up to 128 characters long and must start with a letter and
+     * only contain letters, numbers, and underscores.
+     * The ID must be unique within the project it is created in.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + 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; + } + } + /** + * + * + *
+     * Required. The user specified ID of the DeployedIndex.
+     * The ID can be up to 128 characters long and must start with a letter and
+     * only contain letters, numbers, and underscores.
+     * The ID must be unique within the project it is created in.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The user specified ID of the DeployedIndex.
+     * The ID can be up to 128 characters long and must start with a letter and
+     * only contain letters, numbers, and underscores.
+     * The ID must be unique within the project it is created in.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The user specified ID of the DeployedIndex.
+     * The ID can be up to 128 characters long and must start with a letter and
+     * only contain letters, numbers, and underscores.
+     * The ID must be unique within the project it is created in.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user specified ID of the DeployedIndex.
+     * The ID can be up to 128 characters long and must start with a letter and
+     * only contain letters, numbers, and underscores.
+     * The ID must be unique within the project it is created in.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 java.lang.Object index_ = ""; + /** + * + * + *
+     * Required. The name of the Index this is the deployment of.
+     * We may refer to this Index as the DeployedIndex's "original" Index.
+     * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The index. + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Index this is the deployment of.
+     * We may refer to this Index as the DeployedIndex's "original" Index.
+     * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for index. + */ + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Index this is the deployment of.
+     * We may refer to this Index as the DeployedIndex's "original" Index.
+     * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + index_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Index this is the deployment of.
+     * We may refer to this Index as the DeployedIndex's "original" Index.
+     * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Index this is the deployment of.
+     * We may refer to this Index as the DeployedIndex's "original" Index.
+     * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for index to set. + * @return This builder for chaining. + */ + public Builder setIndexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + index_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the DeployedIndex. If not provided upon creation,
+     * the Index's display_name is used.
+     * 
+ * + * string display_name = 3; + * + * @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 DeployedIndex. If not provided upon creation,
+     * the Index's display_name is used.
+     * 
+ * + * string display_name = 3; + * + * @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 DeployedIndex. If not provided upon creation,
+     * the Index's display_name is used.
+     * 
+ * + * string display_name = 3; + * + * @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 DeployedIndex. If not provided upon creation,
+     * the Index's display_name is used.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the DeployedIndex. If not provided upon creation,
+     * the Index's display_name is used.
+     * 
+ * + * string display_name = 3; + * + * @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. Timestamp when the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 the DeployedIndex was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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.cloud.aiplatform.v1beta1.IndexPrivateEndpoints privateEndpoints_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder> + privateEndpointsBuilder_; + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + public boolean hasPrivateEndpoints() { + return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getPrivateEndpoints() { + if (privateEndpointsBuilder_ == null) { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } else { + return privateEndpointsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateEndpoints( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpoints_ = value; + onChanged(); + } else { + privateEndpointsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateEndpoints( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder builderForValue) { + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = builderForValue.build(); + onChanged(); + } else { + privateEndpointsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateEndpoints( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { + if (privateEndpoints_ != null) { + privateEndpoints_ = + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.newBuilder( + privateEndpoints_) + .mergeFrom(value) + .buildPartial(); + } else { + privateEndpoints_ = value; + } + onChanged(); + } else { + privateEndpointsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateEndpoints() { + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = null; + onChanged(); + } else { + privateEndpoints_ = null; + privateEndpointsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder + getPrivateEndpointsBuilder() { + + onChanged(); + return getPrivateEndpointsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder + getPrivateEndpointsOrBuilder() { + if (privateEndpointsBuilder_ != null) { + return privateEndpointsBuilder_.getMessageOrBuilder(); + } else { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } + } + /** + * + * + *
+     * Output only. Provides paths for users to send requests directly to the deployed index
+     * services running on Cloud via private services access. This field is
+     * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder> + getPrivateEndpointsFieldBuilder() { + if (privateEndpointsBuilder_ == null) { + privateEndpointsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder>( + getPrivateEndpoints(), getParentForChildren(), isClean()); + privateEndpoints_ = null; + } + return privateEndpointsBuilder_; + } + + private com.google.protobuf.Timestamp indexSyncTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexSyncTimeBuilder_; + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexSyncTime field is set. + */ + public boolean hasIndexSyncTime() { + return indexSyncTimeBuilder_ != null || indexSyncTime_ != null; + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexSyncTime. + */ + public com.google.protobuf.Timestamp getIndexSyncTime() { + if (indexSyncTimeBuilder_ == null) { + return indexSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexSyncTime_; + } else { + return indexSyncTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexSyncTime(com.google.protobuf.Timestamp value) { + if (indexSyncTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexSyncTime_ = value; + onChanged(); + } else { + indexSyncTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (indexSyncTimeBuilder_ == null) { + indexSyncTime_ = builderForValue.build(); + onChanged(); + } else { + indexSyncTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIndexSyncTime(com.google.protobuf.Timestamp value) { + if (indexSyncTimeBuilder_ == null) { + if (indexSyncTime_ != null) { + indexSyncTime_ = + com.google.protobuf.Timestamp.newBuilder(indexSyncTime_) + .mergeFrom(value) + .buildPartial(); + } else { + indexSyncTime_ = value; + } + onChanged(); + } else { + indexSyncTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIndexSyncTime() { + if (indexSyncTimeBuilder_ == null) { + indexSyncTime_ = null; + onChanged(); + } else { + indexSyncTime_ = null; + indexSyncTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getIndexSyncTimeBuilder() { + + onChanged(); + return getIndexSyncTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { + if (indexSyncTimeBuilder_ != null) { + return indexSyncTimeBuilder_.getMessageOrBuilder(); + } else { + return indexSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexSyncTime_; + } + } + /** + * + * + *
+     * Output only. The DeployedIndex may depend on various data on its original Index.
+     * Additionally when certain changes to the original Index are being done
+     * (e.g. when what the Index contains is being changed) the DeployedIndex may
+     * be asynchronously updated in the background to reflect this changes.
+     * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+     * original Index, it means that this DeployedIndex and the original Index are
+     * in sync. If this timestamp is older, then to see which updates this
+     * DeployedIndex already contains (and which not), one must
+     * [list][Operations.ListOperations] [Operations][Operation]
+     * [working][Operation.name] on the original Index. Only
+     * the successfully completed Operations with
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+     * equal or before this sync time are contained in this DeployedIndex.
+     * 
+ * + * + * .google.protobuf.Timestamp index_sync_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> + getIndexSyncTimeFieldBuilder() { + if (indexSyncTimeBuilder_ == null) { + indexSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexSyncTime(), getParentForChildren(), isClean()); + indexSyncTime_ = null; + } + return indexSyncTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AutomaticResources automaticResources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutomaticResources, + com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder> + automaticResourcesBuilder_; + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. + */ + public boolean hasAutomaticResources() { + return automaticResourcesBuilder_ != null || automaticResources_ != null; + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResources() { + if (automaticResourcesBuilder_ == null) { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } else { + return automaticResourcesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutomaticResources( + com.google.cloud.aiplatform.v1beta1.AutomaticResources value) { + if (automaticResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automaticResources_ = value; + onChanged(); + } else { + automaticResourcesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutomaticResources( + com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder builderForValue) { + if (automaticResourcesBuilder_ == null) { + automaticResources_ = builderForValue.build(); + onChanged(); + } else { + automaticResourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutomaticResources( + com.google.cloud.aiplatform.v1beta1.AutomaticResources value) { + if (automaticResourcesBuilder_ == null) { + if (automaticResources_ != null) { + automaticResources_ = + com.google.cloud.aiplatform.v1beta1.AutomaticResources.newBuilder(automaticResources_) + .mergeFrom(value) + .buildPartial(); + } else { + automaticResources_ = value; + } + onChanged(); + } else { + automaticResourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutomaticResources() { + if (automaticResourcesBuilder_ == null) { + automaticResources_ = null; + onChanged(); + } else { + automaticResources_ = null; + automaticResourcesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder + getAutomaticResourcesBuilder() { + + onChanged(); + return getAutomaticResourcesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder + getAutomaticResourcesOrBuilder() { + if (automaticResourcesBuilder_ != null) { + return automaticResourcesBuilder_.getMessageOrBuilder(); + } else { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } + } + /** + * + * + *
+     * Optional. A description of resources that the DeployedIndex uses, which to large
+     * degree are decided by Vertex AI, and optionally allows only a modest
+     * additional configuration.
+     * If min_replica_count is not set, the default value is 1. If
+     * max_replica_count is not set, the default value is min_replica_count. The
+     * max allowed replica count is 1000.
+     * The user is billed for the resources (at least their minimal amount) even
+     * if the DeployedIndex receives no traffic.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutomaticResources, + com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder> + getAutomaticResourcesFieldBuilder() { + if (automaticResourcesBuilder_ == null) { + automaticResourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutomaticResources, + com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder>( + getAutomaticResources(), getParentForChildren(), isClean()); + automaticResources_ = null; + } + return automaticResourcesBuilder_; + } + + private boolean enableAccessLogging_; + /** + * + * + *
+     * Optional. If true, private endpoint's access logs are sent to StackDriver Logging.
+     * These logs are like standard server access logs, containing
+     * information like timestamp and latency for each MatchRequest.
+     * Note that Stackdriver logs may incur a cost, especially if the deployed
+     * index receives a high queries per second rate (QPS).
+     * Estimate your costs before enabling this option.
+     * 
+ * + * bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAccessLogging. + */ + @java.lang.Override + public boolean getEnableAccessLogging() { + return enableAccessLogging_; + } + /** + * + * + *
+     * Optional. If true, private endpoint's access logs are sent to StackDriver Logging.
+     * These logs are like standard server access logs, containing
+     * information like timestamp and latency for each MatchRequest.
+     * Note that Stackdriver logs may incur a cost, especially if the deployed
+     * index receives a high queries per second rate (QPS).
+     * Estimate your costs before enabling this option.
+     * 
+ * + * bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableAccessLogging to set. + * @return This builder for chaining. + */ + public Builder setEnableAccessLogging(boolean value) { + + enableAccessLogging_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, private endpoint's access logs are sent to StackDriver Logging.
+     * These logs are like standard server access logs, containing
+     * information like timestamp and latency for each MatchRequest.
+     * Note that Stackdriver logs may incur a cost, especially if the deployed
+     * index receives a high queries per second rate (QPS).
+     * Estimate your costs before enabling this option.
+     * 
+ * + * bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableAccessLogging() { + + enableAccessLogging_ = false; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployedIndexAuthConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder> + deployedIndexAuthConfigBuilder_; + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deployedIndexAuthConfig field is set. + */ + public boolean hasDeployedIndexAuthConfig() { + return deployedIndexAuthConfigBuilder_ != null || deployedIndexAuthConfig_ != null; + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deployedIndexAuthConfig. + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + getDeployedIndexAuthConfig() { + if (deployedIndexAuthConfigBuilder_ == null) { + return deployedIndexAuthConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance() + : deployedIndexAuthConfig_; + } else { + return deployedIndexAuthConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeployedIndexAuthConfig( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig value) { + if (deployedIndexAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedIndexAuthConfig_ = value; + onChanged(); + } else { + deployedIndexAuthConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeployedIndexAuthConfig( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder builderForValue) { + if (deployedIndexAuthConfigBuilder_ == null) { + deployedIndexAuthConfig_ = builderForValue.build(); + onChanged(); + } else { + deployedIndexAuthConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeployedIndexAuthConfig( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig value) { + if (deployedIndexAuthConfigBuilder_ == null) { + if (deployedIndexAuthConfig_ != null) { + deployedIndexAuthConfig_ = + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.newBuilder( + deployedIndexAuthConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedIndexAuthConfig_ = value; + } + onChanged(); + } else { + deployedIndexAuthConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeployedIndexAuthConfig() { + if (deployedIndexAuthConfigBuilder_ == null) { + deployedIndexAuthConfig_ = null; + onChanged(); + } else { + deployedIndexAuthConfig_ = null; + deployedIndexAuthConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder + getDeployedIndexAuthConfigBuilder() { + + onChanged(); + return getDeployedIndexAuthConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder + getDeployedIndexAuthConfigOrBuilder() { + if (deployedIndexAuthConfigBuilder_ != null) { + return deployedIndexAuthConfigBuilder_.getMessageOrBuilder(); + } else { + return deployedIndexAuthConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance() + : deployedIndexAuthConfig_; + } + } + /** + * + * + *
+     * Optional. If set, the authentication is enabled for the private endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder> + getDeployedIndexAuthConfigFieldBuilder() { + if (deployedIndexAuthConfigBuilder_ == null) { + deployedIndexAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder>( + getDeployedIndexAuthConfig(), getParentForChildren(), isClean()); + deployedIndexAuthConfig_ = null; + } + return deployedIndexAuthConfigBuilder_; + } + + @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.DeployedIndex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployedIndex) + private static final com.google.cloud.aiplatform.v1beta1.DeployedIndex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployedIndex(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployedIndex(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.DeployedIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java new file mode 100644 index 000000000..162e6ea27 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java @@ -0,0 +1,1991 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Used to set up the auth on the DeployedIndex's private endpoint.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} + */ +public final class DeployedIndexAuthConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + DeployedIndexAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployedIndexAuthConfig.newBuilder() to construct. + private DeployedIndexAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployedIndexAuthConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployedIndexAuthConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployedIndexAuthConfig( + 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.DeployedIndexAuthConfig.AuthProvider.Builder + subBuilder = null; + if (authProvider_ != null) { + subBuilder = authProvider_.toBuilder(); + } + authProvider_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authProvider_); + authProvider_ = 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.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder.class); + } + + public interface AuthProviderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @return A list containing the audiences. + */ + java.util.List getAudiencesList(); + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @return The count of audiences. + */ + int getAudiencesCount(); + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + java.lang.String getAudiences(int index); + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + com.google.protobuf.ByteString getAudiencesBytes(int index); + + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @return A list containing the allowedIssuers. + */ + java.util.List getAllowedIssuersList(); + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @return The count of allowedIssuers. + */ + int getAllowedIssuersCount(); + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the element to return. + * @return The allowedIssuers at the given index. + */ + java.lang.String getAllowedIssuers(int index); + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedIssuers at the given index. + */ + com.google.protobuf.ByteString getAllowedIssuersBytes(int index); + } + /** + * + * + *
+   * Configuration for an authentication provider, including support for
+   * [JSON Web Token
+   * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} + */ + public static final class AuthProvider extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + AuthProviderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthProvider.newBuilder() to construct. + private AuthProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuthProvider() { + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + allowedIssuers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthProvider(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AuthProvider( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + audiences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + audiences_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedIssuers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedIssuers_.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)) { + audiences_ = audiences_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + allowedIssuers_ = allowedIssuers_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder + .class); + } + + public static final int AUDIENCES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList audiences_; + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @return A list containing the audiences. + */ + public com.google.protobuf.ProtocolStringList getAudiencesList() { + return audiences_; + } + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @return The count of audiences. + */ + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + public java.lang.String getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+     * The list of JWT
+     * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+     * that are allowed to access. A JWT containing any of these audiences will
+     * be accepted.
+     * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + public com.google.protobuf.ByteString getAudiencesBytes(int index) { + return audiences_.getByteString(index); + } + + public static final int ALLOWED_ISSUERS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList allowedIssuers_; + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @return A list containing the allowedIssuers. + */ + public com.google.protobuf.ProtocolStringList getAllowedIssuersList() { + return allowedIssuers_; + } + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @return The count of allowedIssuers. + */ + public int getAllowedIssuersCount() { + return allowedIssuers_.size(); + } + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the element to return. + * @return The allowedIssuers at the given index. + */ + public java.lang.String getAllowedIssuers(int index) { + return allowedIssuers_.get(index); + } + /** + * + * + *
+     * A list of allowed JWT issuers. Each entry must be a valid Google
+     * service account, in the following format:
+     * `service-account-name@project-id.iam.gserviceaccount.com`
+     * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedIssuers at the given index. + */ + public com.google.protobuf.ByteString getAllowedIssuersBytes(int index) { + return allowedIssuers_.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 { + for (int i = 0; i < audiences_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audiences_.getRaw(i)); + } + for (int i = 0; i < allowedIssuers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allowedIssuers_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < audiences_.size(); i++) { + dataSize += computeStringSizeNoTag(audiences_.getRaw(i)); + } + size += dataSize; + size += 1 * getAudiencesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < allowedIssuers_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedIssuers_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedIssuersList().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.DeployedIndexAuthConfig.AuthProvider)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider other = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) obj; + + if (!getAudiencesList().equals(other.getAudiencesList())) return false; + if (!getAllowedIssuersList().equals(other.getAllowedIssuersList())) 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 (getAudiencesCount() > 0) { + hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; + hash = (53 * hash) + getAudiencesList().hashCode(); + } + if (getAllowedIssuersCount() > 0) { + hash = (37 * hash) + ALLOWED_ISSUERS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedIssuersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider + 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.DeployedIndexAuthConfig.AuthProvider 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; + } + /** + * + * + *
+     * Configuration for an authentication provider, including support for
+     * [JSON Web Token
+     * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.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(); + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + allowedIssuers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider build() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider result = + new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + audiences_ = audiences_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.audiences_ = audiences_; + if (((bitField0_ & 0x00000002) != 0)) { + allowedIssuers_ = allowedIssuers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.allowedIssuers_ = allowedIssuers_; + 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.DeployedIndexAuthConfig.AuthProvider) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance()) return this; + if (!other.audiences_.isEmpty()) { + if (audiences_.isEmpty()) { + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAudiencesIsMutable(); + audiences_.addAll(other.audiences_); + } + onChanged(); + } + if (!other.allowedIssuers_.isEmpty()) { + if (allowedIssuers_.isEmpty()) { + allowedIssuers_ = other.allowedIssuers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAllowedIssuersIsMutable(); + allowedIssuers_.addAll(other.allowedIssuers_); + } + 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.DeployedIndexAuthConfig.AuthProvider parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList audiences_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAudiencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @return A list containing the audiences. + */ + public com.google.protobuf.ProtocolStringList getAudiencesList() { + return audiences_.getUnmodifiableView(); + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @return The count of audiences. + */ + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the element to return. + * @return The audiences at the given index. + */ + public java.lang.String getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param index The index of the value to return. + * @return The bytes of the audiences at the given index. + */ + public com.google.protobuf.ByteString getAudiencesBytes(int index) { + return audiences_.getByteString(index); + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param index The index to set the value at. + * @param value The audiences to set. + * @return This builder for chaining. + */ + public Builder setAudiences(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param value The audiences to add. + * @return This builder for chaining. + */ + public Builder addAudiences(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param values The audiences to add. + * @return This builder for chaining. + */ + public Builder addAllAudiences(java.lang.Iterable values) { + ensureAudiencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); + onChanged(); + return this; + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @return This builder for chaining. + */ + public Builder clearAudiences() { + audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The list of JWT
+       * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
+       * that are allowed to access. A JWT containing any of these audiences will
+       * be accepted.
+       * 
+ * + * repeated string audiences = 1; + * + * @param value The bytes of the audiences to add. + * @return This builder for chaining. + */ + public Builder addAudiencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList allowedIssuers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAllowedIssuersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + allowedIssuers_ = new com.google.protobuf.LazyStringArrayList(allowedIssuers_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @return A list containing the allowedIssuers. + */ + public com.google.protobuf.ProtocolStringList getAllowedIssuersList() { + return allowedIssuers_.getUnmodifiableView(); + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @return The count of allowedIssuers. + */ + public int getAllowedIssuersCount() { + return allowedIssuers_.size(); + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the element to return. + * @return The allowedIssuers at the given index. + */ + public java.lang.String getAllowedIssuers(int index) { + return allowedIssuers_.get(index); + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedIssuers at the given index. + */ + public com.google.protobuf.ByteString getAllowedIssuersBytes(int index) { + return allowedIssuers_.getByteString(index); + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param index The index to set the value at. + * @param value The allowedIssuers to set. + * @return This builder for chaining. + */ + public Builder setAllowedIssuers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedIssuersIsMutable(); + allowedIssuers_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param value The allowedIssuers to add. + * @return This builder for chaining. + */ + public Builder addAllowedIssuers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedIssuersIsMutable(); + allowedIssuers_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param values The allowedIssuers to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedIssuers(java.lang.Iterable values) { + ensureAllowedIssuersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedIssuers_); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllowedIssuers() { + allowedIssuers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of allowed JWT issuers. Each entry must be a valid Google
+       * service account, in the following format:
+       * `service-account-name@project-id.iam.gserviceaccount.com`
+       * 
+ * + * repeated string allowed_issuers = 2; + * + * @param value The bytes of the allowedIssuers to add. + * @return This builder for chaining. + */ + public Builder addAllowedIssuersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedIssuersIsMutable(); + allowedIssuers_.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.DeployedIndexAuthConfig.AuthProvider) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + private static final com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthProvider(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.DeployedIndexAuthConfig.AuthProvider + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider authProvider_; + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return authProvider_ != null; + } + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return The authProvider. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + getAuthProvider() { + return authProvider_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance() + : authProvider_; + } + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder + getAuthProviderOrBuilder() { + return getAuthProvider(); + } + + 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 (authProvider_ != null) { + output.writeMessage(1, getAuthProvider()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authProvider_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAuthProvider()); + } + 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.DeployedIndexAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig other = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) obj; + + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider().equals(other.getAuthProvider())) 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 (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig 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.DeployedIndexAuthConfig 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; + } + /** + * + * + *
+   * Used to set up the auth on the DeployedIndex's private endpoint.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.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 (authProviderBuilder_ == null) { + authProvider_ = null; + } else { + authProvider_ = null; + authProviderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig build() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig result = + new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(this); + if (authProviderBuilder_ == null) { + result.authProvider_ = authProvider_; + } else { + result.authProvider_ = authProviderBuilder_.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.DeployedIndexAuthConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance()) + return this; + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + 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.DeployedIndexAuthConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder> + authProviderBuilder_; + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return authProviderBuilder_ != null || authProvider_ != null; + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return The authProvider. + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance() + : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public Builder setAuthProvider( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + onChanged(); + } else { + authProviderBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public Builder setAuthProvider( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder + builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + onChanged(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public Builder mergeAuthProvider( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (authProvider_ != null) { + authProvider_ = + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.newBuilder( + authProvider_) + .mergeFrom(value) + .buildPartial(); + } else { + authProvider_ = value; + } + onChanged(); + } else { + authProviderBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public Builder clearAuthProvider() { + if (authProviderBuilder_ == null) { + authProvider_ = null; + onChanged(); + } else { + authProvider_ = null; + authProviderBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder + getAuthProviderBuilder() { + + onChanged(); + return getAuthProviderFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder + getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance() + : authProvider_; + } + } + /** + * + * + *
+     * Defines the authentication provider that the DeployedIndex uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder> + getAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder>( + getAuthProvider(), getParentForChildren(), isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + @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.DeployedIndexAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + private static final com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedIndexAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployedIndexAuthConfig(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.DeployedIndexAuthConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfigOrBuilder.java new file mode 100644 index 000000000..1ac89cc51 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfigOrBuilder.java @@ -0,0 +1,64 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployedIndexAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + * + * @return The authProvider. + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider getAuthProvider(); + /** + * + * + *
+   * Defines the authentication provider that the DeployedIndex uses.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder + getAuthProviderOrBuilder(); +} 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 new file mode 100644 index 000000000..c1faabf76 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java @@ -0,0 +1,401 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployedIndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployedIndex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The user specified ID of the DeployedIndex.
+   * The ID can be up to 128 characters long and must start with a letter and
+   * only contain letters, numbers, and underscores.
+   * The ID must be unique within the project it is created in.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Required. The user specified ID of the DeployedIndex.
+   * The ID can be up to 128 characters long and must start with a letter and
+   * only contain letters, numbers, and underscores.
+   * The ID must be unique within the project it is created in.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Required. The name of the Index this is the deployment of.
+   * We may refer to this Index as the DeployedIndex's "original" Index.
+   * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The index. + */ + java.lang.String getIndex(); + /** + * + * + *
+   * Required. The name of the Index this is the deployment of.
+   * We may refer to this Index as the DeployedIndex's "original" Index.
+   * 
+ * + * + * string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for index. + */ + com.google.protobuf.ByteString getIndexBytes(); + + /** + * + * + *
+   * The display name of the DeployedIndex. If not provided upon creation,
+   * the Index's display_name is used.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the DeployedIndex. If not provided upon creation,
+   * the Index's display_name is used.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when the DeployedIndex was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + boolean hasPrivateEndpoints(); + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getPrivateEndpoints(); + /** + * + * + *
+   * Output only. Provides paths for users to send requests directly to the deployed index
+   * services running on Cloud via private services access. This field is
+   * populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder(); + + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexSyncTime field is set. + */ + boolean hasIndexSyncTime(); + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexSyncTime. + */ + com.google.protobuf.Timestamp getIndexSyncTime(); + /** + * + * + *
+   * Output only. The DeployedIndex may depend on various data on its original Index.
+   * Additionally when certain changes to the original Index are being done
+   * (e.g. when what the Index contains is being changed) the DeployedIndex may
+   * be asynchronously updated in the background to reflect this changes.
+   * If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the
+   * original Index, it means that this DeployedIndex and the original Index are
+   * in sync. If this timestamp is older, then to see which updates this
+   * DeployedIndex already contains (and which not), one must
+   * [list][Operations.ListOperations] [Operations][Operation]
+   * [working][Operation.name] on the original Index. Only
+   * the successfully completed Operations with
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time]
+   * equal or before this sync time are contained in this DeployedIndex.
+   * 
+ * + * + * .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder(); + + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. + */ + boolean hasAutomaticResources(); + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResources(); + /** + * + * + *
+   * Optional. A description of resources that the DeployedIndex uses, which to large
+   * degree are decided by Vertex AI, and optionally allows only a modest
+   * additional configuration.
+   * If min_replica_count is not set, the default value is 1. If
+   * max_replica_count is not set, the default value is min_replica_count. The
+   * max allowed replica count is 1000.
+   * The user is billed for the resources (at least their minimal amount) even
+   * if the DeployedIndex receives no traffic.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder(); + + /** + * + * + *
+   * Optional. If true, private endpoint's access logs are sent to StackDriver Logging.
+   * These logs are like standard server access logs, containing
+   * information like timestamp and latency for each MatchRequest.
+   * Note that Stackdriver logs may incur a cost, especially if the deployed
+   * index receives a high queries per second rate (QPS).
+   * Estimate your costs before enabling this option.
+   * 
+ * + * bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAccessLogging. + */ + boolean getEnableAccessLogging(); + + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deployedIndexAuthConfig field is set. + */ + boolean hasDeployedIndexAuthConfig(); + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deployedIndexAuthConfig. + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDeployedIndexAuthConfig(); + /** + * + * + *
+   * Optional. If set, the authentication is enabled for the private endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder + getDeployedIndexAuthConfigOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java new file mode 100644 index 000000000..37014dafe --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java @@ -0,0 +1,829 @@ +/* + * 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/deployed_index_ref.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Points to a DeployedIndex.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexRef} + */ +public final class DeployedIndexRef extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployedIndexRef) + DeployedIndexRefOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployedIndexRef.newBuilder() to construct. + private DeployedIndexRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployedIndexRef() { + indexEndpoint_ = ""; + deployedIndexId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployedIndexRef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployedIndexRef( + 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(); + + indexEndpoint_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployedIndexId_ = 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.DeployedIndexRefProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder.class); + } + + public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; + private volatile java.lang.Object indexEndpoint_; + /** + * + * + *
+   * Immutable. A resource name of the IndexEndpoint.
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + @java.lang.Override + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + 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(); + indexEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. A resource name of the IndexEndpoint.
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object deployedIndexId_; + /** + * + * + *
+   * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+   * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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 + 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 (!getIndexEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexEndpoint_); + } + if (!getDeployedIndexIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedIndexId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIndexEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexEndpoint_); + } + if (!getDeployedIndexIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedIndexId_); + } + 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.DeployedIndexRef)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef other = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexRef) obj; + + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) return false; + if (!getDeployedIndexId().equals(other.getDeployedIndexId())) 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) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + hash = (37 * hash) + DEPLOYED_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef 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.DeployedIndexRef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef 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.DeployedIndexRef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef 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.DeployedIndexRef parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef 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.DeployedIndexRef parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef 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.DeployedIndexRef 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.DeployedIndexRef 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.DeployedIndexRef 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; + } + /** + * + * + *
+   * Points to a DeployedIndex.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedIndexRef} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployedIndexRef) + com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.class, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.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(); + indexEndpoint_ = ""; + + deployedIndexId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexRefProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef build() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef result = + new com.google.cloud.aiplatform.v1beta1.DeployedIndexRef(this); + result.indexEndpoint_ = indexEndpoint_; + result.deployedIndexId_ = deployedIndexId_; + 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.DeployedIndexRef) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployedIndexRef) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance()) + return this; + if (!other.getIndexEndpoint().isEmpty()) { + indexEndpoint_ = other.indexEndpoint_; + onChanged(); + } + if (!other.getDeployedIndexId().isEmpty()) { + deployedIndexId_ = other.deployedIndexId_; + 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.DeployedIndexRef parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeployedIndexRef) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object indexEndpoint_ = ""; + /** + * + * + *
+     * Immutable. A resource name of the IndexEndpoint.
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indexEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. A resource name of the IndexEndpoint.
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. A resource name of the IndexEndpoint.
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + indexEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A resource name of the IndexEndpoint.
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIndexEndpoint() { + + indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A resource name of the IndexEndpoint.
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indexEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object deployedIndexId_ = ""; + /** + * + * + *
+     * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + /** + * + * + *
+     * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearDeployedIndexId() { + + deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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); + } + + @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.DeployedIndexRef) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployedIndexRef) + private static final com.google.cloud.aiplatform.v1beta1.DeployedIndexRef DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployedIndexRef(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedIndexRef parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployedIndexRef(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.DeployedIndexRef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefOrBuilder.java new file mode 100644 index 000000000..f4014c249 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/deployed_index_ref.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeployedIndexRefOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployedIndexRef) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. A resource name of the IndexEndpoint.
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + java.lang.String getIndexEndpoint(); + /** + * + * + *
+   * Immutable. A resource name of the IndexEndpoint.
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + com.google.protobuf.ByteString getIndexEndpointBytes(); + + /** + * + * + *
+   * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The deployedIndexId. + */ + java.lang.String getDeployedIndexId(); + /** + * + * + *
+   * Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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/DeployedIndexRefProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java new file mode 100644 index 000000000..131b35d12 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java @@ -0,0 +1,84 @@ +/* + * 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/deployed_index_ref.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class DeployedIndexRefProto { + private DeployedIndexRefProto() {} + + 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_v1beta1_DeployedIndexRef_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/aiplatform/v1beta1/deploy" + + "ed_index_ref.proto\022\037google.cloud.aiplatf" + + "orm.v1beta1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032\034google/" + + "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" + + "e.cloud.aiplatform.v1beta1B\025DeployedInde" + + "xRefProtoP\001ZIgoogle.golang.org/genproto/" + + "googleapis/cloud/aiplatform/v1beta1;aipl" + + "atformb\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.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexRef_descriptor, + new java.lang.String[] { + "IndexEndpoint", "DeployedIndexId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 de3249d36..25dd46d74 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 @@ -429,7 +429,7 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-   * Required. The name of the Model this is the deployment of. Note that the Model
+   * Required. The name of the Model that this is the deployment of. Note that the Model
    * may be in a different location than the DeployedModel's Endpoint.
    * 
* @@ -455,7 +455,7 @@ public java.lang.String getModel() { * * *
-   * Required. The name of the Model this is the deployment of. Note that the Model
+   * Required. The name of the Model that this is the deployment of. Note that the Model
    * may be in a different location than the DeployedModel's Endpoint.
    * 
* @@ -589,9 +589,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -611,9 +611,9 @@ public boolean hasExplanationSpec() { * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -635,9 +635,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -1848,7 +1848,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The name of the Model this is the deployment of. Note that the Model
+     * Required. The name of the Model that this is the deployment of. Note that the Model
      * may be in a different location than the DeployedModel's Endpoint.
      * 
* @@ -1873,7 +1873,7 @@ public java.lang.String getModel() { * * *
-     * Required. The name of the Model this is the deployment of. Note that the Model
+     * Required. The name of the Model that this is the deployment of. Note that the Model
      * may be in a different location than the DeployedModel's Endpoint.
      * 
* @@ -1898,7 +1898,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-     * Required. The name of the Model this is the deployment of. Note that the Model
+     * Required. The name of the Model that this is the deployment of. Note that the Model
      * may be in a different location than the DeployedModel's Endpoint.
      * 
* @@ -1922,7 +1922,7 @@ public Builder setModel(java.lang.String value) { * * *
-     * Required. The name of the Model this is the deployment of. Note that the Model
+     * Required. The name of the Model that this is the deployment of. Note that the Model
      * may be in a different location than the DeployedModel's Endpoint.
      * 
* @@ -1942,7 +1942,7 @@ public Builder clearModel() { * * *
-     * Required. The name of the Model this is the deployment of. Note that the Model
+     * Required. The name of the Model that this is the deployment of. Note that the Model
      * may be in a different location than the DeployedModel's Endpoint.
      * 
* @@ -2291,9 +2291,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2312,9 +2312,9 @@ public boolean hasExplanationSpec() { * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2339,9 +2339,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2368,9 +2368,9 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2395,9 +2395,9 @@ public Builder setExplanationSpec( * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2428,9 +2428,9 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2455,9 +2455,9 @@ public Builder clearExplanationSpec() { * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2476,9 +2476,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanatio * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -2502,9 +2502,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanatio * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; 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 0410f13c2..fc20be252 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 @@ -128,7 +128,7 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model this is the deployment of. Note that the Model
+   * Required. The name of the Model that this is the deployment of. Note that the Model
    * may be in a different location than the DeployedModel's Endpoint.
    * 
* @@ -143,7 +143,7 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model this is the deployment of. Note that the Model
+   * Required. The name of the Model that this is the deployment of. Note that the Model
    * may be in a different location than the DeployedModel's Endpoint.
    * 
* @@ -229,9 +229,9 @@ public interface DeployedModelOrBuilder * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -248,9 +248,9 @@ public interface DeployedModelOrBuilder * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; @@ -267,9 +267,9 @@ public interface DeployedModelOrBuilder * overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - * this Model is not allowed. + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java new file mode 100644 index 000000000..2129bf9f9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java @@ -0,0 +1,811 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** Protobuf type {@code google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} */ +public final class DestinationFeatureSetting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + DestinationFeatureSettingOrBuilder { + private static final long serialVersionUID = 0L; + // Use DestinationFeatureSetting.newBuilder() to construct. + private DestinationFeatureSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DestinationFeatureSetting() { + featureId_ = ""; + destinationField_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DestinationFeatureSetting(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DestinationFeatureSetting( + 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(); + + featureId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + destinationField_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.class, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder.class); + } + + public static final int FEATURE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object featureId_; + /** + * + * + *
+   * Required. The ID of the Feature to apply the setting to.
+   * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + @java.lang.Override + public java.lang.String getFeatureId() { + java.lang.Object ref = featureId_; + 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(); + featureId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the Feature to apply the setting to.
+   * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureIdBytes() { + java.lang.Object ref = featureId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_FIELD_FIELD_NUMBER = 2; + private volatile java.lang.Object destinationField_; + /** + * + * + *
+   * Specify the field name in the export destination. If not specified,
+   * Feature ID is used.
+   * 
+ * + * string destination_field = 2; + * + * @return The destinationField. + */ + @java.lang.Override + public java.lang.String getDestinationField() { + java.lang.Object ref = destinationField_; + 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(); + destinationField_ = s; + return s; + } + } + /** + * + * + *
+   * Specify the field name in the export destination. If not specified,
+   * Feature ID is used.
+   * 
+ * + * string destination_field = 2; + * + * @return The bytes for destinationField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationFieldBytes() { + java.lang.Object ref = destinationField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationField_ = 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 (!getFeatureIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, featureId_); + } + if (!getDestinationFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFeatureIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featureId_); + } + if (!getDestinationFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationField_); + } + 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.DestinationFeatureSetting)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting other = + (com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) obj; + + if (!getFeatureId().equals(other.getFeatureId())) return false; + if (!getDestinationField().equals(other.getDestinationField())) 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) + FEATURE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFeatureId().hashCode(); + hash = (37 * hash) + DESTINATION_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getDestinationField().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting 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.DestinationFeatureSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting 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.DestinationFeatureSetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting 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.DestinationFeatureSetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting 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.DestinationFeatureSetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting 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.DestinationFeatureSetting 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.DestinationFeatureSetting 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.DestinationFeatureSetting 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; + } + /** Protobuf type {@code google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.class, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.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(); + featureId_ = ""; + + destinationField_ = ""; + + 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_DestinationFeatureSetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting build() { + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting buildPartial() { + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting result = + new com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(this); + result.featureId_ = featureId_; + result.destinationField_ = destinationField_; + 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.DestinationFeatureSetting) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance()) + return this; + if (!other.getFeatureId().isEmpty()) { + featureId_ = other.featureId_; + onChanged(); + } + if (!other.getDestinationField().isEmpty()) { + destinationField_ = other.destinationField_; + 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.DestinationFeatureSetting parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object featureId_ = ""; + /** + * + * + *
+     * Required. The ID of the Feature to apply the setting to.
+     * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + public java.lang.String getFeatureId() { + java.lang.Object ref = featureId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featureId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Feature to apply the setting to.
+     * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + public com.google.protobuf.ByteString getFeatureIdBytes() { + java.lang.Object ref = featureId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Feature to apply the setting to.
+     * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The featureId to set. + * @return This builder for chaining. + */ + public Builder setFeatureId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + featureId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Feature to apply the setting to.
+     * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFeatureId() { + + featureId_ = getDefaultInstance().getFeatureId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Feature to apply the setting to.
+     * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for featureId to set. + * @return This builder for chaining. + */ + public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + featureId_ = value; + onChanged(); + return this; + } + + private java.lang.Object destinationField_ = ""; + /** + * + * + *
+     * Specify the field name in the export destination. If not specified,
+     * Feature ID is used.
+     * 
+ * + * string destination_field = 2; + * + * @return The destinationField. + */ + public java.lang.String getDestinationField() { + java.lang.Object ref = destinationField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specify the field name in the export destination. If not specified,
+     * Feature ID is used.
+     * 
+ * + * string destination_field = 2; + * + * @return The bytes for destinationField. + */ + public com.google.protobuf.ByteString getDestinationFieldBytes() { + java.lang.Object ref = destinationField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specify the field name in the export destination. If not specified,
+     * Feature ID is used.
+     * 
+ * + * string destination_field = 2; + * + * @param value The destinationField to set. + * @return This builder for chaining. + */ + public Builder setDestinationField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destinationField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specify the field name in the export destination. If not specified,
+     * Feature ID is used.
+     * 
+ * + * string destination_field = 2; + * + * @return This builder for chaining. + */ + public Builder clearDestinationField() { + + destinationField_ = getDefaultInstance().getDestinationField(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specify the field name in the export destination. If not specified,
+     * Feature ID is used.
+     * 
+ * + * string destination_field = 2; + * + * @param value The bytes for destinationField to set. + * @return This builder for chaining. + */ + public Builder setDestinationFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destinationField_ = 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.DestinationFeatureSetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + private static final com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(); + } + + public static com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationFeatureSetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestinationFeatureSetting(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.DestinationFeatureSetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSettingOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSettingOrBuilder.java new file mode 100644 index 000000000..04e3fef3b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSettingOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DestinationFeatureSettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the Feature to apply the setting to.
+   * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The featureId. + */ + java.lang.String getFeatureId(); + /** + * + * + *
+   * Required. The ID of the Feature to apply the setting to.
+   * 
+ * + * string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for featureId. + */ + com.google.protobuf.ByteString getFeatureIdBytes(); + + /** + * + * + *
+   * Specify the field name in the export destination. If not specified,
+   * Feature ID is used.
+   * 
+ * + * string destination_field = 2; + * + * @return The destinationField. + */ + java.lang.String getDestinationField(); + /** + * + * + *
+   * Specify the field name in the export destination. If not specified,
+   * Feature ID is used.
+   * 
+ * + * string destination_field = 2; + * + * @return The bytes for destinationField. + */ + com.google.protobuf.ByteString getDestinationFieldBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java new file mode 100644 index 000000000..d8f6178d3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java @@ -0,0 +1,702 @@ +/* + * 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/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A list of double values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DoubleArray} + */ +public final class DoubleArray extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DoubleArray) + DoubleArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoubleArray.newBuilder() to construct. + private DoubleArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DoubleArray() { + values_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DoubleArray(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DoubleArray( + 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 9: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; + } + values_.addDouble(input.readDouble()); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + values_ = newDoubleList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + 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)) { + values_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DoubleArray.class, + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.DoubleList values_; + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeDoubleNoTag(values_.getDouble(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.DoubleArray)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DoubleArray other = + (com.google.cloud.aiplatform.v1beta1.DoubleArray) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray 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.DoubleArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray 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.DoubleArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray 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.DoubleArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray 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.DoubleArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray 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.DoubleArray 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.DoubleArray 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.DoubleArray 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 double values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DoubleArray} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DoubleArray) + com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DoubleArray.class, + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DoubleArray.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(); + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArray getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArray build() { + com.google.cloud.aiplatform.v1beta1.DoubleArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArray buildPartial() { + com.google.cloud.aiplatform.v1beta1.DoubleArray result = + new com.google.cloud.aiplatform.v1beta1.DoubleArray(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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.DoubleArray) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DoubleArray) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DoubleArray other) { + if (other == com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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.DoubleArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.DoubleArray) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = mutableCopy(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(values_) + : values_; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, double value) { + ensureValuesIsMutable(); + values_.setDouble(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(double value) { + ensureValuesIsMutable(); + values_.addDouble(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of bool values.
+     * 
+ * + * repeated double values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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.DoubleArray) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DoubleArray) + private static final com.google.cloud.aiplatform.v1beta1.DoubleArray DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DoubleArray(); + } + + public static com.google.cloud.aiplatform.v1beta1.DoubleArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DoubleArray(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.DoubleArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java new file mode 100644 index 000000000..432d8afa5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DoubleArrayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DoubleArray) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * A list of bool values.
+   * 
+ * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + double getValues(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java index 79c63a12c..825e354eb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java @@ -1,5 +1,5 @@ /* - * 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/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 47c9a8e84..7fe774cda 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 @@ -59,43 +59,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform/v1beta1/encryption_spec.proto\0321go" + "ogle/cloud/aiplatform/v1beta1/explanatio" + "n.proto\0327google/cloud/aiplatform/v1beta1" - + "/machine_resources.proto\032\037google/protobu" - + "f/timestamp.proto\032\034google/api/annotation" - + "s.proto\"\305\005\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013descriptio" - + "n\030\003 \001(\t\022L\n\017deployed_models\030\004 \003(\0132..googl" - + "e.cloud.aiplatform.v1beta1.DeployedModel" - + "B\003\340A\003\022R\n\rtraffic_split\030\005 \003(\0132;.google.cl" - + "oud.aiplatform.v1beta1.Endpoint.TrafficS" - + "plitEntry\022\014\n\004etag\030\006 \001(\t\022E\n\006labels\030\007 \003(\0132" - + "5.google.cloud.aiplatform.v1beta1.Endpoi" - + "nt.LabelsEntry\0224\n\013create_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022H\n\017encryption_spec\030\n \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.EncryptionSpec\0323\n\021" - + "TrafficSplitEntry\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.google" - + "apis.com/Endpoint\022 + * 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 + * driver0 is an instance of an entity type driver. + *
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EntityType} + */ +public final class EntityType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EntityType) + EntityTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityType.newBuilder() to construct. + private EntityType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityType() { + name_ = ""; + description_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityType(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EntityType( + 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(); + + description_ = 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 (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 50: + { + 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 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 66: + { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder subBuilder = + null; + if (monitoringConfig_ != null) { + subBuilder = monitoringConfig_.toBuilder(); + } + monitoringConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitoringConfig_); + monitoringConfig_ = 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.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EntityType.class, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Immutable. Name of the EntityType.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * The last part entity_type is assigned by the client. The entity_type can be
+   * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+   * value will be unique given a featurestore.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+   * Immutable. Name of the EntityType.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * The last part entity_type is assigned by the client. The entity_type can be
+   * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+   * value will be unique given a featurestore.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description of the EntityType.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description of the EntityType.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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. Timestamp when this EntityType was created.
+   * 
+ * + * .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. Timestamp when this EntityType was created.
+   * 
+ * + * .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. Timestamp when this EntityType was created.
+   * 
+ * + * .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 UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7 [(.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. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7 [(.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; + } + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); + } + if (monitoringConfig_ != null) { + output.writeMessage(8, getMonitoringConfig()); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + 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(6, labels__); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMonitoringConfig()); + } + 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.EntityType)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EntityType other = + (com.google.cloud.aiplatform.v1beta1.EntityType) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType 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.EntityType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType 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.EntityType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType 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.EntityType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType 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.EntityType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType 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.EntityType 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.EntityType 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.EntityType 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 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
+   * driver0 is an instance of an entity type driver.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EntityType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EntityType) + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EntityType.class, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EntityType.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_ = ""; + + description_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EntityTypeProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType build() { + com.google.cloud.aiplatform.v1beta1.EntityType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType buildPartial() { + com.google.cloud.aiplatform.v1beta1.EntityType result = + new com.google.cloud.aiplatform.v1beta1.EntityType(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.etag_ = etag_; + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.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.EntityType) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EntityType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityType other) { + if (other == com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + 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.EntityType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.EntityType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. Name of the EntityType.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * The last part entity_type is assigned by the client. The entity_type can be
+     * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+     * value will be unique given a featurestore.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. Name of the EntityType.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * The last part entity_type is assigned by the client. The entity_type can be
+     * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+     * value will be unique given a featurestore.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. Name of the EntityType.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * The last part entity_type is assigned by the client. The entity_type can be
+     * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+     * value will be unique given a featurestore.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + /** + * + * + *
+     * Immutable. Name of the EntityType.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * The last part entity_type is assigned by the client. The entity_type can be
+     * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+     * value will be unique given a featurestore.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Name of the EntityType.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * The last part entity_type is assigned by the client. The entity_type can be
+     * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+     * value will be unique given a featurestore.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Optional. Description of the EntityType.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description of the EntityType.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description of the EntityType.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the EntityType.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the EntityType.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .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 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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your EntityTypes.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one EntityType (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7 [(.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. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7 [(.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. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7 [(.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. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7 [(.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; + } + + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder> + monitoringConfigBuilder_; + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.newBuilder( + monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder + getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + } + /** + * + * + *
+     * Optional. The default monitoring configuration for all Features under this
+     * EntityType.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+     * disabled.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + + @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.EntityType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EntityType) + private static final com.google.cloud.aiplatform.v1beta1.EntityType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EntityType(); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityType(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.EntityType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java new file mode 100644 index 000000000..fddb8e95c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java @@ -0,0 +1,269 @@ +/* + * 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 EntityTypeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String featurestore; + private final String entityType; + + @Deprecated + protected EntityTypeName() { + project = null; + location = null; + featurestore = null; + entityType = null; + } + + private EntityTypeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + featurestore = Preconditions.checkNotNull(builder.getFeaturestore()); + entityType = Preconditions.checkNotNull(builder.getEntityType()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public String getEntityType() { + return entityType; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EntityTypeName of( + String project, String location, String featurestore, String entityType) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .setEntityType(entityType) + .build(); + } + + public static String format( + String project, String location, String featurestore, String entityType) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .setEntityType(entityType) + .build() + .toString(); + } + + public static EntityTypeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE.validatedMatch( + formattedString, "EntityTypeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("featurestore"), + matchMap.get("entity_type")); + } + + 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 (EntityTypeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE.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 (featurestore != null) { + fieldMapBuilder.put("featurestore", featurestore); + } + if (entityType != null) { + fieldMapBuilder.put("entity_type", entityType); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE.instantiate( + "project", + project, + "location", + location, + "featurestore", + featurestore, + "entity_type", + entityType); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + EntityTypeName that = ((EntityTypeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.featurestore, that.featurestore) + && Objects.equals(this.entityType, that.entityType); + } + 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(featurestore); + h *= 1000003; + h ^= Objects.hashCode(entityType); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}. + */ + public static class Builder { + private String project; + private String location; + private String featurestore; + private String entityType; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public String getEntityType() { + return entityType; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFeaturestore(String featurestore) { + this.featurestore = featurestore; + return this; + } + + public Builder setEntityType(String entityType) { + this.entityType = entityType; + return this; + } + + private Builder(EntityTypeName entityTypeName) { + project = entityTypeName.project; + location = entityTypeName.location; + featurestore = entityTypeName.featurestore; + entityType = entityTypeName.entityType; + } + + public EntityTypeName build() { + return new EntityTypeName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java new file mode 100644 index 000000000..919567a18 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java @@ -0,0 +1,341 @@ +/* + * 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/entity_type.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface EntityTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EntityType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. Name of the EntityType.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * The last part entity_type is assigned by the client. The entity_type can be
+   * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+   * value will be unique given a featurestore.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. Name of the EntityType.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * The last part entity_type is assigned by the client. The entity_type can be
+   * up to 64 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The
+   * value will be unique given a featurestore.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Description of the EntityType.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description of the EntityType.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your EntityTypes.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one EntityType (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Optional. The default monitoring configuration for all Features under this
+   * EntityType.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
+   * disabled.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java new file mode 100644 index 000000000..3c87a06d6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java @@ -0,0 +1,124 @@ +/* + * 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/entity_type.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class EntityTypeProto { + private EntityTypeProto() {} + + 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_v1beta1_EntityType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EntityType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EntityType_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EntityType_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 = { + "\n1google/cloud/aiplatform/v1beta1/entity" + + "_type.proto\022\037google.cloud.aiplatform.v1b" + + "eta1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032-google/cloud/a" + + "iplatform/v1beta1/feature.proto\032=google/" + + "cloud/aiplatform/v1beta1/featurestore_mo" + + "nitoring.proto\032\037google/protobuf/timestam" + + "p.proto\032\034google/api/annotations.proto\"\241\004" + + "\n\nEntityType\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\030\n\013descr" + + "iption\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022L\n\006labels\030\006 \003(\01327.google.cloud.aip" + + "latform.v1beta1.EntityType.LabelsEntryB\003" + + "\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022]\n\021monitoring_con" + + "fig\030\010 \001(\0132=.google.cloud.aiplatform.v1be" + + "ta1.FeaturestoreMonitoringConfigB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001:\212\001\352A\206\001\n$aiplatform.googleapis.com/E" + + "ntityType\022^projects/{project}/locations/" + + "{location}/featurestores/{featurestore}/" + + "entityTypes/{entity_type}B\203\001\n#com.google" + + ".cloud.aiplatform.v1beta1B\017EntityTypePro" + + "toP\001ZIgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1beta1;aiplatformb" + + "\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.v1beta1.FeatureProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_EntityType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + "Etag", + "MonitoringConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_EntityType_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_EntityType_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_EntityType_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.v1beta1.FeatureProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java new file mode 100644 index 000000000..6c163b087 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java @@ -0,0 +1,1856 @@ +/* + * 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/event.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * An edge describing the relationship between an Artifact and an Execution in
+ * a lineage graph.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Event} + */ +public final class Event extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Event) + EventOrBuilder { + private static final long serialVersionUID = 0L; + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Event() { + artifact_ = ""; + execution_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Event(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Event( + 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(); + + artifact_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + execution_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (eventTime_ != null) { + subBuilder = eventTime_.toBuilder(); + } + eventTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventTime_); + eventTime_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 42: + { + 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; + } + 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.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + 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.v1beta1.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Event.class, + com.google.cloud.aiplatform.v1beta1.Event.Builder.class); + } + + /** + * + * + *
+   * Describes whether an Event's Artifact is the Execution's input or output.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Event.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified whether input or output of the Execution.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * An input of the Execution.
+     * 
+ * + * INPUT = 1; + */ + INPUT(1), + /** + * + * + *
+     * An output of the Execution.
+     * 
+ * + * OUTPUT = 2; + */ + OUTPUT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified whether input or output of the Execution.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * An input of the Execution.
+     * 
+ * + * INPUT = 1; + */ + public static final int INPUT_VALUE = 1; + /** + * + * + *
+     * An output of the Execution.
+     * 
+ * + * OUTPUT = 2; + */ + public static final int OUTPUT_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INPUT; + case 2: + return OUTPUT; + 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 Type findValueByNumber(int number) { + return Type.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.Event.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Event.Type) + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private volatile java.lang.Object artifact_; + /** + * + * + *
+   * Required. The relative resource name of the Artifact in the Event.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + @java.lang.Override + public java.lang.String getArtifact() { + java.lang.Object ref = artifact_; + 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(); + artifact_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The relative resource name of the Artifact in the Event.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactBytes() { + java.lang.Object ref = artifact_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_FIELD_NUMBER = 2; + private volatile java.lang.Object execution_; + /** + * + * + *
+   * Output only. The relative resource name of the Execution in the Event.
+   * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + @java.lang.Override + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + 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(); + execution_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative resource name of the Execution in the Event.
+   * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return eventTime_ != null; + } + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return getEventTime(); + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_; + /** + * + * + *
+   * Required. The type of the Event.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. The type of the Event.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Event.Type result = + com.google.cloud.aiplatform.v1beta1.Event.Type.valueOf(type_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Event.Type.UNRECOGNIZED : result; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_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 annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + @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 annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + @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 annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + @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); + } + + 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 (!getArtifactBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifact_); + } + if (!getExecutionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, execution_); + } + if (eventTime_ != null) { + output.writeMessage(3, getEventTime()); + } + if (type_ != com.google.cloud.aiplatform.v1beta1.Event.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, type_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getArtifactBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifact_); + } + if (!getExecutionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, execution_); + } + if (eventTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (type_ != com.google.cloud.aiplatform.v1beta1.Event.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); + } + 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(5, labels__); + } + 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.Event)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Event other = + (com.google.cloud.aiplatform.v1beta1.Event) obj; + + if (!getArtifact().equals(other.getArtifact())) return false; + if (!getExecution().equals(other.getExecution())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (type_ != other.type_) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Event parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Event 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.Event parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Event 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.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Event 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.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Event 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.Event parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Event 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.Event 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.Event 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.Event 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 edge describing the relationship between an Artifact and an Execution in
+   * a lineage graph.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Event} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Event) + com.google.cloud.aiplatform.v1beta1.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + 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.v1beta1.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Event.class, + com.google.cloud.aiplatform.v1beta1.Event.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Event.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(); + artifact_ = ""; + + execution_ = ""; + + if (eventTimeBuilder_ == null) { + eventTime_ = null; + } else { + eventTime_ = null; + eventTimeBuilder_ = null; + } + type_ = 0; + + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EventProto + .internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Event.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event build() { + com.google.cloud.aiplatform.v1beta1.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event buildPartial() { + com.google.cloud.aiplatform.v1beta1.Event result = + new com.google.cloud.aiplatform.v1beta1.Event(this); + int from_bitField0_ = bitField0_; + result.artifact_ = artifact_; + result.execution_ = execution_; + if (eventTimeBuilder_ == null) { + result.eventTime_ = eventTime_; + } else { + result.eventTime_ = eventTimeBuilder_.build(); + } + result.type_ = type_; + result.labels_ = internalGetLabels(); + result.labels_.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.Event) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Event) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Event other) { + if (other == com.google.cloud.aiplatform.v1beta1.Event.getDefaultInstance()) return this; + if (!other.getArtifact().isEmpty()) { + artifact_ = other.artifact_; + onChanged(); + } + if (!other.getExecution().isEmpty()) { + execution_ = other.execution_; + onChanged(); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + 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.Event parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Event) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object artifact_ = ""; + /** + * + * + *
+     * Required. The relative resource name of the Artifact in the Event.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + public java.lang.String getArtifact() { + java.lang.Object ref = artifact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifact_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The relative resource name of the Artifact in the Event.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + public com.google.protobuf.ByteString getArtifactBytes() { + java.lang.Object ref = artifact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The relative resource name of the Artifact in the Event.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The artifact to set. + * @return This builder for chaining. + */ + public Builder setArtifact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifact_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The relative resource name of the Artifact in the Event.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearArtifact() { + + artifact_ = getDefaultInstance().getArtifact(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The relative resource name of the Artifact in the Event.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for artifact to set. + * @return This builder for chaining. + */ + public Builder setArtifactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifact_ = value; + onChanged(); + return this; + } + + private java.lang.Object execution_ = ""; + /** + * + * + *
+     * Output only. The relative resource name of the Execution in the Event.
+     * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the Execution in the Event.
+     * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + public com.google.protobuf.ByteString getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the Execution in the Event.
+     * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The execution to set. + * @return This builder for chaining. + */ + public Builder setExecution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the Execution in the Event.
+     * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExecution() { + + execution_ = getDefaultInstance().getExecution(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the Execution in the Event.
+     * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for execution to set. + * @return This builder for chaining. + */ + public Builder setExecutionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execution_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return eventTimeBuilder_ != null || eventTime_ != null; + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + onChanged(); + } else { + eventTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + onChanged(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (eventTime_ != null) { + eventTime_ = + com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + } else { + eventTime_ = value; + } + onChanged(); + } else { + eventTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEventTime() { + if (eventTimeBuilder_ == null) { + eventTime_ = null; + onChanged(); + } else { + eventTime_ = null; + eventTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + + onChanged(); + return getEventTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + /** + * + * + *
+     * Output only. Time the Event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_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> + getEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private int type_ = 0; + /** + * + * + *
+     * Required. The type of the Event.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. The type of the Event.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of the Event.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Event.Type result = + com.google.cloud.aiplatform.v1beta1.Event.Type.valueOf(type_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Event.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. The type of the Event.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.aiplatform.v1beta1.Event.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of the Event.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + 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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + @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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + @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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + @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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + 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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + 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 annotate Events.
+     * 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 Event (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 5; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().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.Event) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Event) + private static final com.google.cloud.aiplatform.v1beta1.Event DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Event(); + } + + public static com.google.cloud.aiplatform.v1beta1.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Event(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.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java new file mode 100644 index 000000000..a352ebb89 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java @@ -0,0 +1,244 @@ +/* + * 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/event.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface EventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Event) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The relative resource name of the Artifact in the Event.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + java.lang.String getArtifact(); + /** + * + * + *
+   * Required. The relative resource name of the Artifact in the Event.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + com.google.protobuf.ByteString getArtifactBytes(); + + /** + * + * + *
+   * Output only. The relative resource name of the Execution in the Event.
+   * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + java.lang.String getExecution(); + /** + * + * + *
+   * Output only. The relative resource name of the Execution in the Event.
+   * 
+ * + * + * string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + com.google.protobuf.ByteString getExecutionBytes(); + + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + /** + * + * + *
+   * Output only. Time the Event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Required. The type of the Event.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. The type of the Event.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.aiplatform.v1beta1.Event.Type getType(); + + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to annotate Events.
+   * 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 Event (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java new file mode 100644 index 000000000..674cc93f8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventProto.java @@ -0,0 +1,105 @@ +/* + * 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/event.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class EventProto { + private EventProto() {} + + 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_v1beta1_Event_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Event_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Event_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/v1beta1/event." + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\032\034google/api/annotations.prot" + + "o\"\242\003\n\005Event\022<\n\010artifact\030\001 \001(\tB*\340A\002\372A$\n\"a" + + "iplatform.googleapis.com/Artifact\022>\n\texe" + + "cution\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googlea" + + "pis.com/Execution\0223\n\nevent_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022>\n\004type\030\004" + + " \001(\0162+.google.cloud.aiplatform.v1beta1.E" + + "vent.TypeB\003\340A\002\022B\n\006labels\030\005 \003(\01322.google." + + "cloud.aiplatform.v1beta1.Event.LabelsEnt" + + "ry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"3\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" + + "\t\n\005INPUT\020\001\022\n\n\006OUTPUT\020\002B~\n#com.google.clo" + + "ud.aiplatform.v1beta1B\nEventProtoP\001ZIgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1beta1;aiplatformb\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.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor, + new java.lang.String[] { + "Artifact", "Execution", "EventTime", "Type", "Labels", + }); + internal_static_google_cloud_aiplatform_v1beta1_Event_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Event_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Event_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Event_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.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java new file mode 100644 index 000000000..0d38e4ea8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java @@ -0,0 +1,3195 @@ +/* + * 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/execution.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instance of a general execution.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Execution} + */ +public final class Execution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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_ = ""; + schemaTitle_ = ""; + schemaVersion_ = ""; + description_ = ""; + } + + @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; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaTitle_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaVersion_ = s; + break; + } + case 122: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Execution.class, + com.google.cloud.aiplatform.v1beta1.Execution.Builder.class); + } + + /** + * + * + *
+   * Describes the state of the Execution.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.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), + 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; + + 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; + 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Execution.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Execution.State result = + com.google.cloud.aiplatform.v1beta1.Execution.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_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(); + } + + public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; + private volatile java.lang.Object schemaTitle_; + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + @java.lang.Override + public java.lang.String getSchemaTitle() { + java.lang.Object ref = schemaTitle_; + 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(); + schemaTitle_ = s; + return s; + } + } + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaTitleBytes() { + java.lang.Object ref = schemaTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; + private volatile java.lang.Object schemaVersion_; + /** + * + * + *
+   * The version of the schema in `schema_title` to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + @java.lang.Override + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + 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(); + schemaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the schema in `schema_title` to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 15; + private com.google.protobuf.Struct metadata_; + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 16; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of the Execution
+   * 
+ * + * string description = 16; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of the Execution
+   * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 (state_ + != com.google.cloud.aiplatform.v1beta1.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()); + } + if (!getSchemaTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, schemaTitle_); + } + if (!getSchemaVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, schemaVersion_); + } + if (metadata_ != null) { + output.writeMessage(15, getMetadata()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); + } + 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.v1beta1.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()); + } + if (!getSchemaTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, schemaTitle_); + } + if (!getSchemaVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, schemaVersion_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getMetadata()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); + } + 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.Execution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Execution other = + (com.google.cloud.aiplatform.v1beta1.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 (!getSchemaTitle().equals(other.getSchemaTitle())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getDescription().equals(other.getDescription())) 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 = (37 * hash) + SCHEMA_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getSchemaTitle().hashCode(); + hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Execution parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Execution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Execution) + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Execution.class, + com.google.cloud.aiplatform.v1beta1.Execution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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; + } + schemaTitle_ = ""; + + schemaVersion_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1beta1_Execution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution build() { + com.google.cloud.aiplatform.v1beta1.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution buildPartial() { + com.google.cloud.aiplatform.v1beta1.Execution result = + new com.google.cloud.aiplatform.v1beta1.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(); + } + result.schemaTitle_ = schemaTitle_; + result.schemaVersion_ = schemaVersion_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.description_ = description_; + 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.Execution) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Execution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Execution other) { + if (other == com.google.cloud.aiplatform.v1beta1.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()); + } + if (!other.getSchemaTitle().isEmpty()) { + schemaTitle_ = other.schemaTitle_; + onChanged(); + } + if (!other.getSchemaVersion().isEmpty()) { + schemaVersion_ = other.schemaVersion_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Execution.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Execution.State result = + com.google.cloud.aiplatform.v1beta1.Execution.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1beta1.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.v1beta1.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_; + } + + private java.lang.Object schemaTitle_ = ""; + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + public java.lang.String getSchemaTitle() { + java.lang.Object ref = schemaTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + public com.google.protobuf.ByteString getSchemaTitleBytes() { + java.lang.Object ref = schemaTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @param value The schemaTitle to set. + * @return This builder for chaining. + */ + public Builder setSchemaTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @return This builder for chaining. + */ + public Builder clearSchemaTitle() { + + schemaTitle_ = getDefaultInstance().getSchemaTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * The title of the schema describing the metadata.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_title = 13; + * + * @param value The bytes for schemaTitle to set. + * @return This builder for chaining. + */ + public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaTitle_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaVersion_ = ""; + /** + * + * + *
+     * The version of the schema in `schema_title` to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the schema in `schema_title` to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the schema in `schema_title` to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the schema in `schema_title` to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + + schemaVersion_ = getDefaultInstance().getSchemaVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the schema in `schema_title` to use.
+     * Schema title and version is expected to be registered in earlier Create
+     * Schema calls. And both are used together as unique identifiers to identify
+     * schemas within the local metadata store.
+     * 
+ * + * string schema_version = 14; + * + * @param value The bytes for schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * Properties of the Execution.
+     * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Description of the Execution
+     * 
+ * + * string description = 16; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of the Execution
+     * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of the Execution
+     * 
+ * + * string description = 16; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Execution
+     * 
+ * + * string description = 16; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Execution
+     * 
+ * + * string description = 16; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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.Execution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Execution) + private static final com.google.cloud.aiplatform.v1beta1.Execution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Execution(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java new file mode 100644 index 000000000..0c230f540 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java @@ -0,0 +1,269 @@ +/* + * 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 ExecutionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_METADATA_STORE_EXECUTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String metadataStore; + private final String execution; + + @Deprecated + protected ExecutionName() { + project = null; + location = null; + metadataStore = null; + execution = null; + } + + private ExecutionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + metadataStore = Preconditions.checkNotNull(builder.getMetadataStore()); + execution = Preconditions.checkNotNull(builder.getExecution()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getExecution() { + return execution; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExecutionName of( + String project, String location, String metadataStore, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setExecution(execution) + .build(); + } + + public static String format( + String project, String location, String metadataStore, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setExecution(execution) + .build() + .toString(); + } + + public static ExecutionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_METADATA_STORE_EXECUTION.validatedMatch( + formattedString, "ExecutionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("metadata_store"), + matchMap.get("execution")); + } + + 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 (ExecutionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_METADATA_STORE_EXECUTION.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 (metadataStore != null) { + fieldMapBuilder.put("metadata_store", metadataStore); + } + if (execution != null) { + fieldMapBuilder.put("execution", execution); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_METADATA_STORE_EXECUTION.instantiate( + "project", + project, + "location", + location, + "metadata_store", + metadataStore, + "execution", + execution); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ExecutionName that = ((ExecutionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.metadataStore, that.metadataStore) + && Objects.equals(this.execution, that.execution); + } + 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(metadataStore); + h *= 1000003; + h ^= Objects.hashCode(execution); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}. + */ + public static class Builder { + private String project; + private String location; + private String metadataStore; + private String execution; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getExecution() { + return execution; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMetadataStore(String metadataStore) { + this.metadataStore = metadataStore; + return this; + } + + public Builder setExecution(String execution) { + this.execution = execution; + return this; + } + + private Builder(ExecutionName executionName) { + project = executionName.project; + location = executionName.location; + metadataStore = executionName.metadataStore; + execution = executionName.execution; + } + + public ExecutionName build() { + return new ExecutionName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java new file mode 100644 index 000000000..6eef77a75 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java @@ -0,0 +1,412 @@ +/* + * 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/execution.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExecutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Execution.State state = 6; + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.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(); + + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The schemaTitle. + */ + java.lang.String getSchemaTitle(); + /** + * + * + *
+   * The title of the schema describing the metadata.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_title = 13; + * + * @return The bytes for schemaTitle. + */ + com.google.protobuf.ByteString getSchemaTitleBytes(); + + /** + * + * + *
+   * The version of the schema in `schema_title` to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The schemaVersion. + */ + java.lang.String getSchemaVersion(); + /** + * + * + *
+   * The version of the schema in `schema_title` to use.
+   * Schema title and version is expected to be registered in earlier Create
+   * Schema calls. And both are used together as unique identifiers to identify
+   * schemas within the local metadata store.
+   * 
+ * + * string schema_version = 14; + * + * @return The bytes for schemaVersion. + */ + com.google.protobuf.ByteString getSchemaVersionBytes(); + + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + /** + * + * + *
+   * Properties of the Execution.
+   * 
+ * + * .google.protobuf.Struct metadata = 15; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Description of the Execution
+   * 
+ * + * string description = 16; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of the Execution
+   * 
+ * + * string description = 16; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} 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 new file mode 100644 index 000000000..8fd46853a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.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/v1beta1/execution.proto + +package com.google.cloud.aiplatform.v1beta1; + +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_v1beta1_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Execution_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_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/v1beta1/execut" + + "ion.proto\022\037google.cloud.aiplatform.v1bet" + + "a1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032+google/cloud/aip" + + "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" + + "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." + + "cloud.aiplatform.v1beta1.Execution.Label" + + "sEntry\0224\n\013create_time\030\013 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\014sc" + + "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" + + "\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" + }; + 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.v1beta1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Execution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Execution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Execution_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "State", + "Etag", + "Labels", + "CreateTime", + "UpdateTime", + "SchemaTitle", + "SchemaVersion", + "Metadata", + "Description", + }); + internal_static_google_cloud_aiplatform_v1beta1_Execution_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Execution_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_Execution_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java index 511c22b5e..29850c5c2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java @@ -170,11 +170,11 @@ public interface InputMetadataOrBuilder * *
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -194,11 +194,11 @@ public interface InputMetadataOrBuilder
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -218,11 +218,11 @@ public interface InputMetadataOrBuilder
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -242,11 +242,11 @@ public interface InputMetadataOrBuilder
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -266,11 +266,11 @@ public interface InputMetadataOrBuilder
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -291,7 +291,7 @@ public interface InputMetadataOrBuilder
      *
      * 
      * Name of the input tensor for this feature. Required and is only
-     * applicable to AI Platform provided images for Tensorflow.
+     * applicable to Vertex AI-provided images for Tensorflow.
      * 
* * string input_tensor_name = 2; @@ -304,7 +304,7 @@ public interface InputMetadataOrBuilder * *
      * Name of the input tensor for this feature. Required and is only
-     * applicable to AI Platform provided images for Tensorflow.
+     * applicable to Vertex AI-provided images for Tensorflow.
      * 
* * string input_tensor_name = 2; @@ -580,7 +580,7 @@ public interface InputMetadataOrBuilder *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -593,7 +593,7 @@ public interface InputMetadataOrBuilder *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -606,7 +606,7 @@ public interface InputMetadataOrBuilder *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -619,7 +619,7 @@ public interface InputMetadataOrBuilder *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -632,7 +632,7 @@ public interface InputMetadataOrBuilder *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -724,7 +724,7 @@ public interface InputMetadataOrBuilder *
    * Metadata of the input of a feature.
    * Fields other than [InputMetadata.input_baselines][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.input_baselines] are applicable only
-   * for Models that are using AI Platform-provided images for Tensorflow.
+   * for Models that are using Vertex AI-provided images for Tensorflow.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata} @@ -2372,7 +2372,7 @@ public interface VisualizationOrBuilder * *
        * Excludes attributions below the specified percentile, from the
-       * highlighted areas. Defaults to 35.
+       * highlighted areas. Defaults to 62.
        * 
* * float clip_percent_lowerbound = 5; @@ -3562,7 +3562,7 @@ public float getClipPercentUpperbound() { * *
        * Excludes attributions below the specified percentile, from the
-       * highlighted areas. Defaults to 35.
+       * highlighted areas. Defaults to 62.
        * 
* * float clip_percent_lowerbound = 5; @@ -4560,7 +4560,7 @@ public Builder clearClipPercentUpperbound() { * *
          * Excludes attributions below the specified percentile, from the
-         * highlighted areas. Defaults to 35.
+         * highlighted areas. Defaults to 62.
          * 
* * float clip_percent_lowerbound = 5; @@ -4576,7 +4576,7 @@ public float getClipPercentLowerbound() { * *
          * Excludes attributions below the specified percentile, from the
-         * highlighted areas. Defaults to 35.
+         * highlighted areas. Defaults to 62.
          * 
* * float clip_percent_lowerbound = 5; @@ -4595,7 +4595,7 @@ public Builder setClipPercentLowerbound(float value) { * *
          * Excludes attributions below the specified percentile, from the
-         * highlighted areas. Defaults to 35.
+         * highlighted areas. Defaults to 62.
          * 
* * float clip_percent_lowerbound = 5; @@ -4797,11 +4797,11 @@ public com.google.protobuf.Parser getParserForType() { * *
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -4824,11 +4824,11 @@ public java.util.List getInputBaselinesList() {
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -4852,11 +4852,11 @@ public java.util.List getInputBaselinesList() {
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -4879,11 +4879,11 @@ public int getInputBaselinesCount() {
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -4906,11 +4906,11 @@ public com.google.protobuf.Value getInputBaselines(int index) {
      *
      * 
      * Baseline inputs for this feature.
-     * If no baseline is specified, AI Platform chooses the baseline for this
-     * feature. If multiple baselines are specified, AI Platform returns the
+     * If no baseline is specified, Vertex AI chooses the baseline for this
+     * feature. If multiple baselines are specified, Vertex AI returns the
      * average attributions across them in
      * [Attributions.baseline_attribution][].
-     * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+     * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
      * of each baseline must match the shape of the input tensor. If a scalar is
      * provided, we broadcast to the same shape as the input tensor.
      * For custom images, the element of the baselines must be in the same
@@ -4936,7 +4936,7 @@ public com.google.protobuf.ValueOrBuilder getInputBaselinesOrBuilder(int index)
      *
      * 
      * Name of the input tensor for this feature. Required and is only
-     * applicable to AI Platform provided images for Tensorflow.
+     * applicable to Vertex AI-provided images for Tensorflow.
      * 
* * string input_tensor_name = 2; @@ -4960,7 +4960,7 @@ public java.lang.String getInputTensorName() { * *
      * Name of the input tensor for this feature. Required and is only
-     * applicable to AI Platform provided images for Tensorflow.
+     * applicable to Vertex AI-provided images for Tensorflow.
      * 
* * string input_tensor_name = 2; @@ -5386,7 +5386,7 @@ public com.google.protobuf.ByteString getEncodedTensorNameBytes() { *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -5402,7 +5402,7 @@ public java.util.List getEncodedBaselinesList() { *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -5419,7 +5419,7 @@ public java.util.List getEncodedBaselinesList() { *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -5435,7 +5435,7 @@ public int getEncodedBaselinesCount() { *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -5451,7 +5451,7 @@ public com.google.protobuf.Value getEncodedBaselines(int index) { *
      * A list of baselines for the encoded tensor.
      * The shape of each baseline should match the shape of the encoded tensor.
-     * If a scalar is provided, AI Platform broadcast to the same shape as the
+     * If a scalar is provided, Vertex AI broadcasts to the same shape as the
      * encoded tensor.
      * 
* @@ -5877,7 +5877,7 @@ protected Builder newBuilderForType( *
      * Metadata of the input of a feature.
      * Fields other than [InputMetadata.input_baselines][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.input_baselines] are applicable only
-     * for Models that are using AI Platform-provided images for Tensorflow.
+     * for Models that are using Vertex AI-provided images for Tensorflow.
      * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata} @@ -6242,11 +6242,11 @@ private void ensureInputBaselinesIsMutable() { * *
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6272,11 +6272,11 @@ public java.util.List getInputBaselinesList() {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6302,11 +6302,11 @@ public int getInputBaselinesCount() {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6332,11 +6332,11 @@ public com.google.protobuf.Value getInputBaselines(int index) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6368,11 +6368,11 @@ public Builder setInputBaselines(int index, com.google.protobuf.Value value) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6402,11 +6402,11 @@ public Builder setInputBaselines(
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6438,11 +6438,11 @@ public Builder addInputBaselines(com.google.protobuf.Value value) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6474,11 +6474,11 @@ public Builder addInputBaselines(int index, com.google.protobuf.Value value) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6507,11 +6507,11 @@ public Builder addInputBaselines(com.google.protobuf.Value.Builder builderForVal
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6541,11 +6541,11 @@ public Builder addInputBaselines(
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6575,11 +6575,11 @@ public Builder addAllInputBaselines(
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6608,11 +6608,11 @@ public Builder clearInputBaselines() {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6641,11 +6641,11 @@ public Builder removeInputBaselines(int index) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6667,11 +6667,11 @@ public com.google.protobuf.Value.Builder getInputBaselinesBuilder(int index) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6697,11 +6697,11 @@ public com.google.protobuf.ValueOrBuilder getInputBaselinesOrBuilder(int index)
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6728,11 +6728,11 @@ public com.google.protobuf.ValueOrBuilder getInputBaselinesOrBuilder(int index)
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6755,11 +6755,11 @@ public com.google.protobuf.Value.Builder addInputBaselinesBuilder() {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6782,11 +6782,11 @@ public com.google.protobuf.Value.Builder addInputBaselinesBuilder(int index) {
        *
        * 
        * Baseline inputs for this feature.
-       * If no baseline is specified, AI Platform chooses the baseline for this
-       * feature. If multiple baselines are specified, AI Platform returns the
+       * If no baseline is specified, Vertex AI chooses the baseline for this
+       * feature. If multiple baselines are specified, Vertex AI returns the
        * average attributions across them in
        * [Attributions.baseline_attribution][].
-       * For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape
+       * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
        * of each baseline must match the shape of the input tensor. If a scalar is
        * provided, we broadcast to the same shape as the input tensor.
        * For custom images, the element of the baselines must be in the same
@@ -6830,7 +6830,7 @@ public java.util.List getInputBaselinesBuilde
        *
        * 
        * Name of the input tensor for this feature. Required and is only
-       * applicable to AI Platform provided images for Tensorflow.
+       * applicable to Vertex AI-provided images for Tensorflow.
        * 
* * string input_tensor_name = 2; @@ -6853,7 +6853,7 @@ public java.lang.String getInputTensorName() { * *
        * Name of the input tensor for this feature. Required and is only
-       * applicable to AI Platform provided images for Tensorflow.
+       * applicable to Vertex AI-provided images for Tensorflow.
        * 
* * string input_tensor_name = 2; @@ -6876,7 +6876,7 @@ public com.google.protobuf.ByteString getInputTensorNameBytes() { * *
        * Name of the input tensor for this feature. Required and is only
-       * applicable to AI Platform provided images for Tensorflow.
+       * applicable to Vertex AI-provided images for Tensorflow.
        * 
* * string input_tensor_name = 2; @@ -6898,7 +6898,7 @@ public Builder setInputTensorName(java.lang.String value) { * *
        * Name of the input tensor for this feature. Required and is only
-       * applicable to AI Platform provided images for Tensorflow.
+       * applicable to Vertex AI-provided images for Tensorflow.
        * 
* * string input_tensor_name = 2; @@ -6916,7 +6916,7 @@ public Builder clearInputTensorName() { * *
        * Name of the input tensor for this feature. Required and is only
-       * applicable to AI Platform provided images for Tensorflow.
+       * applicable to Vertex AI-provided images for Tensorflow.
        * 
* * string input_tensor_name = 2; @@ -7978,7 +7978,7 @@ private void ensureEncodedBaselinesIsMutable() { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -7997,7 +7997,7 @@ public java.util.List getEncodedBaselinesList() { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8016,7 +8016,7 @@ public int getEncodedBaselinesCount() { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8035,7 +8035,7 @@ public com.google.protobuf.Value getEncodedBaselines(int index) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8060,7 +8060,7 @@ public Builder setEncodedBaselines(int index, com.google.protobuf.Value value) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8083,7 +8083,7 @@ public Builder setEncodedBaselines( *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8108,7 +8108,7 @@ public Builder addEncodedBaselines(com.google.protobuf.Value value) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8133,7 +8133,7 @@ public Builder addEncodedBaselines(int index, com.google.protobuf.Value value) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8155,7 +8155,7 @@ public Builder addEncodedBaselines(com.google.protobuf.Value.Builder builderForV *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8178,7 +8178,7 @@ public Builder addEncodedBaselines( *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8201,7 +8201,7 @@ public Builder addAllEncodedBaselines( *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8223,7 +8223,7 @@ public Builder clearEncodedBaselines() { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8245,7 +8245,7 @@ public Builder removeEncodedBaselines(int index) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8260,7 +8260,7 @@ public com.google.protobuf.Value.Builder getEncodedBaselinesBuilder(int index) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8279,7 +8279,7 @@ public com.google.protobuf.ValueOrBuilder getEncodedBaselinesOrBuilder(int index *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8299,7 +8299,7 @@ public com.google.protobuf.ValueOrBuilder getEncodedBaselinesOrBuilder(int index *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8315,7 +8315,7 @@ public com.google.protobuf.Value.Builder addEncodedBaselinesBuilder() { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8331,7 +8331,7 @@ public com.google.protobuf.Value.Builder addEncodedBaselinesBuilder(int index) { *
        * A list of baselines for the encoded tensor.
        * The shape of each baseline should match the shape of the encoded tensor.
-       * If a scalar is provided, AI Platform broadcast to the same shape as the
+       * If a scalar is provided, Vertex AI broadcasts to the same shape as the
        * encoded tensor.
        * 
* @@ -8790,7 +8790,7 @@ public interface OutputMetadataOrBuilder * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -8811,7 +8811,7 @@ public interface OutputMetadataOrBuilder * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -8832,7 +8832,7 @@ public interface OutputMetadataOrBuilder * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -8841,6 +8841,22 @@ public interface OutputMetadataOrBuilder */ com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder(); + /** + * + * + *
+     * Specify a field name in the prediction to look for the display name.
+     * Use this if the prediction contains the display names for the outputs.
+     * The display names in the prediction must have the same shape of the
+     * outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] for
+     * a specific output.
+     * 
+ * + * string display_name_mapping_key = 2; + * + * @return Whether the displayNameMappingKey field is set. + */ + boolean hasDisplayNameMappingKey(); /** * * @@ -9079,7 +9095,7 @@ public DisplayNameMappingCase getDisplayNameMappingCase() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9103,7 +9119,7 @@ public boolean hasIndexDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9130,7 +9146,7 @@ public com.google.protobuf.Value getIndexDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9146,6 +9162,24 @@ public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder() } public static final int DISPLAY_NAME_MAPPING_KEY_FIELD_NUMBER = 2; + /** + * + * + *
+     * Specify a field name in the prediction to look for the display name.
+     * Use this if the prediction contains the display names for the outputs.
+     * The display names in the prediction must have the same shape of the
+     * outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] for
+     * a specific output.
+     * 
+ * + * string display_name_mapping_key = 2; + * + * @return Whether the displayNameMappingKey field is set. + */ + public boolean hasDisplayNameMappingKey() { + return displayNameMappingCase_ == 2; + } /** * * @@ -9694,7 +9728,7 @@ public Builder clearDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9718,7 +9752,7 @@ public boolean hasIndexDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9752,7 +9786,7 @@ public com.google.protobuf.Value getIndexDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9783,7 +9817,7 @@ public Builder setIndexDisplayNameMapping(com.google.protobuf.Value value) { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9811,7 +9845,7 @@ public Builder setIndexDisplayNameMapping(com.google.protobuf.Value.Builder buil * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9851,7 +9885,7 @@ public Builder mergeIndexDisplayNameMapping(com.google.protobuf.Value value) { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9885,7 +9919,7 @@ public Builder clearIndexDisplayNameMapping() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9906,7 +9940,7 @@ public com.google.protobuf.Value.Builder getIndexDisplayNameMappingBuilder() { * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9935,7 +9969,7 @@ public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder() * non-deterministic, e.g. the Model produces top-k classes or sort the * outputs by their values. * The shape of the value must be an n-dimensional array of strings. The - * number of dimentions must match that of the outputs to be explained. + * number of dimensions must match that of the outputs to be explained. * The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the * mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. *
@@ -9967,6 +10001,25 @@ public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder() return indexDisplayNameMappingBuilder_; } + /** + * + * + *
+       * Specify a field name in the prediction to look for the display name.
+       * Use this if the prediction contains the display names for the outputs.
+       * The display names in the prediction must have the same shape of the
+       * outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] for
+       * a specific output.
+       * 
+ * + * string display_name_mapping_key = 2; + * + * @return Whether the displayNameMappingKey field is set. + */ + @java.lang.Override + public boolean hasDisplayNameMappingKey() { + return displayNameMappingCase_ == 2; + } /** * * @@ -10316,8 +10369,8 @@ public int getInputsCount() { * features. Values are the specification of the feature. * An empty InputMetadata is valid. It describes a text feature which has the * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - * of the empty feature is chosen by AI Platform. - * For AI Platform provided Tensorflow images, the key can be any friendly + * of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly * name of the feature. Once specified, * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by * this key (if not grouped with another feature). @@ -10352,8 +10405,8 @@ public boolean containsInputs(java.lang.String key) { * features. Values are the specification of the feature. * An empty InputMetadata is valid. It describes a text feature which has the * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - * of the empty feature is chosen by AI Platform. - * For AI Platform provided Tensorflow images, the key can be any friendly + * of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly * name of the feature. Once specified, * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by * this key (if not grouped with another feature). @@ -10379,8 +10432,8 @@ public boolean containsInputs(java.lang.String key) { * features. Values are the specification of the feature. * An empty InputMetadata is valid. It describes a text feature which has the * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - * of the empty feature is chosen by AI Platform. - * For AI Platform provided Tensorflow images, the key can be any friendly + * of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly * name of the feature. Once specified, * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by * this key (if not grouped with another feature). @@ -10412,8 +10465,8 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get * features. Values are the specification of the feature. * An empty InputMetadata is valid. It describes a text feature which has the * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - * of the empty feature is chosen by AI Platform. - * For AI Platform provided Tensorflow images, the key can be any friendly + * of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly * name of the feature. Once specified, * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by * this key (if not grouped with another feature). @@ -10481,8 +10534,8 @@ public int getOutputsCount() { * *
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -10512,8 +10565,8 @@ public boolean containsOutputs(java.lang.String key) {
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -10534,8 +10587,8 @@ public boolean containsOutputs(java.lang.String key) {
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -10563,8 +10616,8 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -10598,9 +10651,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge
    * 
    * Points to a YAML file stored on Google Cloud Storage describing the format
    * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-   * The schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-   * AutoML tabular Models always have this field populated by AI Platform.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * AutoML tabular Models always have this field populated by Vertex AI.
    * Note: The URI given on output may be different, including the URI scheme,
    * than the one given on input. The output URI will point to a location where
    * the user only has a read access.
@@ -10628,9 +10681,9 @@ public java.lang.String getFeatureAttributionsSchemaUri() {
    * 
    * Points to a YAML file stored on Google Cloud Storage describing the format
    * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-   * The schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-   * AutoML tabular Models always have this field populated by AI Platform.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * AutoML tabular Models always have this field populated by Vertex AI.
    * Note: The URI given on output may be different, including the URI scheme,
    * than the one given on input. The output URI will point to a location where
    * the user only has a read access.
@@ -11091,8 +11144,8 @@ public int getInputsCount() {
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11127,8 +11180,8 @@ public boolean containsInputs(java.lang.String key) {
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11154,8 +11207,8 @@ public boolean containsInputs(java.lang.String key) {
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11188,8 +11241,8 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11229,8 +11282,8 @@ public Builder clearInputs() {
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11264,8 +11317,8 @@ public Builder removeInputs(java.lang.String key) {
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11297,8 +11350,8 @@ public Builder putInputs(
      * features. Values are the specification of the feature.
      * An empty InputMetadata is valid. It describes a text feature which has the
      * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-     * of the empty feature is chosen by AI Platform.
-     * For AI Platform provided Tensorflow images, the key can be any friendly
+     * of the empty feature is chosen by Vertex AI.
+     * For Vertex AI-provided Tensorflow images, the key can be any friendly
      * name of the feature. Once specified,
      * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
      * this key (if not grouped with another feature).
@@ -11357,8 +11410,8 @@ public int getOutputsCount() {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11389,8 +11442,8 @@ public boolean containsOutputs(java.lang.String key) {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11412,8 +11465,8 @@ public boolean containsOutputs(java.lang.String key) {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11442,8 +11495,8 @@ public boolean containsOutputs(java.lang.String key) {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11478,8 +11531,8 @@ public Builder clearOutputs() {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11509,8 +11562,8 @@ public Builder removeOutputs(java.lang.String key) {
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11537,8 +11590,8 @@ public Builder putOutputs(
      *
      * 
      * Required. Map from output names to output metadata.
-     * For AI Platform provided Tensorflow images, keys can be any string user
-     * defines.
+     * For Vertex AI-provided Tensorflow images, keys can be any user defined
+     * string that consists of any UTF-8 characters.
      * For custom images, keys are the name of the output field in the prediction
      * to be explained.
      * Currently only one key is allowed.
@@ -11564,9 +11617,9 @@ public Builder putAllOutputs(
      * 
      * Points to a YAML file stored on Google Cloud Storage describing the format
      * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-     * The schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-     * AutoML tabular Models always have this field populated by AI Platform.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * AutoML tabular Models always have this field populated by Vertex AI.
      * Note: The URI given on output may be different, including the URI scheme,
      * than the one given on input. The output URI will point to a location where
      * the user only has a read access.
@@ -11593,9 +11646,9 @@ public java.lang.String getFeatureAttributionsSchemaUri() {
      * 
      * Points to a YAML file stored on Google Cloud Storage describing the format
      * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-     * The schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-     * AutoML tabular Models always have this field populated by AI Platform.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * AutoML tabular Models always have this field populated by Vertex AI.
      * Note: The URI given on output may be different, including the URI scheme,
      * than the one given on input. The output URI will point to a location where
      * the user only has a read access.
@@ -11622,9 +11675,9 @@ public com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes() {
      * 
      * Points to a YAML file stored on Google Cloud Storage describing the format
      * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-     * The schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-     * AutoML tabular Models always have this field populated by AI Platform.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * AutoML tabular Models always have this field populated by Vertex AI.
      * Note: The URI given on output may be different, including the URI scheme,
      * than the one given on input. The output URI will point to a location where
      * the user only has a read access.
@@ -11650,9 +11703,9 @@ public Builder setFeatureAttributionsSchemaUri(java.lang.String value) {
      * 
      * Points to a YAML file stored on Google Cloud Storage describing the format
      * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-     * The schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-     * AutoML tabular Models always have this field populated by AI Platform.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * AutoML tabular Models always have this field populated by Vertex AI.
      * Note: The URI given on output may be different, including the URI scheme,
      * than the one given on input. The output URI will point to a location where
      * the user only has a read access.
@@ -11674,9 +11727,9 @@ public Builder clearFeatureAttributionsSchemaUri() {
      * 
      * Points to a YAML file stored on Google Cloud Storage describing the format
      * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-     * The schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-     * AutoML tabular Models always have this field populated by AI Platform.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * AutoML tabular Models always have this field populated by Vertex AI.
      * Note: The URI given on output may be different, including the URI scheme,
      * than the one given on input. The output URI will point to a location where
      * the user only has a read access.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java
index e543a0496..c4cec2756 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java
@@ -31,8 +31,8 @@ public interface ExplanationMetadataOrBuilder
    * features. Values are the specification of the feature.
    * An empty InputMetadata is valid. It describes a text feature which has the
    * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-   * of the empty feature is chosen by AI Platform.
-   * For AI Platform provided Tensorflow images, the key can be any friendly
+   * of the empty feature is chosen by Vertex AI.
+   * For Vertex AI-provided Tensorflow images, the key can be any friendly
    * name of the feature. Once specified,
    * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
    * this key (if not grouped with another feature).
@@ -53,8 +53,8 @@ public interface ExplanationMetadataOrBuilder
    * features. Values are the specification of the feature.
    * An empty InputMetadata is valid. It describes a text feature which has the
    * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-   * of the empty feature is chosen by AI Platform.
-   * For AI Platform provided Tensorflow images, the key can be any friendly
+   * of the empty feature is chosen by Vertex AI.
+   * For Vertex AI-provided Tensorflow images, the key can be any friendly
    * name of the feature. Once specified,
    * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
    * this key (if not grouped with another feature).
@@ -80,8 +80,8 @@ public interface ExplanationMetadataOrBuilder
    * features. Values are the specification of the feature.
    * An empty InputMetadata is valid. It describes a text feature which has the
    * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-   * of the empty feature is chosen by AI Platform.
-   * For AI Platform provided Tensorflow images, the key can be any friendly
+   * of the empty feature is chosen by Vertex AI.
+   * For Vertex AI-provided Tensorflow images, the key can be any friendly
    * name of the feature. Once specified,
    * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
    * this key (if not grouped with another feature).
@@ -104,8 +104,8 @@ public interface ExplanationMetadataOrBuilder
    * features. Values are the specification of the feature.
    * An empty InputMetadata is valid. It describes a text feature which has the
    * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-   * of the empty feature is chosen by AI Platform.
-   * For AI Platform provided Tensorflow images, the key can be any friendly
+   * of the empty feature is chosen by Vertex AI.
+   * For Vertex AI-provided Tensorflow images, the key can be any friendly
    * name of the feature. Once specified,
    * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
    * this key (if not grouped with another feature).
@@ -128,8 +128,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO
    * features. Values are the specification of the feature.
    * An empty InputMetadata is valid. It describes a text feature which has the
    * name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline
-   * of the empty feature is chosen by AI Platform.
-   * For AI Platform provided Tensorflow images, the key can be any friendly
+   * of the empty feature is chosen by Vertex AI.
+   * For Vertex AI-provided Tensorflow images, the key can be any friendly
    * name of the feature. Once specified,
    * [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by
    * this key (if not grouped with another feature).
@@ -149,8 +149,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -166,8 +166,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -188,8 +188,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -207,8 +207,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -226,8 +226,8 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutput
    *
    * 
    * Required. Map from output names to output metadata.
-   * For AI Platform provided Tensorflow images, keys can be any string user
-   * defines.
+   * For Vertex AI-provided Tensorflow images, keys can be any user defined
+   * string that consists of any UTF-8 characters.
    * For custom images, keys are the name of the output field in the prediction
    * to be explained.
    * Currently only one key is allowed.
@@ -246,9 +246,9 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutput
    * 
    * Points to a YAML file stored on Google Cloud Storage describing the format
    * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-   * The schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-   * AutoML tabular Models always have this field populated by AI Platform.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * AutoML tabular Models always have this field populated by Vertex AI.
    * Note: The URI given on output may be different, including the URI scheme,
    * than the one given on input. The output URI will point to a location where
    * the user only has a read access.
@@ -265,9 +265,9 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutput
    * 
    * Points to a YAML file stored on Google Cloud Storage describing the format
    * of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions].
-   * The schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
-   * AutoML tabular Models always have this field populated by AI Platform.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * AutoML tabular Models always have this field populated by Vertex AI.
    * Note: The URI given on output may be different, including the URI scheme,
    * than the one given on input. The output URI will point to a location where
    * the user only has a read access.
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 5dba6213f..5e310f3bb 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
@@ -100,67 +100,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "ation.proto\022\037google.cloud.aiplatform.v1b"
           + "eta1\032\037google/api/field_behavior.proto\032:g"
           + "oogle/cloud/aiplatform/v1beta1/explanati"
-          + "on_metadata.proto\032\034google/protobuf/struc"
-          + "t.proto\032\034google/api/annotations.proto\"V\n"
-          + "\013Explanation\022G\n\014attributions\030\001 \003(\0132,.goo"
-          + "gle.cloud.aiplatform.v1beta1.Attribution"
-          + "B\003\340A\003\"`\n\020ModelExplanation\022L\n\021mean_attrib"
-          + "utions\030\001 \003(\0132,.google.cloud.aiplatform.v"
-          + "1beta1.AttributionB\003\340A\003\"\211\002\n\013Attribution\022"
-          + "\"\n\025baseline_output_value\030\001 \001(\001B\003\340A\003\022\"\n\025i"
-          + "nstance_output_value\030\002 \001(\001B\003\340A\003\0229\n\024featu"
-          + "re_attributions\030\003 \001(\0132\026.google.protobuf."
-          + "ValueB\003\340A\003\022\031\n\014output_index\030\004 \003(\005B\003\340A\003\022 \n"
-          + "\023output_display_name\030\005 \001(\tB\003\340A\003\022 \n\023appro"
-          + "ximation_error\030\006 \001(\001B\003\340A\003\022\030\n\013output_name"
-          + "\030\007 \001(\tB\003\340A\003\"\257\001\n\017ExplanationSpec\022O\n\nparam"
-          + "eters\030\001 \001(\01326.google.cloud.aiplatform.v1"
-          + "beta1.ExplanationParametersB\003\340A\002\022K\n\010meta"
-          + "data\030\002 \001(\01324.google.cloud.aiplatform.v1b"
-          + "eta1.ExplanationMetadataB\003\340A\002\"\202\003\n\025Explan"
-          + "ationParameters\022a\n\033sampled_shapley_attri"
-          + "bution\030\001 \001(\0132:.google.cloud.aiplatform.v"
-          + "1beta1.SampledShapleyAttributionH\000\022k\n in"
-          + "tegrated_gradients_attribution\030\002 \001(\0132?.g"
-          + "oogle.cloud.aiplatform.v1beta1.Integrate"
-          + "dGradientsAttributionH\000\022L\n\020xrai_attribut"
-          + "ion\030\003 \001(\01320.google.cloud.aiplatform.v1be"
-          + "ta1.XraiAttributionH\000\022\r\n\005top_k\030\004 \001(\005\0222\n\016"
-          + "output_indices\030\005 \001(\0132\032.google.protobuf.L"
-          + "istValueB\010\n\006method\"4\n\031SampledShapleyAttr"
-          + "ibution\022\027\n\npath_count\030\001 \001(\005B\003\340A\002\"\210\001\n\036Int"
-          + "egratedGradientsAttribution\022\027\n\nstep_coun"
-          + "t\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001(\013"
-          + "21.google.cloud.aiplatform.v1beta1.Smoot"
-          + "hGradConfig\"y\n\017XraiAttribution\022\027\n\nstep_c"
-          + "ount\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 "
-          + "\001(\01321.google.cloud.aiplatform.v1beta1.Sm"
-          + "oothGradConfig\"\256\001\n\020SmoothGradConfig\022\025\n\013n"
-          + "oise_sigma\030\001 \001(\002H\000\022Q\n\023feature_noise_sigm"
-          + "a\030\002 \001(\01322.google.cloud.aiplatform.v1beta"
-          + "1.FeatureNoiseSigmaH\000\022\032\n\022noisy_sample_co"
-          + "unt\030\003 \001(\005B\024\n\022GradientNoiseSigma\"\246\001\n\021Feat"
-          + "ureNoiseSigma\022\\\n\013noise_sigma\030\001 \003(\0132G.goo"
-          + "gle.cloud.aiplatform.v1beta1.FeatureNois"
-          + "eSigma.NoiseSigmaForFeature\0323\n\024NoiseSigm"
-          + "aForFeature\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001(\002"
-          + "\"\265\001\n\027ExplanationSpecOverride\022J\n\nparamete"
-          + "rs\030\001 \001(\01326.google.cloud.aiplatform.v1bet"
-          + "a1.ExplanationParameters\022N\n\010metadata\030\002 \001"
-          + "(\0132<.google.cloud.aiplatform.v1beta1.Exp"
-          + "lanationMetadataOverride\"\312\002\n\033Explanation"
-          + "MetadataOverride\022]\n\006inputs\030\001 \003(\0132H.googl"
-          + "e.cloud.aiplatform.v1beta1.ExplanationMe"
-          + "tadataOverride.InputsEntryB\003\340A\002\032H\n\025Input"
-          + "MetadataOverride\022/\n\017input_baselines\030\001 \003("
-          + "\0132\026.google.protobuf.Value\032\201\001\n\013InputsEntr"
-          + "y\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001(\0132R.google.c"
-          + "loud.aiplatform.v1beta1.ExplanationMetad"
-          + "ataOverride.InputMetadataOverride:\0028\001B\204\001"
-          + "\n#com.google.cloud.aiplatform.v1beta1B\020E"
-          + "xplanationProtoP\001ZIgoogle.golang.org/gen"
-          + "proto/googleapis/cloud/aiplatform/v1beta"
-          + "1;aiplatformb\006proto3"
+          + "on_metadata.proto\032(google/cloud/aiplatfo"
+          + "rm/v1beta1/io.proto\032\034google/protobuf/str"
+          + "uct.proto\032\034google/api/annotations.proto\""
+          + "V\n\013Explanation\022G\n\014attributions\030\001 \003(\0132,.g"
+          + "oogle.cloud.aiplatform.v1beta1.Attributi"
+          + "onB\003\340A\003\"`\n\020ModelExplanation\022L\n\021mean_attr"
+          + "ibutions\030\001 \003(\0132,.google.cloud.aiplatform"
+          + ".v1beta1.AttributionB\003\340A\003\"\211\002\n\013Attributio"
+          + "n\022\"\n\025baseline_output_value\030\001 \001(\001B\003\340A\003\022\"\n"
+          + "\025instance_output_value\030\002 \001(\001B\003\340A\003\0229\n\024fea"
+          + "ture_attributions\030\003 \001(\0132\026.google.protobu"
+          + "f.ValueB\003\340A\003\022\031\n\014output_index\030\004 \003(\005B\003\340A\003\022"
+          + " \n\023output_display_name\030\005 \001(\tB\003\340A\003\022 \n\023app"
+          + "roximation_error\030\006 \001(\001B\003\340A\003\022\030\n\013output_na"
+          + "me\030\007 \001(\tB\003\340A\003\"\257\001\n\017ExplanationSpec\022O\n\npar"
+          + "ameters\030\001 \001(\01326.google.cloud.aiplatform."
+          + "v1beta1.ExplanationParametersB\003\340A\002\022K\n\010me"
+          + "tadata\030\002 \001(\01324.google.cloud.aiplatform.v"
+          + "1beta1.ExplanationMetadataB\003\340A\002\"\202\003\n\025Expl"
+          + "anationParameters\022a\n\033sampled_shapley_att"
+          + "ribution\030\001 \001(\0132:.google.cloud.aiplatform"
+          + ".v1beta1.SampledShapleyAttributionH\000\022k\n "
+          + "integrated_gradients_attribution\030\002 \001(\0132?"
+          + ".google.cloud.aiplatform.v1beta1.Integra"
+          + "tedGradientsAttributionH\000\022L\n\020xrai_attrib"
+          + "ution\030\003 \001(\01320.google.cloud.aiplatform.v1"
+          + "beta1.XraiAttributionH\000\022\r\n\005top_k\030\004 \001(\005\0222"
+          + "\n\016output_indices\030\005 \001(\0132\032.google.protobuf"
+          + ".ListValueB\010\n\006method\"4\n\031SampledShapleyAt"
+          + "tribution\022\027\n\npath_count\030\001 \001(\005B\003\340A\002\"\210\001\n\036I"
+          + "ntegratedGradientsAttribution\022\027\n\nstep_co"
+          + "unt\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001"
+          + "(\01321.google.cloud.aiplatform.v1beta1.Smo"
+          + "othGradConfig\"y\n\017XraiAttribution\022\027\n\nstep"
+          + "_count\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030"
+          + "\002 \001(\01321.google.cloud.aiplatform.v1beta1."
+          + "SmoothGradConfig\"\256\001\n\020SmoothGradConfig\022\025\n"
+          + "\013noise_sigma\030\001 \001(\002H\000\022Q\n\023feature_noise_si"
+          + "gma\030\002 \001(\01322.google.cloud.aiplatform.v1be"
+          + "ta1.FeatureNoiseSigmaH\000\022\032\n\022noisy_sample_"
+          + "count\030\003 \001(\005B\024\n\022GradientNoiseSigma\"\246\001\n\021Fe"
+          + "atureNoiseSigma\022\\\n\013noise_sigma\030\001 \003(\0132G.g"
+          + "oogle.cloud.aiplatform.v1beta1.FeatureNo"
+          + "iseSigma.NoiseSigmaForFeature\0323\n\024NoiseSi"
+          + "gmaForFeature\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001"
+          + "(\002\"\265\001\n\027ExplanationSpecOverride\022J\n\nparame"
+          + "ters\030\001 \001(\01326.google.cloud.aiplatform.v1b"
+          + "eta1.ExplanationParameters\022N\n\010metadata\030\002"
+          + " \001(\0132<.google.cloud.aiplatform.v1beta1.E"
+          + "xplanationMetadataOverride\"\312\002\n\033Explanati"
+          + "onMetadataOverride\022]\n\006inputs\030\001 \003(\0132H.goo"
+          + "gle.cloud.aiplatform.v1beta1.Explanation"
+          + "MetadataOverride.InputsEntryB\003\340A\002\032H\n\025Inp"
+          + "utMetadataOverride\022/\n\017input_baselines\030\001 "
+          + "\003(\0132\026.google.protobuf.Value\032\201\001\n\013InputsEn"
+          + "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"
+          + "\020ExplanationProtoP\001ZIgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/aiplatform/v1be"
+          + "ta1;aiplatformb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -168,6 +169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new com.google.protobuf.Descriptors.FileDescriptor[] {
               com.google.api.FieldBehaviorProto.getDescriptor(),
               com.google.cloud.aiplatform.v1beta1.ExplanationMetadataProto.getDescriptor(),
+              com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(),
               com.google.protobuf.StructProto.getDescriptor(),
               com.google.api.AnnotationsProto.getDescriptor(),
             });
@@ -315,6 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.cloud.aiplatform.v1beta1.ExplanationMetadataProto.getDescriptor();
+    com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor();
     com.google.protobuf.StructProto.getDescriptor();
     com.google.api.AnnotationsProto.getDescriptor();
   }
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java
new file mode 100644
index 000000000..28cd387f1
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java
@@ -0,0 +1,761 @@
+/*
+ * 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/featurestore_service.proto
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * Details of operations that exports Features values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} + */ +public final class ExportFeatureValuesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + ExportFeatureValuesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportFeatureValuesOperationMetadata.newBuilder() to construct. + private ExportFeatureValuesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportFeatureValuesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportFeatureValuesOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportFeatureValuesOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore export Feature values.
+   * 
+ * + * .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 Featurestore export Feature values.
+   * 
+ * + * .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 Featurestore export Feature values.
+   * 
+ * + * .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.ExportFeatureValuesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) 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.ExportFeatureValuesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + 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.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata 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 exports Features values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(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.ExportFeatureValuesOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + .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.ExportFeatureValuesOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + 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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore export Feature values.
+     * 
+ * + * .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 Featurestore export Feature values.
+     * 
+ * + * .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.ExportFeatureValuesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportFeatureValuesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportFeatureValuesOperationMetadata(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.ExportFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..829c0f5bf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExportFeatureValuesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore export Feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore export Feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore export Feature values.
+   * 
+ * + * .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/ExportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java new file mode 100644 index 000000000..4bd5b12c5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java @@ -0,0 +1,3087 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} + */ +public final class ExportFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + ExportFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportFeatureValuesRequest.newBuilder() to construct. + private ExportFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportFeatureValuesRequest() { + entityType_ = ""; + settings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportFeatureValuesRequest( + 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(); + + entityType_ = s; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder + subBuilder = null; + if (modeCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_) + .toBuilder(); + } + mode_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_); + mode_ = subBuilder.buildPartial(); + } + modeCase_ = 3; + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder subBuilder = null; + if (destination_ != null) { + subBuilder = destination_.toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destination_); + destination_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + 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 50: + { + 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_ExportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.Builder.class); + } + + public interface SnapshotExportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return Whether the snapshotTime field is set. + */ + boolean hasSnapshotTime(); + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return The snapshotTime. + */ + com.google.protobuf.Timestamp getSnapshotTime(); + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); + } + /** + * + * + *
+   * Describes exporting Feature values as of the snapshot timestamp.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} + */ + public static final class SnapshotExport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + SnapshotExportOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapshotExport.newBuilder() to construct. + private SnapshotExport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SnapshotExport() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SnapshotExport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SnapshotExport( + 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.protobuf.Timestamp.Builder subBuilder = null; + if (snapshotTime_ != null) { + subBuilder = snapshotTime_.toBuilder(); + } + snapshotTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotTime_); + snapshotTime_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder + .class); + } + + public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp snapshotTime_; + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return Whether the snapshotTime field is set. + */ + @java.lang.Override + public boolean hasSnapshotTime() { + return snapshotTime_ != null; + } + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return The snapshotTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSnapshotTime() { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + /** + * + * + *
+     * Exports Feature values as of this timestamp. If not set,
+     * retrieve values as of now. Timestamp, if present, must not have higher
+     * than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + return getSnapshotTime(); + } + + 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 (snapshotTime_ != null) { + output.writeMessage(1, getSnapshotTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (snapshotTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); + } + 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.ExportFeatureValuesRequest.SnapshotExport)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport other = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) obj; + + if (hasSnapshotTime() != other.hasSnapshotTime()) return false; + if (hasSnapshotTime()) { + if (!getSnapshotTime().equals(other.getSnapshotTime())) 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 (hasSnapshotTime()) { + hash = (37 * hash) + SNAPSHOT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport + 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.ExportFeatureValuesRequest.SnapshotExport 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; + } + /** + * + * + *
+     * Describes exporting Feature values as of the snapshot timestamp.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.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 (snapshotTimeBuilder_ == null) { + snapshotTime_ = null; + } else { + snapshotTime_ = null; + snapshotTimeBuilder_ = 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_ExportFeatureValuesRequest_SnapshotExport_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport build() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport result = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(this); + if (snapshotTimeBuilder_ == null) { + result.snapshotTime_ = snapshotTime_; + } else { + result.snapshotTime_ = snapshotTimeBuilder_.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.ExportFeatureValuesRequest.SnapshotExport) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance()) return this; + if (other.hasSnapshotTime()) { + mergeSnapshotTime(other.getSnapshotTime()); + } + 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.ExportFeatureValuesRequest.SnapshotExport + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp snapshotTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return Whether the snapshotTime field is set. + */ + public boolean hasSnapshotTime() { + return snapshotTimeBuilder_ != null || snapshotTime_ != null; + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + * + * @return The snapshotTime. + */ + public com.google.protobuf.Timestamp getSnapshotTime() { + if (snapshotTimeBuilder_ == null) { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } else { + return snapshotTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotTime_ = value; + onChanged(); + } else { + snapshotTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (snapshotTimeBuilder_ == null) { + snapshotTime_ = builderForValue.build(); + onChanged(); + } else { + snapshotTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (snapshotTime_ != null) { + snapshotTime_ = + com.google.protobuf.Timestamp.newBuilder(snapshotTime_) + .mergeFrom(value) + .buildPartial(); + } else { + snapshotTime_ = value; + } + onChanged(); + } else { + snapshotTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public Builder clearSnapshotTime() { + if (snapshotTimeBuilder_ == null) { + snapshotTime_ = null; + onChanged(); + } else { + snapshotTime_ = null; + snapshotTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { + + onChanged(); + return getSnapshotTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + if (snapshotTimeBuilder_ != null) { + return snapshotTimeBuilder_.getMessageOrBuilder(); + } else { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + } + /** + * + * + *
+       * Exports Feature values as of this timestamp. If not set,
+       * retrieve values as of now. Timestamp, if present, must not have higher
+       * than millisecond precision.
+       * 
+ * + * .google.protobuf.Timestamp snapshot_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSnapshotTimeFieldBuilder() { + if (snapshotTimeBuilder_ == null) { + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTime_ = null; + } + return snapshotTimeBuilder_; + } + + @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.ExportFeatureValuesRequest.SnapshotExport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + private static final com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + .SnapshotExport + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotExport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotExport(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.ExportFeatureValuesRequest.SnapshotExport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public enum ModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SNAPSHOT_EXPORT(3), + MODE_NOT_SET(0); + private final int value; + + private ModeCase(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 ModeCase valueOf(int value) { + return forNumber(value); + } + + public static ModeCase forNumber(int value) { + switch (value) { + case 3: + return SNAPSHOT_EXPORT; + case 0: + return MODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public static final int SNAPSHOT_EXPORT_FIELD_NUMBER = 3; + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return Whether the snapshotExport field is set. + */ + @java.lang.Override + public boolean hasSnapshotExport() { + return modeCase_ == 3; + } + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return The snapshotExport. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + getSnapshotExport() { + if (modeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) mode_; + } + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder + getSnapshotExportOrBuilder() { + if (modeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) mode_; + } + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the EntityType from which to export Feature values.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the EntityType from which to export Feature values.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.FeatureValueDestination destination_; + /** + * + * + *
+   * Required. Specifies destination location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + @java.lang.Override + public boolean hasDestination() { + return destination_ != null; + } + /** + * + * + *
+   * Required. Specifies destination location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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_; + } + /** + * + * + *
+   * Required. Specifies destination 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 FEATURE_SELECTOR_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; + /** + * + * + *
+   * Required. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + @java.lang.Override + public boolean hasFeatureSelector() { + return featureSelector_ != null; + } + /** + * + * + *
+   * Required. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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 = 6; + private java.util.List settings_; + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + @java.lang.Override + public java.util.List + getSettingsList() { + return settings_; + } + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsOrBuilderList() { + return settings_; + } + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + @java.lang.Override + public int getSettingsCount() { + return settings_.size(); + } + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index) { + return settings_.get(index); + } + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + @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 (!getEntityTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + if (modeCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) mode_); + } + if (destination_ != null) { + output.writeMessage(4, getDestination()); + } + if (featureSelector_ != null) { + output.writeMessage(5, getFeatureSelector()); + } + for (int i = 0; i < settings_.size(); i++) { + output.writeMessage(6, settings_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + if (modeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_); + } + if (destination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDestination()); + } + if (featureSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeatureSelector()); + } + for (int i = 0; i < settings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, 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.ExportFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) 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 (!getModeCase().equals(other.getModeCase())) return false; + switch (modeCase_) { + case 3: + if (!getSnapshotExport().equals(other.getSnapshotExport())) 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) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().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(); + } + switch (modeCase_) { + case 3: + hash = (37 * hash) + SNAPSHOT_EXPORT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotExport().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest 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.ExportFeatureValuesRequest 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.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.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(); + entityType_ = ""; + + if (destinationBuilder_ == null) { + destination_ = null; + } else { + destination_ = null; + destinationBuilder_ = null; + } + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + if (settingsBuilder_ == null) { + settings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + settingsBuilder_.clear(); + } + modeCase_ = 0; + mode_ = 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_ExportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(this); + int from_bitField0_ = bitField0_; + if (modeCase_ == 3) { + if (snapshotExportBuilder_ == null) { + result.mode_ = mode_; + } else { + result.mode_ = snapshotExportBuilder_.build(); + } + } + result.entityType_ = entityType_; + if (destinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = destinationBuilder_.build(); + } + 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.modeCase_ = modeCase_; + 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.ExportFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + 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_); + } + } + } + switch (other.getModeCase()) { + case SNAPSHOT_EXPORT: + { + mergeSnapshotExport(other.getSnapshotExport()); + break; + } + case MODE_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.ExportFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public Builder clearMode() { + modeCase_ = 0; + mode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder> + snapshotExportBuilder_; + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return Whether the snapshotExport field is set. + */ + @java.lang.Override + public boolean hasSnapshotExport() { + return modeCase_ == 3; + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return The snapshotExport. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + getSnapshotExport() { + if (snapshotExportBuilder_ == null) { + if (modeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_; + } + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } else { + if (modeCase_ == 3) { + return snapshotExportBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + public Builder setSnapshotExport( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport value) { + if (snapshotExportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + snapshotExportBuilder_.setMessage(value); + } + modeCase_ = 3; + return this; + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + public Builder setSnapshotExport( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder + builderForValue) { + if (snapshotExportBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + snapshotExportBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 3; + return this; + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + public Builder mergeSnapshotExport( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport value) { + if (snapshotExportBuilder_ == null) { + if (modeCase_ == 3 + && mode_ + != com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance()) { + mode_ = + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + .SnapshotExport) + mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 3) { + snapshotExportBuilder_.mergeFrom(value); + } + snapshotExportBuilder_.setMessage(value); + } + modeCase_ = 3; + return this; + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + public Builder clearSnapshotExport() { + if (snapshotExportBuilder_ == null) { + if (modeCase_ == 3) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 3) { + modeCase_ = 0; + mode_ = null; + } + snapshotExportBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder + getSnapshotExportBuilder() { + return getSnapshotExportFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder + getSnapshotExportOrBuilder() { + if ((modeCase_ == 3) && (snapshotExportBuilder_ != null)) { + return snapshotExportBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_; + } + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Exports Feature values of all entities of the EntityType as of a snapshot
+     * time.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.Builder, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder> + getSnapshotExportFieldBuilder() { + if (snapshotExportBuilder_ == null) { + if (!(modeCase_ == 3)) { + mode_ = + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .getDefaultInstance(); + } + snapshotExportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + .Builder, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + .SnapshotExportOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 3; + onChanged(); + ; + return snapshotExportBuilder_; + } + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType from which to export Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType from which to export Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType from which to export Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType from which to export Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType from which to export Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = 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 destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return destinationBuilder_ != null || destination_ != null; + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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_; + } else { + return destinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + destinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + onChanged(); + } else { + destinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestination() { + if (destinationBuilder_ == null) { + destination_ = null; + onChanged(); + } else { + destination_ = null; + destinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder + getDestinationBuilder() { + + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder + getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; + } + } + /** + * + * + *
+     * Required. Specifies destination location and format.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + return destinationBuilder_; + } + + 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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + public boolean hasFeatureSelector() { + return featureSelectorBuilder_ != null || featureSelector_ != null; + } + /** + * + * + *
+     * Required. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureSelector() { + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + onChanged(); + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { + + onChanged(); + return getFeatureSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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. Selects Features to export values of.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.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( + settings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + settingsBuilder_; + + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public java.util.List + getSettingsList() { + if (settingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(settings_); + } else { + return settingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public int getSettingsCount() { + if (settingsBuilder_ == null) { + return settings_.size(); + } else { + return settingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index) { + if (settingsBuilder_ == null) { + return settings_.get(index); + } else { + return settingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder setSettings( + int index, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.set(index, value); + onChanged(); + } else { + settingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder setSettings( + int index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.set(index, builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder addSettings( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.add(value); + onChanged(); + } else { + settingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder addSettings( + int index, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSettingsIsMutable(); + settings_.add(index, value); + onChanged(); + } else { + settingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder addSettings( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.add(builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder addSettings( + int index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder builderForValue) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.add(index, builderForValue.build()); + onChanged(); + } else { + settingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder addAllSettings( + java.lang.Iterable + values) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, settings_); + onChanged(); + } else { + settingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder clearSettings() { + if (settingsBuilder_ == null) { + settings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + settingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public Builder removeSettings(int index) { + if (settingsBuilder_ == null) { + ensureSettingsIsMutable(); + settings_.remove(index); + onChanged(); + } else { + settingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder getSettingsBuilder( + int index) { + return getSettingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder + getSettingsOrBuilder(int index) { + if (settingsBuilder_ == null) { + return settings_.get(index); + } else { + return settingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsOrBuilderList() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(settings_); + } + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder + addSettingsBuilder() { + return getSettingsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance()); + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder addSettingsBuilder( + int index) { + return getSettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.getDefaultInstance()); + } + /** + * + * + *
+     * Per-Feature export settings.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + * + */ + public java.util.List + getSettingsBuilderList() { + return getSettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder>( + settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + @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.ExportFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportFeatureValuesRequest(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.ExportFeatureValuesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequestOrBuilder.java new file mode 100644 index 000000000..d721c3179 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExportFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return Whether the snapshotExport field is set. + */ + boolean hasSnapshotExport(); + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + * + * @return The snapshotExport. + */ + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport getSnapshotExport(); + /** + * + * + *
+   * Exports Feature values of all entities of the EntityType as of a snapshot
+   * time.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExportOrBuilder + getSnapshotExportOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the EntityType from which to export Feature values.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+   * Required. The resource name of the EntityType from which to export Feature values.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *
+   * Required. Specifies destination location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + /** + * + * + *
+   * Required. Specifies destination location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination(); + /** + * + * + *
+   * Required. Specifies destination location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
+   * Required. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + boolean hasFeatureSelector(); + /** + * + * + *
+   * Required. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector(); + /** + * + * + *
+   * Required. Selects Features to export values of.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder(); + + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + java.util.List getSettingsList(); + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index); + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + int getSettingsCount(); + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + java.util.List + getSettingsOrBuilderList(); + /** + * + * + *
+   * Per-Feature export settings.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 6; + */ + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder getSettingsOrBuilder( + int index); + + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ModeCase getModeCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java new file mode 100644 index 000000000..b7086fc93 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponse.java @@ -0,0 +1,464 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} + */ +public final class ExportFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + ExportFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportFeatureValuesResponse.newBuilder() to construct. + private ExportFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportFeatureValuesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse 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.ExportFeatureValuesResponse 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 [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportFeatureValuesResponse(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.ExportFeatureValuesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000..193408f46 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExportFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java new file mode 100644 index 000000000..3750b604d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java @@ -0,0 +1,1375 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest} + */ +public final class ExportTensorboardTimeSeriesDataRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) + ExportTensorboardTimeSeriesDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTensorboardTimeSeriesDataRequest.newBuilder() to construct. + private ExportTensorboardTimeSeriesDataRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTensorboardTimeSeriesDataRequest() { + tensorboardTimeSeries_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTensorboardTimeSeriesDataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportTensorboardTimeSeriesDataRequest( + 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(); + + tensorboardTimeSeries_ = 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.Builder + .class); + } + + public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + private volatile java.lang.Object tensorboardTimeSeries_; + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to export data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + @java.lang.Override + public java.lang.String getTensorboardTimeSeries() { + java.lang.Object ref = tensorboardTimeSeries_; + 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(); + tensorboardTimeSeries_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to export data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { + java.lang.Object ref = tensorboardTimeSeries_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Exports the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Exports the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * 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 maximum number of data points to return per page.
+   * The default page_size will be 1000. Values must be between 1 and 10000.
+   * Values above 10000 will be coerced to 10000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ExportTensorboardTimeSeries][] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ExportTensorboardTimeSeries][] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ExportTensorboardTimeSeries][] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ExportTensorboardTimeSeries][] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Field to use to sort the TensorboardTimeSeries' data.
+   * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+   * order.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Field to use to sort the TensorboardTimeSeries' data.
+   * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+   * order.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 (!getTensorboardTimeSeriesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorboardTimeSeries_); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTensorboardTimeSeriesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorboardTimeSeries_); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.ExportTensorboardTimeSeriesDataRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest other = + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) obj; + + if (!getTensorboardTimeSeries().equals(other.getTensorboardTimeSeries())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + TENSORBOARD_TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeries().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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest + 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.ExportTensorboardTimeSeriesDataRequest 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 [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest.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(); + tensorboardTimeSeries_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest build() { + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest result = + new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest(this); + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + 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.ExportTensorboardTimeSeriesDataRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + .getDefaultInstance()) return this; + if (!other.getTensorboardTimeSeries().isEmpty()) { + tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + 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.ExportTensorboardTimeSeriesDataRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tensorboardTimeSeries_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to export data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + public java.lang.String getTensorboardTimeSeries() { + java.lang.Object ref = tensorboardTimeSeries_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardTimeSeries_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to export data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { + java.lang.Object ref = tensorboardTimeSeries_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to export data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tensorboardTimeSeries to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardTimeSeries_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to export data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTensorboardTimeSeries() { + + tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to export data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tensorboardTimeSeries to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardTimeSeries_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Exports the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Exports the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Exports the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Exports the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Exports the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * 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 maximum number of data points to return per page.
+     * The default page_size will be 1000. Values must be between 1 and 10000.
+     * Values above 10000 will be coerced to 10000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of data points to return per page.
+     * The default page_size will be 1000. Values must be between 1 and 10000.
+     * Values above 10000 will be coerced to 10000.
+     * 
+ * + * 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 maximum number of data points to return per page.
+     * The default page_size will be 1000. Values must be between 1 and 10000.
+     * Values above 10000 will be coerced to 10000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ExportTensorboardTimeSeries][] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ExportTensorboardTimeSeries][] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ExportTensorboardTimeSeries][] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ExportTensorboardTimeSeries][] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ExportTensorboardTimeSeries][] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ExportTensorboardTimeSeries][] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ExportTensorboardTimeSeries][] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ExportTensorboardTimeSeries][] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ExportTensorboardTimeSeries][] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ExportTensorboardTimeSeries][] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Field to use to sort the TensorboardTimeSeries' data.
+     * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+     * order.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Field to use to sort the TensorboardTimeSeries' data.
+     * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+     * order.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Field to use to sort the TensorboardTimeSeries' data.
+     * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+     * order.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the TensorboardTimeSeries' data.
+     * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+     * order.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the TensorboardTimeSeries' data.
+     * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+     * order.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = 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.ExportTensorboardTimeSeriesDataRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) + private static final com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportTensorboardTimeSeriesDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportTensorboardTimeSeriesDataRequest(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.ExportTensorboardTimeSeriesDataRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequestOrBuilder.java new file mode 100644 index 000000000..1f2ec33fa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExportTensorboardTimeSeriesDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to export data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + java.lang.String getTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to export data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + com.google.protobuf.ByteString getTensorboardTimeSeriesBytes(); + + /** + * + * + *
+   * Exports the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Exports the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of data points to return per page.
+   * The default page_size will be 1000. Values must be between 1 and 10000.
+   * Values above 10000 will be coerced to 10000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ExportTensorboardTimeSeries][] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ExportTensorboardTimeSeries][] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ExportTensorboardTimeSeries][] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ExportTensorboardTimeSeries][] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Field to use to sort the TensorboardTimeSeries' data.
+   * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+   * order.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Field to use to sort the TensorboardTimeSeries' data.
+   * By default, TensorboardTimeSeries' data will be returned in a pseudo random
+   * order.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java new file mode 100644 index 000000000..6a78bfd2b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java @@ -0,0 +1,1243 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse} + */ +public final class ExportTensorboardTimeSeriesDataResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) + ExportTensorboardTimeSeriesDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTensorboardTimeSeriesDataResponse.newBuilder() to construct. + private ExportTensorboardTimeSeriesDataResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTensorboardTimeSeriesDataResponse() { + timeSeriesDataPoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTensorboardTimeSeriesDataResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportTensorboardTimeSeriesDataResponse( + 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)) { + timeSeriesDataPoints_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint>(); + mutable_bitField0_ |= 0x00000001; + } + timeSeriesDataPoints_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.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)) { + timeSeriesDataPoints_ = java.util.Collections.unmodifiableList(timeSeriesDataPoints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.Builder + .class); + } + + public static final int TIME_SERIES_DATA_POINTS_FIELD_NUMBER = 1; + private java.util.List + timeSeriesDataPoints_; + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + @java.lang.Override + public java.util.List + getTimeSeriesDataPointsList() { + return timeSeriesDataPoints_; + } + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + @java.lang.Override + public java.util.List + getTimeSeriesDataPointsOrBuilderList() { + return timeSeriesDataPoints_; + } + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + @java.lang.Override + public int getTimeSeriesDataPointsCount() { + return timeSeriesDataPoints_.size(); + } + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getTimeSeriesDataPoints( + int index) { + return timeSeriesDataPoints_.get(index); + } + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder + getTimeSeriesDataPointsOrBuilder(int index) { + return timeSeriesDataPoints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as
+   * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as
+   * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < timeSeriesDataPoints_.size(); i++) { + output.writeMessage(1, timeSeriesDataPoints_.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 < timeSeriesDataPoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, timeSeriesDataPoints_.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.v1beta1.ExportTensorboardTimeSeriesDataResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse other = + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) obj; + + if (!getTimeSeriesDataPointsList().equals(other.getTimeSeriesDataPointsList())) 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 (getTimeSeriesDataPointsCount() > 0) { + hash = (37 * hash) + TIME_SERIES_DATA_POINTS_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesDataPointsList().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.v1beta1.ExportTensorboardTimeSeriesDataResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse + 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.ExportTensorboardTimeSeriesDataResponse 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 [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeSeriesDataPointsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeSeriesDataPointsBuilder_ == null) { + timeSeriesDataPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + timeSeriesDataPointsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse build() { + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse result = + new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse(this); + int from_bitField0_ = bitField0_; + if (timeSeriesDataPointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + timeSeriesDataPoints_ = java.util.Collections.unmodifiableList(timeSeriesDataPoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timeSeriesDataPoints_ = timeSeriesDataPoints_; + } else { + result.timeSeriesDataPoints_ = timeSeriesDataPointsBuilder_.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.v1beta1.ExportTensorboardTimeSeriesDataResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + .getDefaultInstance()) return this; + if (timeSeriesDataPointsBuilder_ == null) { + if (!other.timeSeriesDataPoints_.isEmpty()) { + if (timeSeriesDataPoints_.isEmpty()) { + timeSeriesDataPoints_ = other.timeSeriesDataPoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.addAll(other.timeSeriesDataPoints_); + } + onChanged(); + } + } else { + if (!other.timeSeriesDataPoints_.isEmpty()) { + if (timeSeriesDataPointsBuilder_.isEmpty()) { + timeSeriesDataPointsBuilder_.dispose(); + timeSeriesDataPointsBuilder_ = null; + timeSeriesDataPoints_ = other.timeSeriesDataPoints_; + bitField0_ = (bitField0_ & ~0x00000001); + timeSeriesDataPointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeSeriesDataPointsFieldBuilder() + : null; + } else { + timeSeriesDataPointsBuilder_.addAllMessages(other.timeSeriesDataPoints_); + } + } + } + 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.v1beta1.ExportTensorboardTimeSeriesDataResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + timeSeriesDataPoints_ = java.util.Collections.emptyList(); + + private void ensureTimeSeriesDataPointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timeSeriesDataPoints_ = + new java.util.ArrayList( + timeSeriesDataPoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + timeSeriesDataPointsBuilder_; + + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public java.util.List + getTimeSeriesDataPointsList() { + if (timeSeriesDataPointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeSeriesDataPoints_); + } else { + return timeSeriesDataPointsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public int getTimeSeriesDataPointsCount() { + if (timeSeriesDataPointsBuilder_ == null) { + return timeSeriesDataPoints_.size(); + } else { + return timeSeriesDataPointsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getTimeSeriesDataPoints( + int index) { + if (timeSeriesDataPointsBuilder_ == null) { + return timeSeriesDataPoints_.get(index); + } else { + return timeSeriesDataPointsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder setTimeSeriesDataPoints( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (timeSeriesDataPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.set(index, value); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder setTimeSeriesDataPoints( + int index, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (timeSeriesDataPointsBuilder_ == null) { + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.set(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder addTimeSeriesDataPoints( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (timeSeriesDataPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.add(value); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder addTimeSeriesDataPoints( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (timeSeriesDataPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.add(index, value); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder addTimeSeriesDataPoints( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (timeSeriesDataPointsBuilder_ == null) { + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.add(builderForValue.build()); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder addTimeSeriesDataPoints( + int index, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (timeSeriesDataPointsBuilder_ == null) { + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.add(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder addAllTimeSeriesDataPoints( + java.lang.Iterable + values) { + if (timeSeriesDataPointsBuilder_ == null) { + ensureTimeSeriesDataPointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesDataPoints_); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder clearTimeSeriesDataPoints() { + if (timeSeriesDataPointsBuilder_ == null) { + timeSeriesDataPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public Builder removeTimeSeriesDataPoints(int index) { + if (timeSeriesDataPointsBuilder_ == null) { + ensureTimeSeriesDataPointsIsMutable(); + timeSeriesDataPoints_.remove(index); + onChanged(); + } else { + timeSeriesDataPointsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder + getTimeSeriesDataPointsBuilder(int index) { + return getTimeSeriesDataPointsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder + getTimeSeriesDataPointsOrBuilder(int index) { + if (timeSeriesDataPointsBuilder_ == null) { + return timeSeriesDataPoints_.get(index); + } else { + return timeSeriesDataPointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + getTimeSeriesDataPointsOrBuilderList() { + if (timeSeriesDataPointsBuilder_ != null) { + return timeSeriesDataPointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeSeriesDataPoints_); + } + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder + addTimeSeriesDataPointsBuilder() { + return getTimeSeriesDataPointsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance()); + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder + addTimeSeriesDataPointsBuilder(int index) { + return getTimeSeriesDataPointsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance()); + } + /** + * + * + *
+     * The returned time series data points.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + public java.util.List + getTimeSeriesDataPointsBuilderList() { + return getTimeSeriesDataPointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + getTimeSeriesDataPointsFieldBuilder() { + if (timeSeriesDataPointsBuilder_ == null) { + timeSeriesDataPointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder>( + timeSeriesDataPoints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + timeSeriesDataPoints_ = null; + } + return timeSeriesDataPointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as
+     * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as
+     * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+     * page. If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ExportTensorboardTimeSeriesDataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) + private static final com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportTensorboardTimeSeriesDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportTensorboardTimeSeriesDataResponse(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.ExportTensorboardTimeSeriesDataResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponseOrBuilder.java new file mode 100644 index 000000000..5ad1617f8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponseOrBuilder.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExportTensorboardTimeSeriesDataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + java.util.List + getTimeSeriesDataPointsList(); + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getTimeSeriesDataPoints(int index); + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + int getTimeSeriesDataPointsCount(); + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + java.util.List + getTimeSeriesDataPointsOrBuilderList(); + /** + * + * + *
+   * The returned time series data points.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint time_series_data_points = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder getTimeSeriesDataPointsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as
+   * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as
+   * [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next
+   * page. If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java new file mode 100644 index 000000000..2b9ade2dc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java @@ -0,0 +1,3547 @@ +/* + * 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/feature.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Feature Metadata information that describes an attribute of an entity type.
+ * For example, apple is an entity type, and color is a feature that describes
+ * apple.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Feature} + */ +public final class Feature extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Feature) + FeatureOrBuilder { + private static final long serialVersionUID = 0L; + // Use Feature.newBuilder() to construct. + private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Feature() { + name_ = ""; + description_ = ""; + valueType_ = 0; + etag_ = ""; + monitoringStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Feature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Feature( + 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(); + + description_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + valueType_ = rawValue; + break; + } + case 34: + { + 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 42: + { + 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 50: + { + 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 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 74: + { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder subBuilder = + null; + if (monitoringConfig_ != null) { + subBuilder = monitoringConfig_.toBuilder(); + } + monitoringConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitoringConfig_); + monitoringConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + monitoringStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly>(); + mutable_bitField0_ |= 0x00000002; + } + monitoringStats_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.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_ & 0x00000002) != 0)) { + monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Feature.class, + com.google.cloud.aiplatform.v1beta1.Feature.Builder.class); + } + + /** + * + * + *
+   * An enum representing the value type of a feature.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Feature.ValueType} + */ + public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The value type is unspecified.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + VALUE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Used for Feature that is a boolean.
+     * 
+ * + * BOOL = 1; + */ + BOOL(1), + /** + * + * + *
+     * Used for Feature that is a list of boolean.
+     * 
+ * + * BOOL_ARRAY = 2; + */ + BOOL_ARRAY(2), + /** + * + * + *
+     * Used for Feature that is double.
+     * 
+ * + * DOUBLE = 3; + */ + DOUBLE(3), + /** + * + * + *
+     * Used for Feature that is a list of double.
+     * 
+ * + * DOUBLE_ARRAY = 4; + */ + DOUBLE_ARRAY(4), + /** + * + * + *
+     * Used for Feature that is INT64.
+     * 
+ * + * INT64 = 9; + */ + INT64(9), + /** + * + * + *
+     * Used for Feature that is a list of INT64.
+     * 
+ * + * INT64_ARRAY = 10; + */ + INT64_ARRAY(10), + /** + * + * + *
+     * Used for Feature that is string.
+     * 
+ * + * STRING = 11; + */ + STRING(11), + /** + * + * + *
+     * Used for Feature that is a list of String.
+     * 
+ * + * STRING_ARRAY = 12; + */ + STRING_ARRAY(12), + /** + * + * + *
+     * Used for Feature that is bytes.
+     * 
+ * + * BYTES = 13; + */ + BYTES(13), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The value type is unspecified.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + public static final int VALUE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Used for Feature that is a boolean.
+     * 
+ * + * BOOL = 1; + */ + public static final int BOOL_VALUE = 1; + /** + * + * + *
+     * Used for Feature that is a list of boolean.
+     * 
+ * + * BOOL_ARRAY = 2; + */ + public static final int BOOL_ARRAY_VALUE = 2; + /** + * + * + *
+     * Used for Feature that is double.
+     * 
+ * + * DOUBLE = 3; + */ + public static final int DOUBLE_VALUE = 3; + /** + * + * + *
+     * Used for Feature that is a list of double.
+     * 
+ * + * DOUBLE_ARRAY = 4; + */ + public static final int DOUBLE_ARRAY_VALUE = 4; + /** + * + * + *
+     * Used for Feature that is INT64.
+     * 
+ * + * INT64 = 9; + */ + public static final int INT64_VALUE = 9; + /** + * + * + *
+     * Used for Feature that is a list of INT64.
+     * 
+ * + * INT64_ARRAY = 10; + */ + public static final int INT64_ARRAY_VALUE = 10; + /** + * + * + *
+     * Used for Feature that is string.
+     * 
+ * + * STRING = 11; + */ + public static final int STRING_VALUE = 11; + /** + * + * + *
+     * Used for Feature that is a list of String.
+     * 
+ * + * STRING_ARRAY = 12; + */ + public static final int STRING_ARRAY_VALUE = 12; + /** + * + * + *
+     * Used for Feature that is bytes.
+     * 
+ * + * BYTES = 13; + */ + public static final int BYTES_VALUE = 13; + + 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 ValueType 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 ValueType forNumber(int value) { + switch (value) { + case 0: + return VALUE_TYPE_UNSPECIFIED; + case 1: + return BOOL; + case 2: + return BOOL_ARRAY; + case 3: + return DOUBLE; + case 4: + return DOUBLE_ARRAY; + case 9: + return INT64; + case 10: + return INT64_ARRAY; + case 11: + return STRING; + case 12: + return STRING_ARRAY; + case 13: + return BYTES; + 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 ValueType findValueByNumber(int number) { + return ValueType.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.Feature.getDescriptor().getEnumTypes().get(0); + } + + private static final ValueType[] VALUES = values(); + + public static ValueType 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 ValueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Feature.ValueType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Immutable. Name of the Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * The last part feature is assigned by the client. The feature can be up to
+   * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+   * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+   * be unique given an entity type.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+   * Immutable. Name of the Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * The last part feature is assigned by the client. The feature can be up to
+   * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+   * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+   * be unique given an entity type.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of the Feature.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of the Feature.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_TYPE_FIELD_NUMBER = 3; + private int valueType_; + /** + * + * + *
+   * Required. Immutable. Type of Feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+   * Required. Immutable. Type of Feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Feature.ValueType result = + com.google.cloud.aiplatform.v1beta1.Feature.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Feature.ValueType.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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 MONITORING_CONFIG_FIELD_NUMBER = 9; + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + + public static final int MONITORING_STATS_FIELD_NUMBER = 10; + private java.util.List monitoringStats_; + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMonitoringStatsList() { + return monitoringStats_; + } + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMonitoringStatsOrBuilderList() { + return monitoringStats_; + } + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMonitoringStatsCount() { + return monitoringStats_.size(); + } + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStats(int index) { + return monitoringStats_.get(index); + } + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getMonitoringStatsOrBuilder(int index) { + return monitoringStats_.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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.Feature.ValueType.VALUE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, valueType_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); + } + if (monitoringConfig_ != null) { + output.writeMessage(9, getMonitoringConfig()); + } + for (int i = 0; i < monitoringStats_.size(); i++) { + output.writeMessage(10, monitoringStats_.get(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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.Feature.ValueType.VALUE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, valueType_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + 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(6, labels__); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMonitoringConfig()); + } + for (int i = 0; i < monitoringStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, monitoringStats_.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.Feature)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Feature other = + (com.google.cloud.aiplatform.v1beta1.Feature) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (valueType_ != other.valueType_) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; + } + if (!getMonitoringStatsList().equals(other.getMonitoringStatsList())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + valueType_; + 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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } + if (getMonitoringStatsCount() > 0) { + hash = (37 * hash) + MONITORING_STATS_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Feature parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature 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.Feature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature 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.Feature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature 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.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature 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.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature 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.Feature 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.Feature 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.Feature 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; + } + /** + * + * + *
+   * Feature Metadata information that describes an attribute of an entity type.
+   * For example, apple is an entity type, and color is a feature that describes
+   * apple.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Feature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Feature) + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Feature.class, + com.google.cloud.aiplatform.v1beta1.Feature.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Feature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMonitoringStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + valueType_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + if (monitoringStatsBuilder_ == null) { + monitoringStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + monitoringStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureProto + .internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature build() { + com.google.cloud.aiplatform.v1beta1.Feature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature buildPartial() { + com.google.cloud.aiplatform.v1beta1.Feature result = + new com.google.cloud.aiplatform.v1beta1.Feature(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + result.valueType_ = valueType_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.etag_ = etag_; + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } + if (monitoringStatsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.monitoringStats_ = monitoringStats_; + } else { + result.monitoringStats_ = monitoringStatsBuilder_.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.Feature) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Feature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { + if (other == com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.valueType_ != 0) { + setValueTypeValue(other.getValueTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + if (monitoringStatsBuilder_ == null) { + if (!other.monitoringStats_.isEmpty()) { + if (monitoringStats_.isEmpty()) { + monitoringStats_ = other.monitoringStats_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMonitoringStatsIsMutable(); + monitoringStats_.addAll(other.monitoringStats_); + } + onChanged(); + } + } else { + if (!other.monitoringStats_.isEmpty()) { + if (monitoringStatsBuilder_.isEmpty()) { + monitoringStatsBuilder_.dispose(); + monitoringStatsBuilder_ = null; + monitoringStats_ = other.monitoringStats_; + bitField0_ = (bitField0_ & ~0x00000002); + monitoringStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMonitoringStatsFieldBuilder() + : null; + } else { + monitoringStatsBuilder_.addAllMessages(other.monitoringStats_); + } + } + } + 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.Feature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Feature) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. Name of the Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * The last part feature is assigned by the client. The feature can be up to
+     * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+     * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+     * be unique given an entity type.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. Name of the Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * The last part feature is assigned by the client. The feature can be up to
+     * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+     * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+     * be unique given an entity type.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + } + /** + * + * + *
+     * Immutable. Name of the Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * The last part feature is assigned by the client. The feature can be up to
+     * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+     * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+     * be unique given an entity type.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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; + } + /** + * + * + *
+     * Immutable. Name of the Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * The last part feature is assigned by the client. The feature can be up to
+     * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+     * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+     * be unique given an entity type.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Name of the Feature.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * The last part feature is assigned by the client. The feature can be up to
+     * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+     * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+     * be unique given an entity type.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Description of the Feature.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of the Feature.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of the Feature.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Feature.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Feature.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int valueType_ = 0; + /** + * + * + *
+     * Required. Immutable. Type of Feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+     * Required. Immutable. Type of Feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. + */ + public Builder setValueTypeValue(int value) { + + valueType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Type of Feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Feature.ValueType result = + com.google.cloud.aiplatform.v1beta1.Feature.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Feature.ValueType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Type of Feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The valueType to set. + * @return This builder for chaining. + */ + public Builder setValueType(com.google.cloud.aiplatform.v1beta1.Feature.ValueType value) { + if (value == null) { + throw new NullPointerException(); + } + + valueType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Type of Feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueType() { + + valueType_ = 0; + 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. Timestamp when this EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 EntityType was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 EntityType was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Features.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Feature (System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder> + monitoringConfigBuilder_; + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.newBuilder( + monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder + getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + } + /** + * + * + *
+     * Optional. The custom monitoring configuration for this Feature, if not set, use the
+     * monitoring_config defined for the EntityType this Feature belongs to.
+     * If this is populated with
+     * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+     * monitoring is disabled; if
+     * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+     * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+     * config is same as the EntityType's this Feature belongs to.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + + private java.util.List + monitoringStats_ = java.util.Collections.emptyList(); + + private void ensureMonitoringStatsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + monitoringStats_ = + new java.util.ArrayList( + monitoringStats_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + monitoringStatsBuilder_; + + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMonitoringStatsList() { + if (monitoringStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(monitoringStats_); + } else { + return monitoringStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMonitoringStatsCount() { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.size(); + } else { + return monitoringStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStats(int index) { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.get(index); + } else { + return monitoringStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMonitoringStats( + int index, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.set(index, value); + onChanged(); + } else { + monitoringStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMonitoringStats( + int index, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.set(index, builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMonitoringStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(value); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMonitoringStats( + int index, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(index, value); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMonitoringStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMonitoringStats( + int index, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(index, builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMonitoringStats( + java.lang.Iterable + values) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoringStats_); + onChanged(); + } else { + monitoringStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMonitoringStats() { + if (monitoringStatsBuilder_ == null) { + monitoringStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + monitoringStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMonitoringStats(int index) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.remove(index); + onChanged(); + } else { + monitoringStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + getMonitoringStatsBuilder(int index) { + return getMonitoringStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getMonitoringStatsOrBuilder(int index) { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.get(index); + } else { + return monitoringStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getMonitoringStatsOrBuilderList() { + if (monitoringStatsBuilder_ != null) { + return monitoringStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(monitoringStats_); + } + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + addMonitoringStatsBuilder() { + return getMonitoringStatsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + addMonitoringStatsBuilder(int index) { + return getMonitoringStatsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of historical [Snapshot
+     * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+     * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+     * descending.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMonitoringStatsBuilderList() { + return getMonitoringStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getMonitoringStatsFieldBuilder() { + if (monitoringStatsBuilder_ == null) { + monitoringStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder>( + monitoringStats_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + monitoringStats_ = null; + } + return monitoringStatsBuilder_; + } + + @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.Feature) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Feature) + private static final com.google.cloud.aiplatform.v1beta1.Feature DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Feature(); + } + + public static com.google.cloud.aiplatform.v1beta1.Feature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(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.Feature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..8c139b67c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java @@ -0,0 +1,84 @@ +/* + * 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/feature_monitoring_stats.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeatureMonitoringStatsProto { + private FeatureMonitoringStatsProto() {} + + 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_v1beta1_FeatureStatsAnomaly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_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/v1beta1/featur" + + "e_monitoring_stats.proto\022\037google.cloud.a" + + "iplatform.v1beta1\032\037google/protobuf/times" + + "tamp.proto\032\034google/api/annotations.proto" + + "\"\357\001\n\023FeatureStatsAnomaly\022\r\n\005score\030\001 \001(\001\022" + + "\021\n\tstats_uri\030\003 \001(\t\022\023\n\013anomaly_uri\030\004 \001(\t\022" + + "\036\n\026distribution_deviation\030\005 \001(\001\022#\n\033anoma" + + "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" + + "a1B\033FeatureMonitoringStatsProtoP\001ZIgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "iplatform/v1beta1;aiplatformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor, + new java.lang.String[] { + "Score", + "StatsUri", + "AnomalyUri", + "DistributionDeviation", + "AnomalyDetectionThreshold", + "StartTime", + "EndTime", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java new file mode 100644 index 000000000..c9acf0785 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java @@ -0,0 +1,298 @@ +/* + * 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 FeatureName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE_FEATURE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String featurestore; + private final String entityType; + private final String feature; + + @Deprecated + protected FeatureName() { + project = null; + location = null; + featurestore = null; + entityType = null; + feature = null; + } + + private FeatureName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + featurestore = Preconditions.checkNotNull(builder.getFeaturestore()); + entityType = Preconditions.checkNotNull(builder.getEntityType()); + feature = Preconditions.checkNotNull(builder.getFeature()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public String getEntityType() { + return entityType; + } + + public String getFeature() { + return feature; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FeatureName of( + String project, String location, String featurestore, String entityType, String feature) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .setEntityType(entityType) + .setFeature(feature) + .build(); + } + + public static String format( + String project, String location, String featurestore, String entityType, String feature) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .setEntityType(entityType) + .setFeature(feature) + .build() + .toString(); + } + + public static FeatureName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE_FEATURE.validatedMatch( + formattedString, "FeatureName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("featurestore"), + matchMap.get("entity_type"), + matchMap.get("feature")); + } + + 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 (FeatureName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE_FEATURE.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 (featurestore != null) { + fieldMapBuilder.put("featurestore", featurestore); + } + if (entityType != null) { + fieldMapBuilder.put("entity_type", entityType); + } + if (feature != null) { + fieldMapBuilder.put("feature", feature); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FEATURESTORE_ENTITY_TYPE_FEATURE.instantiate( + "project", + project, + "location", + location, + "featurestore", + featurestore, + "entity_type", + entityType, + "feature", + feature); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + FeatureName that = ((FeatureName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.featurestore, that.featurestore) + && Objects.equals(this.entityType, that.entityType) + && Objects.equals(this.feature, that.feature); + } + 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(featurestore); + h *= 1000003; + h ^= Objects.hashCode(entityType); + h *= 1000003; + h ^= Objects.hashCode(feature); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}. + */ + public static class Builder { + private String project; + private String location; + private String featurestore; + private String entityType; + private String feature; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public String getEntityType() { + return entityType; + } + + public String getFeature() { + return feature; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFeaturestore(String featurestore) { + this.featurestore = featurestore; + return this; + } + + public Builder setEntityType(String entityType) { + this.entityType = entityType; + return this; + } + + public Builder setFeature(String feature) { + this.feature = feature; + return this; + } + + private Builder(FeatureName featureName) { + project = featureName.project; + location = featureName.location; + featurestore = featureName.featurestore; + entityType = featureName.entityType; + feature = featureName.feature; + } + + public FeatureName build() { + return new FeatureName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java new file mode 100644 index 000000000..4c71c9daf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java @@ -0,0 +1,454 @@ +/* + * 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/feature.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Feature) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. Name of the Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * The last part feature is assigned by the client. The feature can be up to
+   * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+   * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+   * be unique given an entity type.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. Name of the Feature.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * The last part feature is assigned by the client. The feature can be up to
+   * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
+   * underscore(_), and ASCII digits 0-9 starting with a letter. The value will
+   * be unique given an entity type.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Description of the Feature.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of the Feature.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. Type of Feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + int getValueTypeValue(); + /** + * + * + *
+   * Required. Immutable. Type of Feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + com.google.cloud.aiplatform.v1beta1.Feature.ValueType getValueType(); + + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this EntityType was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Features.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Feature (System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Optional. The custom monitoring configuration for this Feature, if not set, use the
+   * monitoring_config defined for the EntityType this Feature belongs to.
+   * If this is populated with
+   * [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
+   * monitoring is disabled; if
+   * [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
+   * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
+   * config is same as the EntityType's this Feature belongs to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig monitoring_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder + getMonitoringConfigOrBuilder(); + + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getMonitoringStatsList(); + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStats(int index); + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMonitoringStatsCount(); + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMonitoringStatsOrBuilderList(); + /** + * + * + *
+   * Output only. A list of historical [Snapshot
+   * Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
+   * stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
+   * descending.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly monitoring_stats = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getMonitoringStatsOrBuilder( + int index); +} 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 new file mode 100644 index 000000000..6154fd675 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java @@ -0,0 +1,132 @@ +/* + * 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/feature.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeatureProto { + private FeatureProto() {} + + 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_v1beta1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Feature_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Feature_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/v1beta1/featur" + + "e.proto\022\037google.cloud.aiplatform.v1beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032>google/cloud/aipla" + + "tform/v1beta1/feature_monitoring_stats.p" + + "roto\032=google/cloud/aiplatform/v1beta1/fe" + + "aturestore_monitoring.proto\032\037google/prot" + + "obuf/timestamp.proto\032\034google/api/annotat" + + "ions.proto\"\355\006\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\005\022\023\n\013description\030\002 \001(\t\022N\n\nvalue_type\030\003 \001" + + "(\01622.google.cloud.aiplatform.v1beta1.Fea" + + "ture.ValueTypeB\006\340A\002\340A\005\0224\n\013create_time\030\004 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022I\n\006labels\030\006 \003(\01324.google.clou" + + "d.aiplatform.v1beta1.Feature.LabelsEntry" + + "B\003\340A\001\022\014\n\004etag\030\007 \001(\t\022]\n\021monitoring_config" + + "\030\t \001(\0132=.google.cloud.aiplatform.v1beta1" + + ".FeaturestoreMonitoringConfigB\003\340A\001\022S\n\020mo" + + "nitoring_stats\030\n \003(\01324.google.cloud.aipl" + + "atform.v1beta1.FeatureStatsAnomalyB\003\340A\003\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\244\001\n\tValueType\022\032\n\026VALUE_TYPE_UNSPE" + + "CIFIED\020\000\022\010\n\004BOOL\020\001\022\016\n\nBOOL_ARRAY\020\002\022\n\n\006DO" + + "UBLE\020\003\022\020\n\014DOUBLE_ARRAY\020\004\022\t\n\005INT64\020\t\022\017\n\013I" + + "NT64_ARRAY\020\n\022\n\n\006STRING\020\013\022\020\n\014STRING_ARRAY" + + "\020\014\022\t\n\005BYTES\020\r:\232\001\352A\226\001\n!aiplatform.googlea" + + "pis.com/Feature\022qprojects/{project}/loca" + + "tions/{location}/featurestores/{features" + + "tore}/entityTypes/{entity_type}/features" + + "/{feature}B\200\001\n#com.google.cloud.aiplatfo" + + "rm.v1beta1B\014FeatureProtoP\001ZIgoogle.golan" + + "g.org/genproto/googleapis/cloud/aiplatfo" + + "rm/v1beta1;aiplatformb\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.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor, + new java.lang.String[] { + "Name", + "Description", + "ValueType", + "CreateTime", + "UpdateTime", + "Labels", + "Etag", + "MonitoringConfig", + "MonitoringStats", + }); + internal_static_google_cloud_aiplatform_v1beta1_Feature_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Feature_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Feature_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Feature_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.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java new file mode 100644 index 000000000..267faf10e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java @@ -0,0 +1,758 @@ +/* + * 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/feature_selector.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Selector for Features of an EntityType.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureSelector} + */ +public final class FeatureSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureSelector) + FeatureSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureSelector.newBuilder() to construct. + private FeatureSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureSelector() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureSelector(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureSelector( + 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.IdMatcher.Builder subBuilder = null; + if (idMatcher_ != null) { + subBuilder = idMatcher_.toBuilder(); + } + idMatcher_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.IdMatcher.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(idMatcher_); + idMatcher_ = 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.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureSelector.class, + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder.class); + } + + public static final int ID_MATCHER_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.IdMatcher idMatcher_; + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the idMatcher field is set. + */ + @java.lang.Override + public boolean hasIdMatcher() { + return idMatcher_ != null; + } + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The idMatcher. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IdMatcher getIdMatcher() { + return idMatcher_ == null + ? com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance() + : idMatcher_; + } + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder getIdMatcherOrBuilder() { + return getIdMatcher(); + } + + 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 (idMatcher_ != null) { + output.writeMessage(1, getIdMatcher()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idMatcher_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdMatcher()); + } + 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.FeatureSelector)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureSelector other = + (com.google.cloud.aiplatform.v1beta1.FeatureSelector) obj; + + if (hasIdMatcher() != other.hasIdMatcher()) return false; + if (hasIdMatcher()) { + if (!getIdMatcher().equals(other.getIdMatcher())) 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 (hasIdMatcher()) { + hash = (37 * hash) + ID_MATCHER_FIELD_NUMBER; + hash = (53 * hash) + getIdMatcher().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector 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.FeatureSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector 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.FeatureSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector 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.FeatureSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector 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.FeatureSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector 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.FeatureSelector 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.FeatureSelector 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.FeatureSelector 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; + } + /** + * + * + *
+   * Selector for Features of an EntityType.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureSelector) + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureSelector.class, + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureSelector.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 (idMatcherBuilder_ == null) { + idMatcher_ = null; + } else { + idMatcher_ = null; + idMatcherBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelector getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelector build() { + com.google.cloud.aiplatform.v1beta1.FeatureSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelector buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureSelector result = + new com.google.cloud.aiplatform.v1beta1.FeatureSelector(this); + if (idMatcherBuilder_ == null) { + result.idMatcher_ = idMatcher_; + } else { + result.idMatcher_ = idMatcherBuilder_.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.FeatureSelector) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureSelector other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) + return this; + if (other.hasIdMatcher()) { + mergeIdMatcher(other.getIdMatcher()); + } + 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.FeatureSelector parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeatureSelector) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.IdMatcher idMatcher_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IdMatcher, + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder, + com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder> + idMatcherBuilder_; + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the idMatcher field is set. + */ + public boolean hasIdMatcher() { + return idMatcherBuilder_ != null || idMatcher_ != null; + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The idMatcher. + */ + public com.google.cloud.aiplatform.v1beta1.IdMatcher getIdMatcher() { + if (idMatcherBuilder_ == null) { + return idMatcher_ == null + ? com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance() + : idMatcher_; + } else { + return idMatcherBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIdMatcher(com.google.cloud.aiplatform.v1beta1.IdMatcher value) { + if (idMatcherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idMatcher_ = value; + onChanged(); + } else { + idMatcherBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIdMatcher( + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder builderForValue) { + if (idMatcherBuilder_ == null) { + idMatcher_ = builderForValue.build(); + onChanged(); + } else { + idMatcherBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIdMatcher(com.google.cloud.aiplatform.v1beta1.IdMatcher value) { + if (idMatcherBuilder_ == null) { + if (idMatcher_ != null) { + idMatcher_ = + com.google.cloud.aiplatform.v1beta1.IdMatcher.newBuilder(idMatcher_) + .mergeFrom(value) + .buildPartial(); + } else { + idMatcher_ = value; + } + onChanged(); + } else { + idMatcherBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIdMatcher() { + if (idMatcherBuilder_ == null) { + idMatcher_ = null; + onChanged(); + } else { + idMatcher_ = null; + idMatcherBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder getIdMatcherBuilder() { + + onChanged(); + return getIdMatcherFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder getIdMatcherOrBuilder() { + if (idMatcherBuilder_ != null) { + return idMatcherBuilder_.getMessageOrBuilder(); + } else { + return idMatcher_ == null + ? com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance() + : idMatcher_; + } + } + /** + * + * + *
+     * Required. Matches Features based on ID.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IdMatcher, + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder, + com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder> + getIdMatcherFieldBuilder() { + if (idMatcherBuilder_ == null) { + idMatcherBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IdMatcher, + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder, + com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder>( + getIdMatcher(), getParentForChildren(), isClean()); + idMatcher_ = null; + } + return idMatcherBuilder_; + } + + @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.FeatureSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureSelector) + private static final com.google.cloud.aiplatform.v1beta1.FeatureSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureSelector(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSelector(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.FeatureSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorOrBuilder.java new file mode 100644 index 000000000..71730b745 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/feature_selector.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the idMatcher field is set. + */ + boolean hasIdMatcher(); + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The idMatcher. + */ + com.google.cloud.aiplatform.v1beta1.IdMatcher getIdMatcher(); + /** + * + * + *
+   * Required. Matches Features based on ID.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder getIdMatcherOrBuilder(); +} 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 new file mode 100644 index 000000000..62cb61d7f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java @@ -0,0 +1,92 @@ +/* + * 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/feature_selector.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeatureSelectorProto { + private FeatureSelectorProto() {} + + 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_v1beta1_IdMatcher_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/aiplatform/v1beta1/featur" + + "e_selector.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "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." + + "google.cloud.aiplatform.v1beta1B\024Feature" + + "SelectorProtoP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/aiplatform/v1beta1;" + + "aiplatformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor, + new java.lang.String[] { + "Ids", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureSelector_descriptor, + new java.lang.String[] { + "IdMatcher", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java new file mode 100644 index 000000000..04274961e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java @@ -0,0 +1,1839 @@ +/* + * 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/feature_monitoring_stats.proto + +package com.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
+ * that current stats belongs to, e.g. prediction traffic is bucketed into
+ * prediction datasets by time window. If the Dataset is not defined by time
+ * window, start_time = end_time. Timestamp of the stats and anomalies always
+ * refers to end_time. Raw stats and anomalies are stored in stats_uri or
+ * anomaly_uri in the tensorflow defined protos. Field data_stats contains
+ * almost identical information with the raw stats in Vertex AI
+ * defined proto, for UI to display.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} + */ +public final class FeatureStatsAnomaly extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + FeatureStatsAnomalyOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureStatsAnomaly.newBuilder() to construct. + private FeatureStatsAnomaly(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureStatsAnomaly() { + statsUri_ = ""; + anomalyUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureStatsAnomaly(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureStatsAnomaly( + 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 9: + { + score_ = input.readDouble(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + statsUri_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + anomalyUri_ = s; + break; + } + case 41: + { + distributionDeviation_ = input.readDouble(); + break; + } + case 58: + { + 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 66: + { + 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 73: + { + anomalyDetectionThreshold_ = input.readDouble(); + 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.FeatureMonitoringStatsProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.class, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder.class); + } + + public static final int SCORE_FIELD_NUMBER = 1; + private double score_; + /** + * + * + *
+   * Feature importance score, only populated when cross-feature monitoring is
+   * enabled. For now only used to represent feature attribution score within
+   * range [0, 1] for
+   * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and
+   * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
+   * 
+ * + * double score = 1; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + public static final int STATS_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object statsUri_; + /** + * + * + *
+   * Path of the stats file for current feature values in Cloud Storage bucket.
+   * Format: gs://<bucket_name>/<object_name>/stats.
+   * Example: gs://monitoring_bucket/feature_name/stats.
+   * Stats are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+   * 
+ * + * string stats_uri = 3; + * + * @return The statsUri. + */ + @java.lang.Override + public java.lang.String getStatsUri() { + java.lang.Object ref = statsUri_; + 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(); + statsUri_ = s; + return s; + } + } + /** + * + * + *
+   * Path of the stats file for current feature values in Cloud Storage bucket.
+   * Format: gs://<bucket_name>/<object_name>/stats.
+   * Example: gs://monitoring_bucket/feature_name/stats.
+   * Stats are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+   * 
+ * + * string stats_uri = 3; + * + * @return The bytes for statsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatsUriBytes() { + java.lang.Object ref = statsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANOMALY_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object anomalyUri_; + /** + * + * + *
+   * Path of the anomaly file for current feature values in Cloud Storage
+   * bucket.
+   * Format: gs://<bucket_name>/<object_name>/anomalies.
+   * Example: gs://monitoring_bucket/feature_name/anomalies.
+   * Stats are stored as binary format with Protobuf message
+   * Anoamlies are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.AnomalyInfo]
+   * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+   * 
+ * + * string anomaly_uri = 4; + * + * @return The anomalyUri. + */ + @java.lang.Override + public java.lang.String getAnomalyUri() { + java.lang.Object ref = anomalyUri_; + 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(); + anomalyUri_ = s; + return s; + } + } + /** + * + * + *
+   * Path of the anomaly file for current feature values in Cloud Storage
+   * bucket.
+   * Format: gs://<bucket_name>/<object_name>/anomalies.
+   * Example: gs://monitoring_bucket/feature_name/anomalies.
+   * Stats are stored as binary format with Protobuf message
+   * Anoamlies are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.AnomalyInfo]
+   * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+   * 
+ * + * string anomaly_uri = 4; + * + * @return The bytes for anomalyUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnomalyUriBytes() { + java.lang.Object ref = anomalyUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + anomalyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISTRIBUTION_DEVIATION_FIELD_NUMBER = 5; + private double distributionDeviation_; + /** + * + * + *
+   * Deviation from the current stats to baseline stats.
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * 
+ * + * double distribution_deviation = 5; + * + * @return The distributionDeviation. + */ + @java.lang.Override + public double getDistributionDeviation() { + return distributionDeviation_; + } + + public static final int ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER = 9; + private double anomalyDetectionThreshold_; + /** + * + * + *
+   * This is the threshold used when detecting anomalies.
+   * The threshold can be changed by user, so this one might be different from
+   * [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value].
+   * 
+ * + * double anomaly_detection_threshold = 9; + * + * @return The anomalyDetectionThreshold. + */ + @java.lang.Override + public double getAnomalyDetectionThreshold() { + return anomalyDetectionThreshold_; + } + + public static final int START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (score_ != 0D) { + output.writeDouble(1, score_); + } + if (!getStatsUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, statsUri_); + } + if (!getAnomalyUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, anomalyUri_); + } + if (distributionDeviation_ != 0D) { + output.writeDouble(5, distributionDeviation_); + } + if (startTime_ != null) { + output.writeMessage(7, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(8, getEndTime()); + } + if (anomalyDetectionThreshold_ != 0D) { + output.writeDouble(9, anomalyDetectionThreshold_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (score_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, score_); + } + if (!getStatsUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, statsUri_); + } + if (!getAnomalyUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, anomalyUri_); + } + if (distributionDeviation_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, distributionDeviation_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + } + if (anomalyDetectionThreshold_ != 0D) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(9, anomalyDetectionThreshold_); + } + 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.FeatureStatsAnomaly)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly other = + (com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) obj; + + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + if (!getStatsUri().equals(other.getStatsUri())) return false; + if (!getAnomalyUri().equals(other.getAnomalyUri())) return false; + if (java.lang.Double.doubleToLongBits(getDistributionDeviation()) + != java.lang.Double.doubleToLongBits(other.getDistributionDeviation())) return false; + if (java.lang.Double.doubleToLongBits(getAnomalyDetectionThreshold()) + != java.lang.Double.doubleToLongBits(other.getAnomalyDetectionThreshold())) 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 (!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) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getScore())); + hash = (37 * hash) + STATS_URI_FIELD_NUMBER; + hash = (53 * hash) + getStatsUri().hashCode(); + hash = (37 * hash) + ANOMALY_URI_FIELD_NUMBER; + hash = (53 * hash) + getAnomalyUri().hashCode(); + hash = (37 * hash) + DISTRIBUTION_DEVIATION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistributionDeviation())); + hash = (37 * hash) + ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAnomalyDetectionThreshold())); + 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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly 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.FeatureStatsAnomaly parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly 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.FeatureStatsAnomaly parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly 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.FeatureStatsAnomaly parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly 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.FeatureStatsAnomaly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly 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.FeatureStatsAnomaly 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.FeatureStatsAnomaly 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.FeatureStatsAnomaly 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; + } + /** + * + * + *
+   * 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
+   * that current stats belongs to, e.g. prediction traffic is bucketed into
+   * prediction datasets by time window. If the Dataset is not defined by time
+   * window, start_time = end_time. Timestamp of the stats and anomalies always
+   * refers to end_time. Raw stats and anomalies are stored in stats_uri or
+   * anomaly_uri in the tensorflow defined protos. Field data_stats contains
+   * almost identical information with the raw stats in Vertex AI
+   * defined proto, for UI to display.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.class, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.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(); + score_ = 0D; + + statsUri_ = ""; + + anomalyUri_ = ""; + + distributionDeviation_ = 0D; + + anomalyDetectionThreshold_ = 0D; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureStatsAnomaly_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly build() { + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly result = + new com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(this); + result.score_ = score_; + result.statsUri_ = statsUri_; + result.anomalyUri_ = anomalyUri_; + result.distributionDeviation_ = distributionDeviation_; + result.anomalyDetectionThreshold_ = anomalyDetectionThreshold_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.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.FeatureStatsAnomaly) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()) + return this; + if (other.getScore() != 0D) { + setScore(other.getScore()); + } + if (!other.getStatsUri().isEmpty()) { + statsUri_ = other.statsUri_; + onChanged(); + } + if (!other.getAnomalyUri().isEmpty()) { + anomalyUri_ = other.anomalyUri_; + onChanged(); + } + if (other.getDistributionDeviation() != 0D) { + setDistributionDeviation(other.getDistributionDeviation()); + } + if (other.getAnomalyDetectionThreshold() != 0D) { + setAnomalyDetectionThreshold(other.getAnomalyDetectionThreshold()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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.FeatureStatsAnomaly parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double score_; + /** + * + * + *
+     * Feature importance score, only populated when cross-feature monitoring is
+     * enabled. For now only used to represent feature attribution score within
+     * range [0, 1] for
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
+     * 
+ * + * double score = 1; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
+     * Feature importance score, only populated when cross-feature monitoring is
+     * enabled. For now only used to represent feature attribution score within
+     * range [0, 1] for
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
+     * 
+ * + * double score = 1; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Feature importance score, only populated when cross-feature monitoring is
+     * enabled. For now only used to represent feature attribution score within
+     * range [0, 1] for
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and
+     * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
+     * 
+ * + * double score = 1; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + + score_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object statsUri_ = ""; + /** + * + * + *
+     * Path of the stats file for current feature values in Cloud Storage bucket.
+     * Format: gs://<bucket_name>/<object_name>/stats.
+     * Example: gs://monitoring_bucket/feature_name/stats.
+     * Stats are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+     * 
+ * + * string stats_uri = 3; + * + * @return The statsUri. + */ + public java.lang.String getStatsUri() { + java.lang.Object ref = statsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Path of the stats file for current feature values in Cloud Storage bucket.
+     * Format: gs://<bucket_name>/<object_name>/stats.
+     * Example: gs://monitoring_bucket/feature_name/stats.
+     * Stats are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+     * 
+ * + * string stats_uri = 3; + * + * @return The bytes for statsUri. + */ + public com.google.protobuf.ByteString getStatsUriBytes() { + java.lang.Object ref = statsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Path of the stats file for current feature values in Cloud Storage bucket.
+     * Format: gs://<bucket_name>/<object_name>/stats.
+     * Example: gs://monitoring_bucket/feature_name/stats.
+     * Stats are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+     * 
+ * + * string stats_uri = 3; + * + * @param value The statsUri to set. + * @return This builder for chaining. + */ + public Builder setStatsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statsUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Path of the stats file for current feature values in Cloud Storage bucket.
+     * Format: gs://<bucket_name>/<object_name>/stats.
+     * Example: gs://monitoring_bucket/feature_name/stats.
+     * Stats are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+     * 
+ * + * string stats_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearStatsUri() { + + statsUri_ = getDefaultInstance().getStatsUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Path of the stats file for current feature values in Cloud Storage bucket.
+     * Format: gs://<bucket_name>/<object_name>/stats.
+     * Example: gs://monitoring_bucket/feature_name/stats.
+     * Stats are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+     * 
+ * + * string stats_uri = 3; + * + * @param value The bytes for statsUri to set. + * @return This builder for chaining. + */ + public Builder setStatsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statsUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object anomalyUri_ = ""; + /** + * + * + *
+     * Path of the anomaly file for current feature values in Cloud Storage
+     * bucket.
+     * Format: gs://<bucket_name>/<object_name>/anomalies.
+     * Example: gs://monitoring_bucket/feature_name/anomalies.
+     * Stats are stored as binary format with Protobuf message
+     * Anoamlies are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.AnomalyInfo]
+     * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+     * 
+ * + * string anomaly_uri = 4; + * + * @return The anomalyUri. + */ + public java.lang.String getAnomalyUri() { + java.lang.Object ref = anomalyUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + anomalyUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Path of the anomaly file for current feature values in Cloud Storage
+     * bucket.
+     * Format: gs://<bucket_name>/<object_name>/anomalies.
+     * Example: gs://monitoring_bucket/feature_name/anomalies.
+     * Stats are stored as binary format with Protobuf message
+     * Anoamlies are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.AnomalyInfo]
+     * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+     * 
+ * + * string anomaly_uri = 4; + * + * @return The bytes for anomalyUri. + */ + public com.google.protobuf.ByteString getAnomalyUriBytes() { + java.lang.Object ref = anomalyUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + anomalyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Path of the anomaly file for current feature values in Cloud Storage
+     * bucket.
+     * Format: gs://<bucket_name>/<object_name>/anomalies.
+     * Example: gs://monitoring_bucket/feature_name/anomalies.
+     * Stats are stored as binary format with Protobuf message
+     * Anoamlies are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.AnomalyInfo]
+     * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+     * 
+ * + * string anomaly_uri = 4; + * + * @param value The anomalyUri to set. + * @return This builder for chaining. + */ + public Builder setAnomalyUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + anomalyUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Path of the anomaly file for current feature values in Cloud Storage
+     * bucket.
+     * Format: gs://<bucket_name>/<object_name>/anomalies.
+     * Example: gs://monitoring_bucket/feature_name/anomalies.
+     * Stats are stored as binary format with Protobuf message
+     * Anoamlies are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.AnomalyInfo]
+     * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+     * 
+ * + * string anomaly_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearAnomalyUri() { + + anomalyUri_ = getDefaultInstance().getAnomalyUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Path of the anomaly file for current feature values in Cloud Storage
+     * bucket.
+     * Format: gs://<bucket_name>/<object_name>/anomalies.
+     * Example: gs://monitoring_bucket/feature_name/anomalies.
+     * Stats are stored as binary format with Protobuf message
+     * Anoamlies are stored as binary format with Protobuf message
+     * [tensorflow.metadata.v0.AnomalyInfo]
+     * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+     * 
+ * + * string anomaly_uri = 4; + * + * @param value The bytes for anomalyUri to set. + * @return This builder for chaining. + */ + public Builder setAnomalyUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + anomalyUri_ = value; + onChanged(); + return this; + } + + private double distributionDeviation_; + /** + * + * + *
+     * Deviation from the current stats to baseline stats.
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * 
+ * + * double distribution_deviation = 5; + * + * @return The distributionDeviation. + */ + @java.lang.Override + public double getDistributionDeviation() { + return distributionDeviation_; + } + /** + * + * + *
+     * Deviation from the current stats to baseline stats.
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * 
+ * + * double distribution_deviation = 5; + * + * @param value The distributionDeviation to set. + * @return This builder for chaining. + */ + public Builder setDistributionDeviation(double value) { + + distributionDeviation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deviation from the current stats to baseline stats.
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * 
+ * + * double distribution_deviation = 5; + * + * @return This builder for chaining. + */ + public Builder clearDistributionDeviation() { + + distributionDeviation_ = 0D; + onChanged(); + return this; + } + + private double anomalyDetectionThreshold_; + /** + * + * + *
+     * This is the threshold used when detecting anomalies.
+     * The threshold can be changed by user, so this one might be different from
+     * [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value].
+     * 
+ * + * double anomaly_detection_threshold = 9; + * + * @return The anomalyDetectionThreshold. + */ + @java.lang.Override + public double getAnomalyDetectionThreshold() { + return anomalyDetectionThreshold_; + } + /** + * + * + *
+     * This is the threshold used when detecting anomalies.
+     * The threshold can be changed by user, so this one might be different from
+     * [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value].
+     * 
+ * + * double anomaly_detection_threshold = 9; + * + * @param value The anomalyDetectionThreshold to set. + * @return This builder for chaining. + */ + public Builder setAnomalyDetectionThreshold(double value) { + + anomalyDetectionThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This is the threshold used when detecting anomalies.
+     * The threshold can be changed by user, so this one might be different from
+     * [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value].
+     * 
+ * + * double anomaly_detection_threshold = 9; + * + * @return This builder for chaining. + */ + public Builder clearAnomalyDetectionThreshold() { + + anomalyDetectionThreshold_ = 0D; + onChanged(); + return this; + } + + 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_; + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @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(); + } + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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; + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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; + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The start timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), start_time is only used to indicate the monitoring
+     * intervals, so it always equals to (end_time - monitoring_interval).
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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_; + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @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(); + } + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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; + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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; + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The end timestamp of window where stats were generated.
+     * For objectives where time window doesn't make sense (e.g. Featurestore
+     * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+     * generate stats (e.g. timestamp we take snapshots for feature values).
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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_; + } + + @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.FeatureStatsAnomaly) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + private static final com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureStatsAnomaly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureStatsAnomaly(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.FeatureStatsAnomaly getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomalyOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomalyOrBuilder.java new file mode 100644 index 000000000..468fe7e33 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomalyOrBuilder.java @@ -0,0 +1,234 @@ +/* + * 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/feature_monitoring_stats.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureStatsAnomalyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Feature importance score, only populated when cross-feature monitoring is
+   * enabled. For now only used to represent feature attribution score within
+   * range [0, 1] for
+   * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and
+   * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
+   * 
+ * + * double score = 1; + * + * @return The score. + */ + double getScore(); + + /** + * + * + *
+   * Path of the stats file for current feature values in Cloud Storage bucket.
+   * Format: gs://<bucket_name>/<object_name>/stats.
+   * Example: gs://monitoring_bucket/feature_name/stats.
+   * Stats are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+   * 
+ * + * string stats_uri = 3; + * + * @return The statsUri. + */ + java.lang.String getStatsUri(); + /** + * + * + *
+   * Path of the stats file for current feature values in Cloud Storage bucket.
+   * Format: gs://<bucket_name>/<object_name>/stats.
+   * Example: gs://monitoring_bucket/feature_name/stats.
+   * Stats are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
+   * 
+ * + * string stats_uri = 3; + * + * @return The bytes for statsUri. + */ + com.google.protobuf.ByteString getStatsUriBytes(); + + /** + * + * + *
+   * Path of the anomaly file for current feature values in Cloud Storage
+   * bucket.
+   * Format: gs://<bucket_name>/<object_name>/anomalies.
+   * Example: gs://monitoring_bucket/feature_name/anomalies.
+   * Stats are stored as binary format with Protobuf message
+   * Anoamlies are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.AnomalyInfo]
+   * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+   * 
+ * + * string anomaly_uri = 4; + * + * @return The anomalyUri. + */ + java.lang.String getAnomalyUri(); + /** + * + * + *
+   * Path of the anomaly file for current feature values in Cloud Storage
+   * bucket.
+   * Format: gs://<bucket_name>/<object_name>/anomalies.
+   * Example: gs://monitoring_bucket/feature_name/anomalies.
+   * Stats are stored as binary format with Protobuf message
+   * Anoamlies are stored as binary format with Protobuf message
+   * [tensorflow.metadata.v0.AnomalyInfo]
+   * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
+   * 
+ * + * string anomaly_uri = 4; + * + * @return The bytes for anomalyUri. + */ + com.google.protobuf.ByteString getAnomalyUriBytes(); + + /** + * + * + *
+   * Deviation from the current stats to baseline stats.
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * 
+ * + * double distribution_deviation = 5; + * + * @return The distributionDeviation. + */ + double getDistributionDeviation(); + + /** + * + * + *
+   * This is the threshold used when detecting anomalies.
+   * The threshold can be changed by user, so this one might be different from
+   * [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value].
+   * 
+ * + * double anomaly_detection_threshold = 9; + * + * @return The anomalyDetectionThreshold. + */ + double getAnomalyDetectionThreshold(); + + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The start timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), start_time is only used to indicate the monitoring
+   * intervals, so it always equals to (end_time - monitoring_interval).
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The end timestamp of window where stats were generated.
+   * For objectives where time window doesn't make sense (e.g. Featurestore
+   * Snapshot Monitoring), end_time indicates the timestamp of the data used to
+   * generate stats (e.g. timestamp we take snapshots for feature values).
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} 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 new file mode 100644 index 000000000..ec95362ac --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java @@ -0,0 +1,3650 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Value for a feature.
+ * NEXT ID: 15
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue} + */ +public final class FeatureValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureValue) + FeatureValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureValue.newBuilder() to construct. + private FeatureValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureValue( + 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.readBool(); + break; + } + case 17: + { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 40: + { + valueCase_ = 5; + value_ = input.readInt64(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 6; + value_ = s; + break; + } + case 58: + { + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.BoolArray) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BoolArray.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.BoolArray) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + break; + } + case 66: + { + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder subBuilder = null; + if (valueCase_ == 8) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.DoubleArray) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DoubleArray.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.DoubleArray) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 8; + break; + } + case 90: + { + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder subBuilder = null; + if (valueCase_ == 11) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.Int64Array) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Int64Array.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.Int64Array) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 11; + break; + } + case 98: + { + com.google.cloud.aiplatform.v1beta1.StringArray.Builder subBuilder = null; + if (valueCase_ == 12) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.StringArray) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StringArray.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.StringArray) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 12; + break; + } + case 106: + { + valueCase_ = 13; + value_ = input.readBytes(); + break; + } + case 114: + { + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValue.class, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder.class); + } + + public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return Whether the generateTime field is set. + */ + boolean hasGenerateTime(); + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return The generateTime. + */ + com.google.protobuf.Timestamp getGenerateTime(); + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder(); + } + /** + * + * + *
+   * Metadata of feature value.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} + */ + public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Metadata( + 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.protobuf.Timestamp.Builder subBuilder = null; + if (generateTime_ != null) { + subBuilder = generateTime_.toBuilder(); + } + generateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(generateTime_); + generateTime_ = 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.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.class, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder.class); + } + + public static final int GENERATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp generateTime_; + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return Whether the generateTime field is set. + */ + @java.lang.Override + public boolean hasGenerateTime() { + return generateTime_ != null; + } + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return The generateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getGenerateTime() { + return generateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generateTime_; + } + /** + * + * + *
+     * Feature generation timestamp. Typically, it is provided by user at
+     * feature ingestion time. If not, feature store
+     * will use the system timestamp when the data is ingested into feature
+     * store.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { + return getGenerateTime(); + } + + 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 (generateTime_ != null) { + output.writeMessage(1, getGenerateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenerateTime()); + } + 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.FeatureValue.Metadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata other = + (com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) obj; + + if (hasGenerateTime() != other.hasGenerateTime()) return false; + if (hasGenerateTime()) { + if (!getGenerateTime().equals(other.getGenerateTime())) 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 (hasGenerateTime()) { + hash = (37 * hash) + GENERATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getGenerateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata 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.FeatureValue.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata 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.FeatureValue.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata 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.FeatureValue.Metadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata 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.FeatureValue.Metadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata 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.FeatureValue.Metadata 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.FeatureValue.Metadata 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.FeatureValue.Metadata 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; + } + /** + * + * + *
+     * Metadata of feature value.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) + com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.class, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.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 (generateTimeBuilder_ == null) { + generateTime_ = null; + } else { + generateTime_ = null; + generateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata build() { + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata result = + new com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(this); + if (generateTimeBuilder_ == null) { + result.generateTime_ = generateTime_; + } else { + result.generateTime_ = generateTimeBuilder_.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.FeatureValue.Metadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance()) + return this; + if (other.hasGenerateTime()) { + mergeGenerateTime(other.getGenerateTime()); + } + 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.FeatureValue.Metadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp generateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + generateTimeBuilder_; + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return Whether the generateTime field is set. + */ + public boolean hasGenerateTime() { + return generateTimeBuilder_ != null || generateTime_ != null; + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + * + * @return The generateTime. + */ + public com.google.protobuf.Timestamp getGenerateTime() { + if (generateTimeBuilder_ == null) { + return generateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generateTime_; + } else { + return generateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public Builder setGenerateTime(com.google.protobuf.Timestamp value) { + if (generateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generateTime_ = value; + onChanged(); + } else { + generateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (generateTimeBuilder_ == null) { + generateTime_ = builderForValue.build(); + onChanged(); + } else { + generateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { + if (generateTimeBuilder_ == null) { + if (generateTime_ != null) { + generateTime_ = + com.google.protobuf.Timestamp.newBuilder(generateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + generateTime_ = value; + } + onChanged(); + } else { + generateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public Builder clearGenerateTime() { + if (generateTimeBuilder_ == null) { + generateTime_ = null; + onChanged(); + } else { + generateTime_ = null; + generateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { + + onChanged(); + return getGenerateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { + if (generateTimeBuilder_ != null) { + return generateTimeBuilder_.getMessageOrBuilder(); + } else { + return generateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generateTime_; + } + } + /** + * + * + *
+       * Feature generation timestamp. Typically, it is provided by user at
+       * feature ingestion time. If not, feature store
+       * will use the system timestamp when the data is ingested into feature
+       * store.
+       * 
+ * + * .google.protobuf.Timestamp generate_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getGenerateTimeFieldBuilder() { + if (generateTimeBuilder_ == null) { + generateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getGenerateTime(), getParentForChildren(), isClean()); + generateTime_ = null; + } + return generateTimeBuilder_; + } + + @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.FeatureValue.Metadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) + private static final com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metadata(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.FeatureValue.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BOOL_VALUE(1), + DOUBLE_VALUE(2), + INT64_VALUE(5), + STRING_VALUE(6), + BOOL_ARRAY_VALUE(7), + DOUBLE_ARRAY_VALUE(8), + INT64_ARRAY_VALUE(11), + STRING_ARRAY_VALUE(12), + BYTES_VALUE(13), + 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 BOOL_VALUE; + case 2: + return DOUBLE_VALUE; + case 5: + return INT64_VALUE; + case 6: + return STRING_VALUE; + case 7: + return BOOL_ARRAY_VALUE; + case 8: + return DOUBLE_ARRAY_VALUE; + case 11: + return INT64_ARRAY_VALUE; + case 12: + return STRING_ARRAY_VALUE; + case 13: + return BYTES_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 BOOL_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * Bool type feature value.
+   * 
+ * + * bool bool_value = 1; + * + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return valueCase_ == 1; + } + /** + * + * + *
+   * Bool type feature value.
+   * 
+ * + * bool bool_value = 1; + * + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (valueCase_ == 1) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Double type feature value.
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * + * + *
+   * Double type feature 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 INT64_VALUE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Int64 feature value.
+   * 
+ * + * int64 int64_value = 5; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return valueCase_ == 5; + } + /** + * + * + *
+   * Int64 feature value.
+   * 
+ * + * int64 int64_value = 5; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (valueCase_ == 5) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 6; + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 6; + } + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 6) { + 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_ == 6) { + value_ = s; + } + return s; + } + } + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 6) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 6) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOL_ARRAY_VALUE_FIELD_NUMBER = 7; + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return Whether the boolArrayValue field is set. + */ + @java.lang.Override + public boolean hasBoolArrayValue() { + return valueCase_ == 7; + } + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return The boolArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArray getBoolArrayValue() { + if (valueCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.BoolArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder getBoolArrayValueOrBuilder() { + if (valueCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.BoolArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + + public static final int DOUBLE_ARRAY_VALUE_FIELD_NUMBER = 8; + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return Whether the doubleArrayValue field is set. + */ + @java.lang.Override + public boolean hasDoubleArrayValue() { + return valueCase_ == 8; + } + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return The doubleArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArray getDoubleArrayValue() { + if (valueCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder getDoubleArrayValueOrBuilder() { + if (valueCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + + public static final int INT64_ARRAY_VALUE_FIELD_NUMBER = 11; + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return Whether the int64ArrayValue field is set. + */ + @java.lang.Override + public boolean hasInt64ArrayValue() { + return valueCase_ == 11; + } + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return The int64ArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64Array getInt64ArrayValue() { + if (valueCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.Int64Array) value_; + } + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder getInt64ArrayValueOrBuilder() { + if (valueCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.Int64Array) value_; + } + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + + public static final int STRING_ARRAY_VALUE_FIELD_NUMBER = 12; + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return Whether the stringArrayValue field is set. + */ + @java.lang.Override + public boolean hasStringArrayValue() { + return valueCase_ == 12; + } + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return The stringArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArray getStringArrayValue() { + if (valueCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.StringArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder getStringArrayValueOrBuilder() { + if (valueCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.StringArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + + public static final int BYTES_VALUE_FIELD_NUMBER = 13; + /** + * + * + *
+   * Bytes feature value.
+   * 
+ * + * bytes bytes_value = 13; + * + * @return Whether the bytesValue field is set. + */ + @java.lang.Override + public boolean hasBytesValue() { + return valueCase_ == 13; + } + /** + * + * + *
+   * Bytes feature value.
+   * 
+ * + * bytes bytes_value = 13; + * + * @return The bytesValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 13) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int METADATA_FIELD_NUMBER = 14; + private com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata_; + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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.writeBool(1, (boolean) ((java.lang.Boolean) value_)); + } + if (valueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 5) { + output.writeInt64(5, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.BoolArray) value_); + } + if (valueCase_ == 8) { + output.writeMessage(8, (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_); + } + if (valueCase_ == 11) { + output.writeMessage(11, (com.google.cloud.aiplatform.v1beta1.Int64Array) value_); + } + if (valueCase_ == 12) { + output.writeMessage(12, (com.google.cloud.aiplatform.v1beta1.StringArray) value_); + } + if (valueCase_ == 13) { + output.writeBytes(13, (com.google.protobuf.ByteString) value_); + } + if (metadata_ != null) { + output.writeMessage(14, getMetadata()); + } + 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.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) value_)); + } + if (valueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 5, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, value_); + } + if (valueCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.aiplatform.v1beta1.BoolArray) value_); + } + if (valueCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_); + } + if (valueCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1beta1.Int64Array) value_); + } + if (valueCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.aiplatform.v1beta1.StringArray) value_); + } + if (valueCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 13, (com.google.protobuf.ByteString) value_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getMetadata()); + } + 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.FeatureValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureValue other = + (com.google.cloud.aiplatform.v1beta1.FeatureValue) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getBoolValue() != other.getBoolValue()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 5: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 6: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 7: + if (!getBoolArrayValue().equals(other.getBoolArrayValue())) return false; + break; + case 8: + if (!getDoubleArrayValue().equals(other.getDoubleArrayValue())) return false; + break; + case 11: + if (!getInt64ArrayValue().equals(other.getInt64ArrayValue())) return false; + break; + case 12: + if (!getStringArrayValue().equals(other.getStringArrayValue())) return false; + break; + case 13: + if (!getBytesValue().equals(other.getBytesValue())) 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(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + switch (valueCase_) { + case 1: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + 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 5: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 6: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 7: + hash = (37 * hash) + BOOL_ARRAY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBoolArrayValue().hashCode(); + break; + case 8: + hash = (37 * hash) + DOUBLE_ARRAY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDoubleArrayValue().hashCode(); + break; + case 11: + hash = (37 * hash) + INT64_ARRAY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getInt64ArrayValue().hashCode(); + break; + case 12: + hash = (37 * hash) + STRING_ARRAY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringArrayValue().hashCode(); + break; + case 13: + hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBytesValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue 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.FeatureValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue 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.FeatureValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue 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.FeatureValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue 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.FeatureValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue 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.FeatureValue 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.FeatureValue 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.FeatureValue 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 for a feature.
+   * NEXT ID: 15
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureValue) + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValue.class, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureValue.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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue build() { + com.google.cloud.aiplatform.v1beta1.FeatureValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureValue result = + new com.google.cloud.aiplatform.v1beta1.FeatureValue(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 5) { + result.value_ = value_; + } + if (valueCase_ == 6) { + result.value_ = value_; + } + if (valueCase_ == 7) { + if (boolArrayValueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = boolArrayValueBuilder_.build(); + } + } + if (valueCase_ == 8) { + if (doubleArrayValueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = doubleArrayValueBuilder_.build(); + } + } + if (valueCase_ == 11) { + if (int64ArrayValueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = int64ArrayValueBuilder_.build(); + } + } + if (valueCase_ == 12) { + if (stringArrayValueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = stringArrayValueBuilder_.build(); + } + } + if (valueCase_ == 13) { + result.value_ = value_; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + 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.v1beta1.FeatureValue) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureValue other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance()) + return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + switch (other.getValueCase()) { + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case STRING_VALUE: + { + valueCase_ = 6; + value_ = other.value_; + onChanged(); + break; + } + case BOOL_ARRAY_VALUE: + { + mergeBoolArrayValue(other.getBoolArrayValue()); + break; + } + case DOUBLE_ARRAY_VALUE: + { + mergeDoubleArrayValue(other.getDoubleArrayValue()); + break; + } + case INT64_ARRAY_VALUE: + { + mergeInt64ArrayValue(other.getInt64ArrayValue()); + break; + } + case STRING_ARRAY_VALUE: + { + mergeStringArrayValue(other.getStringArrayValue()); + break; + } + case BYTES_VALUE: + { + setBytesValue(other.getBytesValue()); + 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.v1beta1.FeatureValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.FeatureValue) 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; + } + + /** + * + * + *
+     * Bool type feature value.
+     * 
+ * + * bool bool_value = 1; + * + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return valueCase_ == 1; + } + /** + * + * + *
+     * Bool type feature value.
+     * 
+ * + * bool bool_value = 1; + * + * @return The boolValue. + */ + public boolean getBoolValue() { + if (valueCase_ == 1) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + * + * + *
+     * Bool type feature value.
+     * 
+ * + * bool bool_value = 1; + * + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Bool type feature value.
+     * 
+ * + * bool bool_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Double type feature value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * + * + *
+     * Double type feature value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+     * Double type feature 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; + } + /** + * + * + *
+     * Double type feature value.
+     * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Int64 feature value.
+     * 
+ * + * int64 int64_value = 5; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return valueCase_ == 5; + } + /** + * + * + *
+     * Int64 feature value.
+     * 
+ * + * int64 int64_value = 5; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (valueCase_ == 5) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+     * Int64 feature value.
+     * 
+ * + * int64 int64_value = 5; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + valueCase_ = 5; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Int64 feature value.
+     * 
+ * + * int64 int64_value = 5; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 6; + } + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 6) { + 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_ == 6) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 6) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 6) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @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_ = 6; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * String feature value.
+     * 
+ * + * string string_value = 6; + * + * @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_ = 6; + value_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BoolArray, + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder, + com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder> + boolArrayValueBuilder_; + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return Whether the boolArrayValue field is set. + */ + @java.lang.Override + public boolean hasBoolArrayValue() { + return valueCase_ == 7; + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return The boolArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArray getBoolArrayValue() { + if (boolArrayValueBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.BoolArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return boolArrayValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + public Builder setBoolArrayValue(com.google.cloud.aiplatform.v1beta1.BoolArray value) { + if (boolArrayValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + boolArrayValueBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + public Builder setBoolArrayValue( + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder builderForValue) { + if (boolArrayValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + boolArrayValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + public Builder mergeBoolArrayValue(com.google.cloud.aiplatform.v1beta1.BoolArray value) { + if (boolArrayValueBuilder_ == null) { + if (valueCase_ == 7 + && value_ != com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.BoolArray.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BoolArray) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + boolArrayValueBuilder_.mergeFrom(value); + } + boolArrayValueBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + public Builder clearBoolArrayValue() { + if (boolArrayValueBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + boolArrayValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + public com.google.cloud.aiplatform.v1beta1.BoolArray.Builder getBoolArrayValueBuilder() { + return getBoolArrayValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder getBoolArrayValueOrBuilder() { + if ((valueCase_ == 7) && (boolArrayValueBuilder_ != null)) { + return boolArrayValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.BoolArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of bool type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BoolArray, + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder, + com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder> + getBoolArrayValueFieldBuilder() { + if (boolArrayValueBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.cloud.aiplatform.v1beta1.BoolArray.getDefaultInstance(); + } + boolArrayValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BoolArray, + com.google.cloud.aiplatform.v1beta1.BoolArray.Builder, + com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.BoolArray) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged(); + ; + return boolArrayValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DoubleArray, + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder, + com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder> + doubleArrayValueBuilder_; + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return Whether the doubleArrayValue field is set. + */ + @java.lang.Override + public boolean hasDoubleArrayValue() { + return valueCase_ == 8; + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return The doubleArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArray getDoubleArrayValue() { + if (doubleArrayValueBuilder_ == null) { + if (valueCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } else { + if (valueCase_ == 8) { + return doubleArrayValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + public Builder setDoubleArrayValue(com.google.cloud.aiplatform.v1beta1.DoubleArray value) { + if (doubleArrayValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + doubleArrayValueBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + public Builder setDoubleArrayValue( + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder builderForValue) { + if (doubleArrayValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + doubleArrayValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 8; + return this; + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + public Builder mergeDoubleArrayValue(com.google.cloud.aiplatform.v1beta1.DoubleArray value) { + if (doubleArrayValueBuilder_ == null) { + if (valueCase_ == 8 + && value_ != com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.DoubleArray.newBuilder( + (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 8) { + doubleArrayValueBuilder_.mergeFrom(value); + } + doubleArrayValueBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + public Builder clearDoubleArrayValue() { + if (doubleArrayValueBuilder_ == null) { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + } + doubleArrayValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + public com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder getDoubleArrayValueBuilder() { + return getDoubleArrayValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder getDoubleArrayValueOrBuilder() { + if ((valueCase_ == 8) && (doubleArrayValueBuilder_ != null)) { + return doubleArrayValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of double type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DoubleArray, + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder, + com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder> + getDoubleArrayValueFieldBuilder() { + if (doubleArrayValueBuilder_ == null) { + if (!(valueCase_ == 8)) { + value_ = com.google.cloud.aiplatform.v1beta1.DoubleArray.getDefaultInstance(); + } + doubleArrayValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DoubleArray, + com.google.cloud.aiplatform.v1beta1.DoubleArray.Builder, + com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.DoubleArray) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 8; + onChanged(); + ; + return doubleArrayValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Int64Array, + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder, + com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder> + int64ArrayValueBuilder_; + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return Whether the int64ArrayValue field is set. + */ + @java.lang.Override + public boolean hasInt64ArrayValue() { + return valueCase_ == 11; + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return The int64ArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64Array getInt64ArrayValue() { + if (int64ArrayValueBuilder_ == null) { + if (valueCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.Int64Array) value_; + } + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } else { + if (valueCase_ == 11) { + return int64ArrayValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + public Builder setInt64ArrayValue(com.google.cloud.aiplatform.v1beta1.Int64Array value) { + if (int64ArrayValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + int64ArrayValueBuilder_.setMessage(value); + } + valueCase_ = 11; + return this; + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + public Builder setInt64ArrayValue( + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder builderForValue) { + if (int64ArrayValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + int64ArrayValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 11; + return this; + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + public Builder mergeInt64ArrayValue(com.google.cloud.aiplatform.v1beta1.Int64Array value) { + if (int64ArrayValueBuilder_ == null) { + if (valueCase_ == 11 + && value_ != com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.Int64Array.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Int64Array) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 11) { + int64ArrayValueBuilder_.mergeFrom(value); + } + int64ArrayValueBuilder_.setMessage(value); + } + valueCase_ = 11; + return this; + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + public Builder clearInt64ArrayValue() { + if (int64ArrayValueBuilder_ == null) { + if (valueCase_ == 11) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 11) { + valueCase_ = 0; + value_ = null; + } + int64ArrayValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + public com.google.cloud.aiplatform.v1beta1.Int64Array.Builder getInt64ArrayValueBuilder() { + return getInt64ArrayValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder getInt64ArrayValueOrBuilder() { + if ((valueCase_ == 11) && (int64ArrayValueBuilder_ != null)) { + return int64ArrayValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.Int64Array) value_; + } + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of int64 type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Int64Array, + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder, + com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder> + getInt64ArrayValueFieldBuilder() { + if (int64ArrayValueBuilder_ == null) { + if (!(valueCase_ == 11)) { + value_ = com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + int64ArrayValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Int64Array, + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder, + com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Int64Array) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 11; + onChanged(); + ; + return int64ArrayValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StringArray, + com.google.cloud.aiplatform.v1beta1.StringArray.Builder, + com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder> + stringArrayValueBuilder_; + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return Whether the stringArrayValue field is set. + */ + @java.lang.Override + public boolean hasStringArrayValue() { + return valueCase_ == 12; + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return The stringArrayValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArray getStringArrayValue() { + if (stringArrayValueBuilder_ == null) { + if (valueCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.StringArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } else { + if (valueCase_ == 12) { + return stringArrayValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + public Builder setStringArrayValue(com.google.cloud.aiplatform.v1beta1.StringArray value) { + if (stringArrayValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + stringArrayValueBuilder_.setMessage(value); + } + valueCase_ = 12; + return this; + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + public Builder setStringArrayValue( + com.google.cloud.aiplatform.v1beta1.StringArray.Builder builderForValue) { + if (stringArrayValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + stringArrayValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 12; + return this; + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + public Builder mergeStringArrayValue(com.google.cloud.aiplatform.v1beta1.StringArray value) { + if (stringArrayValueBuilder_ == null) { + if (valueCase_ == 12 + && value_ != com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.StringArray.newBuilder( + (com.google.cloud.aiplatform.v1beta1.StringArray) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 12) { + stringArrayValueBuilder_.mergeFrom(value); + } + stringArrayValueBuilder_.setMessage(value); + } + valueCase_ = 12; + return this; + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + public Builder clearStringArrayValue() { + if (stringArrayValueBuilder_ == null) { + if (valueCase_ == 12) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 12) { + valueCase_ = 0; + value_ = null; + } + stringArrayValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + public com.google.cloud.aiplatform.v1beta1.StringArray.Builder getStringArrayValueBuilder() { + return getStringArrayValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder getStringArrayValueOrBuilder() { + if ((valueCase_ == 12) && (stringArrayValueBuilder_ != null)) { + return stringArrayValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.StringArray) value_; + } + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of string type feature value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StringArray, + com.google.cloud.aiplatform.v1beta1.StringArray.Builder, + com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder> + getStringArrayValueFieldBuilder() { + if (stringArrayValueBuilder_ == null) { + if (!(valueCase_ == 12)) { + value_ = com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + stringArrayValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StringArray, + com.google.cloud.aiplatform.v1beta1.StringArray.Builder, + com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.StringArray) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 12; + onChanged(); + ; + return stringArrayValueBuilder_; + } + + /** + * + * + *
+     * Bytes feature value.
+     * 
+ * + * bytes bytes_value = 13; + * + * @return Whether the bytesValue field is set. + */ + public boolean hasBytesValue() { + return valueCase_ == 13; + } + /** + * + * + *
+     * Bytes feature value.
+     * 
+ * + * bytes bytes_value = 13; + * + * @return The bytesValue. + */ + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 13) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * + * + *
+     * Bytes feature value.
+     * 
+ * + * bytes bytes_value = 13; + * + * @param value The bytesValue to set. + * @return This builder for chaining. + */ + public Builder setBytesValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 13; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Bytes feature value.
+     * 
+ * + * bytes bytes_value = 13; + * + * @return This builder for chaining. + */ + public Builder clearBytesValue() { + if (valueCase_ == 13) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Output only. Metadata of feature value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @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.FeatureValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureValue) + private static final com.google.cloud.aiplatform.v1beta1.FeatureValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureValue(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.FeatureValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java new file mode 100644 index 000000000..9054b08ee --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java @@ -0,0 +1,1609 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A destination location for Feature values and format.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValueDestination} + */ +public final class FeatureValueDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureValueDestination) + FeatureValueDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureValueDestination.newBuilder() to construct. + private FeatureValueDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureValueDestination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureValueDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureValueDestination( + 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.BigQueryDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + 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_ = 1; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder subBuilder = null; + if (destinationCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.CsvDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CsvDestination) 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.class, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder.class); + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIGQUERY_DESTINATION(1), + TFRECORD_DESTINATION(2), + CSV_DESTINATION(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 1: + return BIGQUERY_DESTINATION; + case 2: + return TFRECORD_DESTINATION; + case 3: + return CSV_DESTINATION; + 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 BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + if (destinationCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (destinationCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + + public static final int TFRECORD_DESTINATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return Whether the tfrecordDestination field is set. + */ + @java.lang.Override + public boolean hasTfrecordDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return The tfrecordDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination getTfrecordDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder + getTfrecordDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + + public static final int CSV_DESTINATION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return Whether the csvDestination field is set. + */ + @java.lang.Override + public boolean hasCsvDestination() { + return destinationCase_ == 3; + } + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return The csvDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestination getCsvDestination() { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder getCsvDestinationOrBuilder() { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.CsvDestination.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 (destinationCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); + } + if (destinationCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_); + } + if (destinationCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); + } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_); + } + if (destinationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.CsvDestination) 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.FeatureValueDestination)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination other = + (com.google.cloud.aiplatform.v1beta1.FeatureValueDestination) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + break; + case 2: + if (!getTfrecordDestination().equals(other.getTfrecordDestination())) return false; + break; + case 3: + if (!getCsvDestination().equals(other.getCsvDestination())) 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 (destinationCase_) { + case 1: + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + break; + case 2: + hash = (37 * hash) + TFRECORD_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getTfrecordDestination().hashCode(); + break; + case 3: + hash = (37 * hash) + CSV_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getCsvDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination 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.FeatureValueDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination 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.FeatureValueDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination 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.FeatureValueDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination 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.FeatureValueDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination 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.FeatureValueDestination 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.FeatureValueDestination 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.FeatureValueDestination 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 destination location for Feature values and format.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValueDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureValueDestination) + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.class, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.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(); + destinationCase_ = 0; + destination_ = 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_FeatureValueDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination build() { + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination result = + new com.google.cloud.aiplatform.v1beta1.FeatureValueDestination(this); + if (destinationCase_ == 1) { + if (bigqueryDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } + if (destinationCase_ == 2) { + if (tfrecordDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = tfrecordDestinationBuilder_.build(); + } + } + if (destinationCase_ == 3) { + if (csvDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = csvDestinationBuilder_.build(); + } + } + 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.FeatureValueDestination) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureValueDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureValueDestination other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance()) + return this; + switch (other.getDestinationCase()) { + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case TFRECORD_DESTINATION: + { + mergeTfrecordDestination(other.getTfrecordDestination()); + break; + } + case CSV_DESTINATION: + { + mergeCsvDestination(other.getCsvDestination()); + 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.FeatureValueDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeatureValueDestination) 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.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 1) { + return bigqueryDestinationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + public Builder mergeBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 1 + && 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_ == 1) { + bigqueryDestinationBuilder_.mergeFrom(value); + } + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + } + bigqueryDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if ((destinationCase_ == 1) && (bigqueryDestinationBuilder_ != null)) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in BigQuery format.
+     * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+     * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + if (!(destinationCase_ == 1)) { + destination_ = + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + bigqueryDestinationBuilder_ = + 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_ = 1; + onChanged(); + ; + return bigqueryDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TFRecordDestination, + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder, + com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder> + tfrecordDestinationBuilder_; + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return Whether the tfrecordDestination field is set. + */ + @java.lang.Override + public boolean hasTfrecordDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return The tfrecordDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination getTfrecordDestination() { + if (tfrecordDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return tfrecordDestinationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + public Builder setTfrecordDestination( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination value) { + if (tfrecordDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + tfrecordDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + public Builder setTfrecordDestination( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder builderForValue) { + if (tfrecordDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + tfrecordDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + public Builder mergeTfrecordDestination( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination value) { + if (tfrecordDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + tfrecordDestinationBuilder_.mergeFrom(value); + } + tfrecordDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + public Builder clearTfrecordDestination() { + if (tfrecordDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + tfrecordDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder + getTfrecordDestinationBuilder() { + return getTfrecordDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder + getTfrecordDestinationOrBuilder() { + if ((destinationCase_ == 2) && (tfrecordDestinationBuilder_ != null)) { + return tfrecordDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in TFRecord format.
+     * Below are the mapping from Feature value type
+     * in Featurestore to Feature value type in TFRecord:
+     *     Value type in Featurestore                 | Value type in TFRecord
+     *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+     *     INT64, INT64_ARRAY                         | INT64_LIST
+     *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+     *     true -> byte_string("true"), false -> byte_string("false")
+     *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TFRecordDestination, + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder, + com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder> + getTfrecordDestinationFieldBuilder() { + if (tfrecordDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + tfrecordDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TFRecordDestination, + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder, + com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + ; + return tfrecordDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvDestination, + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder, + com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder> + csvDestinationBuilder_; + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return Whether the csvDestination field is set. + */ + @java.lang.Override + public boolean hasCsvDestination() { + return destinationCase_ == 3; + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return The csvDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestination getCsvDestination() { + if (csvDestinationBuilder_ == null) { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 3) { + return csvDestinationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + public Builder setCsvDestination(com.google.cloud.aiplatform.v1beta1.CsvDestination value) { + if (csvDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + csvDestinationBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + public Builder setCsvDestination( + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder builderForValue) { + if (csvDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + csvDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + public Builder mergeCsvDestination(com.google.cloud.aiplatform.v1beta1.CsvDestination value) { + if (csvDestinationBuilder_ == null) { + if (destinationCase_ == 3 + && destination_ + != com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1beta1.CsvDestination.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 3) { + csvDestinationBuilder_.mergeFrom(value); + } + csvDestinationBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + public Builder clearCsvDestination() { + if (csvDestinationBuilder_ == null) { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + } + csvDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + public com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder getCsvDestinationBuilder() { + return getCsvDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder + getCsvDestinationOrBuilder() { + if ((destinationCase_ == 3) && (csvDestinationBuilder_ != null)) { + return csvDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output in CSV format. Array Feature value types are not allowed in CSV
+     * format.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvDestination, + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder, + com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder> + getCsvDestinationFieldBuilder() { + if (csvDestinationBuilder_ == null) { + if (!(destinationCase_ == 3)) { + destination_ = com.google.cloud.aiplatform.v1beta1.CsvDestination.getDefaultInstance(); + } + csvDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvDestination, + com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder, + com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CsvDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 3; + onChanged(); + ; + return csvDestinationBuilder_; + } + + @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.FeatureValueDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureValueDestination) + private static final com.google.cloud.aiplatform.v1beta1.FeatureValueDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureValueDestination(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureValueDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureValueDestination(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.FeatureValueDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestinationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestinationOrBuilder.java new file mode 100644 index 000000000..6b8f6da82 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestinationOrBuilder.java @@ -0,0 +1,168 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureValueDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureValueDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + * + * @return The bigqueryDestination. + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
+   * Output in BigQuery format.
+   * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in
+   * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1; + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); + + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return Whether the tfrecordDestination field is set. + */ + boolean hasTfrecordDestination(); + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + * + * @return The tfrecordDestination. + */ + com.google.cloud.aiplatform.v1beta1.TFRecordDestination getTfrecordDestination(); + /** + * + * + *
+   * Output in TFRecord format.
+   * Below are the mapping from Feature value type
+   * in Featurestore to Feature value type in TFRecord:
+   *     Value type in Featurestore                 | Value type in TFRecord
+   *     DOUBLE, DOUBLE_ARRAY                       | FLOAT_LIST
+   *     INT64, INT64_ARRAY                         | INT64_LIST
+   *     STRING, STRING_ARRAY, BYTES                | BYTES_LIST
+   *     true -> byte_string("true"), false -> byte_string("false")
+   *     BOOL, BOOL_ARRAY (true, false)             | BYTES_LIST
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TFRecordDestination tfrecord_destination = 2; + */ + com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder + getTfrecordDestinationOrBuilder(); + + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return Whether the csvDestination field is set. + */ + boolean hasCsvDestination(); + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + * + * @return The csvDestination. + */ + com.google.cloud.aiplatform.v1beta1.CsvDestination getCsvDestination(); + /** + * + * + *
+   * Output in CSV format. Array Feature value types are not allowed in CSV
+   * format.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvDestination csv_destination = 3; + */ + com.google.cloud.aiplatform.v1beta1.CsvDestinationOrBuilder getCsvDestinationOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.DestinationCase + getDestinationCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java new file mode 100644 index 000000000..3503439e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java @@ -0,0 +1,953 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Container for list of values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValueList} + */ +public final class FeatureValueList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureValueList) + FeatureValueListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureValueList.newBuilder() to construct. + private FeatureValueList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureValueList() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureValueList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureValueList( + 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)) { + values_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValue.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)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValueList.class, + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValuesOrBuilder(int index) { + return values_.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 < values_.size(); i++) { + output.writeMessage(1, values_.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 < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.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.FeatureValueList)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureValueList other = + (com.google.cloud.aiplatform.v1beta1.FeatureValueList) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList 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.FeatureValueList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList 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.FeatureValueList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList 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.FeatureValueList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList 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.FeatureValueList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList 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.FeatureValueList 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.FeatureValueList 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.FeatureValueList 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; + } + /** + * + * + *
+   * Container for list of values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValueList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureValueList) + com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureValueList.class, + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeatureValueList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueList getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueList build() { + com.google.cloud.aiplatform.v1beta1.FeatureValueList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueList buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureValueList result = + new com.google.cloud.aiplatform.v1beta1.FeatureValueList(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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.FeatureValueList) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureValueList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureValueList other) { + if (other == com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance()) + return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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.FeatureValueList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeatureValueList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = + new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder> + valuesBuilder_; + + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder setValues(int index, com.google.cloud.aiplatform.v1beta1.FeatureValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder setValues( + int index, com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder addValues(com.google.cloud.aiplatform.v1beta1.FeatureValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder addValues(int index, com.google.cloud.aiplatform.v1beta1.FeatureValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder addValues( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder addValues( + int index, com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValuesOrBuilder(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance()); + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance()); + } + /** + * + * + *
+     * A list of feature values. All of them should be the same data type.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @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.FeatureValueList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureValueList) + private static final com.google.cloud.aiplatform.v1beta1.FeatureValueList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureValueList(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureValueList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureValueList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureValueList(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.FeatureValueList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueListOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueListOrBuilder.java new file mode 100644 index 000000000..8e4a94b61 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueListOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureValueListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureValueList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + java.util.List getValuesList(); + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureValue getValues(int index); + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + int getValuesCount(); + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * + * + *
+   * A list of feature values. All of them should be the same data type.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureValue values = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValuesOrBuilder(int index); +} 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 new file mode 100644 index 000000000..21aaaacb5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueOrBuilder.java @@ -0,0 +1,345 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeatureValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Bool type feature value.
+   * 
+ * + * bool bool_value = 1; + * + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + /** + * + * + *
+   * Bool type feature value.
+   * 
+ * + * bool bool_value = 1; + * + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + * + * + *
+   * Double type feature value.
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+   * Double type feature value.
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
+   * Int64 feature value.
+   * 
+ * + * int64 int64_value = 5; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+   * Int64 feature value.
+   * 
+ * + * int64 int64_value = 5; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * + * + *
+   * String feature value.
+   * 
+ * + * string string_value = 6; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return Whether the boolArrayValue field is set. + */ + boolean hasBoolArrayValue(); + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + * + * @return The boolArrayValue. + */ + com.google.cloud.aiplatform.v1beta1.BoolArray getBoolArrayValue(); + /** + * + * + *
+   * A list of bool type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BoolArray bool_array_value = 7; + */ + com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder getBoolArrayValueOrBuilder(); + + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return Whether the doubleArrayValue field is set. + */ + boolean hasDoubleArrayValue(); + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + * + * @return The doubleArrayValue. + */ + com.google.cloud.aiplatform.v1beta1.DoubleArray getDoubleArrayValue(); + /** + * + * + *
+   * A list of double type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DoubleArray double_array_value = 8; + */ + com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder getDoubleArrayValueOrBuilder(); + + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return Whether the int64ArrayValue field is set. + */ + boolean hasInt64ArrayValue(); + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + * + * @return The int64ArrayValue. + */ + com.google.cloud.aiplatform.v1beta1.Int64Array getInt64ArrayValue(); + /** + * + * + *
+   * A list of int64 type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Int64Array int64_array_value = 11; + */ + com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder getInt64ArrayValueOrBuilder(); + + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return Whether the stringArrayValue field is set. + */ + boolean hasStringArrayValue(); + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + * + * @return The stringArrayValue. + */ + com.google.cloud.aiplatform.v1beta1.StringArray getStringArrayValue(); + /** + * + * + *
+   * A list of string type feature value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StringArray string_array_value = 12; + */ + com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder getStringArrayValueOrBuilder(); + + /** + * + * + *
+   * Bytes feature value.
+   * 
+ * + * bytes bytes_value = 13; + * + * @return Whether the bytesValue field is set. + */ + boolean hasBytesValue(); + /** + * + * + *
+   * Bytes feature value.
+   * 
+ * + * bytes bytes_value = 13; + * + * @return The bytesValue. + */ + com.google.protobuf.ByteString getBytesValue(); + + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata(); + /** + * + * + *
+   * Output only. Metadata of feature value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.FeatureValue.ValueCase getValueCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java new file mode 100644 index 000000000..b037e3461 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java @@ -0,0 +1,3062 @@ +/* + * 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/featurestore.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Featurestore configuration information on how the Featurestore is configured.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Featurestore} + */ +public final class Featurestore extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Featurestore) + FeaturestoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use Featurestore.newBuilder() to construct. + private Featurestore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Featurestore() { + name_ = ""; + etag_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Featurestore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Featurestore( + 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 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 (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 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 50: + { + 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 58: + { + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder + subBuilder = null; + if (onlineServingConfig_ != null) { + subBuilder = onlineServingConfig_.toBuilder(); + } + onlineServingConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(onlineServingConfig_); + onlineServingConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + 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.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Featurestore.class, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder.class); + } + + /** + * + * + *
+   * Possible states a Featurestore can have.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Featurestore.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * State when the Featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the Featurestore. The
+     * Featurestore is usable in this state.
+     * 
+ * + * STABLE = 1; + */ + STABLE(1), + /** + * + * + *
+     * State when the Featurestore configuration is being updated and the fields
+     * reflect the updated configuration of the Featurestore, not the current
+     * one. For example, `online_serving_config.fixed_node_count` can take
+     * minutes to update. While the update is in progress, the Featurestore
+     * will be in the UPDATING state and the value of `fixed_node_count` will be
+     * the updated value. Until the update completes, the actual number of nodes
+     * can still be the original value of `fixed_node_count`. The Featurestore
+     * is still usable in this state.
+     * 
+ * + * UPDATING = 2; + */ + UPDATING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * State when the Featurestore configuration is not being updated and the
+     * fields reflect the current configuration of the Featurestore. The
+     * Featurestore is usable in this state.
+     * 
+ * + * STABLE = 1; + */ + public static final int STABLE_VALUE = 1; + /** + * + * + *
+     * State when the Featurestore configuration is being updated and the fields
+     * reflect the updated configuration of the Featurestore, not the current
+     * one. For example, `online_serving_config.fixed_node_count` can take
+     * minutes to update. While the update is in progress, the Featurestore
+     * will be in the UPDATING state and the value of `fixed_node_count` will be
+     * the updated value. Until the update completes, the actual number of nodes
+     * can still be the original value of `fixed_node_count`. The Featurestore
+     * is still usable in this state.
+     * 
+ * + * UPDATING = 2; + */ + public static final int UPDATING_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 STABLE; + case 2: + return UPDATING; + 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.v1beta1.Featurestore.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.v1beta1.Featurestore.State) + } + + public interface OnlineServingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The number of nodes for each cluster. The number of nodes will not
+     * scale automatically but can be scaled manually by providing different
+     * values when updating.
+     * 
+ * + * int32 fixed_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fixedNodeCount. + */ + int getFixedNodeCount(); + } + /** + * + * + *
+   * OnlineServingConfig specifies the details for provisioning online serving
+   * resources.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} + */ + public static final class OnlineServingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + OnlineServingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OnlineServingConfig.newBuilder() to construct. + private OnlineServingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OnlineServingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OnlineServingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OnlineServingConfig( + 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 16: + { + fixedNodeCount_ = 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.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.class, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder.class); + } + + public static final int FIXED_NODE_COUNT_FIELD_NUMBER = 2; + private int fixedNodeCount_; + /** + * + * + *
+     * Required. The number of nodes for each cluster. The number of nodes will not
+     * scale automatically but can be scaled manually by providing different
+     * values when updating.
+     * 
+ * + * int32 fixed_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fixedNodeCount. + */ + @java.lang.Override + public int getFixedNodeCount() { + return fixedNodeCount_; + } + + 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 (fixedNodeCount_ != 0) { + output.writeInt32(2, fixedNodeCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fixedNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fixedNodeCount_); + } + 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.Featurestore.OnlineServingConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig other = + (com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) obj; + + if (getFixedNodeCount() != other.getFixedNodeCount()) 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) + FIXED_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFixedNodeCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + 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.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig 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.Featurestore.OnlineServingConfig 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; + } + /** + * + * + *
+     * OnlineServingConfig specifies the details for provisioning online serving
+     * resources.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.class, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.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(); + fixedNodeCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig build() { + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig result = + new com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(this); + result.fixedNodeCount_ = fixedNodeCount_; + 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.Featurestore.OnlineServingConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + .getDefaultInstance()) return this; + if (other.getFixedNodeCount() != 0) { + setFixedNodeCount(other.getFixedNodeCount()); + } + 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.Featurestore.OnlineServingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int fixedNodeCount_; + /** + * + * + *
+       * Required. The number of nodes for each cluster. The number of nodes will not
+       * scale automatically but can be scaled manually by providing different
+       * values when updating.
+       * 
+ * + * int32 fixed_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fixedNodeCount. + */ + @java.lang.Override + public int getFixedNodeCount() { + return fixedNodeCount_; + } + /** + * + * + *
+       * Required. The number of nodes for each cluster. The number of nodes will not
+       * scale automatically but can be scaled manually by providing different
+       * values when updating.
+       * 
+ * + * int32 fixed_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fixedNodeCount to set. + * @return This builder for chaining. + */ + public Builder setFixedNodeCount(int value) { + + fixedNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The number of nodes for each cluster. The number of nodes will not
+       * scale automatically but can be scaled manually by providing different
+       * values when updating.
+       * 
+ * + * int32 fixed_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFixedNodeCount() { + + fixedNodeCount_ = 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.Featurestore.OnlineServingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + private static final com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnlineServingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnlineServingConfig(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.Featurestore.OnlineServingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Name of the Featurestore. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * 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. Name of the Featurestore. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was created.
+   * 
+ * + * .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. Timestamp when this Featurestore was created.
+   * 
+ * + * .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. Timestamp when this Featurestore was created.
+   * 
+ * + * .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 UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int ETAG_FIELD_NUMBER = 5; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5 [(.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; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 ONLINE_SERVING_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig onlineServingConfig_; + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineServingConfig field is set. + */ + @java.lang.Override + public boolean hasOnlineServingConfig() { + return onlineServingConfig_ != null; + } + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineServingConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + getOnlineServingConfig() { + return onlineServingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.getDefaultInstance() + : onlineServingConfig_; + } + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder + getOnlineServingConfigOrBuilder() { + return getOnlineServingConfig(); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_; + /** + * + * + *
+   * Output only. State of the featurestore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State 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. State of the featurestore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Featurestore.State result = + com.google.cloud.aiplatform.v1beta1.Featurestore.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.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 (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (onlineServingConfig_ != null) { + output.writeMessage(7, getOnlineServingConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, 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 (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, labels__); + } + if (onlineServingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOnlineServingConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, 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.v1beta1.Featurestore)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Featurestore other = + (com.google.cloud.aiplatform.v1beta1.Featurestore) obj; + + if (!getName().equals(other.getName())) 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 (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasOnlineServingConfig() != other.hasOnlineServingConfig()) return false; + if (hasOnlineServingConfig()) { + if (!getOnlineServingConfig().equals(other.getOnlineServingConfig())) 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(); + 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasOnlineServingConfig()) { + hash = (37 * hash) + ONLINE_SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOnlineServingConfig().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.v1beta1.Featurestore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore 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.Featurestore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore 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.Featurestore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore 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.Featurestore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore 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.Featurestore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore 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.Featurestore 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.Featurestore 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.Featurestore 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; + } + /** + * + * + *
+   * Featurestore configuration information on how the Featurestore is configured.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Featurestore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Featurestore) + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Featurestore.class, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Featurestore.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_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + etag_ = ""; + + internalGetMutableLabels().clear(); + if (onlineServingConfigBuilder_ == null) { + onlineServingConfig_ = null; + } else { + onlineServingConfig_ = null; + onlineServingConfigBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore build() { + com.google.cloud.aiplatform.v1beta1.Featurestore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore buildPartial() { + com.google.cloud.aiplatform.v1beta1.Featurestore result = + new com.google.cloud.aiplatform.v1beta1.Featurestore(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.etag_ = etag_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (onlineServingConfigBuilder_ == null) { + result.onlineServingConfig_ = onlineServingConfig_; + } else { + result.onlineServingConfig_ = onlineServingConfigBuilder_.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.v1beta1.Featurestore) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Featurestore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Featurestore other) { + if (other == com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasOnlineServingConfig()) { + mergeOnlineServingConfig(other.getOnlineServingConfig()); + } + 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.v1beta1.Featurestore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Featurestore) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of the Featurestore. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * 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. Name of the Featurestore. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * 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. Name of the Featurestore. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * 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. Name of the Featurestore. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * 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. Name of the Featurestore. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * 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 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 Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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. Timestamp when this Featurestore was created.
+     * 
+ * + * + * .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 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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 Featurestore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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 java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5 [(.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. Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5 [(.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. Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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(); + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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; + } + /** + * + * + *
+     * Optional. The labels with user-defined metadata to organize your Featurestore.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one Featurestore(System
+     * labels are excluded)."
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + onlineServingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder> + onlineServingConfigBuilder_; + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineServingConfig field is set. + */ + public boolean hasOnlineServingConfig() { + return onlineServingConfigBuilder_ != null || onlineServingConfig_ != null; + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineServingConfig. + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + getOnlineServingConfig() { + if (onlineServingConfigBuilder_ == null) { + return onlineServingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + .getDefaultInstance() + : onlineServingConfig_; + } else { + return onlineServingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineServingConfig( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig value) { + if (onlineServingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onlineServingConfig_ = value; + onChanged(); + } else { + onlineServingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineServingConfig( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder + builderForValue) { + if (onlineServingConfigBuilder_ == null) { + onlineServingConfig_ = builderForValue.build(); + onChanged(); + } else { + onlineServingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOnlineServingConfig( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig value) { + if (onlineServingConfigBuilder_ == null) { + if (onlineServingConfig_ != null) { + onlineServingConfig_ = + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.newBuilder( + onlineServingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + onlineServingConfig_ = value; + } + onChanged(); + } else { + onlineServingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOnlineServingConfig() { + if (onlineServingConfigBuilder_ == null) { + onlineServingConfig_ = null; + onChanged(); + } else { + onlineServingConfig_ = null; + onlineServingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder + getOnlineServingConfigBuilder() { + + onChanged(); + return getOnlineServingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder + getOnlineServingConfigOrBuilder() { + if (onlineServingConfigBuilder_ != null) { + return onlineServingConfigBuilder_.getMessageOrBuilder(); + } else { + return onlineServingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + .getDefaultInstance() + : onlineServingConfig_; + } + } + /** + * + * + *
+     * Required. Config for online serving resources.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder> + getOnlineServingConfigFieldBuilder() { + if (onlineServingConfigBuilder_ == null) { + onlineServingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder>( + getOnlineServingConfig(), getParentForChildren(), isClean()); + onlineServingConfig_ = null; + } + return onlineServingConfigBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the featurestore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State 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. State of the featurestore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State 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. State of the featurestore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Featurestore.State result = + com.google.cloud.aiplatform.v1beta1.Featurestore.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the featurestore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State 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.v1beta1.Featurestore.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the featurestore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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.v1beta1.Featurestore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Featurestore) + private static final com.google.cloud.aiplatform.v1beta1.Featurestore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Featurestore(); + } + + public static com.google.cloud.aiplatform.v1beta1.Featurestore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Featurestore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Featurestore(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.Featurestore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..e19facd76 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java @@ -0,0 +1,1760 @@ +/* + * 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/featurestore_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration of how features in Featurestore are monitored.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} + */ +public final class FeaturestoreMonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + FeaturestoreMonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeaturestoreMonitoringConfig.newBuilder() to construct. + private FeaturestoreMonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeaturestoreMonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeaturestoreMonitoringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeaturestoreMonitoringConfig( + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder + subBuilder = null; + if (snapshotAnalysis_ != null) { + subBuilder = snapshotAnalysis_.toBuilder(); + } + snapshotAnalysis_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysis.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotAnalysis_); + snapshotAnalysis_ = 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.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.class, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder.class); + } + + public interface SnapshotAnalysisOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The monitoring schedule for snapshot analysis.
+     * For EntityType-level config:
+     *   unset / disabled = true indicates disabled by
+     *   default for Features under it; otherwise by default enable snapshot
+     *   analysis monitoring with monitoring_interval for Features under it.
+     * Feature-level config:
+     *   disabled = true indicates disabled regardless of the EntityType-level
+     *   config; unset monitoring_interval indicates going with EntityType-level
+     *   config; otherwise run snapshot analysis monitoring with
+     *   monitoring_interval regardless of the EntityType-level config.
+     * Explicitly Disable the snapshot analysis based monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return Whether the monitoringInterval field is set. + */ + boolean hasMonitoringInterval(); + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return The monitoringInterval. + */ + com.google.protobuf.Duration getMonitoringInterval(); + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder(); + } + /** + * + * + *
+   * Configuration of the Featurestore's Snapshot Analysis Based Monitoring.
+   * This type of analysis generates statistics for each Feature based on a
+   * snapshot of the latest feature value of each entities every
+   * monitoring_interval.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} + */ + public static final class SnapshotAnalysis extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + SnapshotAnalysisOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapshotAnalysis.newBuilder() to construct. + private SnapshotAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SnapshotAnalysis() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SnapshotAnalysis(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SnapshotAnalysis( + 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: + { + disabled_ = input.readBool(); + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (monitoringInterval_ != null) { + subBuilder = monitoringInterval_.toBuilder(); + } + monitoringInterval_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitoringInterval_); + monitoringInterval_ = 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.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .class, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+     * The monitoring schedule for snapshot analysis.
+     * For EntityType-level config:
+     *   unset / disabled = true indicates disabled by
+     *   default for Features under it; otherwise by default enable snapshot
+     *   analysis monitoring with monitoring_interval for Features under it.
+     * Feature-level config:
+     *   disabled = true indicates disabled regardless of the EntityType-level
+     *   config; unset monitoring_interval indicates going with EntityType-level
+     *   config; otherwise run snapshot analysis monitoring with
+     *   monitoring_interval regardless of the EntityType-level config.
+     * Explicitly Disable the snapshot analysis based monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int MONITORING_INTERVAL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration monitoringInterval_; + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return Whether the monitoringInterval field is set. + */ + @java.lang.Override + public boolean hasMonitoringInterval() { + return monitoringInterval_ != null; + } + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return The monitoringInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getMonitoringInterval() { + return monitoringInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitoringInterval_; + } + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value is rolled up to full day.
+     * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { + return getMonitoringInterval(); + } + + 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 (disabled_ != false) { + output.writeBool(1, disabled_); + } + if (monitoringInterval_ != null) { + output.writeMessage(2, getMonitoringInterval()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + if (monitoringInterval_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMonitoringInterval()); + } + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis other = + (com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (hasMonitoringInterval() != other.hasMonitoringInterval()) return false; + if (hasMonitoringInterval()) { + if (!getMonitoringInterval().equals(other.getMonitoringInterval())) 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) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + if (hasMonitoringInterval()) { + hash = (37 * hash) + MONITORING_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringInterval().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + 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; + } + /** + * + * + *
+     * Configuration of the Featurestore's Snapshot Analysis Based Monitoring.
+     * This type of analysis generates statistics for each Feature based on a
+     * snapshot of the latest feature value of each entities every
+     * monitoring_interval.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .class, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.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(); + disabled_ = false; + + if (monitoringIntervalBuilder_ == null) { + monitoringInterval_ = null; + } else { + monitoringInterval_ = null; + monitoringIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + build() { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis result = + new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis( + this); + result.disabled_ = disabled_; + if (monitoringIntervalBuilder_ == null) { + result.monitoringInterval_ = monitoringInterval_; + } else { + result.monitoringInterval_ = monitoringIntervalBuilder_.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.FeaturestoreMonitoringConfig.SnapshotAnalysis) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis other) { + if (other + == com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.hasMonitoringInterval()) { + mergeMonitoringInterval(other.getMonitoringInterval()); + } + 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.FeaturestoreMonitoringConfig.SnapshotAnalysis + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+       * The monitoring schedule for snapshot analysis.
+       * For EntityType-level config:
+       *   unset / disabled = true indicates disabled by
+       *   default for Features under it; otherwise by default enable snapshot
+       *   analysis monitoring with monitoring_interval for Features under it.
+       * Feature-level config:
+       *   disabled = true indicates disabled regardless of the EntityType-level
+       *   config; unset monitoring_interval indicates going with EntityType-level
+       *   config; otherwise run snapshot analysis monitoring with
+       *   monitoring_interval regardless of the EntityType-level config.
+       * Explicitly Disable the snapshot analysis based monitoring.
+       * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+       * The monitoring schedule for snapshot analysis.
+       * For EntityType-level config:
+       *   unset / disabled = true indicates disabled by
+       *   default for Features under it; otherwise by default enable snapshot
+       *   analysis monitoring with monitoring_interval for Features under it.
+       * Feature-level config:
+       *   disabled = true indicates disabled regardless of the EntityType-level
+       *   config; unset monitoring_interval indicates going with EntityType-level
+       *   config; otherwise run snapshot analysis monitoring with
+       *   monitoring_interval regardless of the EntityType-level config.
+       * Explicitly Disable the snapshot analysis based monitoring.
+       * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The monitoring schedule for snapshot analysis.
+       * For EntityType-level config:
+       *   unset / disabled = true indicates disabled by
+       *   default for Features under it; otherwise by default enable snapshot
+       *   analysis monitoring with monitoring_interval for Features under it.
+       * Feature-level config:
+       *   disabled = true indicates disabled regardless of the EntityType-level
+       *   config; unset monitoring_interval indicates going with EntityType-level
+       *   config; otherwise run snapshot analysis monitoring with
+       *   monitoring_interval regardless of the EntityType-level config.
+       * Explicitly Disable the snapshot analysis based monitoring.
+       * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration monitoringInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + monitoringIntervalBuilder_; + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return Whether the monitoringInterval field is set. + */ + public boolean hasMonitoringInterval() { + return monitoringIntervalBuilder_ != null || monitoringInterval_ != null; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + * + * @return The monitoringInterval. + */ + public com.google.protobuf.Duration getMonitoringInterval() { + if (monitoringIntervalBuilder_ == null) { + return monitoringInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitoringInterval_; + } else { + return monitoringIntervalBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public Builder setMonitoringInterval(com.google.protobuf.Duration value) { + if (monitoringIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringInterval_ = value; + onChanged(); + } else { + monitoringIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public Builder setMonitoringInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (monitoringIntervalBuilder_ == null) { + monitoringInterval_ = builderForValue.build(); + onChanged(); + } else { + monitoringIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public Builder mergeMonitoringInterval(com.google.protobuf.Duration value) { + if (monitoringIntervalBuilder_ == null) { + if (monitoringInterval_ != null) { + monitoringInterval_ = + com.google.protobuf.Duration.newBuilder(monitoringInterval_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringInterval_ = value; + } + onChanged(); + } else { + monitoringIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public Builder clearMonitoringInterval() { + if (monitoringIntervalBuilder_ == null) { + monitoringInterval_ = null; + onChanged(); + } else { + monitoringInterval_ = null; + monitoringIntervalBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public com.google.protobuf.Duration.Builder getMonitoringIntervalBuilder() { + + onChanged(); + return getMonitoringIntervalFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { + if (monitoringIntervalBuilder_ != null) { + return monitoringIntervalBuilder_.getMessageOrBuilder(); + } else { + return monitoringInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitoringInterval_; + } + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value is rolled up to full day.
+       * 
+ * + * .google.protobuf.Duration monitoring_interval = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMonitoringIntervalFieldBuilder() { + if (monitoringIntervalBuilder_ == null) { + monitoringIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMonitoringInterval(), getParentForChildren(), isClean()); + monitoringInterval_ = null; + } + return monitoringIntervalBuilder_; + } + + @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.FeaturestoreMonitoringConfig.SnapshotAnalysis) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) + private static final com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysis + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotAnalysis(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.FeaturestoreMonitoringConfig.SnapshotAnalysis + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SNAPSHOT_ANALYSIS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + snapshotAnalysis_; + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return Whether the snapshotAnalysis field is set. + */ + @java.lang.Override + public boolean hasSnapshotAnalysis() { + return snapshotAnalysis_ != null; + } + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return The snapshotAnalysis. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + getSnapshotAnalysis() { + return snapshotAnalysis_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance() + : snapshotAnalysis_; + } + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysisOrBuilder + getSnapshotAnalysisOrBuilder() { + return getSnapshotAnalysis(); + } + + 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 (snapshotAnalysis_ != null) { + output.writeMessage(1, getSnapshotAnalysis()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (snapshotAnalysis_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotAnalysis()); + } + 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.FeaturestoreMonitoringConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig other = + (com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) obj; + + if (hasSnapshotAnalysis() != other.hasSnapshotAnalysis()) return false; + if (hasSnapshotAnalysis()) { + if (!getSnapshotAnalysis().equals(other.getSnapshotAnalysis())) 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 (hasSnapshotAnalysis()) { + hash = (37 * hash) + SNAPSHOT_ANALYSIS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotAnalysis().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig 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; + } + /** + * + * + *
+   * Configuration of how features in Featurestore are monitored.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.class, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.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 (snapshotAnalysisBuilder_ == null) { + snapshotAnalysis_ = null; + } else { + snapshotAnalysis_ = null; + snapshotAnalysisBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig build() { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig result = + new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(this); + if (snapshotAnalysisBuilder_ == null) { + result.snapshotAnalysis_ = snapshotAnalysis_; + } else { + result.snapshotAnalysis_ = snapshotAnalysisBuilder_.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.FeaturestoreMonitoringConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance()) + return this; + if (other.hasSnapshotAnalysis()) { + mergeSnapshotAnalysis(other.getSnapshotAnalysis()); + } + 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.FeaturestoreMonitoringConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + snapshotAnalysis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysisOrBuilder> + snapshotAnalysisBuilder_; + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return Whether the snapshotAnalysis field is set. + */ + public boolean hasSnapshotAnalysis() { + return snapshotAnalysisBuilder_ != null || snapshotAnalysis_ != null; + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return The snapshotAnalysis. + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + getSnapshotAnalysis() { + if (snapshotAnalysisBuilder_ == null) { + return snapshotAnalysis_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance() + : snapshotAnalysis_; + } else { + return snapshotAnalysisBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public Builder setSnapshotAnalysis( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis value) { + if (snapshotAnalysisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotAnalysis_ = value; + onChanged(); + } else { + snapshotAnalysisBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public Builder setSnapshotAnalysis( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.Builder + builderForValue) { + if (snapshotAnalysisBuilder_ == null) { + snapshotAnalysis_ = builderForValue.build(); + onChanged(); + } else { + snapshotAnalysisBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public Builder mergeSnapshotAnalysis( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis value) { + if (snapshotAnalysisBuilder_ == null) { + if (snapshotAnalysis_ != null) { + snapshotAnalysis_ = + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .newBuilder(snapshotAnalysis_) + .mergeFrom(value) + .buildPartial(); + } else { + snapshotAnalysis_ = value; + } + onChanged(); + } else { + snapshotAnalysisBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public Builder clearSnapshotAnalysis() { + if (snapshotAnalysisBuilder_ == null) { + snapshotAnalysis_ = null; + onChanged(); + } else { + snapshotAnalysis_ = null; + snapshotAnalysisBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.Builder + getSnapshotAnalysisBuilder() { + + onChanged(); + return getSnapshotAnalysisFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysisOrBuilder + getSnapshotAnalysisOrBuilder() { + if (snapshotAnalysisBuilder_ != null) { + return snapshotAnalysisBuilder_.getMessageOrBuilder(); + } else { + return snapshotAnalysis_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance() + : snapshotAnalysis_; + } + } + /** + * + * + *
+     * The config for Snapshot Analysis Based Feature Monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysisOrBuilder> + getSnapshotAnalysisFieldBuilder() { + if (snapshotAnalysisBuilder_ == null) { + snapshotAnalysisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .SnapshotAnalysisOrBuilder>( + getSnapshotAnalysis(), getParentForChildren(), isClean()); + snapshotAnalysis_ = null; + } + return snapshotAnalysisBuilder_; + } + + @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.FeaturestoreMonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + private static final com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeaturestoreMonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeaturestoreMonitoringConfig(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.FeaturestoreMonitoringConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java new file mode 100644 index 000000000..0c604320d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * 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/featurestore_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeaturestoreMonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return Whether the snapshotAnalysis field is set. + */ + boolean hasSnapshotAnalysis(); + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + * + * @return The snapshotAnalysis. + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + getSnapshotAnalysis(); + /** + * + * + *
+   * The config for Snapshot Analysis Based Feature Monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysisOrBuilder + getSnapshotAnalysisOrBuilder(); +} 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 new file mode 100644 index 000000000..93b3aa5ef --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java @@ -0,0 +1,92 @@ +/* + * 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/featurestore_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeaturestoreMonitoringProto { + private FeaturestoreMonitoringProto() {} + + 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_v1beta1_FeaturestoreMonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_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/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" + + "hot_analysis\030\001 \001(\0132N.google.cloud.aiplat" + + "form.v1beta1.FeaturestoreMonitoringConfi" + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor, + new java.lang.String[] { + "SnapshotAnalysis", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor, + new java.lang.String[] { + "Disabled", "MonitoringInterval", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java new file mode 100644 index 000000000..62d793add --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java @@ -0,0 +1,227 @@ +/* + * 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 FeaturestoreName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FEATURESTORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/featurestores/{featurestore}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String featurestore; + + @Deprecated + protected FeaturestoreName() { + project = null; + location = null; + featurestore = null; + } + + private FeaturestoreName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + featurestore = Preconditions.checkNotNull(builder.getFeaturestore()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FeaturestoreName of(String project, String location, String featurestore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .build(); + } + + public static String format(String project, String location, String featurestore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeaturestore(featurestore) + .build() + .toString(); + } + + public static FeaturestoreName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FEATURESTORE.validatedMatch( + formattedString, "FeaturestoreName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("featurestore")); + } + + 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 (FeaturestoreName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FEATURESTORE.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 (featurestore != null) { + fieldMapBuilder.put("featurestore", featurestore); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FEATURESTORE.instantiate( + "project", project, "location", location, "featurestore", featurestore); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + FeaturestoreName that = ((FeaturestoreName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.featurestore, that.featurestore); + } + 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(featurestore); + return h; + } + + /** Builder for projects/{project}/locations/{location}/featurestores/{featurestore}. */ + public static class Builder { + private String project; + private String location; + private String featurestore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeaturestore() { + return featurestore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFeaturestore(String featurestore) { + this.featurestore = featurestore; + return this; + } + + private Builder(FeaturestoreName featurestoreName) { + project = featurestoreName.project; + location = featurestoreName.location; + featurestore = featurestoreName.featurestore; + } + + public FeaturestoreName build() { + return new FeaturestoreName(this); + } + } +} 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 new file mode 100644 index 000000000..3132ad3ab --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServiceProto.java @@ -0,0 +1,286 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeaturestoreOnlineServiceProto { + private FeaturestoreOnlineServiceProto() {} + + 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_v1beta1_ReadFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/aiplatform/v1beta1/featur" + + "estore_online_service.proto\022\037google.clou" + + "d.aiplatform.v1beta1\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\0326google/cloud/aiplatform" + + "/v1beta1/feature_selector.proto\032+google/" + + "cloud/aiplatform/v1beta1/types.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\306\001\n\030ReadFe" + + "atureValuesRequest\022A\n\013entity_type\030\001 \001(\tB" + + ",\340A\002\372A&\n$aiplatform.googleapis.com/Entit" + + "yType\022\026\n\tentity_id\030\002 \001(\tB\003\340A\002\022O\n\020feature" + + "_selector\030\003 \001(\01320.google.cloud.aiplatfor" + + "m.v1beta1.FeatureSelectorB\003\340A\002\"\263\005\n\031ReadF" + + "eatureValuesResponse\022Q\n\006header\030\001 \001(\0132A.g" + + "oogle.cloud.aiplatform.v1beta1.ReadFeatu" + + "reValuesResponse.Header\022Z\n\013entity_view\030\002" + + " \001(\0132E.google.cloud.aiplatform.v1beta1.R" + + "eadFeatureValuesResponse.EntityView\032\037\n\021F" + + "eatureDescriptor\022\n\n\002id\030\001 \001(\t\032\263\001\n\006Header\022" + + ">\n\013entity_type\030\001 \001(\tB)\372A&\n$aiplatform.go" + + "ogleapis.com/EntityType\022i\n\023feature_descr" + + "iptors\030\002 \003(\0132L.google.cloud.aiplatform.v" + + "1beta1.ReadFeatureValuesResponse.Feature" + + "Descriptor\032\217\002\n\nEntityView\022\021\n\tentity_id\030\001" + + " \001(\t\022X\n\004data\030\002 \003(\0132J.google.cloud.aiplat" + + "form.v1beta1.ReadFeatureValuesResponse.E" + + "ntityView.Data\032\223\001\n\004Data\022>\n\005value\030\001 \001(\0132-" + + ".google.cloud.aiplatform.v1beta1.Feature" + + "ValueH\000\022C\n\006values\030\002 \001(\01321.google.cloud.a" + + "iplatform.v1beta1.FeatureValueListH\000B\006\n\004" + + "data\"\320\001\n!StreamingReadFeatureValuesReque" + + "st\022A\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatf" + + "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" + + "_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" + + ".cloud.aiplatform.v1beta1.BoolArrayH\000\022J\n" + + "\022double_array_value\030\010 \001(\0132,.google.cloud" + + ".aiplatform.v1beta1.DoubleArrayH\000\022H\n\021int" + + "64_array_value\030\013 \001(\0132+.google.cloud.aipl" + + "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." + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TypesProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_descriptor, + new java.lang.String[] { + "EntityType", "EntityId", "FeatureSelector", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor, + new java.lang.String[] { + "Header", "EntityView", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor, + new java.lang.String[] { + "Id", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor, + new java.lang.String[] { + "EntityType", "FeatureDescriptors", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor, + new java.lang.String[] { + "EntityId", "Data", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor, + new java.lang.String[] { + "Value", "Values", "Data", + }); + internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor, + new java.lang.String[] { + "EntityType", "EntityIds", "FeatureSelector", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor, + new java.lang.String[] { + "BoolValue", + "DoubleValue", + "Int64Value", + "StringValue", + "BoolArrayValue", + "DoubleArrayValue", + "Int64ArrayValue", + "StringArrayValue", + "BytesValue", + "Metadata", + "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureValue_Metadata_descriptor, + new java.lang.String[] { + "GenerateTime", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueList_descriptor, + new java.lang.String[] { + "Values", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TypesProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java new file mode 100644 index 000000000..485eff7f7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java @@ -0,0 +1,320 @@ +/* + * 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/featurestore.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface FeaturestoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Featurestore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of the Featurestore. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of the Featurestore. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Featurestore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your Featurestore.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one Featurestore(System
+   * labels are excluded)."
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineServingConfig field is set. + */ + boolean hasOnlineServingConfig(); + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineServingConfig. + */ + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig getOnlineServingConfig(); + /** + * + * + *
+   * Required. Config for online serving resources.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder + getOnlineServingConfigOrBuilder(); + + /** + * + * + *
+   * Output only. State of the featurestore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the featurestore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.Featurestore.State getState(); +} 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 new file mode 100644 index 000000000..7b202fa93 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java @@ -0,0 +1,129 @@ +/* + * 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/featurestore.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeaturestoreProto { + private FeaturestoreProto() {} + + 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_v1beta1_Featurestore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_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 = { + "\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" + + "roto3" + }; + 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.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Etag", "Labels", "OnlineServingConfig", "State", + }); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor, + new java.lang.String[] { + "FixedNodeCount", + }); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Featurestore_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.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 new file mode 100644 index 000000000..9f63d2a14 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java @@ -0,0 +1,913 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class FeaturestoreServiceProto { + private FeaturestoreServiceProto() {} + + 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_v1beta1_CreateFeaturestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_EntityTypeSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_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/v1beta1/featur" + + "estore_service.proto\022\037google.cloud.aipla" + + "tform.v1beta1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\0321google/cloud/aiplatform/v1beta" + + "1/entity_type.proto\032-google/cloud/aiplat" + + "form/v1beta1/feature.proto\032>google/cloud" + + "/aiplatform/v1beta1/feature_monitoring_s" + + "tats.proto\0326google/cloud/aiplatform/v1be" + + "ta1/feature_selector.proto\0322google/cloud" + + "/aiplatform/v1beta1/featurestore.proto\032(" + + "google/cloud/aiplatform/v1beta1/io.proto" + + "\032/google/cloud/aiplatform/v1beta1/operat" + + "ion.proto\032#google/longrunning/operations" + + ".proto\032 google/protobuf/field_mask.proto" + + "\032\037google/protobuf/timestamp.proto\"\303\001\n\031Cr" + + "eateFeaturestoreRequest\022>\n\006parent\030\001 \001(\tB" + + ".\340A\002\372A(\022&aiplatform.googleapis.com/Featu" + + "restore\022H\n\014featurestore\030\002 \001(\0132-.google.c" + + "loud.aiplatform.v1beta1.FeaturestoreB\003\340A" + + "\002\022\034\n\017featurestore_id\030\003 \001(\tB\003\340A\002\"V\n\026GetFe" + + "aturestoreRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&aiplatform.googleapis.com/Featurestore\"" + + "\322\001\n\030ListFeaturestoresRequest\022>\n\006parent\030\001" + + " \001(\tB.\340A\002\372A(\022&aiplatform.googleapis.com/" + + "Featurestore\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\"z\n\031ListFeaturestoresRespons" + + "e\022D\n\rfeaturestores\030\001 \003(\0132-.google.cloud." + + "aiplatform.v1beta1.Featurestore\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\226\001\n\031UpdateFeaturestoreR" + + "equest\022H\n\014featurestore\030\001 \001(\0132-.google.cl" + + "oud.aiplatform.v1beta1.FeaturestoreB\003\340A\002" + + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMask\"h\n\031DeleteFeaturestoreRequest\022<" + + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.googlea" + + "pis.com/Featurestore\022\r\n\005force\030\002 \001(\010\"\216\005\n\032" + + "ImportFeatureValuesRequest\022B\n\013avro_sourc" + + "e\030\002 \001(\0132+.google.cloud.aiplatform.v1beta" + + "1.AvroSourceH\000\022J\n\017bigquery_source\030\003 \001(\0132" + + "/.google.cloud.aiplatform.v1beta1.BigQue" + + "rySourceH\000\022@\n\ncsv_source\030\004 \001(\0132*.google." + + "cloud.aiplatform.v1beta1.CsvSourceH\000\022\034\n\022" + + "feature_time_field\030\006 \001(\tH\001\0222\n\014feature_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampH\001\022A" + + "\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatform." + + "googleapis.com/EntityType\022\027\n\017entity_id_f" + + "ield\030\005 \001(\t\022c\n\rfeature_specs\030\010 \003(\0132G.goog" + + "le.cloud.aiplatform.v1beta1.ImportFeatur" + + "eValuesRequest.FeatureSpecB\003\340A\002\022\036\n\026disab" + + "le_online_serving\030\t \001(\010\022\024\n\014worker_count\030" + + "\013 \001(\005\0324\n\013FeatureSpec\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\024\n" + + "\014source_field\030\002 \001(\tB\010\n\006sourceB\025\n\023feature" + + "_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" + + "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" + + "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" + + "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" + + "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/" + + "*/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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EntityTypeProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.FeaturestoreProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreRequest_descriptor, + new java.lang.String[] { + "Parent", "Featurestore", "FeaturestoreId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_descriptor, + new java.lang.String[] { + "Featurestores", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_descriptor, + new java.lang.String[] { + "Featurestore", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeaturestoreRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_descriptor, + new java.lang.String[] { + "AvroSource", + "BigquerySource", + "CsvSource", + "FeatureTimeField", + "FeatureTime", + "EntityType", + "EntityIdField", + "FeatureSpecs", + "DisableOnlineServing", + "WorkerCount", + "Source", + "FeatureTimeSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_descriptor, + new java.lang.String[] { + "Id", "SourceField", + }); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_descriptor, + new java.lang.String[] { + "ImportedEntityCount", "ImportedFeatureValueCount", "InvalidRowCount", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor, + new java.lang.String[] { + "CsvReadInstances", "Featurestore", "Destination", "EntityTypeSpecs", "ReadOption", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor, + new java.lang.String[] { + "EntityTypeId", "FeatureSelector", "Settings", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_descriptor, + new java.lang.String[] { + "SnapshotExport", "EntityType", "Destination", "FeatureSelector", "Settings", "Mode", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesRequest_SnapshotExport_descriptor, + new java.lang.String[] { + "SnapshotTime", + }); + internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DestinationFeatureSetting_descriptor, + new java.lang.String[] { + "FeatureId", "DestinationField", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureValueDestination_descriptor, + new java.lang.String[] { + "BigqueryDestination", "TfrecordDestination", "CsvDestination", "Destination", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeRequest_descriptor, + new java.lang.String[] { + "Parent", "EntityType", "EntityTypeId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_descriptor, + new java.lang.String[] { + "EntityTypes", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_descriptor, + new java.lang.String[] { + "EntityType", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteEntityTypeRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureRequest_descriptor, + new java.lang.String[] { + "Parent", "Feature", "FeatureId", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesResponse_descriptor, + new java.lang.String[] { + "Features", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "PageSize", + "PageToken", + "OrderBy", + "ReadMask", + "LatestStatsCount", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_descriptor, + new java.lang.String[] { + "Features", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_descriptor, + new java.lang.String[] { + "Location", "Query", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_descriptor, + new java.lang.String[] { + "Features", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_descriptor, + new java.lang.String[] { + "Feature", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateFeaturestoreOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + "ImportedEntityCount", + "ImportedFeatureValueCount", + "InvalidRowCount", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportFeatureValuesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EntityTypeProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeatureProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.FeaturestoreProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java index 090e468b4..2ad61cbed 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java @@ -26,7 +26,7 @@ * given fractions. Any of `training_fraction`, `validation_fraction` and * `test_fraction` may optionally be provided, they must sum to up to 1. If the * provided ones sum to less than 1, the remainder is assigned to sets as - * decided by AI Platform. If none of the fractions are set, by default roughly + * decided by Vertex AI. If none of the fractions are set, by default roughly * 80% of data is used for training, 10% for validation, and 10% for test. *
* @@ -373,7 +373,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * given fractions. Any of `training_fraction`, `validation_fraction` and * `test_fraction` may optionally be provided, they must sum to up to 1. If the * provided ones sum to less than 1, the remainder is assigned to sets as - * decided by AI Platform. If none of the fractions are set, by default roughly + * decided by Vertex AI. If none of the fractions are set, by default roughly * 80% of data is used for training, 10% for validation, and 10% for test. *
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java new file mode 100644 index 000000000..116a34af0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.GetArtifact][google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetArtifactRequest} + */ +public final class GetArtifactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetArtifactRequest) + GetArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetArtifactRequest.newBuilder() to construct. + private GetArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetArtifactRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetArtifactRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetArtifactRequest( + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Artifact to retrieve.
+   * 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 retrieve.
+   * 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; + } + } + + 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.v1beta1.GetArtifactRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest other = + (com.google.cloud.aiplatform.v1beta1.GetArtifactRequest) 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.v1beta1.GetArtifactRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest 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.GetArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest 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.GetArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest 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.GetArtifactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest 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.GetArtifactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest 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.GetArtifactRequest 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.GetArtifactRequest 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.GetArtifactRequest 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.GetArtifact][google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetArtifactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetArtifactRequest) + com.google.cloud.aiplatform.v1beta1.GetArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetArtifactRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetArtifactRequest build() { + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetArtifactRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest result = + new com.google.cloud.aiplatform.v1beta1.GetArtifactRequest(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.v1beta1.GetArtifactRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetArtifactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetArtifactRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetArtifactRequest.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.v1beta1.GetArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetArtifactRequest) 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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; + } + + @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.GetArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetArtifactRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetArtifactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetArtifactRequest(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.GetArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequestOrBuilder.java new file mode 100644 index 000000000..52ef5815a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetArtifactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Artifact to retrieve.
+   * 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 retrieve.
+   * 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(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java new file mode 100644 index 000000000..3ea493343 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.GetContext][google.cloud.aiplatform.v1beta1.MetadataService.GetContext].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetContextRequest} + */ +public final class GetContextRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetContextRequest) + GetContextRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetContextRequest.newBuilder() to construct. + private GetContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetContextRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetContextRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetContextRequest( + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetContextRequest.class, + com.google.cloud.aiplatform.v1beta1.GetContextRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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 Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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.v1beta1.GetContextRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetContextRequest other = + (com.google.cloud.aiplatform.v1beta1.GetContextRequest) 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.v1beta1.GetContextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest 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.GetContextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest 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.GetContextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest 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.GetContextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest 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.GetContextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest 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.GetContextRequest 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.GetContextRequest 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.GetContextRequest 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.GetContext][google.cloud.aiplatform.v1beta1.MetadataService.GetContext].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetContextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetContextRequest) + com.google.cloud.aiplatform.v1beta1.GetContextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetContextRequest.class, + com.google.cloud.aiplatform.v1beta1.GetContextRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetContextRequest.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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetContextRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetContextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetContextRequest build() { + com.google.cloud.aiplatform.v1beta1.GetContextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetContextRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetContextRequest result = + new com.google.cloud.aiplatform.v1beta1.GetContextRequest(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.v1beta1.GetContextRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetContextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetContextRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetContextRequest.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.v1beta1.GetContextRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetContextRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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 Context to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * 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.v1beta1.GetContextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetContextRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetContextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetContextRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetContextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetContextRequest(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.GetContextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequestOrBuilder.java new file mode 100644 index 000000000..d2c66e54c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetContextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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 Context to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java index cc4f37d59..e9341443a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.GetDataLabelingJob][].
+ * Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} @@ -332,7 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.GetDataLabelingJob][].
+   * Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java new file mode 100644 index 000000000..f74450195 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.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/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} + */ +public final class GetEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + GetEntityTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEntityTypeRequest.newBuilder() to construct. + private GetEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEntityTypeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEntityTypeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetEntityTypeRequest( + 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the EntityType resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 EntityType resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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.v1beta1.GetEntityTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest other = + (com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) 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.v1beta1.GetEntityTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest 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.GetEntityTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest 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.GetEntityTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest 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.GetEntityTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest 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.GetEntityTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest 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.GetEntityTypeRequest 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.GetEntityTypeRequest 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.GetEntityTypeRequest 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.GetEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetEntityTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest build() { + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest result = + new com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(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.v1beta1.GetEntityTypeRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.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.v1beta1.GetEntityTypeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the EntityType resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 EntityType resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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.v1beta1.GetEntityTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEntityTypeRequest(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.GetEntityTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequestOrBuilder.java new file mode 100644 index 000000000..fd7d877d7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetEntityTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EntityType resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EntityType resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java new file mode 100644 index 000000000..e6bfc998b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.GetExecution][google.cloud.aiplatform.v1beta1.MetadataService.GetExecution].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetExecutionRequest} + */ +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetExecutionRequest) + GetExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetExecutionRequest.newBuilder() to construct. + private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExecutionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetExecutionRequest( + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Execution to retrieve.
+   * 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 retrieve.
+   * 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; + } + } + + 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.v1beta1.GetExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest other = + (com.google.cloud.aiplatform.v1beta1.GetExecutionRequest) 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.v1beta1.GetExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest 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.GetExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest 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.GetExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest 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.GetExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest 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.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest 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.GetExecutionRequest 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.GetExecutionRequest 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.GetExecutionRequest 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.GetExecution][google.cloud.aiplatform.v1beta1.MetadataService.GetExecution].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetExecutionRequest) + com.google.cloud.aiplatform.v1beta1.GetExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetExecutionRequest build() { + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetExecutionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest result = + new com.google.cloud.aiplatform.v1beta1.GetExecutionRequest(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.v1beta1.GetExecutionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetExecutionRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetExecutionRequest.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.v1beta1.GetExecutionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetExecutionRequest) 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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 retrieve.
+     * 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; + } + + @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.GetExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetExecutionRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetExecutionRequest(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.GetExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequestOrBuilder.java new file mode 100644 index 000000000..e9d253d8e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Execution to retrieve.
+   * 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 retrieve.
+   * 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(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java new file mode 100644 index 000000000..9cef6a739 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.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/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetFeatureRequest} + */ +public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetFeatureRequest) + GetFeatureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFeatureRequest.newBuilder() to construct. + private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFeatureRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFeatureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetFeatureRequest( + 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Feature resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 Feature resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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.v1beta1.GetFeatureRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest other = + (com.google.cloud.aiplatform.v1beta1.GetFeatureRequest) 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.v1beta1.GetFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest 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.GetFeatureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest 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.GetFeatureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest 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.GetFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest 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.GetFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest 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.GetFeatureRequest 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.GetFeatureRequest 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.GetFeatureRequest 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.GetFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetFeatureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetFeatureRequest) + com.google.cloud.aiplatform.v1beta1.GetFeatureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeatureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeatureRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeatureRequest build() { + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeatureRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest result = + new com.google.cloud.aiplatform.v1beta1.GetFeatureRequest(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.v1beta1.GetFeatureRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetFeatureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetFeatureRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetFeatureRequest.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.v1beta1.GetFeatureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetFeatureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Feature resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Feature resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Feature resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Feature resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Feature resource.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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.v1beta1.GetFeatureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetFeatureRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetFeatureRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeatureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(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.GetFeatureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequestOrBuilder.java new file mode 100644 index 000000000..de36b5365 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetFeatureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetFeatureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Feature resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Feature resource.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java new file mode 100644 index 000000000..0c175b598 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java @@ -0,0 +1,651 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} + */ +public final class GetFeaturestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + GetFeaturestoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFeaturestoreRequest.newBuilder() to construct. + private GetFeaturestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFeaturestoreRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFeaturestoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetFeaturestoreRequest( + 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Featurestore resource.
+   * 
+ * + * + * 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 Featurestore resource.
+   * 
+ * + * + * 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.v1beta1.GetFeaturestoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest other = + (com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) 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.v1beta1.GetFeaturestoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest 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.GetFeaturestoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest 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.GetFeaturestoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest 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.GetFeaturestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest 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.GetFeaturestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest 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.GetFeaturestoreRequest 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.GetFeaturestoreRequest 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.GetFeaturestoreRequest 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.GetFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetFeaturestoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest build() { + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest result = + new com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(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.v1beta1.GetFeaturestoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.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.v1beta1.GetFeaturestoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Featurestore resource.
+     * 
+ * + * + * 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 Featurestore resource.
+     * 
+ * + * + * 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 Featurestore resource.
+     * 
+ * + * + * 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 Featurestore resource.
+     * 
+ * + * + * 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 Featurestore resource.
+     * 
+ * + * + * 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.v1beta1.GetFeaturestoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeaturestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeaturestoreRequest(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.GetFeaturestoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequestOrBuilder.java new file mode 100644 index 000000000..65fa28702 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetFeaturestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Featurestore resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Featurestore resource.
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java new file mode 100644 index 000000000..ffff39e22 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.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/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} + */ +public final class GetIndexEndpointRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + GetIndexEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetIndexEndpointRequest.newBuilder() to construct. + private GetIndexEndpointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIndexEndpointRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIndexEndpointRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetIndexEndpointRequest( + 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.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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 IndexEndpoint resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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.v1beta1.GetIndexEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest other = + (com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) 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.v1beta1.GetIndexEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest 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.GetIndexEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest 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.GetIndexEndpointRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest 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.GetIndexEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest 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.GetIndexEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest 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.GetIndexEndpointRequest 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.GetIndexEndpointRequest 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.GetIndexEndpointRequest 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 [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.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.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest build() { + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest result = + new com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(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.v1beta1.GetIndexEndpointRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.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.v1beta1.GetIndexEndpointRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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 IndexEndpoint resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * 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.v1beta1.GetIndexEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIndexEndpointRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIndexEndpointRequest(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.GetIndexEndpointRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequestOrBuilder.java new file mode 100644 index 000000000..b692dea52 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetIndexEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java new file mode 100644 index 000000000..591f2dd83 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexService.GetIndex][google.cloud.aiplatform.v1beta1.IndexService.GetIndex]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetIndexRequest} + */ +public final class GetIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetIndexRequest) + GetIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetIndexRequest.newBuilder() to construct. + private GetIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIndexRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetIndexRequest( + 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.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.GetIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Index resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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 Index resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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.v1beta1.GetIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.GetIndexRequest) 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.v1beta1.GetIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest 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.GetIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest 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.GetIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest 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.GetIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest 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.GetIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest 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.GetIndexRequest 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.GetIndexRequest 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.GetIndexRequest 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 [IndexService.GetIndex][google.cloud.aiplatform.v1beta1.IndexService.GetIndex]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetIndexRequest) + com.google.cloud.aiplatform.v1beta1.GetIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.GetIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetIndexRequest.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.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.GetIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.GetIndexRequest(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.v1beta1.GetIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetIndexRequest.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.v1beta1.GetIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Index resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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 Index resource.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * + * 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.v1beta1.GetIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIndexRequest(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.GetIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequestOrBuilder.java new file mode 100644 index 000000000..eafc614b2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Index resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Index resource.
+   * Format:
+   * `projects/{project}/locations/{location}/indexes/{index}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java new file mode 100644 index 000000000..672cb7f41 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java @@ -0,0 +1,668 @@ +/* + * 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.GetMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} + */ +public final class GetMetadataSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) + GetMetadataSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMetadataSchemaRequest.newBuilder() to construct. + private GetMetadataSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMetadataSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMetadataSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetMetadataSchemaRequest( + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.class, + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the MetadataSchema to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * 
+ * + * + * 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 MetadataSchema to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * 
+ * + * + * 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.v1beta1.GetMetadataSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest other = + (com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) 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.v1beta1.GetMetadataSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest 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.GetMetadataSchemaRequest 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.GetMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.class, + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest build() { + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest result = + new com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(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.v1beta1.GetMetadataSchemaRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.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.v1beta1.GetMetadataSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataSchema to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * 
+ * + * + * 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 MetadataSchema to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * 
+ * + * + * 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 MetadataSchema to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * 
+ * + * + * 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 MetadataSchema to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * 
+ * + * + * 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 MetadataSchema to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+     * 
+ * + * + * 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.v1beta1.GetMetadataSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetadataSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMetadataSchemaRequest(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.GetMetadataSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequestOrBuilder.java new file mode 100644 index 000000000..55d39f23e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetMetadataSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataSchema to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * 
+ * + * + * 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 MetadataSchema to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java new file mode 100644 index 000000000..671e444d1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} + */ +public final class GetMetadataStoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + GetMetadataStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMetadataStoreRequest.newBuilder() to construct. + private GetMetadataStoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMetadataStoreRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMetadataStoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetMetadataStoreRequest( + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the MetadataStore to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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 MetadataStore to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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.v1beta1.GetMetadataStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest other = + (com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) 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.v1beta1.GetMetadataStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest 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.GetMetadataStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest 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.GetMetadataStoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest 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.GetMetadataStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest 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.GetMetadataStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest 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.GetMetadataStoreRequest 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.GetMetadataStoreRequest 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.GetMetadataStoreRequest 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.GetMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.class, + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest build() { + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest result = + new com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(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.v1beta1.GetMetadataStoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.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.v1beta1.GetMetadataStoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the MetadataStore to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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 MetadataStore to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * 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.v1beta1.GetMetadataStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetadataStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMetadataStoreRequest(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.GetMetadataStoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequestOrBuilder.java new file mode 100644 index 000000000..c471e05ec --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetMetadataStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the MetadataStore to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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 MetadataStore to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..bcbcac851 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,693 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.GetModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} + */ +public final class GetModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + GetModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private GetModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetModelDeploymentMonitoringJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetModelDeploymentMonitoringJobRequest( + 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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.GetModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) 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.v1beta1.GetModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest + 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.GetModelDeploymentMonitoringJobRequest 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
+   * [JobService.GetModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(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.v1beta1.GetModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + .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.v1beta1.GetModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the ModelDeploymentMonitoringJob.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.GetModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetModelDeploymentMonitoringJobRequest(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.GetModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..b5be55055 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
+   * 
+ * + * + * 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 ModelDeploymentMonitoringJob.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java new file mode 100644 index 000000000..e4110cb71 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} + */ +public final class GetPipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.GetPipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.class, + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest build() { + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GetPipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..ae1af652f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetPipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java new file mode 100644 index 000000000..13cd46ef3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java @@ -0,0 +1,657 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.GetStudy][google.cloud.aiplatform.v1beta1.VizierService.GetStudy].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetStudyRequest} + */ +public final class GetStudyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetStudyRequest) + GetStudyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetStudyRequest.newBuilder() to construct. + private GetStudyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetStudyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetStudyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetStudyRequest( + 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.GetStudyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Study resource.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study resource.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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.v1beta1.GetStudyRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetStudyRequest other = + (com.google.cloud.aiplatform.v1beta1.GetStudyRequest) 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.v1beta1.GetStudyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest 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.GetStudyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest 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.GetStudyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest 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.GetStudyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest 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.GetStudyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest 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.GetStudyRequest 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.GetStudyRequest 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.GetStudyRequest 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 [VizierService.GetStudy][google.cloud.aiplatform.v1beta1.VizierService.GetStudy].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetStudyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetStudyRequest) + com.google.cloud.aiplatform.v1beta1.GetStudyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.GetStudyRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetStudyRequest.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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetStudyRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetStudyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetStudyRequest build() { + com.google.cloud.aiplatform.v1beta1.GetStudyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetStudyRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetStudyRequest result = + new com.google.cloud.aiplatform.v1beta1.GetStudyRequest(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.v1beta1.GetStudyRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetStudyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetStudyRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetStudyRequest.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.v1beta1.GetStudyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetStudyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Study resource.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study resource.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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.v1beta1.GetStudyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetStudyRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetStudyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetStudyRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetStudyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStudyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetStudyRequest(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.GetStudyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequestOrBuilder.java new file mode 100644 index 000000000..bc77c89c5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetStudyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetStudyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Study resource.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Study resource.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java new file mode 100644 index 000000000..3a79137ec --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java @@ -0,0 +1,677 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest} + */ +public final class GetTensorboardExperimentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) + GetTensorboardExperimentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTensorboardExperimentRequest.newBuilder() to construct. + private GetTensorboardExperimentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTensorboardExperimentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTensorboardExperimentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTensorboardExperimentRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardExperiment resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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 TensorboardExperiment resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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.v1beta1.GetTensorboardExperimentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest other = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) 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.v1beta1.GetTensorboardExperimentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + 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.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest 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.GetTensorboardExperimentRequest 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 [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest build() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest result = + new com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest(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.v1beta1.GetTensorboardExperimentRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + .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.v1beta1.GetTensorboardExperimentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardExperiment resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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 TensorboardExperiment resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * 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.v1beta1.GetTensorboardExperimentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTensorboardExperimentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTensorboardExperimentRequest(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.GetTensorboardExperimentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequestOrBuilder.java new file mode 100644 index 000000000..db1332896 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetTensorboardExperimentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardExperiment resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardExperiment resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java new file mode 100644 index 000000000..8d223903c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardRequest} + */ +public final class GetTensorboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetTensorboardRequest) + GetTensorboardRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTensorboardRequest.newBuilder() to construct. + private GetTensorboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTensorboardRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTensorboardRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTensorboardRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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 Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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.v1beta1.GetTensorboardRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest other = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest) 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.v1beta1.GetTensorboardRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest 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.GetTensorboardRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest 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.GetTensorboardRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest 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.GetTensorboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest 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.GetTensorboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest 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.GetTensorboardRequest 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.GetTensorboardRequest 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.GetTensorboardRequest 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 [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetTensorboardRequest) + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest build() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest result = + new com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest(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.v1beta1.GetTensorboardRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest.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.v1beta1.GetTensorboardRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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 Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * 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.v1beta1.GetTensorboardRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetTensorboardRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTensorboardRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTensorboardRequest(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.GetTensorboardRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequestOrBuilder.java new file mode 100644 index 000000000..9415bde47 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetTensorboardRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetTensorboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java new file mode 100644 index 000000000..427e7ac6e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java @@ -0,0 +1,668 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest} + */ +public final class GetTensorboardRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) + GetTensorboardRunRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTensorboardRunRequest.newBuilder() to construct. + private GetTensorboardRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTensorboardRunRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTensorboardRunRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTensorboardRunRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardRun resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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 TensorboardRun resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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.v1beta1.GetTensorboardRunRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest other = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) 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.v1beta1.GetTensorboardRunRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest 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.GetTensorboardRunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest 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.GetTensorboardRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest 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.GetTensorboardRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest 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.GetTensorboardRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest 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.GetTensorboardRunRequest 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.GetTensorboardRunRequest 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.GetTensorboardRunRequest 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 [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest build() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest result = + new com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest(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.v1beta1.GetTensorboardRunRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest.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.v1beta1.GetTensorboardRunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardRun resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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 TensorboardRun resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * 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.v1beta1.GetTensorboardRunRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTensorboardRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTensorboardRunRequest(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.GetTensorboardRunRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequestOrBuilder.java new file mode 100644 index 000000000..5abc585b1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetTensorboardRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardRun resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardRun resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java new file mode 100644 index 000000000..548982c93 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java @@ -0,0 +1,677 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest} + */ +public final class GetTensorboardTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) + GetTensorboardTimeSeriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTensorboardTimeSeriesRequest.newBuilder() to construct. + private GetTensorboardTimeSeriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTensorboardTimeSeriesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTensorboardTimeSeriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTensorboardTimeSeriesRequest( + 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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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 TensorboardTimeSeries resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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.v1beta1.GetTensorboardTimeSeriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest other = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) 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.v1beta1.GetTensorboardTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + 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.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest 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.GetTensorboardTimeSeriesRequest 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 [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest.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.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest build() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest result = + new com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest(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.v1beta1.GetTensorboardTimeSeriesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + .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.v1beta1.GetTensorboardTimeSeriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the TensorboardTimeSeries resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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 TensorboardTimeSeries resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * 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.v1beta1.GetTensorboardTimeSeriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTensorboardTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTensorboardTimeSeriesRequest(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.GetTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequestOrBuilder.java new file mode 100644 index 000000000..fcf26d30a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetTensorboardTimeSeriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the TensorboardTimeSeries resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java new file mode 100644 index 000000000..27f632efb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.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/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.GetTrial][google.cloud.aiplatform.v1beta1.VizierService.GetTrial].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTrialRequest} + */ +public final class GetTrialRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetTrialRequest) + GetTrialRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTrialRequest.newBuilder() to construct. + private GetTrialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTrialRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTrialRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTrialRequest( + 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTrialRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Trial resource.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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 Trial resource.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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.v1beta1.GetTrialRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetTrialRequest other = + (com.google.cloud.aiplatform.v1beta1.GetTrialRequest) 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.v1beta1.GetTrialRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest 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.GetTrialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest 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.GetTrialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest 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.GetTrialRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest 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.GetTrialRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest 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.GetTrialRequest 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.GetTrialRequest 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.GetTrialRequest 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 [VizierService.GetTrial][google.cloud.aiplatform.v1beta1.VizierService.GetTrial].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetTrialRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetTrialRequest) + com.google.cloud.aiplatform.v1beta1.GetTrialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.GetTrialRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetTrialRequest.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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTrialRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetTrialRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTrialRequest build() { + com.google.cloud.aiplatform.v1beta1.GetTrialRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetTrialRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetTrialRequest result = + new com.google.cloud.aiplatform.v1beta1.GetTrialRequest(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.v1beta1.GetTrialRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetTrialRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTrialRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.GetTrialRequest.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.v1beta1.GetTrialRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetTrialRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Trial resource.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial resource.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial resource.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial resource.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial resource.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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.v1beta1.GetTrialRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetTrialRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetTrialRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetTrialRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetTrialRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTrialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTrialRequest(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.GetTrialRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequestOrBuilder.java new file mode 100644 index 000000000..91a144b31 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetTrialRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetTrialRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Trial resource.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Trial resource.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java index cd90bc6c8..aec1e1cc0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java @@ -508,7 +508,7 @@ public int getParallelTrialCount() { *
    * The number of failed Trials that need to be seen before failing
    * the HyperparameterTuningJob.
-   * If set to 0, AI Platform decides how many Trials must fail
+   * If set to 0, Vertex AI decides how many Trials must fail
    * before the whole job fails.
    * 
* @@ -2373,7 +2373,7 @@ public Builder clearParallelTrialCount() { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* @@ -2391,7 +2391,7 @@ public int getMaxFailedTrialCount() { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* @@ -2412,7 +2412,7 @@ public Builder setMaxFailedTrialCount(int value) { *
      * The number of failed Trials that need to be seen before failing
      * the HyperparameterTuningJob.
-     * If set to 0, AI Platform decides how many Trials must fail
+     * If set to 0, Vertex AI decides how many Trials must fail
      * before the whole job fails.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java index ec7d910c6..ee4b66d47 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java index 8de927964..627f89c8b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java @@ -150,7 +150,7 @@ public interface HyperparameterTuningJobOrBuilder *
    * The number of failed Trials that need to be seen before failing
    * the HyperparameterTuningJob.
-   * If set to 0, AI Platform decides how many Trials must fail
+   * If set to 0, Vertex AI decides how many Trials must fail
    * before the whole job fails.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java new file mode 100644 index 000000000..da5e2d089 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java @@ -0,0 +1,786 @@ +/* + * 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/feature_selector.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Matcher for Features of an EntityType by Feature ID.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IdMatcher} + */ +public final class IdMatcher extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.IdMatcher) + IdMatcherOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdMatcher.newBuilder() to construct. + private IdMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IdMatcher() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IdMatcher(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IdMatcher( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ids_.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)) { + ids_ = ids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IdMatcher.class, + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ids_; + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList getIdsList() { + return ids_; + } + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString getIdsBytes(int index) { + return ids_.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 { + for (int i = 0; i < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().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.IdMatcher)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.IdMatcher other = + (com.google.cloud.aiplatform.v1beta1.IdMatcher) obj; + + if (!getIdsList().equals(other.getIdsList())) 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 (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher 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.IdMatcher parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher 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.IdMatcher parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher 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.IdMatcher parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher 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.IdMatcher parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher 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.IdMatcher 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.IdMatcher 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.IdMatcher 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; + } + /** + * + * + *
+   * Matcher for Features of an EntityType by Feature ID.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IdMatcher} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.IdMatcher) + com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IdMatcher.class, + com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.IdMatcher.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(); + ids_ = 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.FeatureSelectorProto + .internal_static_google_cloud_aiplatform_v1beta1_IdMatcher_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IdMatcher getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IdMatcher build() { + com.google.cloud.aiplatform.v1beta1.IdMatcher result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IdMatcher buildPartial() { + com.google.cloud.aiplatform.v1beta1.IdMatcher result = + new com.google.cloud.aiplatform.v1beta1.IdMatcher(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + 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.IdMatcher) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.IdMatcher) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IdMatcher other) { + if (other == com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + 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.IdMatcher parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.IdMatcher) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + public com.google.protobuf.ProtocolStringList getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + public com.google.protobuf.ByteString getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The ids to set. + * @return This builder for chaining. + */ + public Builder setIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ids to add. + * @return This builder for chaining. + */ + public Builder addIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The ids to add. + * @return This builder for chaining. + */ + public Builder addAllIds(java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The following are accepted as `ids`:
+     *  * A single-element list containing only `*`, which selects all Features
+     *  in the target EntityType, or
+     *  * A list containing only Feature IDs, which selects only Features with
+     *  those IDs in the target EntityType.
+     * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the ids to add. + * @return This builder for chaining. + */ + public Builder addIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.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.IdMatcher) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.IdMatcher) + private static final com.google.cloud.aiplatform.v1beta1.IdMatcher DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.IdMatcher(); + } + + public static com.google.cloud.aiplatform.v1beta1.IdMatcher getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdMatcher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdMatcher(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.IdMatcher getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcherOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcherOrBuilder.java new file mode 100644 index 000000000..2fca064c0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcherOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/feature_selector.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface IdMatcherOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.IdMatcher) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + java.util.List getIdsList(); + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + int getIdsCount(); + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + java.lang.String getIds(int index); + /** + * + * + *
+   * Required. The following are accepted as `ids`:
+   *  * A single-element list containing only `*`, which selects all Features
+   *  in the target EntityType, or
+   *  * A list containing only Feature IDs, which selects only Features with
+   *  those IDs in the target EntityType.
+   * 
+ * + * repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the ids at the given index. + */ + com.google.protobuf.ByteString getIdsBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java index 186870096..fa0d46a82 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java @@ -293,7 +293,7 @@ public int getDataItemLabelsCount() { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -325,7 +325,7 @@ public java.util.Map getDataItemLabels() { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -348,7 +348,7 @@ public java.util.Map getDataItemLabelsMap() * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -376,7 +376,7 @@ public java.lang.String getDataItemLabelsOrDefault( * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -401,7 +401,8 @@ public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -426,7 +427,8 @@ public java.lang.String getImportSchemaUri() { *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1119,7 +1121,7 @@ public int getDataItemLabelsCount() { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1151,7 +1153,7 @@ public java.util.Map getDataItemLabels() { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1174,7 +1176,7 @@ public java.util.Map getDataItemLabelsMap() * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1202,7 +1204,7 @@ public java.lang.String getDataItemLabelsOrDefault( * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1237,7 +1239,7 @@ public Builder clearDataItemLabels() { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1268,7 +1270,7 @@ public java.util.Map getMutableDataItemLabel * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1297,7 +1299,7 @@ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -1314,7 +1316,8 @@ public Builder putAllDataItemLabels(java.util.Map * Required. Points to a YAML file stored on Google Cloud Storage describing the import * format. Validation will be done against the schema. The schema is defined - * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + * as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). *
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1338,7 +1341,8 @@ public java.lang.String getImportSchemaUri() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1362,7 +1366,8 @@ public com.google.protobuf.ByteString getImportSchemaUriBytes() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1385,7 +1390,8 @@ public Builder setImportSchemaUri(java.lang.String value) { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1404,7 +1410,8 @@ public Builder clearImportSchemaUri() { *
      * Required. Points to a YAML file stored on Google Cloud Storage describing the import
      * format. Validation will be done against the schema. The schema is defined
-     * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+     * as an [OpenAPI 3.0.2 Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java index 9c907986a..881c67492 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java @@ -72,7 +72,7 @@ public interface ImportDataConfigOrBuilder * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -92,7 +92,7 @@ public interface ImportDataConfigOrBuilder * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -115,7 +115,7 @@ public interface ImportDataConfigOrBuilder * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -135,7 +135,7 @@ public interface ImportDataConfigOrBuilder * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -155,7 +155,7 @@ public interface ImportDataConfigOrBuilder * considered identical if their content bytes are identical (e.g. image bytes * or pdf bytes). * These labels will be overridden by Annotation labels specified inside index - * file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + * file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. *
* * map<string, string> data_item_labels = 2; @@ -168,7 +168,8 @@ public interface ImportDataConfigOrBuilder *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -182,7 +183,8 @@ public interface ImportDataConfigOrBuilder *
    * Required. Points to a YAML file stored on Google Cloud Storage describing the import
    * format. Validation will be done against the schema. The schema is defined
-   * as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt).
+   * as an [OpenAPI 3.0.2 Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java new file mode 100644 index 000000000..1d1e86fe2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java @@ -0,0 +1,1047 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform import feature values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} + */ +public final class ImportFeatureValuesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + ImportFeatureValuesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportFeatureValuesOperationMetadata.newBuilder() to construct. + private ImportFeatureValuesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportFeatureValuesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportFeatureValuesOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportFeatureValuesOperationMetadata( + 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; + } + case 16: + { + importedEntityCount_ = input.readInt64(); + break; + } + case 24: + { + importedFeatureValueCount_ = input.readInt64(); + break; + } + case 48: + { + invalidRowCount_ = 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore import feature values.
+   * 
+ * + * .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 Featurestore import feature values.
+   * 
+ * + * .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 Featurestore import feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 2; + private long importedEntityCount_; + /** + * + * + *
+   * Number of entities that have been imported by the operation.
+   * 
+ * + * int64 imported_entity_count = 2; + * + * @return The importedEntityCount. + */ + @java.lang.Override + public long getImportedEntityCount() { + return importedEntityCount_; + } + + public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 3; + private long importedFeatureValueCount_; + /** + * + * + *
+   * Number of feature values that have been imported by the operation.
+   * 
+ * + * int64 imported_feature_value_count = 3; + * + * @return The importedFeatureValueCount. + */ + @java.lang.Override + public long getImportedFeatureValueCount() { + return importedFeatureValueCount_; + } + + public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; + private long invalidRowCount_; + /** + * + * + *
+   * The number of rows in input source that weren't imported due to either
+   * * Not having any featureValues.
+   * * Having a null entityId.
+   * * Having a null timestamp.
+   * * Not being parsable (applicable for CSV sources).
+   * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + @java.lang.Override + public long getInvalidRowCount() { + return invalidRowCount_; + } + + 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()); + } + if (importedEntityCount_ != 0L) { + output.writeInt64(2, importedEntityCount_); + } + if (importedFeatureValueCount_ != 0L) { + output.writeInt64(3, importedFeatureValueCount_); + } + if (invalidRowCount_ != 0L) { + output.writeInt64(6, invalidRowCount_); + } + 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()); + } + if (importedEntityCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, importedEntityCount_); + } + if (importedFeatureValueCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, importedFeatureValueCount_); + } + if (invalidRowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, invalidRowCount_); + } + 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.ImportFeatureValuesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (getImportedEntityCount() != other.getImportedEntityCount()) return false; + if (getImportedFeatureValueCount() != other.getImportedFeatureValueCount()) return false; + if (getInvalidRowCount() != other.getInvalidRowCount()) 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 = (37 * hash) + IMPORTED_ENTITY_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedEntityCount()); + hash = (37 * hash) + IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedFeatureValueCount()); + hash = (37 * hash) + INVALID_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInvalidRowCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + 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.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata 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 import feature values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.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; + } + importedEntityCount_ = 0L; + + importedFeatureValueCount_ = 0L; + + invalidRowCount_ = 0L; + + 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_ImportFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + result.importedEntityCount_ = importedEntityCount_; + result.importedFeatureValueCount_ = importedFeatureValueCount_; + result.invalidRowCount_ = invalidRowCount_; + 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.ImportFeatureValuesOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (other.getImportedEntityCount() != 0L) { + setImportedEntityCount(other.getImportedEntityCount()); + } + if (other.getImportedFeatureValueCount() != 0L) { + setImportedFeatureValueCount(other.getImportedFeatureValueCount()); + } + if (other.getInvalidRowCount() != 0L) { + setInvalidRowCount(other.getInvalidRowCount()); + } + 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.ImportFeatureValuesOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + 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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore import feature values.
+     * 
+ * + * .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 Featurestore import feature values.
+     * 
+ * + * .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_; + } + + private long importedEntityCount_; + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 2; + * + * @return The importedEntityCount. + */ + @java.lang.Override + public long getImportedEntityCount() { + return importedEntityCount_; + } + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 2; + * + * @param value The importedEntityCount to set. + * @return This builder for chaining. + */ + public Builder setImportedEntityCount(long value) { + + importedEntityCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearImportedEntityCount() { + + importedEntityCount_ = 0L; + onChanged(); + return this; + } + + private long importedFeatureValueCount_; + /** + * + * + *
+     * Number of feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 3; + * + * @return The importedFeatureValueCount. + */ + @java.lang.Override + public long getImportedFeatureValueCount() { + return importedFeatureValueCount_; + } + /** + * + * + *
+     * Number of feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 3; + * + * @param value The importedFeatureValueCount to set. + * @return This builder for chaining. + */ + public Builder setImportedFeatureValueCount(long value) { + + importedFeatureValueCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearImportedFeatureValueCount() { + + importedFeatureValueCount_ = 0L; + onChanged(); + return this; + } + + private long invalidRowCount_; + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + @java.lang.Override + public long getInvalidRowCount() { + return invalidRowCount_; + } + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @param value The invalidRowCount to set. + * @return This builder for chaining. + */ + public Builder setInvalidRowCount(long value) { + + invalidRowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearInvalidRowCount() { + + invalidRowCount_ = 0L; + 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.ImportFeatureValuesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportFeatureValuesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportFeatureValuesOperationMetadata(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.ImportFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java new file mode 100644 index 000000000..5238aa264 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.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/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ImportFeatureValuesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore import feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore import feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore import feature values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * Number of entities that have been imported by the operation.
+   * 
+ * + * int64 imported_entity_count = 2; + * + * @return The importedEntityCount. + */ + long getImportedEntityCount(); + + /** + * + * + *
+   * Number of feature values that have been imported by the operation.
+   * 
+ * + * int64 imported_feature_value_count = 3; + * + * @return The importedFeatureValueCount. + */ + long getImportedFeatureValueCount(); + + /** + * + * + *
+   * The number of rows in input source that weren't imported due to either
+   * * Not having any featureValues.
+   * * Having a null entityId.
+   * * Having a null timestamp.
+   * * Not being parsable (applicable for CSV sources).
+   * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + long getInvalidRowCount(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java new file mode 100644 index 000000000..7af25be03 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java @@ -0,0 +1,3958 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} + */ +public final class ImportFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + ImportFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportFeatureValuesRequest.newBuilder() to construct. + private ImportFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportFeatureValuesRequest() { + entityType_ = ""; + entityIdField_ = ""; + featureSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportFeatureValuesRequest( + 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(); + + entityType_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.AvroSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AvroSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.AvroSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder subBuilder = null; + if (sourceCase_ == 4) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.CsvSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.CsvSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.CsvSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityIdField_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + featureTimeSourceCase_ = 6; + featureTimeSource_ = s; + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (featureTimeSourceCase_ == 7) { + subBuilder = ((com.google.protobuf.Timestamp) featureTimeSource_).toBuilder(); + } + featureTimeSource_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) featureTimeSource_); + featureTimeSource_ = subBuilder.buildPartial(); + } + featureTimeSourceCase_ = 7; + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + featureSpecs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + .FeatureSpec>(); + mutable_bitField0_ |= 0x00000001; + } + featureSpecs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + .parser(), + extensionRegistry)); + break; + } + case 72: + { + disableOnlineServing_ = input.readBool(); + break; + } + case 88: + { + workerCount_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + featureSpecs_ = java.util.Collections.unmodifiableList(featureSpecs_); + } + 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_ImportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.Builder.class); + } + + public interface FeatureSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. ID of the Feature to import values of. This Feature must exist in the
+     * target EntityType, or the request will fail.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+     * Required. ID of the Feature to import values of. This Feature must exist in the
+     * target EntityType, or the request will fail.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * Source column to get the Feature values from. If not set, uses the column
+     * with the same name as the Feature ID.
+     * 
+ * + * string source_field = 2; + * + * @return The sourceField. + */ + java.lang.String getSourceField(); + /** + * + * + *
+     * Source column to get the Feature values from. If not set, uses the column
+     * with the same name as the Feature ID.
+     * 
+ * + * string source_field = 2; + * + * @return The bytes for sourceField. + */ + com.google.protobuf.ByteString getSourceFieldBytes(); + } + /** + * + * + *
+   * Defines the Feature value(s) to import.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} + */ + public static final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + FeatureSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureSpec.newBuilder() to construct. + private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureSpec() { + id_ = ""; + sourceField_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureSpec( + 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(); + + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sourceField_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + .class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+     * Required. ID of the Feature to import values of. This Feature must exist in the
+     * target EntityType, or the request will fail.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+     * Required. ID of the Feature to import values of. This Feature must exist in the
+     * target EntityType, or the request will fail.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.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; + } + } + + public static final int SOURCE_FIELD_FIELD_NUMBER = 2; + private volatile java.lang.Object sourceField_; + /** + * + * + *
+     * Source column to get the Feature values from. If not set, uses the column
+     * with the same name as the Feature ID.
+     * 
+ * + * string source_field = 2; + * + * @return The sourceField. + */ + @java.lang.Override + public java.lang.String getSourceField() { + java.lang.Object ref = sourceField_; + 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(); + sourceField_ = s; + return s; + } + } + /** + * + * + *
+     * Source column to get the Feature values from. If not set, uses the column
+     * with the same name as the Feature ID.
+     * 
+ * + * string source_field = 2; + * + * @return The bytes for sourceField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceFieldBytes() { + java.lang.Object ref = sourceField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceField_ = 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getSourceFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getSourceFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceField_); + } + 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.ImportFeatureValuesRequest.FeatureSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec other = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) obj; + + if (!getId().equals(other.getId())) return false; + if (!getSourceField().equals(other.getSourceField())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getSourceField().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec + 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.ImportFeatureValuesRequest.FeatureSpec 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; + } + /** + * + * + *
+     * Defines the Feature value(s) to import.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.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(); + id_ = ""; + + sourceField_ = ""; + + 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_ImportFeatureValuesRequest_FeatureSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec build() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec result = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(this); + result.id_ = id_; + result.sourceField_ = sourceField_; + 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.ImportFeatureValuesRequest.FeatureSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getSourceField().isEmpty()) { + sourceField_ = other.sourceField_; + 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.ImportFeatureValuesRequest.FeatureSpec parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+       * Required. ID of the Feature to import values of. This Feature must exist in the
+       * target EntityType, or the request will fail.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + 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; + } + } + /** + * + * + *
+       * Required. ID of the Feature to import values of. This Feature must exist in the
+       * target EntityType, or the request will fail.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+       * Required. ID of the Feature to import values of. This Feature must exist in the
+       * target EntityType, or the request will fail.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+       * Required. ID of the Feature to import values of. This Feature must exist in the
+       * target EntityType, or the request will fail.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. ID of the Feature to import values of. This Feature must exist in the
+       * target EntityType, or the request will fail.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 java.lang.Object sourceField_ = ""; + /** + * + * + *
+       * Source column to get the Feature values from. If not set, uses the column
+       * with the same name as the Feature ID.
+       * 
+ * + * string source_field = 2; + * + * @return The sourceField. + */ + public java.lang.String getSourceField() { + java.lang.Object ref = sourceField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Source column to get the Feature values from. If not set, uses the column
+       * with the same name as the Feature ID.
+       * 
+ * + * string source_field = 2; + * + * @return The bytes for sourceField. + */ + public com.google.protobuf.ByteString getSourceFieldBytes() { + java.lang.Object ref = sourceField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Source column to get the Feature values from. If not set, uses the column
+       * with the same name as the Feature ID.
+       * 
+ * + * string source_field = 2; + * + * @param value The sourceField to set. + * @return This builder for chaining. + */ + public Builder setSourceField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Source column to get the Feature values from. If not set, uses the column
+       * with the same name as the Feature ID.
+       * 
+ * + * string source_field = 2; + * + * @return This builder for chaining. + */ + public Builder clearSourceField() { + + sourceField_ = getDefaultInstance().getSourceField(); + onChanged(); + return this; + } + /** + * + * + *
+       * Source column to get the Feature values from. If not set, uses the column
+       * with the same name as the Feature ID.
+       * 
+ * + * string source_field = 2; + * + * @param value The bytes for sourceField to set. + * @return This builder for chaining. + */ + public Builder setSourceFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceField_ = 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.ImportFeatureValuesRequest.FeatureSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + private static final com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(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.ImportFeatureValuesRequest.FeatureSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_SOURCE(2), + BIGQUERY_SOURCE(3), + CSV_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return AVRO_SOURCE; + case 3: + return BIGQUERY_SOURCE; + case 4: + return CSV_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int featureTimeSourceCase_ = 0; + private java.lang.Object featureTimeSource_; + + public enum FeatureTimeSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FEATURE_TIME_FIELD(6), + FEATURE_TIME(7), + FEATURETIMESOURCE_NOT_SET(0); + private final int value; + + private FeatureTimeSourceCase(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 FeatureTimeSourceCase valueOf(int value) { + return forNumber(value); + } + + public static FeatureTimeSourceCase forNumber(int value) { + switch (value) { + case 6: + return FEATURE_TIME_FIELD; + case 7: + return FEATURE_TIME; + case 0: + return FEATURETIMESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FeatureTimeSourceCase getFeatureTimeSourceCase() { + return FeatureTimeSourceCase.forNumber(featureTimeSourceCase_); + } + + public static final int AVRO_SOURCE_FIELD_NUMBER = 2; + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return Whether the avroSource field is set. + */ + @java.lang.Override + public boolean hasAvroSource() { + return sourceCase_ == 2; + } + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return The avroSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSource getAvroSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.AvroSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder getAvroSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.AvroSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 3; + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 3; + } + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + + public static final int CSV_SOURCE_FIELD_NUMBER = 4; + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return Whether the csvSource field is set. + */ + @java.lang.Override + public boolean hasCsvSource() { + return sourceCase_ == 4; + } + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return The csvSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + + public static final int FEATURE_TIME_FIELD_FIELD_NUMBER = 6; + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return Whether the featureTimeField field is set. + */ + public boolean hasFeatureTimeField() { + return featureTimeSourceCase_ == 6; + } + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return The featureTimeField. + */ + public java.lang.String getFeatureTimeField() { + java.lang.Object ref = ""; + if (featureTimeSourceCase_ == 6) { + ref = featureTimeSource_; + } + 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 (featureTimeSourceCase_ == 6) { + featureTimeSource_ = s; + } + return s; + } + } + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return The bytes for featureTimeField. + */ + public com.google.protobuf.ByteString getFeatureTimeFieldBytes() { + java.lang.Object ref = ""; + if (featureTimeSourceCase_ == 6) { + ref = featureTimeSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (featureTimeSourceCase_ == 6) { + featureTimeSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_TIME_FIELD_NUMBER = 7; + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return Whether the featureTime field is set. + */ + @java.lang.Override + public boolean hasFeatureTime() { + return featureTimeSourceCase_ == 7; + } + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return The featureTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFeatureTime() { + if (featureTimeSourceCase_ == 7) { + return (com.google.protobuf.Timestamp) featureTimeSource_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { + if (featureTimeSourceCase_ == 7) { + return (com.google.protobuf.Timestamp) featureTimeSource_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for which values
+   * are being imported. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for which values
+   * are being imported. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_ID_FIELD_FIELD_NUMBER = 5; + private volatile java.lang.Object entityIdField_; + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + @java.lang.Override + public java.lang.String getEntityIdField() { + java.lang.Object ref = entityIdField_; + 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(); + entityIdField_ = s; + return s; + } + } + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdFieldBytes() { + java.lang.Object ref = entityIdField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityIdField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_SPECS_FIELD_NUMBER = 8; + private java.util.List + featureSpecs_; + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getFeatureSpecsList() { + return featureSpecs_; + } + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder> + getFeatureSpecsOrBuilderList() { + return featureSpecs_; + } + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getFeatureSpecsCount() { + return featureSpecs_.size(); + } + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec getFeatureSpecs( + int index) { + return featureSpecs_.get(index); + } + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder + getFeatureSpecsOrBuilder(int index) { + return featureSpecs_.get(index); + } + + public static final int DISABLE_ONLINE_SERVING_FIELD_NUMBER = 9; + private boolean disableOnlineServing_; + /** + * + * + *
+   * If set, data will not be imported for online serving. This
+   * is typically used for backfilling, where Feature generation timestamps are
+   * not in the timestamp range needed for online serving.
+   * 
+ * + * bool disable_online_serving = 9; + * + * @return The disableOnlineServing. + */ + @java.lang.Override + public boolean getDisableOnlineServing() { + return disableOnlineServing_; + } + + public static final int WORKER_COUNT_FIELD_NUMBER = 11; + private int workerCount_; + /** + * + * + *
+   * Specifies the number of workers that are used to write data to the
+   * Featurestore. Consider the online serving capacity that you require to
+   * achieve the desired import throughput without interfering with online
+   * serving. The value must be positive, and less than or equal to 100.
+   * If not set, defaults to using 1 worker. The low count ensures minimal
+   * impact on online serving performance.
+   * 
+ * + * int32 worker_count = 11; + * + * @return The workerCount. + */ + @java.lang.Override + public int getWorkerCount() { + return workerCount_; + } + + 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 (!getEntityTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.aiplatform.v1beta1.AvroSource) source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1beta1.CsvSource) source_); + } + if (!getEntityIdFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entityIdField_); + } + if (featureTimeSourceCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, featureTimeSource_); + } + if (featureTimeSourceCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Timestamp) featureTimeSource_); + } + for (int i = 0; i < featureSpecs_.size(); i++) { + output.writeMessage(8, featureSpecs_.get(i)); + } + if (disableOnlineServing_ != false) { + output.writeBool(9, disableOnlineServing_); + } + if (workerCount_ != 0) { + output.writeInt32(11, workerCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.AvroSource) source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_); + } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.CsvSource) source_); + } + if (!getEntityIdFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityIdField_); + } + if (featureTimeSourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, featureTimeSource_); + } + if (featureTimeSourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.protobuf.Timestamp) featureTimeSource_); + } + for (int i = 0; i < featureSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, featureSpecs_.get(i)); + } + if (disableOnlineServing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableOnlineServing_); + } + if (workerCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, workerCount_); + } + 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.ImportFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getEntityIdField().equals(other.getEntityIdField())) return false; + if (!getFeatureSpecsList().equals(other.getFeatureSpecsList())) return false; + if (getDisableOnlineServing() != other.getDisableOnlineServing()) return false; + if (getWorkerCount() != other.getWorkerCount()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getAvroSource().equals(other.getAvroSource())) return false; + break; + case 3: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; + case 4: + if (!getCsvSource().equals(other.getCsvSource())) return false; + break; + case 0: + default: + } + if (!getFeatureTimeSourceCase().equals(other.getFeatureTimeSourceCase())) return false; + switch (featureTimeSourceCase_) { + case 6: + if (!getFeatureTimeField().equals(other.getFeatureTimeField())) return false; + break; + case 7: + if (!getFeatureTime().equals(other.getFeatureTime())) 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) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getEntityIdField().hashCode(); + if (getFeatureSpecsCount() > 0) { + hash = (37 * hash) + FEATURE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getFeatureSpecsList().hashCode(); + } + hash = (37 * hash) + DISABLE_ONLINE_SERVING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableOnlineServing()); + hash = (37 * hash) + WORKER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getWorkerCount(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + AVRO_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAvroSource().hashCode(); + break; + case 3: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 4: + hash = (37 * hash) + CSV_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCsvSource().hashCode(); + break; + case 0: + default: + } + switch (featureTimeSourceCase_) { + case 6: + hash = (37 * hash) + FEATURE_TIME_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getFeatureTimeField().hashCode(); + break; + case 7: + hash = (37 * hash) + FEATURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFeatureTime().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest 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.ImportFeatureValuesRequest 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.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeatureSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityType_ = ""; + + entityIdField_ = ""; + + if (featureSpecsBuilder_ == null) { + featureSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featureSpecsBuilder_.clear(); + } + disableOnlineServing_ = false; + + workerCount_ = 0; + + sourceCase_ = 0; + source_ = null; + featureTimeSourceCase_ = 0; + featureTimeSource_ = 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_ImportFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(this); + int from_bitField0_ = bitField0_; + if (sourceCase_ == 2) { + if (avroSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = avroSourceBuilder_.build(); + } + } + if (sourceCase_ == 3) { + if (bigquerySourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = bigquerySourceBuilder_.build(); + } + } + if (sourceCase_ == 4) { + if (csvSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = csvSourceBuilder_.build(); + } + } + if (featureTimeSourceCase_ == 6) { + result.featureTimeSource_ = featureTimeSource_; + } + if (featureTimeSourceCase_ == 7) { + if (featureTimeBuilder_ == null) { + result.featureTimeSource_ = featureTimeSource_; + } else { + result.featureTimeSource_ = featureTimeBuilder_.build(); + } + } + result.entityType_ = entityType_; + result.entityIdField_ = entityIdField_; + if (featureSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + featureSpecs_ = java.util.Collections.unmodifiableList(featureSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.featureSpecs_ = featureSpecs_; + } else { + result.featureSpecs_ = featureSpecsBuilder_.build(); + } + result.disableOnlineServing_ = disableOnlineServing_; + result.workerCount_ = workerCount_; + result.sourceCase_ = sourceCase_; + result.featureTimeSourceCase_ = featureTimeSourceCase_; + 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.ImportFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (!other.getEntityIdField().isEmpty()) { + entityIdField_ = other.entityIdField_; + onChanged(); + } + if (featureSpecsBuilder_ == null) { + if (!other.featureSpecs_.isEmpty()) { + if (featureSpecs_.isEmpty()) { + featureSpecs_ = other.featureSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeatureSpecsIsMutable(); + featureSpecs_.addAll(other.featureSpecs_); + } + onChanged(); + } + } else { + if (!other.featureSpecs_.isEmpty()) { + if (featureSpecsBuilder_.isEmpty()) { + featureSpecsBuilder_.dispose(); + featureSpecsBuilder_ = null; + featureSpecs_ = other.featureSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + featureSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeatureSpecsFieldBuilder() + : null; + } else { + featureSpecsBuilder_.addAllMessages(other.featureSpecs_); + } + } + } + if (other.getDisableOnlineServing() != false) { + setDisableOnlineServing(other.getDisableOnlineServing()); + } + if (other.getWorkerCount() != 0) { + setWorkerCount(other.getWorkerCount()); + } + switch (other.getSourceCase()) { + case AVRO_SOURCE: + { + mergeAvroSource(other.getAvroSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case CSV_SOURCE: + { + mergeCsvSource(other.getCsvSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getFeatureTimeSourceCase()) { + case FEATURE_TIME_FIELD: + { + featureTimeSourceCase_ = 6; + featureTimeSource_ = other.featureTimeSource_; + onChanged(); + break; + } + case FEATURE_TIME: + { + mergeFeatureTime(other.getFeatureTime()); + break; + } + case FEATURETIMESOURCE_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.ImportFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int featureTimeSourceCase_ = 0; + private java.lang.Object featureTimeSource_; + + public FeatureTimeSourceCase getFeatureTimeSourceCase() { + return FeatureTimeSourceCase.forNumber(featureTimeSourceCase_); + } + + public Builder clearFeatureTimeSource() { + featureTimeSourceCase_ = 0; + featureTimeSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AvroSource, + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder, + com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder> + avroSourceBuilder_; + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return Whether the avroSource field is set. + */ + @java.lang.Override + public boolean hasAvroSource() { + return sourceCase_ == 2; + } + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return The avroSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSource getAvroSource() { + if (avroSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.AvroSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return avroSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + public Builder setAvroSource(com.google.cloud.aiplatform.v1beta1.AvroSource value) { + if (avroSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + avroSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + public Builder setAvroSource( + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder builderForValue) { + if (avroSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + avroSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + public Builder mergeAvroSource(com.google.cloud.aiplatform.v1beta1.AvroSource value) { + if (avroSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.AvroSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.AvroSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + avroSourceBuilder_.mergeFrom(value); + } + avroSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + public Builder clearAvroSource() { + if (avroSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + avroSourceBuilder_.clear(); + } + return this; + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + public com.google.cloud.aiplatform.v1beta1.AvroSource.Builder getAvroSourceBuilder() { + return getAvroSourceFieldBuilder().getBuilder(); + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder getAvroSourceOrBuilder() { + if ((sourceCase_ == 2) && (avroSourceBuilder_ != null)) { + return avroSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.AvroSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AvroSource, + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder, + com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder> + getAvroSourceFieldBuilder() { + if (avroSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.aiplatform.v1beta1.AvroSource.getDefaultInstance(); + } + avroSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AvroSource, + com.google.cloud.aiplatform.v1beta1.AvroSource.Builder, + com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.AvroSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + ; + return avroSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 3; + } + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + public Builder setBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + public Builder setBigquerySource( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.BigQuerySource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + bigquerySourceBuilder_.mergeFrom(value); + } + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((sourceCase_ == 3) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + 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) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + ; + return bigquerySourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + csvSourceBuilder_; + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return Whether the csvSource field is set. + */ + @java.lang.Override + public boolean hasCsvSource() { + return sourceCase_ == 4; + } + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return The csvSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource() { + if (csvSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return csvSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + public Builder setCsvSource(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + csvSourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + public Builder setCsvSource( + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder builderForValue) { + if (csvSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + csvSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + public Builder mergeCsvSource(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ != com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.CsvSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CsvSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + csvSourceBuilder_.mergeFrom(value); + } + csvSourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + public Builder clearCsvSource() { + if (csvSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + csvSourceBuilder_.clear(); + } + return this; + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + public com.google.cloud.aiplatform.v1beta1.CsvSource.Builder getCsvSourceBuilder() { + return getCsvSourceFieldBuilder().getBuilder(); + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder() { + if ((sourceCase_ == 4) && (csvSourceBuilder_ != null)) { + return csvSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + getCsvSourceFieldBuilder() { + if (csvSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + csvSourceBuilder_ = + 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) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + ; + return csvSourceBuilder_; + } + + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @return Whether the featureTimeField field is set. + */ + @java.lang.Override + public boolean hasFeatureTimeField() { + return featureTimeSourceCase_ == 6; + } + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @return The featureTimeField. + */ + @java.lang.Override + public java.lang.String getFeatureTimeField() { + java.lang.Object ref = ""; + if (featureTimeSourceCase_ == 6) { + ref = featureTimeSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (featureTimeSourceCase_ == 6) { + featureTimeSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @return The bytes for featureTimeField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureTimeFieldBytes() { + java.lang.Object ref = ""; + if (featureTimeSourceCase_ == 6) { + ref = featureTimeSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (featureTimeSourceCase_ == 6) { + featureTimeSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @param value The featureTimeField to set. + * @return This builder for chaining. + */ + public Builder setFeatureTimeField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + featureTimeSourceCase_ = 6; + featureTimeSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @return This builder for chaining. + */ + public Builder clearFeatureTimeField() { + if (featureTimeSourceCase_ == 6) { + featureTimeSourceCase_ = 0; + featureTimeSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Source column that holds the Feature timestamp for all Feature
+     * values in each entity.
+     * 
+ * + * string feature_time_field = 6; + * + * @param value The bytes for featureTimeField to set. + * @return This builder for chaining. + */ + public Builder setFeatureTimeFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureTimeSourceCase_ = 6; + featureTimeSource_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + featureTimeBuilder_; + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return Whether the featureTime field is set. + */ + @java.lang.Override + public boolean hasFeatureTime() { + return featureTimeSourceCase_ == 7; + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return The featureTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFeatureTime() { + if (featureTimeBuilder_ == null) { + if (featureTimeSourceCase_ == 7) { + return (com.google.protobuf.Timestamp) featureTimeSource_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (featureTimeSourceCase_ == 7) { + return featureTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + public Builder setFeatureTime(com.google.protobuf.Timestamp value) { + if (featureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureTimeSource_ = value; + onChanged(); + } else { + featureTimeBuilder_.setMessage(value); + } + featureTimeSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + public Builder setFeatureTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (featureTimeBuilder_ == null) { + featureTimeSource_ = builderForValue.build(); + onChanged(); + } else { + featureTimeBuilder_.setMessage(builderForValue.build()); + } + featureTimeSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + public Builder mergeFeatureTime(com.google.protobuf.Timestamp value) { + if (featureTimeBuilder_ == null) { + if (featureTimeSourceCase_ == 7 + && featureTimeSource_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + featureTimeSource_ = + com.google.protobuf.Timestamp.newBuilder( + (com.google.protobuf.Timestamp) featureTimeSource_) + .mergeFrom(value) + .buildPartial(); + } else { + featureTimeSource_ = value; + } + onChanged(); + } else { + if (featureTimeSourceCase_ == 7) { + featureTimeBuilder_.mergeFrom(value); + } + featureTimeBuilder_.setMessage(value); + } + featureTimeSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + public Builder clearFeatureTime() { + if (featureTimeBuilder_ == null) { + if (featureTimeSourceCase_ == 7) { + featureTimeSourceCase_ = 0; + featureTimeSource_ = null; + onChanged(); + } + } else { + if (featureTimeSourceCase_ == 7) { + featureTimeSourceCase_ = 0; + featureTimeSource_ = null; + } + featureTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getFeatureTimeBuilder() { + return getFeatureTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { + if ((featureTimeSourceCase_ == 7) && (featureTimeBuilder_ != null)) { + return featureTimeBuilder_.getMessageOrBuilder(); + } else { + if (featureTimeSourceCase_ == 7) { + return (com.google.protobuf.Timestamp) featureTimeSource_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
+     * Single Feature timestamp for all entities being imported. The
+     * timestamp must not have higher than millisecond precision.
+     * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFeatureTimeFieldBuilder() { + if (featureTimeBuilder_ == null) { + if (!(featureTimeSourceCase_ == 7)) { + featureTimeSource_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + featureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) featureTimeSource_, + getParentForChildren(), + isClean()); + featureTimeSource_ = null; + } + featureTimeSourceCase_ = 7; + onChanged(); + ; + return featureTimeBuilder_; + } + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for which values
+     * are being imported. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for which values
+     * are being imported. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for which values
+     * are being imported. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for which values
+     * are being imported. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for which values
+     * are being imported. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = value; + onChanged(); + return this; + } + + private java.lang.Object entityIdField_ = ""; + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + public java.lang.String getEntityIdField() { + java.lang.Object ref = entityIdField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityIdField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + public com.google.protobuf.ByteString getEntityIdFieldBytes() { + java.lang.Object ref = entityIdField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityIdField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @param value The entityIdField to set. + * @return This builder for chaining. + */ + public Builder setEntityIdField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityIdField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return This builder for chaining. + */ + public Builder clearEntityIdField() { + + entityIdField_ = getDefaultInstance().getEntityIdField(); + onChanged(); + return this; + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @param value The bytes for entityIdField to set. + * @return This builder for chaining. + */ + public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityIdField_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec> + featureSpecs_ = java.util.Collections.emptyList(); + + private void ensureFeatureSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + featureSpecs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec>( + featureSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder> + featureSpecsBuilder_; + + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec> + getFeatureSpecsList() { + if (featureSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(featureSpecs_); + } else { + return featureSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getFeatureSpecsCount() { + if (featureSpecsBuilder_ == null) { + return featureSpecs_.size(); + } else { + return featureSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + getFeatureSpecs(int index) { + if (featureSpecsBuilder_ == null) { + return featureSpecs_.get(index); + } else { + return featureSpecsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec value) { + if (featureSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureSpecsIsMutable(); + featureSpecs_.set(index, value); + onChanged(); + } else { + featureSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + builderForValue) { + if (featureSpecsBuilder_ == null) { + ensureFeatureSpecsIsMutable(); + featureSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + featureSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFeatureSpecs( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec value) { + if (featureSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureSpecsIsMutable(); + featureSpecs_.add(value); + onChanged(); + } else { + featureSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFeatureSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec value) { + if (featureSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureSpecsIsMutable(); + featureSpecs_.add(index, value); + onChanged(); + } else { + featureSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFeatureSpecs( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + builderForValue) { + if (featureSpecsBuilder_ == null) { + ensureFeatureSpecsIsMutable(); + featureSpecs_.add(builderForValue.build()); + onChanged(); + } else { + featureSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFeatureSpecs( + int index, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + builderForValue) { + if (featureSpecsBuilder_ == null) { + ensureFeatureSpecsIsMutable(); + featureSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + featureSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllFeatureSpecs( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec> + values) { + if (featureSpecsBuilder_ == null) { + ensureFeatureSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featureSpecs_); + onChanged(); + } else { + featureSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureSpecs() { + if (featureSpecsBuilder_ == null) { + featureSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featureSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeFeatureSpecs(int index) { + if (featureSpecsBuilder_ == null) { + ensureFeatureSpecsIsMutable(); + featureSpecs_.remove(index); + onChanged(); + } else { + featureSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + getFeatureSpecsBuilder(int index) { + return getFeatureSpecsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder + getFeatureSpecsOrBuilder(int index) { + if (featureSpecsBuilder_ == null) { + return featureSpecs_.get(index); + } else { + return featureSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder> + getFeatureSpecsOrBuilderList() { + if (featureSpecsBuilder_ != null) { + return featureSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(featureSpecs_); + } + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + addFeatureSpecsBuilder() { + return getFeatureSpecsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder + addFeatureSpecsBuilder(int index) { + return getFeatureSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Specifications defining which Feature values to import from the entity. The
+     * request fails if no feature_specs are provided, and having multiple
+     * feature_specs for one Feature is not allowed.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder> + getFeatureSpecsBuilderList() { + return getFeatureSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder> + getFeatureSpecsFieldBuilder() { + if (featureSpecsBuilder_ == null) { + featureSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + .FeatureSpecOrBuilder>( + featureSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureSpecs_ = null; + } + return featureSpecsBuilder_; + } + + private boolean disableOnlineServing_; + /** + * + * + *
+     * If set, data will not be imported for online serving. This
+     * is typically used for backfilling, where Feature generation timestamps are
+     * not in the timestamp range needed for online serving.
+     * 
+ * + * bool disable_online_serving = 9; + * + * @return The disableOnlineServing. + */ + @java.lang.Override + public boolean getDisableOnlineServing() { + return disableOnlineServing_; + } + /** + * + * + *
+     * If set, data will not be imported for online serving. This
+     * is typically used for backfilling, where Feature generation timestamps are
+     * not in the timestamp range needed for online serving.
+     * 
+ * + * bool disable_online_serving = 9; + * + * @param value The disableOnlineServing to set. + * @return This builder for chaining. + */ + public Builder setDisableOnlineServing(boolean value) { + + disableOnlineServing_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, data will not be imported for online serving. This
+     * is typically used for backfilling, where Feature generation timestamps are
+     * not in the timestamp range needed for online serving.
+     * 
+ * + * bool disable_online_serving = 9; + * + * @return This builder for chaining. + */ + public Builder clearDisableOnlineServing() { + + disableOnlineServing_ = false; + onChanged(); + return this; + } + + private int workerCount_; + /** + * + * + *
+     * Specifies the number of workers that are used to write data to the
+     * Featurestore. Consider the online serving capacity that you require to
+     * achieve the desired import throughput without interfering with online
+     * serving. The value must be positive, and less than or equal to 100.
+     * If not set, defaults to using 1 worker. The low count ensures minimal
+     * impact on online serving performance.
+     * 
+ * + * int32 worker_count = 11; + * + * @return The workerCount. + */ + @java.lang.Override + public int getWorkerCount() { + return workerCount_; + } + /** + * + * + *
+     * Specifies the number of workers that are used to write data to the
+     * Featurestore. Consider the online serving capacity that you require to
+     * achieve the desired import throughput without interfering with online
+     * serving. The value must be positive, and less than or equal to 100.
+     * If not set, defaults to using 1 worker. The low count ensures minimal
+     * impact on online serving performance.
+     * 
+ * + * int32 worker_count = 11; + * + * @param value The workerCount to set. + * @return This builder for chaining. + */ + public Builder setWorkerCount(int value) { + + workerCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the number of workers that are used to write data to the
+     * Featurestore. Consider the online serving capacity that you require to
+     * achieve the desired import throughput without interfering with online
+     * serving. The value must be positive, and less than or equal to 100.
+     * If not set, defaults to using 1 worker. The low count ensures minimal
+     * impact on online serving performance.
+     * 
+ * + * int32 worker_count = 11; + * + * @return This builder for chaining. + */ + public Builder clearWorkerCount() { + + workerCount_ = 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.ImportFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportFeatureValuesRequest(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.ImportFeatureValuesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequestOrBuilder.java new file mode 100644 index 000000000..78e0cda8b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequestOrBuilder.java @@ -0,0 +1,323 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ImportFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return Whether the avroSource field is set. + */ + boolean hasAvroSource(); + /** + * .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; + * + * @return The avroSource. + */ + com.google.cloud.aiplatform.v1beta1.AvroSource getAvroSource(); + /** .google.cloud.aiplatform.v1beta1.AvroSource avro_source = 2; */ + com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder getAvroSourceOrBuilder(); + + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; + * + * @return The bigquerySource. + */ + com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource(); + /** .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 3; */ + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return Whether the csvSource field is set. + */ + boolean hasCsvSource(); + /** + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; + * + * @return The csvSource. + */ + com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource(); + /** .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 4; */ + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder(); + + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return Whether the featureTimeField field is set. + */ + boolean hasFeatureTimeField(); + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return The featureTimeField. + */ + java.lang.String getFeatureTimeField(); + /** + * + * + *
+   * Source column that holds the Feature timestamp for all Feature
+   * values in each entity.
+   * 
+ * + * string feature_time_field = 6; + * + * @return The bytes for featureTimeField. + */ + com.google.protobuf.ByteString getFeatureTimeFieldBytes(); + + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return Whether the featureTime field is set. + */ + boolean hasFeatureTime(); + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + * + * @return The featureTime. + */ + com.google.protobuf.Timestamp getFeatureTime(); + /** + * + * + *
+   * Single Feature timestamp for all entities being imported. The
+   * timestamp must not have higher than millisecond precision.
+   * 
+ * + * .google.protobuf.Timestamp feature_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for which values
+   * are being imported. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for which values
+   * are being imported. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + java.lang.String getEntityIdField(); + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + com.google.protobuf.ByteString getEntityIdFieldBytes(); + + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getFeatureSpecsList(); + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec getFeatureSpecs( + int index); + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getFeatureSpecsCount(); + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder> + getFeatureSpecsOrBuilderList(); + /** + * + * + *
+   * Required. Specifications defining which Feature values to import from the entity. The
+   * request fails if no feature_specs are provided, and having multiple
+   * feature_specs for one Feature is not allowed.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpecOrBuilder + getFeatureSpecsOrBuilder(int index); + + /** + * + * + *
+   * If set, data will not be imported for online serving. This
+   * is typically used for backfilling, where Feature generation timestamps are
+   * not in the timestamp range needed for online serving.
+   * 
+ * + * bool disable_online_serving = 9; + * + * @return The disableOnlineServing. + */ + boolean getDisableOnlineServing(); + + /** + * + * + *
+   * Specifies the number of workers that are used to write data to the
+   * Featurestore. Consider the online serving capacity that you require to
+   * achieve the desired import throughput without interfering with online
+   * serving. The value must be positive, and less than or equal to 100.
+   * If not set, defaults to using 1 worker. The low count ensures minimal
+   * impact on online serving performance.
+   * 
+ * + * int32 worker_count = 11; + * + * @return The workerCount. + */ + int getWorkerCount(); + + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.SourceCase getSourceCase(); + + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureTimeSourceCase + getFeatureTimeSourceCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java new file mode 100644 index 000000000..81da5c4ab --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java @@ -0,0 +1,750 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} + */ +public final class ImportFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + ImportFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportFeatureValuesResponse.newBuilder() to construct. + private ImportFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportFeatureValuesResponse( + 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: + { + importedEntityCount_ = input.readInt64(); + break; + } + case 16: + { + importedFeatureValueCount_ = input.readInt64(); + break; + } + case 48: + { + invalidRowCount_ = 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.Builder.class); + } + + public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 1; + private long importedEntityCount_; + /** + * + * + *
+   * Number of entities that have been imported by the operation.
+   * 
+ * + * int64 imported_entity_count = 1; + * + * @return The importedEntityCount. + */ + @java.lang.Override + public long getImportedEntityCount() { + return importedEntityCount_; + } + + public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 2; + private long importedFeatureValueCount_; + /** + * + * + *
+   * Number of Feature values that have been imported by the operation.
+   * 
+ * + * int64 imported_feature_value_count = 2; + * + * @return The importedFeatureValueCount. + */ + @java.lang.Override + public long getImportedFeatureValueCount() { + return importedFeatureValueCount_; + } + + public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; + private long invalidRowCount_; + /** + * + * + *
+   * The number of rows in input source that weren't imported due to either
+   * * Not having any featureValues.
+   * * Having a null entityId.
+   * * Having a null timestamp.
+   * * Not being parsable (applicable for CSV sources).
+   * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + @java.lang.Override + public long getInvalidRowCount() { + return invalidRowCount_; + } + + 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 (importedEntityCount_ != 0L) { + output.writeInt64(1, importedEntityCount_); + } + if (importedFeatureValueCount_ != 0L) { + output.writeInt64(2, importedFeatureValueCount_); + } + if (invalidRowCount_ != 0L) { + output.writeInt64(6, invalidRowCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importedEntityCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, importedEntityCount_); + } + if (importedFeatureValueCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, importedFeatureValueCount_); + } + if (invalidRowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, invalidRowCount_); + } + 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.ImportFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) obj; + + if (getImportedEntityCount() != other.getImportedEntityCount()) return false; + if (getImportedFeatureValueCount() != other.getImportedFeatureValueCount()) return false; + if (getInvalidRowCount() != other.getInvalidRowCount()) 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) + IMPORTED_ENTITY_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedEntityCount()); + hash = (37 * hash) + IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedFeatureValueCount()); + hash = (37 * hash) + INVALID_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInvalidRowCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse 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.ImportFeatureValuesResponse 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 [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ImportFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.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(); + importedEntityCount_ = 0L; + + importedFeatureValueCount_ = 0L; + + invalidRowCount_ = 0L; + + 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_ImportFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(this); + result.importedEntityCount_ = importedEntityCount_; + result.importedFeatureValueCount_ = importedFeatureValueCount_; + result.invalidRowCount_ = invalidRowCount_; + 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.ImportFeatureValuesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.getDefaultInstance()) + return this; + if (other.getImportedEntityCount() != 0L) { + setImportedEntityCount(other.getImportedEntityCount()); + } + if (other.getImportedFeatureValueCount() != 0L) { + setImportedFeatureValueCount(other.getImportedFeatureValueCount()); + } + if (other.getInvalidRowCount() != 0L) { + setInvalidRowCount(other.getInvalidRowCount()); + } + 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.ImportFeatureValuesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long importedEntityCount_; + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 1; + * + * @return The importedEntityCount. + */ + @java.lang.Override + public long getImportedEntityCount() { + return importedEntityCount_; + } + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 1; + * + * @param value The importedEntityCount to set. + * @return This builder for chaining. + */ + public Builder setImportedEntityCount(long value) { + + importedEntityCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of entities that have been imported by the operation.
+     * 
+ * + * int64 imported_entity_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearImportedEntityCount() { + + importedEntityCount_ = 0L; + onChanged(); + return this; + } + + private long importedFeatureValueCount_; + /** + * + * + *
+     * Number of Feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 2; + * + * @return The importedFeatureValueCount. + */ + @java.lang.Override + public long getImportedFeatureValueCount() { + return importedFeatureValueCount_; + } + /** + * + * + *
+     * Number of Feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 2; + * + * @param value The importedFeatureValueCount to set. + * @return This builder for chaining. + */ + public Builder setImportedFeatureValueCount(long value) { + + importedFeatureValueCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of Feature values that have been imported by the operation.
+     * 
+ * + * int64 imported_feature_value_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearImportedFeatureValueCount() { + + importedFeatureValueCount_ = 0L; + onChanged(); + return this; + } + + private long invalidRowCount_; + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + @java.lang.Override + public long getInvalidRowCount() { + return invalidRowCount_; + } + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @param value The invalidRowCount to set. + * @return This builder for chaining. + */ + public Builder setInvalidRowCount(long value) { + + invalidRowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows in input source that weren't imported due to either
+     * * Not having any featureValues.
+     * * Having a null entityId.
+     * * Having a null timestamp.
+     * * Not being parsable (applicable for CSV sources).
+     * 
+ * + * int64 invalid_row_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearInvalidRowCount() { + + invalidRowCount_ = 0L; + 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.ImportFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportFeatureValuesResponse(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.ImportFeatureValuesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000..ecc868e39 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponseOrBuilder.java @@ -0,0 +1,68 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ImportFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of entities that have been imported by the operation.
+   * 
+ * + * int64 imported_entity_count = 1; + * + * @return The importedEntityCount. + */ + long getImportedEntityCount(); + + /** + * + * + *
+   * Number of Feature values that have been imported by the operation.
+   * 
+ * + * int64 imported_feature_value_count = 2; + * + * @return The importedFeatureValueCount. + */ + long getImportedFeatureValueCount(); + + /** + * + * + *
+   * The number of rows in input source that weren't imported due to either
+   * * Not having any featureValues.
+   * * Having a null entityId.
+   * * Having a null timestamp.
+   * * Not being parsable (applicable for CSV sources).
+   * 
+ * + * int64 invalid_row_count = 6; + * + * @return The invalidRowCount. + */ + long getInvalidRowCount(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java new file mode 100644 index 000000000..aa35523ef --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java @@ -0,0 +1,3337 @@ +/* + * 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/index.proto + +package com.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.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Index} + */ +public final class Index extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Index) + IndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use Index.newBuilder() to construct. + private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Index() { + name_ = ""; + displayName_ = ""; + description_ = ""; + metadataSchemaUri_ = ""; + deployedIndexes_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Index(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Index( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + metadataSchemaUri_ = s; + break; + } + case 50: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deployedIndexes_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.parser(), + extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + 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; + } + 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)) { + deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_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.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Index.class, + com.google.cloud.aiplatform.v1beta1.Index.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the Index.
+   * 
+ * + * 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 Index.
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. The display name of the Index.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The display name of the Index.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * The description of the Index.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the Index.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object metadataSchemaUri_; + /** + * + * + *
+   * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+   * information about the Index, that is specific to it. Unset if the Index
+   * does not have any additional information.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * Note: The URI given on output will be immutable and probably different,
+   * including the URI scheme, than the one given on input. The output URI will
+   * point to a location where the user only has a read access.
+   * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The metadataSchemaUri. + */ + @java.lang.Override + public java.lang.String getMetadataSchemaUri() { + java.lang.Object ref = metadataSchemaUri_; + 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(); + metadataSchemaUri_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+   * information about the Index, that is specific to it. Unset if the Index
+   * does not have any additional information.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * Note: The URI given on output will be immutable and probably different,
+   * including the URI scheme, than the one given on input. The output URI will
+   * point to a location where the user only has a read access.
+   * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for metadataSchemaUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataSchemaUriBytes() { + java.lang.Object ref = metadataSchemaUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 6; + private com.google.protobuf.Value metadata_; + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Value getMetadata() { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 7; + private java.util.List deployedIndexes_; + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeployedIndexesList() { + return deployedIndexes_; + } + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeployedIndexesOrBuilderList() { + return deployedIndexes_; + } + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDeployedIndexesCount() { + return deployedIndexes_.size(); + } + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDeployedIndexes(int index) { + return deployedIndexes_.get(index); + } + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployedIndexesOrBuilder( + int index) { + return deployedIndexes_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 8; + private volatile java.lang.Object 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; + } + } + /** + * + * + *
+   * 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.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_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 Indexes.
+   * 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 = 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 Indexes.
+   * 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 = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Indexes.
+   * 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 = 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 Indexes.
+   * 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 = 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 Index 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 Index 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 Index 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 Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .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 Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .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 Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!getMetadataSchemaUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, metadataSchemaUri_); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + for (int i = 0; i < deployedIndexes_.size(); i++) { + output.writeMessage(7, deployedIndexes_.get(i)); + } + 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()); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!getMetadataSchemaUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, metadataSchemaUri_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); + } + for (int i = 0; i < deployedIndexes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, deployedIndexes_.get(i)); + } + 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()); + } + 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.Index)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Index other = + (com.google.cloud.aiplatform.v1beta1.Index) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getMetadataSchemaUri().equals(other.getMetadataSchemaUri())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getDeployedIndexesList().equals(other.getDeployedIndexesList())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + METADATA_SCHEMA_URI_FIELD_NUMBER; + hash = (53 * hash) + getMetadataSchemaUri().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getDeployedIndexesCount() > 0) { + hash = (37 * hash) + DEPLOYED_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexesList().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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Index 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.Index parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Index 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.Index parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Index 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.Index parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Index 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.Index parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Index 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.Index 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.Index 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.Index 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 representation of a collection of database items organized in a way that
+   * allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Index} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Index) + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_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.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Index.class, + com.google.cloud.aiplatform.v1beta1.Index.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Index.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeployedIndexesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + metadataSchemaUri_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (deployedIndexesBuilder_ == null) { + deployedIndexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deployedIndexesBuilder_.clear(); + } + 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.v1beta1.IndexProto + .internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index build() { + com.google.cloud.aiplatform.v1beta1.Index result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index buildPartial() { + com.google.cloud.aiplatform.v1beta1.Index result = + new com.google.cloud.aiplatform.v1beta1.Index(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + result.metadataSchemaUri_ = metadataSchemaUri_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (deployedIndexesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployedIndexes_ = deployedIndexes_; + } else { + result.deployedIndexes_ = deployedIndexesBuilder_.build(); + } + 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.v1beta1.Index) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Index) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) { + if (other == com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getMetadataSchemaUri().isEmpty()) { + metadataSchemaUri_ = other.metadataSchemaUri_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (deployedIndexesBuilder_ == null) { + if (!other.deployedIndexes_.isEmpty()) { + if (deployedIndexes_.isEmpty()) { + deployedIndexes_ = other.deployedIndexes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.addAll(other.deployedIndexes_); + } + onChanged(); + } + } else { + if (!other.deployedIndexes_.isEmpty()) { + if (deployedIndexesBuilder_.isEmpty()) { + deployedIndexesBuilder_.dispose(); + deployedIndexesBuilder_ = null; + deployedIndexes_ = other.deployedIndexes_; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndexesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeployedIndexesFieldBuilder() + : null; + } else { + deployedIndexesBuilder_.addAllMessages(other.deployedIndexes_); + } + } + } + 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.v1beta1.Index parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Index) 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 Index.
+     * 
+ * + * 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 Index.
+     * 
+ * + * 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 Index.
+     * 
+ * + * 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 Index.
+     * 
+ * + * 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 Index.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. The display name of the Index.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The display name of the Index.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The display name of the Index.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The display name of the Index.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Index.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + /** + * + * + *
+     * The description of the Index.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the Index.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the Index.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the Index.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the Index.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object metadataSchemaUri_ = ""; + /** + * + * + *
+     * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+     * information about the Index, that is specific to it. Unset if the Index
+     * does not have any additional information.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * Note: The URI given on output will be immutable and probably different,
+     * including the URI scheme, than the one given on input. The output URI will
+     * point to a location where the user only has a read access.
+     * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The metadataSchemaUri. + */ + public java.lang.String getMetadataSchemaUri() { + java.lang.Object ref = metadataSchemaUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataSchemaUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+     * information about the Index, that is specific to it. Unset if the Index
+     * does not have any additional information.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * Note: The URI given on output will be immutable and probably different,
+     * including the URI scheme, than the one given on input. The output URI will
+     * point to a location where the user only has a read access.
+     * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for metadataSchemaUri. + */ + public com.google.protobuf.ByteString getMetadataSchemaUriBytes() { + java.lang.Object ref = metadataSchemaUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+     * information about the Index, that is specific to it. Unset if the Index
+     * does not have any additional information.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * Note: The URI given on output will be immutable and probably different,
+     * including the URI scheme, than the one given on input. The output URI will
+     * point to a location where the user only has a read access.
+     * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The metadataSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setMetadataSchemaUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataSchemaUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+     * information about the Index, that is specific to it. Unset if the Index
+     * does not have any additional information.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * Note: The URI given on output will be immutable and probably different,
+     * including the URI scheme, than the one given on input. The output URI will
+     * point to a location where the user only has a read access.
+     * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataSchemaUri() { + + metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+     * information about the Index, that is specific to it. Unset if the Index
+     * does not have any additional information.
+     * The schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+     * Note: The URI given on output will be immutable and probably different,
+     * including the URI scheme, than the one given on input. The output URI will
+     * point to a location where the user only has a read access.
+     * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for metadataSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataSchemaUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Value metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return The metadata. + */ + public com.google.protobuf.Value getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public Builder mergeMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public com.google.protobuf.Value.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * An additional information about the Index; the schema of the metadata can
+     * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+     * 
+ * + * .google.protobuf.Value metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List deployedIndexes_ = + java.util.Collections.emptyList(); + + private void ensureDeployedIndexesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = + new java.util.ArrayList( + deployedIndexes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder> + deployedIndexesBuilder_; + + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesList() { + if (deployedIndexesBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployedIndexes_); + } else { + return deployedIndexesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDeployedIndexesCount() { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.size(); + } else { + return deployedIndexesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDeployedIndexes(int index) { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.get(index); + } else { + return deployedIndexesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.set(index, value); + onChanged(); + } else { + deployedIndexesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.set(index, builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(value); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(index, value); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(index, builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDeployedIndexes( + java.lang.Iterable values) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedIndexes_); + onChanged(); + } else { + deployedIndexesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeployedIndexes() { + if (deployedIndexesBuilder_ == null) { + deployedIndexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deployedIndexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeployedIndexes(int index) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.remove(index); + onChanged(); + } else { + deployedIndexesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder getDeployedIndexesBuilder( + int index) { + return getDeployedIndexesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder + getDeployedIndexesOrBuilder(int index) { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.get(index); + } else { + return deployedIndexesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesOrBuilderList() { + if (deployedIndexesBuilder_ != null) { + return deployedIndexesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployedIndexes_); + } + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder + addDeployedIndexesBuilder() { + return getDeployedIndexesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder addDeployedIndexesBuilder( + int index) { + return getDeployedIndexesFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The pointers to DeployedIndexes created from this Index.
+     * An Index can be only deleted if all its DeployedIndexes had been undeployed
+     * first.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesBuilderList() { + return getDeployedIndexesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder> + getDeployedIndexesFieldBuilder() { + if (deployedIndexesBuilder_ == null) { + deployedIndexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>( + deployedIndexes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deployedIndexes_ = null; + } + return deployedIndexesBuilder_; + } + + private java.lang.Object 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; + } + } + /** + * + * + *
+     * 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; + } + } + /** + * + * + *
+     * 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; + } + /** + * + * + *
+     * 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; + } + /** + * + * + *
+     * 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 Indexes.
+     * 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 = 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 Indexes.
+     * 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 = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Indexes.
+     * 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 = 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 Indexes.
+     * 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 = 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 Indexes.
+     * 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 = 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 Indexes.
+     * 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 = 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 Indexes.
+     * 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 = 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 Index 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 Index 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 Index 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 Index 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 Index 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 Index 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 Index 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 Index 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 Index 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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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 Index was most recently updated.
+     * This also includes any update to the contents of the Index.
+     * Note that Operations working on this Index may have their
+     * [Operations.metadata.generic_metadata.update_time]
+     * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+     * timestamp, yet that does not mean their results are not already reflected
+     * in the Index. Result of any successfully completed Operation on the Index
+     * is reflected in it.
+     * 
+ * + * + * .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_; + } + + @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.Index) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Index) + private static final com.google.cloud.aiplatform.v1beta1.Index DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Index(); + } + + public static com.google.cloud.aiplatform.v1beta1.Index getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Index parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Index(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.Index getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java new file mode 100644 index 000000000..da21063ae --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java @@ -0,0 +1,2986 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Indexes are deployed into it. An IndexEndpoint can have multiple
+ * DeployedIndexes.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IndexEndpoint} + */ +public final class IndexEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.IndexEndpoint) + IndexEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexEndpoint.newBuilder() to construct. + private IndexEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexEndpoint() { + name_ = ""; + displayName_ = ""; + description_ = ""; + deployedIndexes_ = java.util.Collections.emptyList(); + etag_ = ""; + network_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IndexEndpoint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexEndpoint( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deployedIndexes_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.parser(), + extensionRegistry)); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 58: + { + 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 66: + { + 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 74: + { + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.class, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the IndexEndpoint.
+   * 
+ * + * 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 IndexEndpoint.
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. The display name of the IndexEndpoint.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The display name of the IndexEndpoint.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * The description of the IndexEndpoint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the IndexEndpoint.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 4; + private java.util.List deployedIndexes_; + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeployedIndexesList() { + return deployedIndexes_; + } + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeployedIndexesOrBuilderList() { + return deployedIndexes_; + } + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDeployedIndexesCount() { + return deployedIndexes_.size(); + } + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndexes(int index) { + return deployedIndexes_.get(index); + } + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexesOrBuilder( + int index) { + return deployedIndexes_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 5; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5; + * + * @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; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5; + * + * @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 = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_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 IndexEndpoints.
+   * 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 = 6; + */ + @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 IndexEndpoints.
+   * 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 = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your IndexEndpoints.
+   * 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 = 6; + */ + @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 IndexEndpoints.
+   * 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 = 6; + */ + @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 = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int NETWORK_FIELD_NUMBER = 9; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Required. Immutable. The full name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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; + } + } + /** + * + * + *
+   * Required. Immutable. The full name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + for (int i = 0; i < deployedIndexes_.size(); i++) { + output.writeMessage(4, deployedIndexes_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + for (int i = 0; i < deployedIndexes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, deployedIndexes_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.v1beta1.IndexEndpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.IndexEndpoint other = + (com.google.cloud.aiplatform.v1beta1.IndexEndpoint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDeployedIndexesList().equals(other.getDeployedIndexesList())) 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 (!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(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getDeployedIndexesCount() > 0) { + hash = (37 * hash) + DEPLOYED_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexesList().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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint 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.IndexEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint 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.IndexEndpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint 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.IndexEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint 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.IndexEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint 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.IndexEndpoint 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.IndexEndpoint 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.IndexEndpoint 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; + } + /** + * + * + *
+   * Indexes are deployed into it. An IndexEndpoint can have multiple
+   * DeployedIndexes.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IndexEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.IndexEndpoint) + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.class, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.IndexEndpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeployedIndexesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + if (deployedIndexesBuilder_ == null) { + deployedIndexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deployedIndexesBuilder_.clear(); + } + etag_ = ""; + + internalGetMutableLabels().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + network_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint build() { + com.google.cloud.aiplatform.v1beta1.IndexEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint buildPartial() { + com.google.cloud.aiplatform.v1beta1.IndexEndpoint result = + new com.google.cloud.aiplatform.v1beta1.IndexEndpoint(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + if (deployedIndexesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployedIndexes_ = deployedIndexes_; + } else { + result.deployedIndexes_ = deployedIndexesBuilder_.build(); + } + 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.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.v1beta1.IndexEndpoint) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.IndexEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexEndpoint other) { + if (other == com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (deployedIndexesBuilder_ == null) { + if (!other.deployedIndexes_.isEmpty()) { + if (deployedIndexes_.isEmpty()) { + deployedIndexes_ = other.deployedIndexes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.addAll(other.deployedIndexes_); + } + onChanged(); + } + } else { + if (!other.deployedIndexes_.isEmpty()) { + if (deployedIndexesBuilder_.isEmpty()) { + deployedIndexesBuilder_.dispose(); + deployedIndexesBuilder_ = null; + deployedIndexes_ = other.deployedIndexes_; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndexesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeployedIndexesFieldBuilder() + : null; + } else { + deployedIndexesBuilder_.addAllMessages(other.deployedIndexes_); + } + } + } + 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.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.v1beta1.IndexEndpoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.IndexEndpoint) 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 IndexEndpoint.
+     * 
+ * + * 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 IndexEndpoint.
+     * 
+ * + * 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 IndexEndpoint.
+     * 
+ * + * 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 IndexEndpoint.
+     * 
+ * + * 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 IndexEndpoint.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. The display name of the IndexEndpoint.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The display name of the IndexEndpoint.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The display name of the IndexEndpoint.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The display name of the IndexEndpoint.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the IndexEndpoint.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + /** + * + * + *
+     * The description of the IndexEndpoint.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the IndexEndpoint.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the IndexEndpoint.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the IndexEndpoint.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the IndexEndpoint.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.util.List deployedIndexes_ = + java.util.Collections.emptyList(); + + private void ensureDeployedIndexesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployedIndexes_ = + new java.util.ArrayList( + deployedIndexes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + deployedIndexesBuilder_; + + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesList() { + if (deployedIndexesBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployedIndexes_); + } else { + return deployedIndexesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDeployedIndexesCount() { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.size(); + } else { + return deployedIndexesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndexes(int index) { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.get(index); + } else { + return deployedIndexesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.set(index, value); + onChanged(); + } else { + deployedIndexesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.set(index, builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(value); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { + if (deployedIndexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(index, value); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeployedIndexes( + int index, com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.add(index, builderForValue.build()); + onChanged(); + } else { + deployedIndexesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDeployedIndexes( + java.lang.Iterable values) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedIndexes_); + onChanged(); + } else { + deployedIndexesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeployedIndexes() { + if (deployedIndexesBuilder_ == null) { + deployedIndexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deployedIndexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeployedIndexes(int index) { + if (deployedIndexesBuilder_ == null) { + ensureDeployedIndexesIsMutable(); + deployedIndexes_.remove(index); + onChanged(); + } else { + deployedIndexesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexesBuilder( + int index) { + return getDeployedIndexesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexesOrBuilder( + int index) { + if (deployedIndexesBuilder_ == null) { + return deployedIndexes_.get(index); + } else { + return deployedIndexesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesOrBuilderList() { + if (deployedIndexesBuilder_ != null) { + return deployedIndexesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployedIndexes_); + } + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder addDeployedIndexesBuilder() { + return getDeployedIndexesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder addDeployedIndexesBuilder( + int index) { + return getDeployedIndexesFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The indexes deployed in this endpoint.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeployedIndexesBuilderList() { + return getDeployedIndexesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder> + getDeployedIndexesFieldBuilder() { + if (deployedIndexesBuilder_ == null) { + deployedIndexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedIndex, + com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder>( + deployedIndexes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deployedIndexes_ = null; + } + return deployedIndexesBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5; + * + * @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; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 5; + * + * @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 IndexEndpoints.
+     * 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 = 6; + */ + @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 IndexEndpoints.
+     * 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 = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your IndexEndpoints.
+     * 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 = 6; + */ + @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 IndexEndpoints.
+     * 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 = 6; + */ + @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 IndexEndpoints.
+     * 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 = 6; + */ + 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 IndexEndpoints.
+     * 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 = 6; + */ + 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 IndexEndpoints.
+     * 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 = 6; + */ + 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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 IndexEndpoint was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 IndexEndpoint was last updated.
+     * This timestamp is not updated when the endpoint's DeployedIndexes are
+     * updated, e.g. due to updates of the original Indexes they are the
+     * deployments of.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 java.lang.Object network_ = ""; + /** + * + * + *
+     * Required. Immutable. The full name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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; + } + } + /** + * + * + *
+     * Required. Immutable. The full name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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; + } + } + /** + * + * + *
+     * Required. Immutable. The full name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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; + } + /** + * + * + *
+     * Required. Immutable. The full name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The full name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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.v1beta1.IndexEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.IndexEndpoint) + private static final com.google.cloud.aiplatform.v1beta1.IndexEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.IndexEndpoint(); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexEndpoint(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.IndexEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java new file mode 100644 index 000000000..aa875dae4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java @@ -0,0 +1,227 @@ +/* + * 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 IndexEndpointName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INDEX_ENDPOINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String indexEndpoint; + + @Deprecated + protected IndexEndpointName() { + project = null; + location = null; + indexEndpoint = null; + } + + private IndexEndpointName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + indexEndpoint = Preconditions.checkNotNull(builder.getIndexEndpoint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIndexEndpoint() { + return indexEndpoint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static IndexEndpointName of(String project, String location, String indexEndpoint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setIndexEndpoint(indexEndpoint) + .build(); + } + + public static String format(String project, String location, String indexEndpoint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setIndexEndpoint(indexEndpoint) + .build() + .toString(); + } + + public static IndexEndpointName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INDEX_ENDPOINT.validatedMatch( + formattedString, "IndexEndpointName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("index_endpoint")); + } + + 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 (IndexEndpointName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INDEX_ENDPOINT.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 (indexEndpoint != null) { + fieldMapBuilder.put("index_endpoint", indexEndpoint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INDEX_ENDPOINT.instantiate( + "project", project, "location", location, "index_endpoint", indexEndpoint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + IndexEndpointName that = ((IndexEndpointName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.indexEndpoint, that.indexEndpoint); + } + 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(indexEndpoint); + return h; + } + + /** Builder for projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}. */ + public static class Builder { + private String project; + private String location; + private String indexEndpoint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIndexEndpoint() { + return indexEndpoint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setIndexEndpoint(String indexEndpoint) { + this.indexEndpoint = indexEndpoint; + return this; + } + + private Builder(IndexEndpointName indexEndpointName) { + project = indexEndpointName.project; + location = indexEndpointName.location; + indexEndpoint = indexEndpointName.indexEndpoint; + } + + public IndexEndpointName build() { + return new IndexEndpointName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java new file mode 100644 index 000000000..57742a68f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java @@ -0,0 +1,397 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface IndexEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.IndexEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the IndexEndpoint.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the IndexEndpoint.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the IndexEndpoint.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the IndexEndpoint.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the IndexEndpoint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the IndexEndpoint.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDeployedIndexesList(); + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndexes(int index); + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeployedIndexesCount(); + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeployedIndexesOrBuilderList(); + /** + * + * + *
+   * Output only. The indexes deployed in this endpoint.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexesOrBuilder(int index); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 5; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your IndexEndpoints.
+   * 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 = 6; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your IndexEndpoints.
+   * 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 = 6; + */ + 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 IndexEndpoints.
+   * 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 = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your IndexEndpoints.
+   * 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 = 6; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your IndexEndpoints.
+   * 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 = 6; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this IndexEndpoint was last updated.
+   * This timestamp is not updated when the endpoint's DeployedIndexes are
+   * updated, e.g. due to updates of the original Indexes they are the
+   * deployments of.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. Immutable. The full name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Required. Immutable. The full name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the IndexEndpoint 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 = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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/IndexEndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java new file mode 100644 index 000000000..d536f0b63 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java @@ -0,0 +1,204 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class IndexEndpointProto { + private IndexEndpointProto() {} + + 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_v1beta1_IndexEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/aiplatform/v1beta1/index_" + + "endpoint.proto\022\037google.cloud.aiplatform." + + "v1beta1\032+google/cloud/aiplatform/v1beta1" + + "/index.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\0327google" + + "/cloud/aiplatform/v1beta1/machine_resour" + + "ces.proto\032\037google/protobuf/timestamp.pro" + + "to\032\034google/api/annotations.proto\"\246\004\n\rInd" + + "exEndpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" + + "_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022M\n" + + "\020deployed_indexes\030\004 \003(\0132..google.cloud.a" + + "iplatform.v1beta1.DeployedIndexB\003\340A\003\022\014\n\004" + + "etag\030\005 \001(\t\022J\n\006labels\030\006 \003(\0132:.google.clou" + + "d.aiplatform.v1beta1.IndexEndpoint.Label" + + "sEntry\0224\n\013create_time\030\007 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\007ne" + + "twork\030\t \001(\tB\006\340A\002\340A\005\032-\n\013LabelsEntry\022\013\n\003ke" + + "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" + + "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" + + "\032.google.protobuf.TimestampB\003\340A\003\022V\n\021priv" + + "ate_endpoints\030\005 \001(\01326.google.cloud.aipla" + + "tform.v1beta1.IndexPrivateEndpointsB\003\340A\003" + + "\0228\n\017index_sync_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022U\n\023automatic_resource" + + "s\030\007 \001(\01323.google.cloud.aiplatform.v1beta" + + "1.AutomaticResourcesB\003\340A\001\022\"\n\025enable_acce" + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "DeployedIndexes", + "Etag", + "Labels", + "CreateTime", + "UpdateTime", + "Network", + }); + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_IndexEndpoint_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndex_descriptor, + new java.lang.String[] { + "Id", + "Index", + "DisplayName", + "CreateTime", + "PrivateEndpoints", + "IndexSyncTime", + "AutomaticResources", + "EnableAccessLogging", + "DeployedIndexAuthConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor, + new java.lang.String[] { + "AuthProvider", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_AuthProvider_descriptor, + new java.lang.String[] { + "Audiences", "AllowedIssuers", + }); + internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor, + new java.lang.String[] { + "MatchGrpcAddress", + }); + 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.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 new file mode 100644 index 000000000..f6819ce02 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceProto.java @@ -0,0 +1,330 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class IndexEndpointServiceProto { + private IndexEndpointServiceProto() {} + + 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_v1beta1_CreateIndexEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexEndpointOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetIndexEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_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 fieldValuesMap; + private final String project; + private final String location; + private final String index; + + @Deprecated + protected IndexName() { + project = null; + location = null; + index = null; + } + + private IndexName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + index = Preconditions.checkNotNull(builder.getIndex()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIndex() { + return index; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static IndexName of(String project, String location, String index) { + return newBuilder().setProject(project).setLocation(location).setIndex(index).build(); + } + + public static String format(String project, String location, String index) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setIndex(index) + .build() + .toString(); + } + + public static IndexName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INDEX.validatedMatch( + formattedString, "IndexName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("index")); + } + + 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 (IndexName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INDEX.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 (index != null) { + fieldMapBuilder.put("index", index); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INDEX.instantiate( + "project", project, "location", location, "index", index); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + IndexName that = ((IndexName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.index, that.index); + } + 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(index); + return h; + } + + /** Builder for projects/{project}/locations/{location}/indexes/{index}. */ + public static class Builder { + private String project; + private String location; + private String index; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIndex() { + return index; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setIndex(String index) { + this.index = index; + return this; + } + + private Builder(IndexName indexName) { + project = indexName.project; + location = indexName.location; + index = indexName.index; + } + + public IndexName build() { + return new IndexName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java new file mode 100644 index 000000000..d90bc888a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java @@ -0,0 +1,452 @@ +/* + * 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/index.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface IndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Index) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the Index.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the Index.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the Index.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the Index.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the Index.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the Index.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+   * information about the Index, that is specific to it. Unset if the Index
+   * does not have any additional information.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * Note: The URI given on output will be immutable and probably different,
+   * including the URI scheme, than the one given on input. The output URI will
+   * point to a location where the user only has a read access.
+   * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The metadataSchemaUri. + */ + java.lang.String getMetadataSchemaUri(); + /** + * + * + *
+   * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
+   * information about the Index, that is specific to it. Unset if the Index
+   * does not have any additional information.
+   * The schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
+   * Note: The URI given on output will be immutable and probably different,
+   * including the URI scheme, than the one given on input. The output URI will
+   * point to a location where the user only has a read access.
+   * 
+ * + * string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for metadataSchemaUri. + */ + com.google.protobuf.ByteString getMetadataSchemaUriBytes(); + + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + * + * @return The metadata. + */ + com.google.protobuf.Value getMetadata(); + /** + * + * + *
+   * An additional information about the Index; the schema of the metadata can
+   * be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
+   * 
+ * + * .google.protobuf.Value metadata = 6; + */ + com.google.protobuf.ValueOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDeployedIndexesList(); + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDeployedIndexes(int index); + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeployedIndexesCount(); + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeployedIndexesOrBuilderList(); + /** + * + * + *
+   * Output only. The pointers to DeployedIndexes created from this Index.
+   * An Index can be only deleted if all its DeployedIndexes had been undeployed
+   * first.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployedIndexesOrBuilder( + int index); + + /** + * + * + *
+   * 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(); + /** + * + * + *
+   * 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 Indexes.
+   * 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 = 9; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Indexes.
+   * 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 = 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 Indexes.
+   * 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 = 9; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Indexes.
+   * 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 = 9; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Indexes.
+   * 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 = 9; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Timestamp when this Index 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 Index 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 Index was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .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 Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .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 Index was most recently updated.
+   * This also includes any update to the contents of the Index.
+   * Note that Operations working on this Index may have their
+   * [Operations.metadata.generic_metadata.update_time]
+   * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
+   * timestamp, yet that does not mean their results are not already reflected
+   * in the Index. Result of any successfully completed Operation on the Index
+   * is reflected in it.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java new file mode 100644 index 000000000..1278e56c1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java @@ -0,0 +1,639 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * IndexPrivateEndpoints proto is used to provide paths for users to send
+ * requests via private services access.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} + */ +public final class IndexPrivateEndpoints extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + IndexPrivateEndpointsOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexPrivateEndpoints.newBuilder() to construct. + private IndexPrivateEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexPrivateEndpoints() { + matchGrpcAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IndexPrivateEndpoints(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexPrivateEndpoints( + 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(); + + matchGrpcAddress_ = 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.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.class, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder.class); + } + + public static final int MATCH_GRPC_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object matchGrpcAddress_; + /** + * + * + *
+   * Output only. The ip address used to send match gRPC requests.
+   * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchGrpcAddress. + */ + @java.lang.Override + public java.lang.String getMatchGrpcAddress() { + java.lang.Object ref = matchGrpcAddress_; + 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(); + matchGrpcAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The ip address used to send match gRPC requests.
+   * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for matchGrpcAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchGrpcAddressBytes() { + java.lang.Object ref = matchGrpcAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGrpcAddress_ = 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 (!getMatchGrpcAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, matchGrpcAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMatchGrpcAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, matchGrpcAddress_); + } + 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.IndexPrivateEndpoints)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints other = + (com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) obj; + + if (!getMatchGrpcAddress().equals(other.getMatchGrpcAddress())) 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) + MATCH_GRPC_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMatchGrpcAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints 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.IndexPrivateEndpoints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints 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.IndexPrivateEndpoints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints 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.IndexPrivateEndpoints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints 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.IndexPrivateEndpoints parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints 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.IndexPrivateEndpoints 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.IndexPrivateEndpoints 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.IndexPrivateEndpoints 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; + } + /** + * + * + *
+   * IndexPrivateEndpoints proto is used to provide paths for users to send
+   * requests via private services access.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.class, + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.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(); + matchGrpcAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_IndexPrivateEndpoints_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints build() { + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints buildPartial() { + com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints result = + new com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(this); + result.matchGrpcAddress_ = matchGrpcAddress_; + 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.IndexPrivateEndpoints) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints other) { + if (other == com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance()) + return this; + if (!other.getMatchGrpcAddress().isEmpty()) { + matchGrpcAddress_ = other.matchGrpcAddress_; + 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.IndexPrivateEndpoints parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object matchGrpcAddress_ = ""; + /** + * + * + *
+     * Output only. The ip address used to send match gRPC requests.
+     * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchGrpcAddress. + */ + public java.lang.String getMatchGrpcAddress() { + java.lang.Object ref = matchGrpcAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchGrpcAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The ip address used to send match gRPC requests.
+     * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for matchGrpcAddress. + */ + public com.google.protobuf.ByteString getMatchGrpcAddressBytes() { + java.lang.Object ref = matchGrpcAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGrpcAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The ip address used to send match gRPC requests.
+     * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The matchGrpcAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchGrpcAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + matchGrpcAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The ip address used to send match gRPC requests.
+     * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMatchGrpcAddress() { + + matchGrpcAddress_ = getDefaultInstance().getMatchGrpcAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The ip address used to send match gRPC requests.
+     * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for matchGrpcAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchGrpcAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + matchGrpcAddress_ = 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.IndexPrivateEndpoints) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + private static final com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + } + + public static com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexPrivateEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndexPrivateEndpoints(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.IndexPrivateEndpoints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpointsOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpointsOrBuilder.java new file mode 100644 index 000000000..1109c89d2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpointsOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/index_endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface IndexPrivateEndpointsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The ip address used to send match gRPC requests.
+   * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchGrpcAddress. + */ + java.lang.String getMatchGrpcAddress(); + /** + * + * + *
+   * Output only. The ip address used to send match gRPC requests.
+   * 
+ * + * string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for matchGrpcAddress. + */ + com.google.protobuf.ByteString getMatchGrpcAddressBytes(); +} 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 new file mode 100644 index 000000000..31db89f33 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java @@ -0,0 +1,124 @@ +/* + * 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/index.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class IndexProto { + private IndexProto() {} + + 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_v1beta1_Index_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Index_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Index_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/v1beta1/index." + + "proto\022\037google.cloud.aiplatform.v1beta1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/aiplatf" + + "orm/v1beta1/deployed_index_ref.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\032\034google/api/annotati" + + "ons.proto\"\264\004\n\005Index\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013description" + + "\030\003 \001(\t\022 \n\023metadata_schema_uri\030\004 \001(\tB\003\340A\005" + + "\022(\n\010metadata\030\006 \001(\0132\026.google.protobuf.Val" + + "ue\022P\n\020deployed_indexes\030\007 \003(\01321.google.cl" + + "oud.aiplatform.v1beta1.DeployedIndexRefB" + + "\003\340A\003\022\014\n\004etag\030\010 \001(\t\022B\n\006labels\030\t \003(\01322.goo" + + "gle.cloud.aiplatform.v1beta1.Index.Label" + + "sEntry\0224\n\013create_time\030\n \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\013 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n\013La" + + "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" + }; + 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.v1beta1.DeployedIndexRefProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "MetadataSchemaUri", + "Metadata", + "DeployedIndexes", + "Etag", + "Labels", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_aiplatform_v1beta1_Index_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Index_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Index_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.v1beta1.DeployedIndexRefProto.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-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 new file mode 100644 index 000000000..12859a37c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceProto.java @@ -0,0 +1,303 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class IndexServiceProto { + private IndexServiceProto() {} + + 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_v1beta1_CreateIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/aiplatform/v1beta1/index_" + + "service.proto\022\037google.cloud.aiplatform.v" + + "1beta1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\032+google/cloud/aiplatform/v1beta1/index" + + ".proto\032/google/cloud/aiplatform/v1beta1/" + + "operation.proto\032#google/longrunning/oper" + + "ations.proto\032 google/protobuf/field_mask" + + ".proto\"\213\001\n\022CreateIndexRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022:\n\005index\030\002 \001(\0132&.google.cloud.a" + + "iplatform.v1beta1.IndexB\003\340A\002\"\360\001\n\034CreateI" + + "ndexOperationMetadata\022S\n\020generic_metadat" + + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta" + + "1.GenericOperationMetadata\022{\n*nearest_ne" + + "ighbor_search_operation_metadata\030\002 \001(\0132G" + + ".google.cloud.aiplatform.v1beta1.Nearest" + + "NeighborSearchOperationMetadata\"H\n\017GetIn" + + "dexRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplat" + + "form.googleapis.com/Index\"\265\001\n\022ListIndexe" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.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." + + "FieldMask\"g\n\023ListIndexesResponse\0227\n\007inde" + + "xes\030\001 \003(\0132&.google.cloud.aiplatform.v1be" + + "ta1.Index\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\022U" + + "pdateIndexRequest\022:\n\005index\030\001 \001(\0132&.googl" + + "e.cloud.aiplatform.v1beta1.IndexB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\360\001\n\034UpdateIndexOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\022{\n*nearest_neighbor_search_operatio" + + "n_metadata\030\002 \001(\0132G.google.cloud.aiplatfo" + + "rm.v1beta1.NearestNeighborSearchOperatio" + + "nMetadata\"K\n\022DeleteIndexRequest\0225\n\004name\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com" + + "/Index\"\277\006\n&NearestNeighborSearchOperatio" + + "nMetadata\022\200\001\n\030content_validation_stats\030\001" + + " \003(\0132^.google.cloud.aiplatform.v1beta1.N" + + "earestNeighborSearchOperationMetadata.Co" + + "ntentValidationStats\032\267\003\n\013RecordError\022w\n\n" + + "error_type\030\001 \001(\0162c.google.cloud.aiplatfo" + + "rm.v1beta1.NearestNeighborSearchOperatio" + + "nMetadata.RecordError.RecordErrorType\022\025\n" + + "\rerror_message\030\002 \001(\t\022\026\n\016source_gcs_uri\030\003" + + " \001(\t\022\024\n\014embedding_id\030\004 \001(\t\022\022\n\nraw_record" + + "\030\005 \001(\t\"\325\001\n\017RecordErrorType\022\032\n\026ERROR_TYPE" + + "_UNSPECIFIED\020\000\022\016\n\nEMPTY_LINE\020\001\022\027\n\023INVALI" + + "D_JSON_SYNTAX\020\002\022\026\n\022INVALID_CSV_SYNTAX\020\003\022" + + "\027\n\023INVALID_AVRO_SYNTAX\020\004\022\030\n\024INVALID_EMBE" + + "DDING_ID\020\005\022\033\n\027EMBEDDING_SIZE_MISMATCH\020\006\022" + + "\025\n\021NAMESPACE_MISSING\020\007\032\327\001\n\026ContentValida" + + "tionStats\022\026\n\016source_gcs_uri\030\001 \001(\t\022\032\n\022val" + + "id_record_count\030\002 \001(\003\022\034\n\024invalid_record_" + + "count\030\003 \001(\003\022k\n\016partial_errors\030\004 \003(\0132S.go" + + "ogle.cloud.aiplatform.v1beta1.NearestNei" + + "ghborSearchOperationMetadata.RecordError" + + "2\337\010\n\014IndexService\022\331\001\n\013CreateIndex\0223.goog" + + "le.cloud.aiplatform.v1beta1.CreateIndexR" + + "equest\032\035.google.longrunning.Operation\"v\202" + + "\323\344\223\0029\"0/v1beta1/{parent=projects/*/locat" + + "ions/*}/indexes:\005index\332A\014parent,index\312A%" + + "\n\005Index\022\034CreateIndexOperationMetadata\022\245\001" + + "\n\010GetIndex\0220.google.cloud.aiplatform.v1b" + + "eta1.GetIndexRequest\032&.google.cloud.aipl" + + "atform.v1beta1.Index\"?\202\323\344\223\0022\0220/v1beta1/{" + + "name=projects/*/locations/*/indexes/*}\332A" + + "\004name\022\273\001\n\013ListIndexes\0223.google.cloud.aip" + + "latform.v1beta1.ListIndexesRequest\0324.goo" + + "gle.cloud.aiplatform.v1beta1.ListIndexes" + + "Response\"A\202\323\344\223\0022\0220/v1beta1/{parent=proje" + + "cts/*/locations/*}/indexes\332A\006parent\022\345\001\n\013" + + "UpdateIndex\0223.google.cloud.aiplatform.v1" + + "beta1.UpdateIndexRequest\032\035.google.longru" + + "nning.Operation\"\201\001\202\323\344\223\002?26/v1beta1/{inde" + + "x.name=projects/*/locations/*/indexes/*}" + + ":\005index\332A\021index,update_mask\312A%\n\005Index\022\034U" + + "pdateIndexOperationMetadata\022\325\001\n\013DeleteIn" + + "dex\0223.google.cloud.aiplatform.v1beta1.De" + + "leteIndexRequest\032\035.google.longrunning.Op" + + "eration\"r\202\323\344\223\0022*0/v1beta1/{name=projects" + + "/*/locations/*/indexes/*}\332A\004name\312A0\n\025goo" + + "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" + + "a1B\021IndexServiceProtoP\001ZIgoogle.golang.o" + + "rg/genproto/googleapis/cloud/aiplatform/" + + "v1beta1;aiplatformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexRequest_descriptor, + new java.lang.String[] { + "Parent", "Index", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateIndexOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", "NearestNeighborSearchOperationMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetIndexRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor, + new java.lang.String[] { + "Indexes", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor, + new java.lang.String[] { + "Index", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", "NearestNeighborSearchOperationMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteIndexRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor, + new java.lang.String[] { + "ContentValidationStats", + }); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor, + new java.lang.String[] { + "ErrorType", "ErrorMessage", "SourceGcsUri", "EmbeddingId", "RawRecord", + }); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor, + new java.lang.String[] { + "SourceGcsUri", "ValidRecordCount", "InvalidRecordCount", "PartialErrors", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.IndexProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java index eb71199dc..6e9827782 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java @@ -22,7 +22,7 @@ * * *
- * Specifies AI Platform owned input data to be used for training, and
+ * Specifies Vertex AI owned input data to be used for training, and
  * possibly evaluating, the Model.
  * 
* @@ -559,7 +559,7 @@ public com.google.cloud.aiplatform.v1beta1.TimestampSplitOrBuilder getTimestampS * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -589,7 +589,7 @@ public boolean hasGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -622,7 +622,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -810,7 +810,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -841,7 +841,7 @@ public java.lang.String getAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -873,8 +873,8 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -911,8 +911,8 @@ public java.lang.String getAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -1233,7 +1233,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Specifies AI Platform owned input data to be used for training, and
+   * Specifies Vertex AI owned input data to be used for training, and
    * possibly evaluating, the Model.
    * 
* @@ -2392,7 +2392,7 @@ public com.google.cloud.aiplatform.v1beta1.TimestampSplit.Builder getTimestampSp * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2422,7 +2422,7 @@ public boolean hasGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2462,7 +2462,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2499,7 +2499,7 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestinat * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2534,7 +2534,7 @@ public Builder setGcsDestination( * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2581,7 +2581,7 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2621,7 +2621,7 @@ public Builder clearGcsDestination() { * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2648,7 +2648,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -2684,7 +2684,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -3210,7 +3210,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3240,7 +3240,7 @@ public java.lang.String getAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3270,7 +3270,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3299,7 +3299,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3324,7 +3324,7 @@ public Builder clearAnnotationsFilter() { * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -3354,8 +3354,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3391,8 +3391,8 @@ public java.lang.String getAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3428,8 +3428,8 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3464,8 +3464,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -3496,8 +3496,8 @@ public Builder clearAnnotationSchemaUri() { * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java index 552e4ae07..a3be520e2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java @@ -179,7 +179,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -206,7 +206,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -233,7 +233,7 @@ public interface InputDataConfigOrBuilder * `dataset-<dataset-id>-<annotation-type>-<timestamp-of-training-call>` * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. * All training input data is written into that directory. - * The AI Platform environment variables representing Cloud Storage + * The Vertex AI environment variables representing Cloud Storage * data URIs are represented in the Cloud Storage wildcard * format to support sharded data. e.g.: "gs://.../training-*.jsonl" * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data @@ -373,7 +373,7 @@ public interface InputDataConfigOrBuilder * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -393,7 +393,7 @@ public interface InputDataConfigOrBuilder * match this filter and belong to DataItems not ignored by the split method * are used in respectively training, validation or test role, depending on * the role of the DataItem they are on (for the auto-assigned that role is - * decided by AI Platform). A filter with same syntax as the one used in + * decided by Vertex AI). A filter with same syntax as the one used in * [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note * here it filters across all Annotations of the Dataset, and not just within * a single DataItem. @@ -412,8 +412,8 @@ public interface InputDataConfigOrBuilder * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with @@ -439,8 +439,8 @@ public interface InputDataConfigOrBuilder * Applicable only to custom training with Datasets that have DataItems and * Annotations. * Cloud Storage URI that points to a YAML file describing the annotation - * schema. The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). * The schema files that can be used here are found in * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the * chosen schema must be consistent with diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java new file mode 100644 index 000000000..176248af1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java @@ -0,0 +1,703 @@ +/* + * 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/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A list of int64 values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Int64Array} + */ +public final class Int64Array extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Int64Array) + Int64ArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use Int64Array.newBuilder() to construct. + private Int64Array(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Int64Array() { + values_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Int64Array(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Int64Array( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + values_.addLong(input.readInt64()); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + values_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + values_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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)) { + values_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_Int64Array_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Int64Array.class, + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList values_; + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeInt64NoTag(values_.getLong(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(values_.getLong(i)); + } + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.Int64Array)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Int64Array other = + (com.google.cloud.aiplatform.v1beta1.Int64Array) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array 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.Int64Array parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array 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.Int64Array parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array 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.Int64Array parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array 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.Int64Array parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array 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.Int64Array 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.Int64Array 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.Int64Array 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 int64 values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Int64Array} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Int64Array) + com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_Int64Array_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Int64Array.class, + com.google.cloud.aiplatform.v1beta1.Int64Array.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Int64Array.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(); + values_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64Array getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64Array build() { + com.google.cloud.aiplatform.v1beta1.Int64Array result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Int64Array buildPartial() { + com.google.cloud.aiplatform.v1beta1.Int64Array result = + new com.google.cloud.aiplatform.v1beta1.Int64Array(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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.Int64Array) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Int64Array) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Int64Array other) { + if (other == com.google.cloud.aiplatform.v1beta1.Int64Array.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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.Int64Array parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Int64Array) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.Internal.LongList values_ = emptyLongList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = mutableCopy(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(values_) + : values_; + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, long value) { + ensureValuesIsMutable(); + values_.setLong(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(long value) { + ensureValuesIsMutable(); + values_.addLong(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of int64 values.
+     * 
+ * + * repeated int64 values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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.Int64Array) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Int64Array) + private static final com.google.cloud.aiplatform.v1beta1.Int64Array DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Int64Array(); + } + + public static com.google.cloud.aiplatform.v1beta1.Int64Array getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int64Array parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Int64Array(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.Int64Array getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64ArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64ArrayOrBuilder.java new file mode 100644 index 000000000..e4af3e3c6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64ArrayOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface Int64ArrayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Int64Array) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * A list of int64 values.
+   * 
+ * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + long getValues(int index); +} 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 e5094f548..2a7f6dcac 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 @@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AvroSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CsvSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_GcsSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -43,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,16 +75,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/aiplatform/v1beta1/io.pro" + "to\022\037google.cloud.aiplatform.v1beta1\032\037goo" + "gle/api/field_behavior.proto\032\034google/api" - + "/annotations.proto\"\036\n\tGcsSource\022\021\n\004uris\030" - + "\001 \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_u" - + "ri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySource\022\026" - + "\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDestin" - + "ation\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"7\n\034Contai" - + "nerRegistryDestination\022\027\n\noutput_uri\030\001 \001" - + "(\tB\003\340A\002B{\n#com.google.cloud.aiplatform.v" - + "1beta1B\007IoProtoP\001ZIgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatformb\006proto3" + + "/annotations.proto\"Q\n\nAvroSource\022C\n\ngcs_" + + "source\030\001 \001(\0132*.google.cloud.aiplatform.v" + + "1beta1.GcsSourceB\003\340A\002\"P\n\tCsvSource\022C\n\ngc" + + "s_source\030\001 \001(\0132*.google.cloud.aiplatform" + + ".v1beta1.GcsSourceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004" + + "uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021out" + + "put_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySou" + + "rce\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryD" + + "estination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"_\n\016C" + + "svDestination\022M\n\017gcs_destination\030\001 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.GcsDest" + + "inationB\003\340A\002\"d\n\023TFRecordDestination\022M\n\017g" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,8 +102,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }); - internal_static_google_cloud_aiplatform_v1beta1_GcsSource_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_AvroSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor, + new java.lang.String[] { + "GcsSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_CsvSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CsvSource_descriptor, + new java.lang.String[] { + "GcsSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_GcsSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GcsSource_descriptor, @@ -86,7 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uris", }); internal_static_google_cloud_aiplatform_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1beta1_GcsDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GcsDestination_descriptor, @@ -94,7 +135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUriPrefix", }); internal_static_google_cloud_aiplatform_v1beta1_BigQuerySource_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_BigQuerySource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BigQuerySource_descriptor, @@ -102,15 +143,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputUri", }); internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_descriptor, new java.lang.String[] { "OutputUri", }); + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor, + new java.lang.String[] { + "GcsDestination", + }); + internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor, + new java.lang.String[] { + "GcsDestination", + }); internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor, 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 f90dbd52a..9e8d897d6 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 @@ -123,6 +123,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_CancelBatchPredictionJobRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_CancelBatchPredictionJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -142,214 +190,334 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "form/v1beta1/custom_job.proto\0327google/cl" + "oud/aiplatform/v1beta1/data_labeling_job" + ".proto\032?google/cloud/aiplatform/v1beta1/" - + "hyperparameter_tuning_job.proto\032/google/" - + "cloud/aiplatform/v1beta1/operation.proto" - + "\032#google/longrunning/operations.proto\032\033g" - + "oogle/protobuf/empty.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\230\001\n\026CreateCustomJobRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022C\n\ncustom_job\030\002 \001(\0132" - + "*.google.cloud.aiplatform.v1beta1.Custom" - + "JobB\003\340A\002\"P\n\023GetCustomJobRequest\0229\n\004name\030" - + "\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.com" - + "/CustomJob\"\270\001\n\025ListCustomJobsRequest\0229\n\006" + + "hyperparameter_tuning_job.proto\032Egoogle/" + + "cloud/aiplatform/v1beta1/model_deploymen" + + "t_monitoring_job.proto\032/google/cloud/aip" + + "latform/v1beta1/operation.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\230\001\n\026CreateCustomJobRequest\0229\n\006paren" + + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/Location\022C\n\ncustom_job\030\002 \001(\0132*.google." + + "cloud.aiplatform.v1beta1.CustomJobB\003\340A\002\"" + + "P\n\023GetCustomJobRequest\0229\n\004name\030\001 \001(\tB+\340A" + + "\002\372A%\n#aiplatform.googleapis.com/CustomJo" + + "b\"\270\001\n\025ListCustomJobsRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\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(\013" + + "2\032.google.protobuf.FieldMask\"r\n\026ListCust" + + "omJobsResponse\022?\n\013custom_jobs\030\001 \003(\0132*.go" + + "ogle.cloud.aiplatform.v1beta1.CustomJob\022" + + "\027\n\017next_page_token\030\002 \001(\t\"S\n\026DeleteCustom" + + "JobRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplat" + + "form.googleapis.com/CustomJob\"S\n\026CancelC" + + "ustomJobRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#a" + + "iplatform.googleapis.com/CustomJob\"\253\001\n\034C" + + "reateDataLabelingJobRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022P\n\021data_labeling_job\030\002 \001(\01320.goog" + + "le.cloud.aiplatform.v1beta1.DataLabeling" + + "JobB\003\340A\002\"\\\n\031GetDataLabelingJobRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleap" + + "is.com/DataLabelingJob\"\320\001\n\033ListDataLabel" + + "ingJobsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + + "locations.googleapis.com/Location\022\016\n\006fil" + + "ter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" + + "en\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pro" + + "tobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"\205\001\n\034Li" + + "stDataLabelingJobsResponse\022L\n\022data_label" + + "ing_jobs\030\001 \003(\01320.google.cloud.aiplatform" + + ".v1beta1.DataLabelingJob\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"_\n\034DeleteDataLabelingJobReques" + + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.goog" + + "leapis.com/DataLabelingJob\"_\n\034CancelData" + + "LabelingJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)aiplatform.googleapis.com/DataLabeling" + + "Job\"\303\001\n$CreateHyperparameterTuningJobReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022`\n\031hyperparamete" + + "r_tuning_job\030\002 \001(\01328.google.cloud.aiplat" + + "form.v1beta1.HyperparameterTuningJobB\003\340A" + + "\002\"l\n!GetHyperparameterTuningJobRequest\022G" + + "\n\004name\030\001 \001(\tB9\340A\002\372A3\n1aiplatform.googlea" + + "pis.com/HyperparameterTuningJob\"\306\001\n#List" + + "HyperparameterTuningJobsRequest\0229\n\006paren" + + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005" + + " \001(\0132\032.google.protobuf.FieldMask\"\235\001\n$Lis" + + "tHyperparameterTuningJobsResponse\022\\\n\032hyp" + + "erparameter_tuning_jobs\030\001 \003(\01328.google.c" + + "loud.aiplatform.v1beta1.HyperparameterTu" + + "ningJob\022\027\n\017next_page_token\030\002 \001(\t\"o\n$Dele" + + "teHyperparameterTuningJobRequest\022G\n\004name" + + "\030\001 \001(\tB9\340A\002\372A3\n1aiplatform.googleapis.co" + + "m/HyperparameterTuningJob\"o\n$CancelHyper" + + "parameterTuningJobRequest\022G\n\004name\030\001 \001(\tB" + + "9\340A\002\372A3\n1aiplatform.googleapis.com/Hyper" + + "parameterTuningJob\"\264\001\n\037CreateBatchPredic" + + "tionJobRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + + "locations.googleapis.com/Location\022V\n\024bat" + + "ch_prediction_job\030\002 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.BatchPredictionJobB\003\340A" + + "\002\"b\n\034GetBatchPredictionJobRequest\022B\n\004nam" + + "e\030\001 \001(\tB4\340A\002\372A.\n,aiplatform.googleapis.c" + + "om/BatchPredictionJob\"\301\001\n\036ListBatchPredi" + + "ctionJobsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\016\n\006f" + + "ilter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_t" + + "oken\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"\216\001\n\037ListBatchPredictio" + + "nJobsResponse\022R\n\025batch_prediction_jobs\030\001" + + " \003(\01323.google.cloud.aiplatform.v1beta1.B" + + "atchPredictionJob\022\027\n\017next_page_token\030\002 \001" + + "(\t\"e\n\037DeleteBatchPredictionJobRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n,aiplatform.googleap" + + "is.com/BatchPredictionJob\"e\n\037CancelBatch" + + "PredictionJobRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372" + + "A.\n,aiplatform.googleapis.com/BatchPredi" + + "ctionJob\"\323\001\n)CreateModelDeploymentMonito" + + "ringJobRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + + "locations.googleapis.com/Location\022k\n\037mod" + + "el_deployment_monitoring_job\030\002 \001(\0132=.goo" + + "gle.cloud.aiplatform.v1beta1.ModelDeploy" + + "mentMonitoringJobB\003\340A\002\"\371\004\n4SearchModelDe" + + "ploymentMonitoringStatsAnomaliesRequest\022" + + "g\n\037model_deployment_monitoring_job\030\001 \001(\t" + + "B>\340A\002\372A8\n6aiplatform.googleapis.com/Mode" + + "lDeploymentMonitoringJob\022\036\n\021deployed_mod" + + "el_id\030\002 \001(\tB\003\340A\002\022\034\n\024feature_display_name" + + "\030\003 \001(\t\022\206\001\n\nobjectives\030\004 \003(\0132m.google.clo" + + "ud.aiplatform.v1beta1.SearchModelDeploym" + + "entMonitoringStatsAnomaliesRequest.Stats" + + "AnomaliesObjectiveB\003\340A\002\022\021\n\tpage_size\030\005 \001" + + "(\005\022\022\n\npage_token\030\006 \001(\t\022.\n\nstart_time\030\007 \001" + + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + + "me\030\010 \001(\0132\032.google.protobuf.Timestamp\032\213\001\n" + + "\027StatsAnomaliesObjective\022U\n\004type\030\001 \001(\0162G" + + ".google.cloud.aiplatform.v1beta1.ModelDe" + + "ploymentMonitoringObjectiveType\022\031\n\021top_f" + + "eature_count\030\004 \001(\005\"\252\001\n5SearchModelDeploy" + + "mentMonitoringStatsAnomaliesResponse\022X\n\020" + + "monitoring_stats\030\001 \003(\0132>.google.cloud.ai" + + "platform.v1beta1.ModelMonitoringStatsAno" + + "malies\022\027\n\017next_page_token\030\002 \001(\t\"v\n&GetMo" + + "delDeploymentMonitoringJobRequest\022L\n\004nam" + + "e\030\001 \001(\tB>\340A\002\372A8\n6aiplatform.googleapis.c" + + "om/ModelDeploymentMonitoringJob\"\313\001\n(List" + + "ModelDeploymentMonitoringJobsRequest\0229\n\006" + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + "is.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_m" - + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"r\n" - + "\026ListCustomJobsResponse\022?\n\013custom_jobs\030\001" - + " \003(\0132*.google.cloud.aiplatform.v1beta1.C" - + "ustomJob\022\027\n\017next_page_token\030\002 \001(\t\"S\n\026Del" - + "eteCustomJobRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#aiplatform.googleapis.com/CustomJob\"S" - + "\n\026CancelCustomJobRequest\0229\n\004name\030\001 \001(\tB+" - + "\340A\002\372A%\n#aiplatform.googleapis.com/Custom" - + "Job\"\253\001\n\034CreateDataLabelingJobRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022P\n\021data_labeling_job\030\002 \001" - + "(\01320.google.cloud.aiplatform.v1beta1.Dat" - + "aLabelingJobB\003\340A\002\"\\\n\031GetDataLabelingJobR" - + "equest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform" - + ".googleapis.com/DataLabelingJob\"\320\001\n\033List" - + "DataLabelingJobsRequest\0229\n\006parent\030\001 \001(\tB" - + ")\340A\002\372A#\n!locations.googleapis.com/Locati" - + "on\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.g" - + "oogle.protobuf.FieldMask\022\020\n\010order_by\030\006 \001" - + "(\t\"\205\001\n\034ListDataLabelingJobsResponse\022L\n\022d" - + "ata_labeling_jobs\030\001 \003(\01320.google.cloud.a" - + "iplatform.v1beta1.DataLabelingJob\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"_\n\034DeleteDataLabeling" - + "JobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplat" - + "form.googleapis.com/DataLabelingJob\"_\n\034C" - + "ancelDataLabelingJobRequest\022?\n\004name\030\001 \001(" - + "\tB1\340A\002\372A+\n)aiplatform.googleapis.com/Dat" - + "aLabelingJob\"\303\001\n$CreateHyperparameterTun" - + "ingJobRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022`\n\031hype" - + "rparameter_tuning_job\030\002 \001(\01328.google.clo" - + "ud.aiplatform.v1beta1.HyperparameterTuni" - + "ngJobB\003\340A\002\"l\n!GetHyperparameterTuningJob" - + "Request\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1aiplatfor" - + "m.googleapis.com/HyperparameterTuningJob" - + "\"\306\001\n#ListHyperparameterTuningJobsRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\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-\n\tre" - + "ad_mask\030\005 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\235\001\n$ListHyperparameterTuningJobsRespon" - + "se\022\\\n\032hyperparameter_tuning_jobs\030\001 \003(\01328" - + ".google.cloud.aiplatform.v1beta1.Hyperpa" - + "rameterTuningJob\022\027\n\017next_page_token\030\002 \001(" - + "\t\"o\n$DeleteHyperparameterTuningJobReques" - + "t\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1aiplatform.goog" - + "leapis.com/HyperparameterTuningJob\"o\n$Ca" - + "ncelHyperparameterTuningJobRequest\022G\n\004na" - + "me\030\001 \001(\tB9\340A\002\372A3\n1aiplatform.googleapis." - + "com/HyperparameterTuningJob\"\264\001\n\037CreateBa" - + "tchPredictionJobRequest\0229\n\006parent\030\001 \001(\tB" - + ")\340A\002\372A#\n!locations.googleapis.com/Locati" - + "on\022V\n\024batch_prediction_job\030\002 \001(\01323.googl" - + "e.cloud.aiplatform.v1beta1.BatchPredicti" - + "onJobB\003\340A\002\"b\n\034GetBatchPredictionJobReque" - + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,aiplatform.goo" - + "gleapis.com/BatchPredictionJob\"\301\001\n\036ListB" - + "atchPredictionJobsRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" - + "\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMask\"\216\001\n\037ListBatch" - + "PredictionJobsResponse\022R\n\025batch_predicti" - + "on_jobs\030\001 \003(\01323.google.cloud.aiplatform." - + "v1beta1.BatchPredictionJob\022\027\n\017next_page_" - + "token\030\002 \001(\t\"e\n\037DeleteBatchPredictionJobR" - + "equest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,aiplatform" - + ".googleapis.com/BatchPredictionJob\"e\n\037Ca" - + "ncelBatchPredictionJobRequest\022B\n\004name\030\001 " - + "\001(\tB4\340A\002\372A.\n,aiplatform.googleapis.com/B" - + "atchPredictionJob2\333$\n\nJobService\022\323\001\n\017Cre" - + "ateCustomJob\0227.google.cloud.aiplatform.v" - + "1beta1.CreateCustomJobRequest\032*.google.c" - + "loud.aiplatform.v1beta1.CustomJob\"[\202\323\344\223\002" - + "A\"3/v1beta1/{parent=projects/*/locations" - + "/*}/customJobs:\ncustom_job\332A\021parent,cust" - + "om_job\022\264\001\n\014GetCustomJob\0224.google.cloud.a" - + "iplatform.v1beta1.GetCustomJobRequest\032*." - + "google.cloud.aiplatform.v1beta1.CustomJo" - + "b\"B\202\323\344\223\0025\0223/v1beta1/{name=projects/*/loc" - + "ations/*/customJobs/*}\332A\004name\022\307\001\n\016ListCu" - + "stomJobs\0226.google.cloud.aiplatform.v1bet" - + "a1.ListCustomJobsRequest\0327.google.cloud." - + "aiplatform.v1beta1.ListCustomJobsRespons" - + "e\"D\202\323\344\223\0025\0223/v1beta1/{parent=projects/*/l" - + "ocations/*}/customJobs\332A\006parent\022\340\001\n\017Dele" - + "teCustomJob\0227.google.cloud.aiplatform.v1" - + "beta1.DeleteCustomJobRequest\032\035.google.lo" - + "ngrunning.Operation\"u\202\323\344\223\0025*3/v1beta1/{n" - + "ame=projects/*/locations/*/customJobs/*}" - + "\332A\004name\312A0\n\025google.protobuf.Empty\022\027Delet" - + "eOperationMetadata\022\260\001\n\017CancelCustomJob\0227" - + ".google.cloud.aiplatform.v1beta1.CancelC" - + "ustomJobRequest\032\026.google.protobuf.Empty\"" - + "L\202\323\344\223\002?\":/v1beta1/{name=projects/*/locat" - + "ions/*/customJobs/*}:cancel:\001*\332A\004name\022\371\001" - + "\n\025CreateDataLabelingJob\022=.google.cloud.a" - + "iplatform.v1beta1.CreateDataLabelingJobR" + + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\255\001" + + "\n)ListModelDeploymentMonitoringJobsRespo" + + "nse\022g\n model_deployment_monitoring_jobs\030" + + "\001 \003(\0132=.google.cloud.aiplatform.v1beta1." + + "ModelDeploymentMonitoringJob\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\316\001\n)UpdateModelDeploymentM" + + "onitoringJobRequest\022k\n\037model_deployment_" + + "monitoring_job\030\001 \001(\0132=.google.cloud.aipl" + + "atform.v1beta1.ModelDeploymentMonitoring" + + "JobB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"y\n)DeleteModelDep" + + "loymentMonitoringJobRequest\022L\n\004name\030\001 \001(" + + "\tB>\340A\002\372A8\n6aiplatform.googleapis.com/Mod" + + "elDeploymentMonitoringJob\"x\n(PauseModelD" + + "eploymentMonitoringJobRequest\022L\n\004name\030\001 " + + "\001(\tB>\340A\002\372A8\n6aiplatform.googleapis.com/M" + + "odelDeploymentMonitoringJob\"y\n)ResumeMod" + + "elDeploymentMonitoringJobRequest\022L\n\004name" + + "\030\001 \001(\tB>\340A\002\372A8\n6aiplatform.googleapis.co" + + "m/ModelDeploymentMonitoringJob\"\212\001\n3Updat" + + "eModelDeploymentMonitoringJobOperationMe" + + "tadata\022S\n\020generic_metadata\030\001 \001(\01329.googl" + + "e.cloud.aiplatform.v1beta1.GenericOperat" + + "ionMetadata2\2208\n\nJobService\022\323\001\n\017CreateCus" + + "tomJob\0227.google.cloud.aiplatform.v1beta1" + + ".CreateCustomJobRequest\032*.google.cloud.a" + + "iplatform.v1beta1.CustomJob\"[\202\323\344\223\002A\"3/v1" + + "beta1/{parent=projects/*/locations/*}/cu" + + "stomJobs:\ncustom_job\332A\021parent,custom_job" + + "\022\264\001\n\014GetCustomJob\0224.google.cloud.aiplatf" + + "orm.v1beta1.GetCustomJobRequest\032*.google" + + ".cloud.aiplatform.v1beta1.CustomJob\"B\202\323\344" + + "\223\0025\0223/v1beta1/{name=projects/*/locations" + + "/*/customJobs/*}\332A\004name\022\307\001\n\016ListCustomJo" + + "bs\0226.google.cloud.aiplatform.v1beta1.Lis" + + "tCustomJobsRequest\0327.google.cloud.aiplat" + + "form.v1beta1.ListCustomJobsResponse\"D\202\323\344" + + "\223\0025\0223/v1beta1/{parent=projects/*/locatio" + + "ns/*}/customJobs\332A\006parent\022\340\001\n\017DeleteCust" + + "omJob\0227.google.cloud.aiplatform.v1beta1." + + "DeleteCustomJobRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\0025*3/v1beta1/{name=pr" + + "ojects/*/locations/*/customJobs/*}\332A\004nam" + + "e\312A0\n\025google.protobuf.Empty\022\027DeleteOpera" + + "tionMetadata\022\260\001\n\017CancelCustomJob\0227.googl" + + "e.cloud.aiplatform.v1beta1.CancelCustomJ" + + "obRequest\032\026.google.protobuf.Empty\"L\202\323\344\223\002" + + "?\":/v1beta1/{name=projects/*/locations/*" + + "/customJobs/*}:cancel:\001*\332A\004name\022\371\001\n\025Crea" + + "teDataLabelingJob\022=.google.cloud.aiplatf" + + "orm.v1beta1.CreateDataLabelingJobRequest" + + "\0320.google.cloud.aiplatform.v1beta1.DataL" + + "abelingJob\"o\202\323\344\223\002N\"9/v1beta1/{parent=pro" + + "jects/*/locations/*}/dataLabelingJobs:\021d" + + "ata_labeling_job\332A\030parent,data_labeling_" + + "job\022\314\001\n\022GetDataLabelingJob\022:.google.clou" + + "d.aiplatform.v1beta1.GetDataLabelingJobR" + "equest\0320.google.cloud.aiplatform.v1beta1" - + ".DataLabelingJob\"o\202\323\344\223\002N\"9/v1beta1/{pare" - + "nt=projects/*/locations/*}/dataLabelingJ" - + "obs:\021data_labeling_job\332A\030parent,data_lab" - + "eling_job\022\314\001\n\022GetDataLabelingJob\022:.googl" - + "e.cloud.aiplatform.v1beta1.GetDataLabeli" - + "ngJobRequest\0320.google.cloud.aiplatform.v" - + "1beta1.DataLabelingJob\"H\202\323\344\223\002;\0229/v1beta1" - + "/{name=projects/*/locations/*/dataLabeli" - + "ngJobs/*}\332A\004name\022\337\001\n\024ListDataLabelingJob" - + "s\022<.google.cloud.aiplatform.v1beta1.List" - + "DataLabelingJobsRequest\032=.google.cloud.a" - + "iplatform.v1beta1.ListDataLabelingJobsRe" - + "sponse\"J\202\323\344\223\002;\0229/v1beta1/{parent=project" - + "s/*/locations/*}/dataLabelingJobs\332A\006pare" - + "nt\022\362\001\n\025DeleteDataLabelingJob\022=.google.cl" - + "oud.aiplatform.v1beta1.DeleteDataLabelin" - + "gJobRequest\032\035.google.longrunning.Operati" - + "on\"{\202\323\344\223\002;*9/v1beta1/{name=projects/*/lo" - + "cations/*/dataLabelingJobs/*}\332A\004name\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteOperationM" - + "etadata\022\302\001\n\025CancelDataLabelingJob\022=.goog" - + "le.cloud.aiplatform.v1beta1.CancelDataLa" - + "belingJobRequest\032\026.google.protobuf.Empty" - + "\"R\202\323\344\223\002E\"@/v1beta1/{name=projects/*/loca" - + "tions/*/dataLabelingJobs/*}:cancel:\001*\332A\004" - + "name\022\252\002\n\035CreateHyperparameterTuningJob\022E" - + ".google.cloud.aiplatform.v1beta1.CreateH" - + "yperparameterTuningJobRequest\0328.google.c" - + "loud.aiplatform.v1beta1.HyperparameterTu" - + "ningJob\"\207\001\202\323\344\223\002^\"A/v1beta1/{parent=proje" - + "cts/*/locations/*}/hyperparameterTuningJ" - + "obs:\031hyperparameter_tuning_job\332A parent," - + "hyperparameter_tuning_job\022\354\001\n\032GetHyperpa" - + "rameterTuningJob\022B.google.cloud.aiplatfo" - + "rm.v1beta1.GetHyperparameterTuningJobReq" - + "uest\0328.google.cloud.aiplatform.v1beta1.H" - + "yperparameterTuningJob\"P\202\323\344\223\002C\022A/v1beta1" - + "/{name=projects/*/locations/*/hyperparam" - + "eterTuningJobs/*}\332A\004name\022\377\001\n\034ListHyperpa" - + "rameterTuningJobs\022D.google.cloud.aiplatf" - + "orm.v1beta1.ListHyperparameterTuningJobs" - + "Request\032E.google.cloud.aiplatform.v1beta" - + "1.ListHyperparameterTuningJobsResponse\"R" - + "\202\323\344\223\002C\022A/v1beta1/{parent=projects/*/loca" - + "tions/*}/hyperparameterTuningJobs\332A\006pare" - + "nt\022\213\002\n\035DeleteHyperparameterTuningJob\022E.g" - + "oogle.cloud.aiplatform.v1beta1.DeleteHyp" - + "erparameterTuningJobRequest\032\035.google.lon" - + "grunning.Operation\"\203\001\202\323\344\223\002C*A/v1beta1/{n" - + "ame=projects/*/locations/*/hyperparamete" - + "rTuningJobs/*}\332A\004name\312A0\n\025google.protobu" - + "f.Empty\022\027DeleteOperationMetadata\022\332\001\n\035Can" - + "celHyperparameterTuningJob\022E.google.clou" - + "d.aiplatform.v1beta1.CancelHyperparamete" - + "rTuningJobRequest\032\026.google.protobuf.Empt" - + "y\"Z\202\323\344\223\002M\"H/v1beta1/{name=projects/*/loc" - + "ations/*/hyperparameterTuningJobs/*}:can" - + "cel:\001*\332A\004name\022\213\002\n\030CreateBatchPredictionJ" - + "ob\022@.google.cloud.aiplatform.v1beta1.Cre" - + "ateBatchPredictionJobRequest\0323.google.cl" - + "oud.aiplatform.v1beta1.BatchPredictionJo" - + "b\"x\202\323\344\223\002T\"\022\022*\022\022*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-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 3e48557ec..bc4cd57bc 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 @@ -37,16 +37,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/aiplatform/v1beta1/job_st" + "ate.proto\022\037google.cloud.aiplatform.v1bet" - + "a1\032\034google/api/annotations.proto*\341\001\n\010Job" + + "a1\032\034google/api/annotations.proto*\370\001\n\010Job" + "State\022\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\024\n\020JOB_" + "STATE_QUEUED\020\001\022\025\n\021JOB_STATE_PENDING\020\002\022\025\n" + "\021JOB_STATE_RUNNING\020\003\022\027\n\023JOB_STATE_SUCCEE" + "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\010B\201\001\n#com.google.clou" - + "d.aiplatform.v1beta1B\rJobStateProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatformb\006proto3" + + "\n\020JOB_STATE_PAUSED\020\010\022\025\n\021JOB_STATE_EXPIRE" + + "D\020\tB\201\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\rJobStateProtoP\001ZIgoogle.golang.org/" + + "genproto/googleapis/cloud/aiplatform/v1b" + + "eta1;aiplatformb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java new file mode 100644 index 000000000..a578adaf2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java @@ -0,0 +1,2024 @@ +/* + * 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/lineage_subgraph.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A subgraph of the overall lineage graph. Event edges connect Artifact and
+ * Execution nodes.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LineageSubgraph} + */ +public final class LineageSubgraph extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LineageSubgraph) + LineageSubgraphOrBuilder { + private static final long serialVersionUID = 0L; + // Use LineageSubgraph.newBuilder() to construct. + private LineageSubgraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LineageSubgraph() { + artifacts_ = java.util.Collections.emptyList(); + executions_ = java.util.Collections.emptyList(); + events_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LineageSubgraph(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LineageSubgraph( + 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.v1beta1.Artifact.parser(), extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + executions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + executions_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Execution.parser(), extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + events_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Event.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_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto + .internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto + .internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph.class, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph.Builder.class); + } + + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public java.util.List getArtifactsList() { + return artifacts_; + } + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public int getArtifactsCount() { + return artifacts_.size(); + } + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + return artifacts_.get(index); + } + + public static final int EXECUTIONS_FIELD_NUMBER = 2; + private java.util.List executions_; + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public java.util.List getExecutionsList() { + return executions_; + } + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public int getExecutionsCount() { + return executions_.size(); + } + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder(int index) { + return executions_.get(index); + } + + public static final int EVENTS_FIELD_NUMBER = 3; + private java.util.List events_; + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Event getEvents(int index) { + return events_.get(index); + } + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EventOrBuilder getEventsOrBuilder(int index) { + return events_.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)); + } + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(2, executions_.get(i)); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(3, events_.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)); + } + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, executions_.get(i)); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, events_.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.LineageSubgraph)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.LineageSubgraph other = + (com.google.cloud.aiplatform.v1beta1.LineageSubgraph) obj; + + if (!getArtifactsList().equals(other.getArtifactsList())) return false; + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getEventsList().equals(other.getEventsList())) 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(); + } + if (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph 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.LineageSubgraph parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph 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.LineageSubgraph parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph 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.LineageSubgraph parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph 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.LineageSubgraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph 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.LineageSubgraph 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.LineageSubgraph 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.LineageSubgraph 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 subgraph of the overall lineage graph. Event edges connect Artifact and
+   * Execution nodes.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LineageSubgraph} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.LineageSubgraph) + com.google.cloud.aiplatform.v1beta1.LineageSubgraphOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto + .internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto + .internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph.class, + com.google.cloud.aiplatform.v1beta1.LineageSubgraph.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.LineageSubgraph.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(); + getExecutionsFieldBuilder(); + getEventsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + artifactsBuilder_.clear(); + } + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + executionsBuilder_.clear(); + } + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + eventsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto + .internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.LineageSubgraph.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph build() { + com.google.cloud.aiplatform.v1beta1.LineageSubgraph result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LineageSubgraph buildPartial() { + com.google.cloud.aiplatform.v1beta1.LineageSubgraph result = + new com.google.cloud.aiplatform.v1beta1.LineageSubgraph(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(); + } + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.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.LineageSubgraph) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.LineageSubgraph) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LineageSubgraph other) { + if (other == com.google.cloud.aiplatform.v1beta1.LineageSubgraph.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_); + } + } + } + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000002); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecutionsFieldBuilder() + : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventsFieldBuilder() + : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + 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.LineageSubgraph parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.LineageSubgraph) 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.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder setArtifacts(int index, com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder setArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addArtifacts(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addArtifacts(int index, com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addArtifacts( + com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + 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; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactsBuilder(int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder(int index) { + return getArtifactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+     * The Artifact nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder>( + artifacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private java.util.List executions_ = + java.util.Collections.emptyList(); + + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + executions_ = + new java.util.ArrayList(executions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + executionsBuilder_; + + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder setExecutions(int index, com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder setExecutions( + int index, com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addExecutions(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addExecutions(int index, com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addExecutions( + com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addExecutions( + int index, com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionsBuilder(int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()); + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder addExecutionsBuilder(int index) { + return getExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()); + } + /** + * + * + *
+     * The Execution nodes in the subgraph.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Event, + com.google.cloud.aiplatform.v1beta1.Event.Builder, + com.google.cloud.aiplatform.v1beta1.EventOrBuilder> + eventsBuilder_; + + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Event getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder setEvents(int index, com.google.cloud.aiplatform.v1beta1.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder setEvents( + int index, com.google.cloud.aiplatform.v1beta1.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder addEvents(com.google.cloud.aiplatform.v1beta1.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder addEvents(int index, com.google.cloud.aiplatform.v1beta1.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder addEvents(com.google.cloud.aiplatform.v1beta1.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder addEvents( + int index, com.google.cloud.aiplatform.v1beta1.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Event.Builder getEventsBuilder(int index) { + return getEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public com.google.cloud.aiplatform.v1beta1.EventOrBuilder getEventsOrBuilder(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Event.Builder addEventsBuilder() { + return getEventsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Event.getDefaultInstance()); + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Event.Builder addEventsBuilder(int index) { + return getEventsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Event.getDefaultInstance()); + } + /** + * + * + *
+     * The Event edges between Artifacts and Executions in the subgraph.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + public java.util.List + getEventsBuilderList() { + return getEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Event, + com.google.cloud.aiplatform.v1beta1.Event.Builder, + com.google.cloud.aiplatform.v1beta1.EventOrBuilder> + getEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Event, + com.google.cloud.aiplatform.v1beta1.Event.Builder, + com.google.cloud.aiplatform.v1beta1.EventOrBuilder>( + events_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + events_ = null; + } + return eventsBuilder_; + } + + @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.LineageSubgraph) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.LineageSubgraph) + private static final com.google.cloud.aiplatform.v1beta1.LineageSubgraph DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.LineageSubgraph(); + } + + public static com.google.cloud.aiplatform.v1beta1.LineageSubgraph getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LineageSubgraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LineageSubgraph(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.LineageSubgraph getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphOrBuilder.java new file mode 100644 index 000000000..5fef009ba --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphOrBuilder.java @@ -0,0 +1,201 @@ +/* + * 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/lineage_subgraph.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface LineageSubgraphOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.LineageSubgraph) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + java.util.List getArtifactsList(); + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index); + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + int getArtifactsCount(); + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + java.util.List + getArtifactsOrBuilderList(); + /** + * + * + *
+   * The Artifact nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.resource_reference) = { ... } + * + */ + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index); + + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + java.util.List getExecutionsList(); + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index); + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + int getExecutionsCount(); + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * + * + *
+   * The Execution nodes in the subgraph.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 2 [(.google.api.resource_reference) = { ... } + * + */ + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder(int index); + + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + java.util.List getEventsList(); + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + com.google.cloud.aiplatform.v1beta1.Event getEvents(int index); + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + int getEventsCount(); + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + java.util.List + getEventsOrBuilderList(); + /** + * + * + *
+   * The Event edges between Artifacts and Executions in the subgraph.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Event events = 3; + */ + com.google.cloud.aiplatform.v1beta1.EventOrBuilder getEventsOrBuilder(int index); +} 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 new file mode 100644 index 000000000..6577efd95 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java @@ -0,0 +1,93 @@ +/* + * 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/lineage_subgraph.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class LineageSubgraphProto { + private LineageSubgraphProto() {} + + 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_v1beta1_LineageSubgraph_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/aiplatform/v1beta1/lineag" + + "e_subgraph.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\031google/api/resource.proto\032.go" + + "ogle/cloud/aiplatform/v1beta1/artifact.p" + + "roto\032+google/cloud/aiplatform/v1beta1/ev" + + "ent.proto\032/google/cloud/aiplatform/v1bet" + + "a1/execution.proto\032\034google/api/annotatio" + + "ns.proto\"\232\002\n\017LineageSubgraph\022e\n\tartifact" + + "s\030\001 \003(\0132).google.cloud.aiplatform.v1beta" + + "1.ArtifactB\'\372A$\n\"aiplatform.googleapis.c" + + "om/Artifact\022h\n\nexecutions\030\002 \003(\0132*.google" + + ".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" + + "tform.v1beta1B\024LineageSubgraphProtoP\001ZIg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/aiplatform/v1beta1;aiplatformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_LineageSubgraph_descriptor, + new java.lang.String[] { + "Artifacts", "Executions", "Events", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java new file mode 100644 index 000000000..f82a55d65 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java @@ -0,0 +1,1306 @@ +/* + * 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.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListArtifactsRequest} + */ +public final class ListArtifactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + ListArtifactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsRequest.newBuilder() to construct. + private ListArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListArtifactsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListArtifactsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListArtifactsRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + 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_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The MetadataStore whose Artifacts should be listed.
+   * 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 MetadataStore whose Artifacts should be listed.
+   * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of Artifacts to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *   **Attribute filtering**:
+   *     For example: `display_name = "test"`.
+   *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *     `schema_title`, `create_time`, and `update_time`.
+   *     Time fields, such as `create_time` and `update_time`, require values
+   *     specified in RFC-3339 format.
+   *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *   **Metadata field**:
+   *     To filter on metadata fields use traversal operation as follows:
+   *     `metadata.<field_name>.<type_value>`.
+   *     For example: `metadata.field_1.number_value = 10.0`
+   * *   **Context based filtering**:
+   *     To filter Artifacts based on the contexts to which they belong, use the
+   *     function operator with the full resource name
+   *     `in_context(<context-name>)`.
+   *     For example:
+   *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *   **Attribute filtering**:
+   *     For example: `display_name = "test"`.
+   *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *     `schema_title`, `create_time`, and `update_time`.
+   *     Time fields, such as `create_time` and `update_time`, require values
+   *     specified in RFC-3339 format.
+   *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *   **Metadata field**:
+   *     To filter on metadata fields use traversal operation as follows:
+   *     `metadata.<field_name>.<type_value>`.
+   *     For example: `metadata.field_1.number_value = 10.0`
+   * *   **Context based filtering**:
+   *     To filter Artifacts based on the contexts to which they belong, use the
+   *     function operator with the full resource name
+   *     `in_context(<context-name>)`.
+   *     For example:
+   *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.ListArtifactsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest 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.ListArtifactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest 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.ListArtifactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest 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.ListArtifactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest 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.ListArtifactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest 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.ListArtifactsRequest 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.ListArtifactsRequest 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.ListArtifactsRequest 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.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListArtifactsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + 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_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + 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.ListArtifactsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.ListArtifactsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The MetadataStore whose Artifacts should be listed.
+     * 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 MetadataStore whose Artifacts should be listed.
+     * 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 MetadataStore whose Artifacts should be listed.
+     * 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 MetadataStore whose Artifacts should be listed.
+     * 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 MetadataStore whose Artifacts should be listed.
+     * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of Artifacts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Artifacts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of Artifacts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *   **Attribute filtering**:
+     *     For example: `display_name = "test"`.
+     *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *     `schema_title`, `create_time`, and `update_time`.
+     *     Time fields, such as `create_time` and `update_time`, require values
+     *     specified in RFC-3339 format.
+     *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *   **Metadata field**:
+     *     To filter on metadata fields use traversal operation as follows:
+     *     `metadata.<field_name>.<type_value>`.
+     *     For example: `metadata.field_1.number_value = 10.0`
+     * *   **Context based filtering**:
+     *     To filter Artifacts based on the contexts to which they belong, use the
+     *     function operator with the full resource name
+     *     `in_context(<context-name>)`.
+     *     For example:
+     *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *   **Attribute filtering**:
+     *     For example: `display_name = "test"`.
+     *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *     `schema_title`, `create_time`, and `update_time`.
+     *     Time fields, such as `create_time` and `update_time`, require values
+     *     specified in RFC-3339 format.
+     *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *   **Metadata field**:
+     *     To filter on metadata fields use traversal operation as follows:
+     *     `metadata.<field_name>.<type_value>`.
+     *     For example: `metadata.field_1.number_value = 10.0`
+     * *   **Context based filtering**:
+     *     To filter Artifacts based on the contexts to which they belong, use the
+     *     function operator with the full resource name
+     *     `in_context(<context-name>)`.
+     *     For example:
+     *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *   **Attribute filtering**:
+     *     For example: `display_name = "test"`.
+     *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *     `schema_title`, `create_time`, and `update_time`.
+     *     Time fields, such as `create_time` and `update_time`, require values
+     *     specified in RFC-3339 format.
+     *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *   **Metadata field**:
+     *     To filter on metadata fields use traversal operation as follows:
+     *     `metadata.<field_name>.<type_value>`.
+     *     For example: `metadata.field_1.number_value = 10.0`
+     * *   **Context based filtering**:
+     *     To filter Artifacts based on the contexts to which they belong, use the
+     *     function operator with the full resource name
+     *     `in_context(<context-name>)`.
+     *     For example:
+     *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *   **Attribute filtering**:
+     *     For example: `display_name = "test"`.
+     *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *     `schema_title`, `create_time`, and `update_time`.
+     *     Time fields, such as `create_time` and `update_time`, require values
+     *     specified in RFC-3339 format.
+     *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *   **Metadata field**:
+     *     To filter on metadata fields use traversal operation as follows:
+     *     `metadata.<field_name>.<type_value>`.
+     *     For example: `metadata.field_1.number_value = 10.0`
+     * *   **Context based filtering**:
+     *     To filter Artifacts based on the contexts to which they belong, use the
+     *     function operator with the full resource name
+     *     `in_context(<context-name>)`.
+     *     For example:
+     *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *   **Attribute filtering**:
+     *     For example: `display_name = "test"`.
+     *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *     `schema_title`, `create_time`, and `update_time`.
+     *     Time fields, such as `create_time` and `update_time`, require values
+     *     specified in RFC-3339 format.
+     *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *   **Metadata field**:
+     *     To filter on metadata fields use traversal operation as follows:
+     *     `metadata.<field_name>.<type_value>`.
+     *     For example: `metadata.field_1.number_value = 10.0`
+     * *   **Context based filtering**:
+     *     To filter Artifacts based on the contexts to which they belong, use the
+     *     function operator with the full resource name
+     *     `in_context(<context-name>)`.
+     *     For example:
+     *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @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.ListArtifactsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsRequest(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.ListArtifactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequestOrBuilder.java new file mode 100644 index 000000000..669ab2e07 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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 ListArtifactsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MetadataStore whose Artifacts should be listed.
+   * 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 MetadataStore whose Artifacts should be listed.
+   * 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(); + + /** + * + * + *
+   * The maximum number of Artifacts to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *   **Attribute filtering**:
+   *     For example: `display_name = "test"`.
+   *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *     `schema_title`, `create_time`, and `update_time`.
+   *     Time fields, such as `create_time` and `update_time`, require values
+   *     specified in RFC-3339 format.
+   *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *   **Metadata field**:
+   *     To filter on metadata fields use traversal operation as follows:
+   *     `metadata.<field_name>.<type_value>`.
+   *     For example: `metadata.field_1.number_value = 10.0`
+   * *   **Context based filtering**:
+   *     To filter Artifacts based on the contexts to which they belong, use the
+   *     function operator with the full resource name
+   *     `in_context(<context-name>)`.
+   *     For example:
+   *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *   **Attribute filtering**:
+   *     For example: `display_name = "test"`.
+   *     Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *     `schema_title`, `create_time`, and `update_time`.
+   *     Time fields, such as `create_time` and `update_time`, require values
+   *     specified in RFC-3339 format.
+   *     For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *   **Metadata field**:
+   *     To filter on metadata fields use traversal operation as follows:
+   *     `metadata.<field_name>.<type_value>`.
+   *     For example: `metadata.field_1.number_value = 10.0`
+   * *   **Context based filtering**:
+   *     To filter Artifacts based on the contexts to which they belong, use the
+   *     function operator with the full resource name
+   *     `in_context(<context-name>)`.
+   *     For example:
+   *     `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java new file mode 100644 index 000000000..e4ebb3c03 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java @@ -0,0 +1,1146 @@ +/* + * 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.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListArtifactsResponse} + */ +public final class ListArtifactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + ListArtifactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsResponse.newBuilder() to construct. + private ListArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListArtifactsResponse() { + artifacts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListArtifactsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListArtifactsResponse( + 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.v1beta1.Artifact.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)) { + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.Builder.class); + } + + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + @java.lang.Override + public java.util.List getArtifactsList() { + return artifacts_; + } + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + @java.lang.Override + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + @java.lang.Override + public int getArtifactsCount() { + return artifacts_.size(); + } + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + return artifacts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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 < artifacts_.size(); i++) { + output.writeMessage(1, artifacts_.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 < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, artifacts_.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.v1beta1.ListArtifactsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) obj; + + if (!getArtifactsList().equals(other.getArtifactsList())) 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 (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().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.v1beta1.ListArtifactsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse 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.ListArtifactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse 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.ListArtifactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse 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.ListArtifactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse 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.ListArtifactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse 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.ListArtifactsResponse 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.ListArtifactsResponse 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.ListArtifactsResponse 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.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListArtifactsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.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(); + } + nextPageToken_ = ""; + + 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_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(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(); + } + 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.v1beta1.ListArtifactsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse.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_); + } + } + } + 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.v1beta1.ListArtifactsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) 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.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder setArtifacts(int index, com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder addArtifacts(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder addArtifacts(int index, com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder addArtifacts( + com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + 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; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactsBuilder(int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder(int index) { + return getArtifactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+     * The Artifacts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder>( + artifacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListArtifactsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsResponse(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.ListArtifactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponseOrBuilder.java new file mode 100644 index 000000000..97336c41a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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 ListArtifactsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + java.util.List getArtifactsList(); + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index); + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + int getArtifactsCount(); + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + java.util.List + getArtifactsOrBuilderList(); + /** + * + * + *
+   * The Artifacts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1; + */ + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java index 3a9fb1653..d95309ddc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java @@ -213,6 +213,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -244,6 +245,7 @@ public java.lang.String getFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -919,6 +921,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -949,6 +952,7 @@ public java.lang.String getFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -979,6 +983,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -1008,6 +1013,7 @@ public Builder setFilter(java.lang.String value) { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -1033,6 +1039,7 @@ public Builder clearFilter() { * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java index b1e10bf0d..1676f46d9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java @@ -62,6 +62,7 @@ public interface ListBatchPredictionJobsRequestOrBuilder * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` @@ -82,6 +83,7 @@ public interface ListBatchPredictionJobsRequestOrBuilder * Supported fields: * * `display_name` supports = and !=. * * `state` supports = and !=. + * * `model_display_name` supports = and != * Some examples of using the filter are: * * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` * * `state="JOB_STATE_RUNNING" OR display_name="my_job"` diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java index 42785a4f9..3af04cc4e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java @@ -214,7 +214,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -239,7 +239,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -1036,7 +1036,7 @@ public Builder removeBatchPredictionJobs(int index) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1060,7 +1060,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1084,7 +1084,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1107,7 +1107,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1126,7 +1126,7 @@ public Builder clearNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
      * page.
      * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponseOrBuilder.java index 4b8de7c01..69cb56cc5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponseOrBuilder.java @@ -86,7 +86,7 @@ com.google.cloud.aiplatform.v1beta1.BatchPredictionJobOrBuilder getBatchPredicti * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -100,7 +100,7 @@ com.google.cloud.aiplatform.v1beta1.BatchPredictionJobOrBuilder getBatchPredicti * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that
    * page.
    * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java new file mode 100644 index 000000000..37264c66b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java @@ -0,0 +1,1327 @@ +/* + * 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.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListContextsRequest} + */ +public final class ListContextsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListContextsRequest) + ListContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListContextsRequest.newBuilder() to construct. + private ListContextsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContextsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContextsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListContextsRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + 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_ListContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListContextsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The MetadataStore whose Contexts should be listed.
+   * 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 MetadataStore whose Contexts should be listed.
+   * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of Contexts to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter specifying the boolean condition for the Contexts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `schema_title`,
+   *    `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`.
+   * *  **Parent Child filtering**:
+   *    To filter Contexts based on parent-child relationship use the HAS
+   *    operator as follows:
+   *    ```
+   *    parent_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    child_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    ```
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter specifying the boolean condition for the Contexts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `schema_title`,
+   *    `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`.
+   * *  **Parent Child filtering**:
+   *    To filter Contexts based on parent-child relationship use the HAS
+   *    operator as follows:
+   *    ```
+   *    parent_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    child_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    ```
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.ListContextsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListContextsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListContextsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest 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.ListContextsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest 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.ListContextsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest 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.ListContextsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest 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.ListContextsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest 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.ListContextsRequest 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.ListContextsRequest 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.ListContextsRequest 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.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListContextsRequest) + com.google.cloud.aiplatform.v1beta1.ListContextsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListContextsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListContextsRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + 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_ListContextsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListContextsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListContextsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListContextsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListContextsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + 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.ListContextsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListContextsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListContextsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListContextsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.ListContextsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListContextsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The MetadataStore whose Contexts should be listed.
+     * 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 MetadataStore whose Contexts should be listed.
+     * 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 MetadataStore whose Contexts should be listed.
+     * 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 MetadataStore whose Contexts should be listed.
+     * 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 MetadataStore whose Contexts should be listed.
+     * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of Contexts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Contexts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of Contexts to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter specifying the boolean condition for the Contexts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `schema_title`,
+     *    `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`.
+     * *  **Parent Child filtering**:
+     *    To filter Contexts based on parent-child relationship use the HAS
+     *    operator as follows:
+     *    ```
+     *    parent_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    child_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    ```
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Contexts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `schema_title`,
+     *    `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`.
+     * *  **Parent Child filtering**:
+     *    To filter Contexts based on parent-child relationship use the HAS
+     *    operator as follows:
+     *    ```
+     *    parent_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    child_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    ```
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Contexts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `schema_title`,
+     *    `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`.
+     * *  **Parent Child filtering**:
+     *    To filter Contexts based on parent-child relationship use the HAS
+     *    operator as follows:
+     *    ```
+     *    parent_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    child_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    ```
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Contexts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `schema_title`,
+     *    `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`.
+     * *  **Parent Child filtering**:
+     *    To filter Contexts based on parent-child relationship use the HAS
+     *    operator as follows:
+     *    ```
+     *    parent_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    child_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    ```
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Contexts to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `schema_title`,
+     *    `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`.
+     * *  **Parent Child filtering**:
+     *    To filter Contexts based on parent-child relationship use the HAS
+     *    operator as follows:
+     *    ```
+     *    parent_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    child_contexts:
+     *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+     *    ```
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @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.ListContextsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListContextsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListContextsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContextsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContextsRequest(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.ListContextsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequestOrBuilder.java new file mode 100644 index 000000000..efeb3025f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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 ListContextsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListContextsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MetadataStore whose Contexts should be listed.
+   * 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 MetadataStore whose Contexts should be listed.
+   * 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(); + + /** + * + * + *
+   * The maximum number of Contexts to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter specifying the boolean condition for the Contexts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `schema_title`,
+   *    `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`.
+   * *  **Parent Child filtering**:
+   *    To filter Contexts based on parent-child relationship use the HAS
+   *    operator as follows:
+   *    ```
+   *    parent_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    child_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    ```
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter specifying the boolean condition for the Contexts to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `schema_title`,
+   *    `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`.
+   * *  **Parent Child filtering**:
+   *    To filter Contexts based on parent-child relationship use the HAS
+   *    operator as follows:
+   *    ```
+   *    parent_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    child_contexts:
+   *    "projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context_id>"
+   *    ```
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java new file mode 100644 index 000000000..7189a35fe --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java @@ -0,0 +1,1144 @@ +/* + * 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.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListContextsResponse} + */ +public final class ListContextsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListContextsResponse) + ListContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListContextsResponse.newBuilder() to construct. + private ListContextsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContextsResponse() { + contexts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContextsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListContextsResponse( + 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)) { + contexts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contexts_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Context.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)) { + contexts_ = java.util.Collections.unmodifiableList(contexts_); + } + 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_ListContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse.Builder.class); + } + + public static final int CONTEXTS_FIELD_NUMBER = 1; + private java.util.List contexts_; + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + @java.lang.Override + public java.util.List getContextsList() { + return contexts_; + } + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + @java.lang.Override + public java.util.List + getContextsOrBuilderList() { + return contexts_; + } + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + @java.lang.Override + public int getContextsCount() { + return contexts_.size(); + } + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getContexts(int index) { + return contexts_.get(index); + } + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextsOrBuilder(int index) { + return contexts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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 < contexts_.size(); i++) { + output.writeMessage(1, contexts_.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 < contexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contexts_.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.v1beta1.ListContextsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListContextsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListContextsResponse) obj; + + if (!getContextsList().equals(other.getContextsList())) 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 (getContextsCount() > 0) { + hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getContextsList().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.v1beta1.ListContextsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse 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.ListContextsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse 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.ListContextsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse 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.ListContextsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse 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.ListContextsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse 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.ListContextsResponse 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.ListContextsResponse 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.ListContextsResponse 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.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListContextsResponse) + com.google.cloud.aiplatform.v1beta1.ListContextsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListContextsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListContextsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContextsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextsBuilder_ == null) { + contexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + contextsBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListContextsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListContextsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListContextsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListContextsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListContextsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListContextsResponse(this); + int from_bitField0_ = bitField0_; + if (contextsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contexts_ = java.util.Collections.unmodifiableList(contexts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contexts_ = contexts_; + } else { + result.contexts_ = contextsBuilder_.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.v1beta1.ListContextsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListContextsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListContextsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListContextsResponse.getDefaultInstance()) + return this; + if (contextsBuilder_ == null) { + if (!other.contexts_.isEmpty()) { + if (contexts_.isEmpty()) { + contexts_ = other.contexts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContextsIsMutable(); + contexts_.addAll(other.contexts_); + } + onChanged(); + } + } else { + if (!other.contexts_.isEmpty()) { + if (contextsBuilder_.isEmpty()) { + contextsBuilder_.dispose(); + contextsBuilder_ = null; + contexts_ = other.contexts_; + bitField0_ = (bitField0_ & ~0x00000001); + contextsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContextsFieldBuilder() + : null; + } else { + contextsBuilder_.addAllMessages(other.contexts_); + } + } + } + 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.v1beta1.ListContextsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListContextsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List contexts_ = + java.util.Collections.emptyList(); + + private void ensureContextsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contexts_ = new java.util.ArrayList(contexts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + contextsBuilder_; + + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public java.util.List getContextsList() { + if (contextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contexts_); + } else { + return contextsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public int getContextsCount() { + if (contextsBuilder_ == null) { + return contexts_.size(); + } else { + return contextsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Context getContexts(int index) { + if (contextsBuilder_ == null) { + return contexts_.get(index); + } else { + return contextsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder setContexts(int index, com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.set(index, value); + onChanged(); + } else { + contextsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder setContexts( + int index, com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.set(index, builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder addContexts(com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.add(value); + onChanged(); + } else { + contextsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder addContexts(int index, com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.add(index, value); + onChanged(); + } else { + contextsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder addContexts( + com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.add(builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder addContexts( + int index, com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.add(index, builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder addAllContexts( + java.lang.Iterable values) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contexts_); + onChanged(); + } else { + contextsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder clearContexts() { + if (contextsBuilder_ == null) { + contexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contextsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public Builder removeContexts(int index) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.remove(index); + onChanged(); + } else { + contextsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder getContextsBuilder(int index) { + return getContextsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextsOrBuilder(int index) { + if (contextsBuilder_ == null) { + return contexts_.get(index); + } else { + return contextsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public java.util.List + getContextsOrBuilderList() { + if (contextsBuilder_ != null) { + return contextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contexts_); + } + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder addContextsBuilder() { + return getContextsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()); + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder addContextsBuilder(int index) { + return getContextsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()); + } + /** + * + * + *
+     * The Contexts retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + public java.util.List + getContextsBuilderList() { + return getContextsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + getContextsFieldBuilder() { + if (contextsBuilder_ == null) { + contextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>( + contexts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contexts_ = null; + } + return contextsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListContextsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListContextsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListContextsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListContextsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListContextsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContextsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContextsResponse(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.ListContextsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponseOrBuilder.java new file mode 100644 index 000000000..c292d0868 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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 ListContextsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListContextsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + java.util.List getContextsList(); + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + com.google.cloud.aiplatform.v1beta1.Context getContexts(int index); + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + int getContextsCount(); + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + java.util.List + getContextsOrBuilderList(); + /** + * + * + *
+   * The Contexts retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1; + */ + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java index 439328c30..7bad3a9cb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java @@ -203,7 +203,7 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobOrBuilder getCustomJobsOrBui * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
    * 
* @@ -227,7 +227,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
    * 
* @@ -982,7 +982,7 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob.Builder addCustomJobsBuilde * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
      * 
* @@ -1005,7 +1005,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
      * 
* @@ -1028,7 +1028,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
      * 
* @@ -1050,7 +1050,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
      * 
* @@ -1068,7 +1068,7 @@ public Builder clearNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponseOrBuilder.java index c1c2328fd..ff513c83e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponseOrBuilder.java @@ -79,7 +79,7 @@ public interface ListCustomJobsResponseOrBuilder * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
    * 
* @@ -92,7 +92,7 @@ public interface ListCustomJobsResponseOrBuilder * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java index 3c4a8a3e9..307b4ec4e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for [DataLabelingJobService.ListDataLabelingJobs][].
+ * Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs].
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} @@ -664,7 +664,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for [DataLabelingJobService.ListDataLabelingJobs][].
+   * Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs].
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java index 580c91630..4e2eee0ff 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java @@ -203,7 +203,7 @@ public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointsOrBuild * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
    * 
* @@ -227,7 +227,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
    * 
* @@ -981,7 +981,7 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint.Builder addEndpointsBuilder( * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
      * 
* @@ -1004,7 +1004,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
      * 
* @@ -1027,7 +1027,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
      * 
* @@ -1049,7 +1049,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
      * 
* @@ -1067,7 +1067,7 @@ public Builder clearNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponseOrBuilder.java index f2d618d2a..83a1485c2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponseOrBuilder.java @@ -79,7 +79,7 @@ public interface ListEndpointsResponseOrBuilder * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
    * 
* @@ -92,7 +92,7 @@ public interface ListEndpointsResponseOrBuilder * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java new file mode 100644 index 000000000..86cdd9886 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java @@ -0,0 +1,1740 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} + */ +public final class ListEntityTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + ListEntityTypesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntityTypesRequest.newBuilder() to construct. + private ListEntityTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntityTypesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntityTypesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListEntityTypesRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Featurestore to list EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 Featurestore to list EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * Lists the EntityTypes that match the filter expression. The following
+   * filters are supported:
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+   *   key.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the EntityTypes that match the filter expression. The following
+   * filters are supported:
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+   *   key.
+   * 
+ * + * 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 maximum number of EntityTypes to return. The service may return fewer
+   * than this value. If unspecified, at most 1000 EntityTypes will be returned.
+   * The maximum value is 1000; any value greater than 1000 will be coerced to
+   * 1000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `entity_type_id`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `entity_type_id`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest 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.ListEntityTypesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest 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.ListEntityTypesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest 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.ListEntityTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest 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.ListEntityTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest 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.ListEntityTypesRequest 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.ListEntityTypesRequest 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.ListEntityTypesRequest 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.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Featurestore to list EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to list EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to list EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to list EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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 Featurestore to list EntityTypes.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * 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_ = ""; + /** + * + * + *
+     * Lists the EntityTypes that match the filter expression. The following
+     * filters are supported:
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the EntityTypes that match the filter expression. The following
+     * filters are supported:
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the EntityTypes that match the filter expression. The following
+     * filters are supported:
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the EntityTypes that match the filter expression. The following
+     * filters are supported:
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+     *   key.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the EntityTypes that match the filter expression. The following
+     * filters are supported:
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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 maximum number of EntityTypes to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 EntityTypes will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of EntityTypes to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 EntityTypes will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * 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 maximum number of EntityTypes to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 EntityTypes will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `entity_type_id`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `entity_type_id`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `entity_type_id`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `entity_type_id`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `entity_type_id`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEntityTypesRequest(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.ListEntityTypesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequestOrBuilder.java new file mode 100644 index 000000000..4c67adc6b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequestOrBuilder.java @@ -0,0 +1,232 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListEntityTypesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Featurestore to list EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * 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 Featurestore to list EntityTypes.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Lists the EntityTypes that match the filter expression. The following
+   * filters are supported:
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+   *   key.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the EntityTypes that match the filter expression. The following
+   * filters are supported:
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> EntityTypes having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any EntityType which has a label with 'env' as the
+   *   key.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of EntityTypes to return. The service may return fewer
+   * than this value. If unspecified, at most 1000 EntityTypes will be returned.
+   * The maximum value is 1000; any value greater than 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `entity_type_id`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `entity_type_id`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java new file mode 100644 index 000000000..ca1af0716 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java @@ -0,0 +1,1148 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} + */ +public final class ListEntityTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + ListEntityTypesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntityTypesResponse.newBuilder() to construct. + private ListEntityTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntityTypesResponse() { + entityTypes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntityTypesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListEntityTypesResponse( + 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)) { + entityTypes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entityTypes_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EntityType.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)) { + entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); + } + 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_ListEntityTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.Builder.class); + } + + public static final int ENTITY_TYPES_FIELD_NUMBER = 1; + private java.util.List entityTypes_; + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + @java.lang.Override + public java.util.List getEntityTypesList() { + return entityTypes_; + } + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + @java.lang.Override + public java.util.List + getEntityTypesOrBuilderList() { + return entityTypes_; + } + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + @java.lang.Override + public int getEntityTypesCount() { + return entityTypes_.size(); + } + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityTypes(int index) { + return entityTypes_.get(index); + } + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { + return entityTypes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < entityTypes_.size(); i++) { + output.writeMessage(1, entityTypes_.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 < entityTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entityTypes_.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.v1beta1.ListEntityTypesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) obj; + + if (!getEntityTypesList().equals(other.getEntityTypesList())) 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 (getEntityTypesCount() > 0) { + hash = (37 * hash) + ENTITY_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getEntityTypesList().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.v1beta1.ListEntityTypesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse 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.ListEntityTypesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse 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.ListEntityTypesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse 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.ListEntityTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse 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.ListEntityTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse 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.ListEntityTypesResponse 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.ListEntityTypesResponse 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.ListEntityTypesResponse 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 [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListEntityTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEntityTypesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityTypesBuilder_ == null) { + entityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entityTypesBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListEntityTypesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(this); + int from_bitField0_ = bitField0_; + if (entityTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entityTypes_ = entityTypes_; + } else { + result.entityTypes_ = entityTypesBuilder_.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.v1beta1.ListEntityTypesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.getDefaultInstance()) + return this; + if (entityTypesBuilder_ == null) { + if (!other.entityTypes_.isEmpty()) { + if (entityTypes_.isEmpty()) { + entityTypes_ = other.entityTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntityTypesIsMutable(); + entityTypes_.addAll(other.entityTypes_); + } + onChanged(); + } + } else { + if (!other.entityTypes_.isEmpty()) { + if (entityTypesBuilder_.isEmpty()) { + entityTypesBuilder_.dispose(); + entityTypesBuilder_ = null; + entityTypes_ = other.entityTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + entityTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntityTypesFieldBuilder() + : null; + } else { + entityTypesBuilder_.addAllMessages(other.entityTypes_); + } + } + } + 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.v1beta1.ListEntityTypesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List entityTypes_ = + java.util.Collections.emptyList(); + + private void ensureEntityTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entityTypes_ = + new java.util.ArrayList(entityTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + entityTypesBuilder_; + + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public java.util.List getEntityTypesList() { + if (entityTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entityTypes_); + } else { + return entityTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public int getEntityTypesCount() { + if (entityTypesBuilder_ == null) { + return entityTypes_.size(); + } else { + return entityTypesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityTypes(int index) { + if (entityTypesBuilder_ == null) { + return entityTypes_.get(index); + } else { + return entityTypesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder setEntityTypes(int index, com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypesIsMutable(); + entityTypes_.set(index, value); + onChanged(); + } else { + entityTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder setEntityTypes( + int index, com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { + if (entityTypesBuilder_ == null) { + ensureEntityTypesIsMutable(); + entityTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + entityTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder addEntityTypes(com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypesIsMutable(); + entityTypes_.add(value); + onChanged(); + } else { + entityTypesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder addEntityTypes(int index, com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityTypesIsMutable(); + entityTypes_.add(index, value); + onChanged(); + } else { + entityTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder addEntityTypes( + com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { + if (entityTypesBuilder_ == null) { + ensureEntityTypesIsMutable(); + entityTypes_.add(builderForValue.build()); + onChanged(); + } else { + entityTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder addEntityTypes( + int index, com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { + if (entityTypesBuilder_ == null) { + ensureEntityTypesIsMutable(); + entityTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + entityTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder addAllEntityTypes( + java.lang.Iterable values) { + if (entityTypesBuilder_ == null) { + ensureEntityTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityTypes_); + onChanged(); + } else { + entityTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder clearEntityTypes() { + if (entityTypesBuilder_ == null) { + entityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entityTypesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public Builder removeEntityTypes(int index) { + if (entityTypesBuilder_ == null) { + ensureEntityTypesIsMutable(); + entityTypes_.remove(index); + onChanged(); + } else { + entityTypesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EntityType.Builder getEntityTypesBuilder(int index) { + return getEntityTypesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { + if (entityTypesBuilder_ == null) { + return entityTypes_.get(index); + } else { + return entityTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public java.util.List + getEntityTypesOrBuilderList() { + if (entityTypesBuilder_ != null) { + return entityTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entityTypes_); + } + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EntityType.Builder addEntityTypesBuilder() { + return getEntityTypesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()); + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EntityType.Builder addEntityTypesBuilder(int index) { + return getEntityTypesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()); + } + /** + * + * + *
+     * The EntityTypes matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + public java.util.List + getEntityTypesBuilderList() { + return getEntityTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + getEntityTypesFieldBuilder() { + if (entityTypesBuilder_ == null) { + entityTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder>( + entityTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entityTypes_ = null; + } + return entityTypesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListEntityTypesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEntityTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEntityTypesResponse(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.ListEntityTypesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponseOrBuilder.java new file mode 100644 index 000000000..8241d1342 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListEntityTypesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + java.util.List getEntityTypesList(); + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + com.google.cloud.aiplatform.v1beta1.EntityType getEntityTypes(int index); + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + int getEntityTypesCount(); + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + java.util.List + getEntityTypesOrBuilderList(); + /** + * + * + *
+   * The EntityTypes matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EntityType entity_types = 1; + */ + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java new file mode 100644 index 000000000..2806960a4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java @@ -0,0 +1,1306 @@ +/* + * 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.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListExecutionsRequest} + */ +public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + ListExecutionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExecutionsRequest.newBuilder() to construct. + private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExecutionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExecutionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListExecutionsRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + 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_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The MetadataStore whose Executions should be listed.
+   * 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 MetadataStore whose Executions should be listed.
+   * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of Executions to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with an
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with an
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter specifying the boolean condition for the Executions to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * *  **Context based filtering**:
+   *    To filter Executions based on the contexts to which they belong use
+   *    the function operator with the full resource name:
+   *    `in_context(<context-name>)`.
+   *    For example:
+   *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter specifying the boolean condition for the Executions to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * *  **Context based filtering**:
+   *    To filter Executions based on the contexts to which they belong use
+   *    the function operator with the full resource name:
+   *    `in_context(<context-name>)`.
+   *    For example:
+   *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.ListExecutionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest 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.ListExecutionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest 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.ListExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest 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.ListExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest 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.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest 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.ListExecutionsRequest 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.ListExecutionsRequest 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.ListExecutionsRequest 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.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListExecutionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + 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_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + 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.ListExecutionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.ListExecutionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The MetadataStore whose Executions should be listed.
+     * 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 MetadataStore whose Executions should be listed.
+     * 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 MetadataStore whose Executions should be listed.
+     * 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 MetadataStore whose Executions should be listed.
+     * 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 MetadataStore whose Executions should be listed.
+     * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of Executions to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Executions to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of Executions to return. The service may return fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with an
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with an
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with an
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with an
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with an
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter specifying the boolean condition for the Executions to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * *  **Context based filtering**:
+     *    To filter Executions based on the contexts to which they belong use
+     *    the function operator with the full resource name:
+     *    `in_context(<context-name>)`.
+     *    For example:
+     *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Executions to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * *  **Context based filtering**:
+     *    To filter Executions based on the contexts to which they belong use
+     *    the function operator with the full resource name:
+     *    `in_context(<context-name>)`.
+     *    For example:
+     *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Executions to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * *  **Context based filtering**:
+     *    To filter Executions based on the contexts to which they belong use
+     *    the function operator with the full resource name:
+     *    `in_context(<context-name>)`.
+     *    For example:
+     *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Executions to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * *  **Context based filtering**:
+     *    To filter Executions based on the contexts to which they belong use
+     *    the function operator with the full resource name:
+     *    `in_context(<context-name>)`.
+     *    For example:
+     *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Executions to satisfy in
+     * order to be part of the result set.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * Following are the supported set of filters:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`.
+     *    Supported fields include: `name`, `display_name`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * *  **Context based filtering**:
+     *    To filter Executions based on the contexts to which they belong use
+     *    the function operator with the full resource name:
+     *    `in_context(<context-name>)`.
+     *    For example:
+     *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+     * Each of the above supported filters can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @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.ListExecutionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExecutionsRequest(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.ListExecutionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequestOrBuilder.java new file mode 100644 index 000000000..55fe53732 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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 ListExecutionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MetadataStore whose Executions should be listed.
+   * 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 MetadataStore whose Executions should be listed.
+   * 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(); + + /** + * + * + *
+   * The maximum number of Executions to return. The service may return fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with an
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with an
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter specifying the boolean condition for the Executions to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * *  **Context based filtering**:
+   *    To filter Executions based on the contexts to which they belong use
+   *    the function operator with the full resource name:
+   *    `in_context(<context-name>)`.
+   *    For example:
+   *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter specifying the boolean condition for the Executions to satisfy in
+   * order to be part of the result set.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * Following are the supported set of filters:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`.
+   *    Supported fields include: `name`, `display_name`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`.
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * *  **Context based filtering**:
+   *    To filter Executions based on the contexts to which they belong use
+   *    the function operator with the full resource name:
+   *    `in_context(<context-name>)`.
+   *    For example:
+   *    `in_context("projects/<project_number>/locations/<location>/metadataStores/<metadatastore_name>/contexts/<context-id>")`
+   * Each of the above supported filters can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java new file mode 100644 index 000000000..7194470ca --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java @@ -0,0 +1,1147 @@ +/* + * 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.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListExecutionsResponse} + */ +public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + ListExecutionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExecutionsResponse.newBuilder() to construct. + private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExecutionsResponse() { + executions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExecutionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListExecutionsResponse( + 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)) { + executions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Execution.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)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + 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_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.Builder.class); + } + + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + @java.lang.Override + public java.util.List getExecutionsList() { + return executions_; + } + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + @java.lang.Override + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + @java.lang.Override + public int getExecutionsCount() { + return executions_.size(); + } + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder(int index) { + return executions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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 < executions_.size(); i++) { + output.writeMessage(1, executions_.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 < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.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.v1beta1.ListExecutionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) obj; + + if (!getExecutionsList().equals(other.getExecutionsList())) 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 (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().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.v1beta1.ListExecutionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse 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.ListExecutionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse 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.ListExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse 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.ListExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse 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.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse 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.ListExecutionsResponse 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.ListExecutionsResponse 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.ListExecutionsResponse 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.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListExecutionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(this); + int from_bitField0_ = bitField0_; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.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.v1beta1.ListExecutionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse.getDefaultInstance()) + return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecutionsFieldBuilder() + : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + 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.v1beta1.ListExecutionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = + new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + executionsBuilder_; + + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder setExecutions(int index, com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder setExecutions( + int index, com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder addExecutions(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder addExecutions(int index, com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder addExecutions( + com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder addExecutions( + int index, com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionsBuilder(int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()); + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder addExecutionsBuilder(int index) { + return getExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()); + } + /** + * + * + *
+     * The Executions retrieved from the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+     * to retrieve the next page.
+     * If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListExecutionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExecutionsResponse(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.ListExecutionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponseOrBuilder.java new file mode 100644 index 000000000..9b6ecbf9c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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 ListExecutionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + java.util.List getExecutionsList(); + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + com.google.cloud.aiplatform.v1beta1.Execution getExecutions(int index); + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + int getExecutionsCount(); + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * + * + *
+   * The Executions retrieved from the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Execution executions = 1; + */ + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token]
+   * to retrieve the next page.
+   * If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java new file mode 100644 index 000000000..51024165d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java @@ -0,0 +1,1863 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturesRequest} + */ +public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + ListFeaturesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeaturesRequest.newBuilder() to construct. + private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeaturesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeaturesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeaturesRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + latestStatsCount_ = 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.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 Features.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 Features.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * Lists the Features that match the filter expression. The following
+   * filters are supported:
+   * * `value_type`: Supports = and != comparisons.
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+   *   key.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the Features that match the filter expression. The following
+   * filters are supported:
+   * * `value_type`: Supports = and != comparisons.
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+   *   key.
+   * 
+ * + * 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 maximum number of Features to return. The service may return fewer
+   * than this value. If unspecified, at most 1000 Features will be returned.
+   * The maximum value is 1000; any value greater than 1000 will be coerced to
+   * 1000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `feature_id`
+   *   * `value_type`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `feature_id`
+   *   * `value_type`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + public static final int LATEST_STATS_COUNT_FIELD_NUMBER = 7; + private int latestStatsCount_; + /** + * + * + *
+   * If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count]
+   * of stats for each Feature in response. Valid value is [0, 10]. If number of
+   * stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all
+   * existing stats.
+   * 
+ * + * int32 latest_stats_count = 7; + * + * @return The latestStatsCount. + */ + @java.lang.Override + public int getLatestStatsCount() { + return latestStatsCount_; + } + + 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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + if (latestStatsCount_ != 0) { + output.writeInt32(7, latestStatsCount_); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + if (latestStatsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, latestStatsCount_); + } + 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.ListFeaturesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (getLatestStatsCount() != other.getLatestStatsCount()) 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (37 * hash) + LATEST_STATS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLatestStatsCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest 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.ListFeaturesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest 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.ListFeaturesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest 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.ListFeaturesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest 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.ListFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest 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.ListFeaturesRequest 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.ListFeaturesRequest 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.ListFeaturesRequest 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.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + latestStatsCount_ = 0; + + 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_ListFeaturesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + result.latestStatsCount_ = latestStatsCount_; + 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.ListFeaturesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + if (other.getLatestStatsCount() != 0) { + setLatestStatsCount(other.getLatestStatsCount()); + } + 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.ListFeaturesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) 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 Features.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Features.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Features.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Features.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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 Features.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * 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_ = ""; + /** + * + * + *
+     * Lists the Features that match the filter expression. The following
+     * filters are supported:
+     * * `value_type`: Supports = and != comparisons.
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the Features that match the filter expression. The following
+     * filters are supported:
+     * * `value_type`: Supports = and != comparisons.
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the Features that match the filter expression. The following
+     * filters are supported:
+     * * `value_type`: Supports = and != comparisons.
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the Features that match the filter expression. The following
+     * filters are supported:
+     * * `value_type`: Supports = and != comparisons.
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+     *   key.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the Features that match the filter expression. The following
+     * filters are supported:
+     * * `value_type`: Supports = and != comparisons.
+     * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+     * be in RFC 3339 format.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * Examples:
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+     *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+     *      or updated after 2020-01-31T15:30:00.000000Z.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+     *   key.
+     * 
+ * + * 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 maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 Features will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 Features will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * 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 maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 1000 Features will be returned.
+     * The maximum value is 1000; any value greater than 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `feature_id`
+     *   * `value_type`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `feature_id`
+     *   * `value_type`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `feature_id`
+     *   * `value_type`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `feature_id`
+     *   * `value_type`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `feature_id`
+     *   * `value_type`
+     *   * `create_time`
+     *   * `update_time`
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + private int latestStatsCount_; + /** + * + * + *
+     * If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count]
+     * of stats for each Feature in response. Valid value is [0, 10]. If number of
+     * stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all
+     * existing stats.
+     * 
+ * + * int32 latest_stats_count = 7; + * + * @return The latestStatsCount. + */ + @java.lang.Override + public int getLatestStatsCount() { + return latestStatsCount_; + } + /** + * + * + *
+     * If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count]
+     * of stats for each Feature in response. Valid value is [0, 10]. If number of
+     * stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all
+     * existing stats.
+     * 
+ * + * int32 latest_stats_count = 7; + * + * @param value The latestStatsCount to set. + * @return This builder for chaining. + */ + public Builder setLatestStatsCount(int value) { + + latestStatsCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count]
+     * of stats for each Feature in response. Valid value is [0, 10]. If number of
+     * stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all
+     * existing stats.
+     * 
+ * + * int32 latest_stats_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearLatestStatsCount() { + + latestStatsCount_ = 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.ListFeaturesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(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.ListFeaturesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequestOrBuilder.java new file mode 100644 index 000000000..7dc2d0ecc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequestOrBuilder.java @@ -0,0 +1,254 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListFeaturesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list Features.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * 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 Features.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Lists the Features that match the filter expression. The following
+   * filters are supported:
+   * * `value_type`: Supports = and != comparisons.
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+   *   key.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the Features that match the filter expression. The following
+   * filters are supported:
+   * * `value_type`: Supports = and != comparisons.
+   * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must
+   * be in RFC 3339 format.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * Examples:
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR
+   *      update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created
+   *      or updated after 2020-01-31T15:30:00.000000Z.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with 'env' as the
+   *   key.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of Features to return. The service may return fewer
+   * than this value. If unspecified, at most 1000 Features will be returned.
+   * The maximum value is 1000; any value greater than 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `feature_id`
+   *   * `value_type`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `feature_id`
+   *   * `value_type`
+   *   * `create_time`
+   *   * `update_time`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); + + /** + * + * + *
+   * If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count]
+   * of stats for each Feature in response. Valid value is [0, 10]. If number of
+   * stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all
+   * existing stats.
+   * 
+ * + * int32 latest_stats_count = 7; + * + * @return The latestStatsCount. + */ + int getLatestStatsCount(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java new file mode 100644 index 000000000..5871cf4e0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java @@ -0,0 +1,1144 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturesResponse} + */ +public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListFeaturesResponse) + ListFeaturesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeaturesResponse.newBuilder() to construct. + private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeaturesResponse() { + features_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeaturesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeaturesResponse( + 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)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Feature.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)) { + features_ = java.util.Collections.unmodifiableList(features_); + } + 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_ListFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.Builder.class); + } + + public static final int FEATURES_FIELD_NUMBER = 1; + private java.util.List features_; + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List getFeaturesList() { + return features_; + } + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List + getFeaturesOrBuilderList() { + return features_; + } + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public int getFeaturesCount() { + return features_.size(); + } + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + return features_.get(index); + } + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + return features_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < features_.size(); i++) { + output.writeMessage(1, features_.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 < features_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, features_.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.v1beta1.ListFeaturesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) obj; + + if (!getFeaturesList().equals(other.getFeaturesList())) 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 (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeaturesList().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.v1beta1.ListFeaturesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse 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.ListFeaturesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse 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.ListFeaturesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse 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.ListFeaturesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse 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.ListFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse 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.ListFeaturesResponse 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.ListFeaturesResponse 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.ListFeaturesResponse 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 [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListFeaturesResponse) + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeaturesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featuresBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListFeaturesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(this); + int from_bitField0_ = bitField0_; + if (featuresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.features_ = features_; + } else { + result.features_ = featuresBuilder_.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.v1beta1.ListFeaturesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse.getDefaultInstance()) + return this; + if (featuresBuilder_ == null) { + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + } else { + if (!other.features_.isEmpty()) { + if (featuresBuilder_.isEmpty()) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; + } else { + featuresBuilder_.addAllMessages(other.features_); + } + } + } + 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.v1beta1.ListFeaturesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List features_ = + java.util.Collections.emptyList(); + + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + featuresBuilder_; + + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List getFeaturesList() { + if (featuresBuilder_ == null) { + return java.util.Collections.unmodifiableList(features_); + } else { + return featuresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public int getFeaturesCount() { + if (featuresBuilder_ == null) { + return features_.size(); + } else { + return featuresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + } else { + featuresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.set(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + } else { + featuresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(index, value); + onChanged(); + } else { + featuresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + onChanged(); + } else { + featuresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder clearFeatures() { + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featuresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder removeFeatures(int index) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.remove(index); + onChanged(); + } else { + featuresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeaturesBuilder(int index) { + return getFeaturesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesOrBuilderList() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(features_); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder() { + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesBuilderList() { + return getFeaturesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + features_ = null; + } + return featuresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListFeaturesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListFeaturesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(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.ListFeaturesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponseOrBuilder.java new file mode 100644 index 000000000..905d42e9e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListFeaturesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListFeaturesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List getFeaturesList(); + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index); + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + int getFeaturesCount(); + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List + getFeaturesOrBuilderList(); + /** + * + * + *
+   * The Features matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java new file mode 100644 index 000000000..db4ee83cd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java @@ -0,0 +1,1750 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} + */ +public final class ListFeaturestoresRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + ListFeaturestoresRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeaturestoresRequest.newBuilder() to construct. + private ListFeaturestoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeaturestoresRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeaturestoresRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeaturestoresRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.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 Featurestores.
+   * 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 Featurestores.
+   * 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_; + /** + * + * + *
+   * Lists the featurestores that match the filter expression. The following
+   * fields are supported:
+   * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+   * and >= comparisons.
+   * * `labels`: Supports key-value equality and key presence.
+   * Examples:
+   * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+   *    Featurestores created or updated after 2020-01-01.
+   * * `labels.env = "prod"`
+   *    Featurestores with label "env" set to "prod".
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the featurestores that match the filter expression. The following
+   * fields are supported:
+   * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+   * and >= comparisons.
+   * * `labels`: Supports key-value equality and key presence.
+   * Examples:
+   * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+   *    Featurestores created or updated after 2020-01-01.
+   * * `labels.env = "prod"`
+   *    Featurestores with label "env" set to "prod".
+   * 
+ * + * 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 maximum number of Featurestores to return. The service may return fewer
+   * than this value. If unspecified, at most 100 Featurestores will be
+   * returned. The maximum value is 100; any value greater than 100 will be
+   * coerced to 100.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported Fields:
+   *   * `create_time`
+   *   * `update_time`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported Fields:
+   *   * `create_time`
+   *   * `update_time`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest other = + (com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest 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.ListFeaturestoresRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest 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.ListFeaturestoresRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest 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.ListFeaturestoresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest 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.ListFeaturestoresRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest 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.ListFeaturestoresRequest 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.ListFeaturestoresRequest 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.ListFeaturestoresRequest 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.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest build() { + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest result = + new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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 Featurestores.
+     * 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_ = ""; + /** + * + * + *
+     * Lists the featurestores that match the filter expression. The following
+     * fields are supported:
+     * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+     * and >= comparisons.
+     * * `labels`: Supports key-value equality and key presence.
+     * Examples:
+     * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+     *    Featurestores created or updated after 2020-01-01.
+     * * `labels.env = "prod"`
+     *    Featurestores with label "env" set to "prod".
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the featurestores that match the filter expression. The following
+     * fields are supported:
+     * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+     * and >= comparisons.
+     * * `labels`: Supports key-value equality and key presence.
+     * Examples:
+     * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+     *    Featurestores created or updated after 2020-01-01.
+     * * `labels.env = "prod"`
+     *    Featurestores with label "env" set to "prod".
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the featurestores that match the filter expression. The following
+     * fields are supported:
+     * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+     * and >= comparisons.
+     * * `labels`: Supports key-value equality and key presence.
+     * Examples:
+     * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+     *    Featurestores created or updated after 2020-01-01.
+     * * `labels.env = "prod"`
+     *    Featurestores with label "env" set to "prod".
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the featurestores that match the filter expression. The following
+     * fields are supported:
+     * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+     * and >= comparisons.
+     * * `labels`: Supports key-value equality and key presence.
+     * Examples:
+     * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+     *    Featurestores created or updated after 2020-01-01.
+     * * `labels.env = "prod"`
+     *    Featurestores with label "env" set to "prod".
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the featurestores that match the filter expression. The following
+     * fields are supported:
+     * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+     * be
+     *   in RFC 3339 format.
+     * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+     * and >= comparisons.
+     * * `labels`: Supports key-value equality and key presence.
+     * Examples:
+     * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+     *    Featurestores created or updated after 2020-01-01.
+     * * `labels.env = "prod"`
+     *    Featurestores with label "env" set to "prod".
+     * 
+ * + * 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 maximum number of Featurestores to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Featurestores will be
+     * returned. The maximum value is 100; any value greater than 100 will be
+     * coerced to 100.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Featurestores to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Featurestores will be
+     * returned. The maximum value is 100; any value greater than 100 will be
+     * coerced to 100.
+     * 
+ * + * 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 maximum number of Featurestores to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Featurestores will be
+     * returned. The maximum value is 100; any value greater than 100 will be
+     * coerced to 100.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported Fields:
+     *   * `create_time`
+     *   * `update_time`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported Fields:
+     *   * `create_time`
+     *   * `update_time`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported Fields:
+     *   * `create_time`
+     *   * `update_time`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported Fields:
+     *   * `create_time`
+     *   * `update_time`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported Fields:
+     *   * `create_time`
+     *   * `update_time`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturestoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturestoresRequest(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.ListFeaturestoresRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequestOrBuilder.java new file mode 100644 index 000000000..749bbebe9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequestOrBuilder.java @@ -0,0 +1,234 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListFeaturestoresRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list Featurestores.
+   * 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 Featurestores.
+   * 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(); + + /** + * + * + *
+   * Lists the featurestores that match the filter expression. The following
+   * fields are supported:
+   * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+   * and >= comparisons.
+   * * `labels`: Supports key-value equality and key presence.
+   * Examples:
+   * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+   *    Featurestores created or updated after 2020-01-01.
+   * * `labels.env = "prod"`
+   *    Featurestores with label "env" set to "prod".
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the featurestores that match the filter expression. The following
+   * fields are supported:
+   * * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must
+   * be
+   *   in RFC 3339 format.
+   * * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=,
+   * and >= comparisons.
+   * * `labels`: Supports key-value equality and key presence.
+   * Examples:
+   * * `create_time > "2020-01-01" OR update_time > "2020-01-01"`
+   *    Featurestores created or updated after 2020-01-01.
+   * * `labels.env = "prod"`
+   *    Featurestores with label "env" set to "prod".
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of Featurestores to return. The service may return fewer
+   * than this value. If unspecified, at most 100 Featurestores will be
+   * returned. The maximum value is 100; any value greater than 100 will be
+   * coerced to 100.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported Fields:
+   *   * `create_time`
+   *   * `update_time`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported Fields:
+   *   * `create_time`
+   *   * `update_time`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java new file mode 100644 index 000000000..2620ed81d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java @@ -0,0 +1,1161 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} + */ +public final class ListFeaturestoresResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + ListFeaturestoresResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFeaturestoresResponse.newBuilder() to construct. + private ListFeaturestoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFeaturestoresResponse() { + featurestores_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFeaturestoresResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFeaturestoresResponse( + 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)) { + featurestores_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + featurestores_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Featurestore.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)) { + featurestores_ = java.util.Collections.unmodifiableList(featurestores_); + } + 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_ListFeaturestoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.Builder.class); + } + + public static final int FEATURESTORES_FIELD_NUMBER = 1; + private java.util.List featurestores_; + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + @java.lang.Override + public java.util.List getFeaturestoresList() { + return featurestores_; + } + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + @java.lang.Override + public java.util.List + getFeaturestoresOrBuilderList() { + return featurestores_; + } + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + @java.lang.Override + public int getFeaturestoresCount() { + return featurestores_.size(); + } + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestores(int index) { + return featurestores_.get(index); + } + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoresOrBuilder( + int index) { + return featurestores_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < featurestores_.size(); i++) { + output.writeMessage(1, featurestores_.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 < featurestores_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, featurestores_.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.v1beta1.ListFeaturestoresResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse other = + (com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) obj; + + if (!getFeaturestoresList().equals(other.getFeaturestoresList())) 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 (getFeaturestoresCount() > 0) { + hash = (37 * hash) + FEATURESTORES_FIELD_NUMBER; + hash = (53 * hash) + getFeaturestoresList().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.v1beta1.ListFeaturestoresResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse 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.ListFeaturestoresResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse 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.ListFeaturestoresResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse 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.ListFeaturestoresResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse 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.ListFeaturestoresResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse 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.ListFeaturestoresResponse 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.ListFeaturestoresResponse 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.ListFeaturestoresResponse 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 [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListFeaturestoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.class, + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeaturestoresFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (featurestoresBuilder_ == null) { + featurestores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featurestoresBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListFeaturestoresResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse build() { + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse result = + new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(this); + int from_bitField0_ = bitField0_; + if (featurestoresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + featurestores_ = java.util.Collections.unmodifiableList(featurestores_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.featurestores_ = featurestores_; + } else { + result.featurestores_ = featurestoresBuilder_.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.v1beta1.ListFeaturestoresResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.getDefaultInstance()) + return this; + if (featurestoresBuilder_ == null) { + if (!other.featurestores_.isEmpty()) { + if (featurestores_.isEmpty()) { + featurestores_ = other.featurestores_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeaturestoresIsMutable(); + featurestores_.addAll(other.featurestores_); + } + onChanged(); + } + } else { + if (!other.featurestores_.isEmpty()) { + if (featurestoresBuilder_.isEmpty()) { + featurestoresBuilder_.dispose(); + featurestoresBuilder_ = null; + featurestores_ = other.featurestores_; + bitField0_ = (bitField0_ & ~0x00000001); + featurestoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturestoresFieldBuilder() + : null; + } else { + featurestoresBuilder_.addAllMessages(other.featurestores_); + } + } + } + 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.v1beta1.ListFeaturestoresResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List featurestores_ = + java.util.Collections.emptyList(); + + private void ensureFeaturestoresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + featurestores_ = + new java.util.ArrayList( + featurestores_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + featurestoresBuilder_; + + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public java.util.List getFeaturestoresList() { + if (featurestoresBuilder_ == null) { + return java.util.Collections.unmodifiableList(featurestores_); + } else { + return featurestoresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public int getFeaturestoresCount() { + if (featurestoresBuilder_ == null) { + return featurestores_.size(); + } else { + return featurestoresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestores(int index) { + if (featurestoresBuilder_ == null) { + return featurestores_.get(index); + } else { + return featurestoresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder setFeaturestores( + int index, com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturestoresIsMutable(); + featurestores_.set(index, value); + onChanged(); + } else { + featurestoresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder setFeaturestores( + int index, com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { + if (featurestoresBuilder_ == null) { + ensureFeaturestoresIsMutable(); + featurestores_.set(index, builderForValue.build()); + onChanged(); + } else { + featurestoresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder addFeaturestores(com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturestoresIsMutable(); + featurestores_.add(value); + onChanged(); + } else { + featurestoresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder addFeaturestores( + int index, com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturestoresIsMutable(); + featurestores_.add(index, value); + onChanged(); + } else { + featurestoresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder addFeaturestores( + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { + if (featurestoresBuilder_ == null) { + ensureFeaturestoresIsMutable(); + featurestores_.add(builderForValue.build()); + onChanged(); + } else { + featurestoresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder addFeaturestores( + int index, com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { + if (featurestoresBuilder_ == null) { + ensureFeaturestoresIsMutable(); + featurestores_.add(index, builderForValue.build()); + onChanged(); + } else { + featurestoresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder addAllFeaturestores( + java.lang.Iterable values) { + if (featurestoresBuilder_ == null) { + ensureFeaturestoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featurestores_); + onChanged(); + } else { + featurestoresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder clearFeaturestores() { + if (featurestoresBuilder_ == null) { + featurestores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featurestoresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public Builder removeFeaturestores(int index) { + if (featurestoresBuilder_ == null) { + ensureFeaturestoresIsMutable(); + featurestores_.remove(index); + onChanged(); + } else { + featurestoresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder getFeaturestoresBuilder( + int index) { + return getFeaturestoresFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoresOrBuilder( + int index) { + if (featurestoresBuilder_ == null) { + return featurestores_.get(index); + } else { + return featurestoresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public java.util.List + getFeaturestoresOrBuilderList() { + if (featurestoresBuilder_ != null) { + return featurestoresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(featurestores_); + } + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder addFeaturestoresBuilder() { + return getFeaturestoresFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance()); + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder addFeaturestoresBuilder( + int index) { + return getFeaturestoresFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance()); + } + /** + * + * + *
+     * The Featurestores matching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + public java.util.List + getFeaturestoresBuilderList() { + return getFeaturestoresFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + getFeaturestoresFieldBuilder() { + if (featurestoresBuilder_ == null) { + featurestoresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder>( + featurestores_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + featurestores_ = null; + } + return featurestoresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListFeaturestoresResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturestoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturestoresResponse(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.ListFeaturestoresResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponseOrBuilder.java new file mode 100644 index 000000000..c2d8c0fb2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListFeaturestoresResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + java.util.List getFeaturestoresList(); + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestores(int index); + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + int getFeaturestoresCount(); + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + java.util.List + getFeaturestoresOrBuilderList(); + /** + * + * + *
+   * The Featurestores matching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Featurestore featurestores = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoresOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java index 5f996077d..e7aca737a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java @@ -228,7 +228,7 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -253,7 +253,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -1098,7 +1098,7 @@ public Builder removeHyperparameterTuningJobs(int index) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1122,7 +1122,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1146,7 +1146,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1169,7 +1169,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
      * page.
      * 
@@ -1188,7 +1188,7 @@ public Builder clearNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
      * page.
      * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponseOrBuilder.java index 994ee4b6d..2086fe91b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponseOrBuilder.java @@ -97,7 +97,7 @@ com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparameterTun * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
    * page.
    * 
@@ -111,7 +111,7 @@ com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparameterTun * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
    * page.
    * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java new file mode 100644 index 000000000..0d7b74796 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java @@ -0,0 +1,1516 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} + */ +public final class ListIndexEndpointsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + ListIndexEndpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexEndpointsRequest.newBuilder() to construct. + private ListIndexEndpointsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexEndpointsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIndexEndpointsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexEndpointsRequest( + 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; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location from which to list the IndexEndpoints.
+   * 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 from which to list the IndexEndpoints.
+   * 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_; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+   *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+   *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+   *   * `display_name` supports =, != and regex()
+   *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+   *   * `labels` supports general map functions that is:
+   *             `labels.key=value` - key:value equality
+   *             `labels.key:* or labels:key - key existence
+   *              A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `index_endpoint="1"`
+   *   * `display_name="myDisplayName"`
+   *   * `regex(display_name, "^A") -> The display name starts with an A.
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+   *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+   *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+   *   * `display_name` supports =, != and regex()
+   *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+   *   * `labels` supports general map functions that is:
+   *             `labels.key=value` - key:value equality
+   *             `labels.key:* or labels:key - key existence
+   *              A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `index_endpoint="1"`
+   *   * `display_name="myDisplayName"`
+   *   * `regex(display_name, "^A") -> The display name starts with an A.
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_; + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+   * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+   * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!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_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) 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 (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest 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.ListIndexEndpointsRequest 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 [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + 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 from which to list the IndexEndpoints.
+     * 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 from which to list the IndexEndpoints.
+     * 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 from which to list the IndexEndpoints.
+     * 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 from which to list the IndexEndpoints.
+     * 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 from which to list the IndexEndpoints.
+     * 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_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+     *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+     *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+     *   * `display_name` supports =, != and regex()
+     *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+     *   * `labels` supports general map functions that is:
+     *             `labels.key=value` - key:value equality
+     *             `labels.key:* or labels:key - key existence
+     *              A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `index_endpoint="1"`
+     *   * `display_name="myDisplayName"`
+     *   * `regex(display_name, "^A") -> The display name starts with an A.
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+     *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+     *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+     *   * `display_name` supports =, != and regex()
+     *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+     *   * `labels` supports general map functions that is:
+     *             `labels.key=value` - key:value equality
+     *             `labels.key:* or labels:key - key existence
+     *              A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `index_endpoint="1"`
+     *   * `display_name="myDisplayName"`
+     *   * `regex(display_name, "^A") -> The display name starts with an A.
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+     *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+     *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+     *   * `display_name` supports =, != and regex()
+     *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+     *   * `labels` supports general map functions that is:
+     *             `labels.key=value` - key:value equality
+     *             `labels.key:* or labels:key - key existence
+     *              A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `index_endpoint="1"`
+     *   * `display_name="myDisplayName"`
+     *   * `regex(display_name, "^A") -> The display name starts with an A.
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+     *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+     *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+     *   * `display_name` supports =, != and regex()
+     *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+     *   * `labels` supports general map functions that is:
+     *             `labels.key=value` - key:value equality
+     *             `labels.key:* or labels:key - key existence
+     *              A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `index_endpoint="1"`
+     *   * `display_name="myDisplayName"`
+     *   * `regex(display_name, "^A") -> The display name starts with an A.
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+     *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+     *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+     *   * `display_name` supports =, != and regex()
+     *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+     *   * `labels` supports general map functions that is:
+     *             `labels.key=value` - key:value equality
+     *             `labels.key:* or labels:key - key existence
+     *              A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `index_endpoint="1"`
+     *   * `display_name="myDisplayName"`
+     *   * `regex(display_name, "^A") -> The display name starts with an A.
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+     * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+     * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+     * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+     * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+     * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexEndpointsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexEndpointsRequest(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.ListIndexEndpointsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequestOrBuilder.java new file mode 100644 index 000000000..5a223d1f8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListIndexEndpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to list the IndexEndpoints.
+   * 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 from which to list the IndexEndpoints.
+   * 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(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+   *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+   *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+   *   * `display_name` supports =, != and regex()
+   *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+   *   * `labels` supports general map functions that is:
+   *             `labels.key=value` - key:value equality
+   *             `labels.key:* or labels:key - key existence
+   *              A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `index_endpoint="1"`
+   *   * `display_name="myDisplayName"`
+   *   * `regex(display_name, "^A") -> The display name starts with an A.
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `index_endpoint` supports = and !=. `index_endpoint` represents the
+   *      IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
+   *      [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name].
+   *   * `display_name` supports =, != and regex()
+   *             (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
+   *   * `labels` supports general map functions that is:
+   *             `labels.key=value` - key:value equality
+   *             `labels.key:* or labels:key - key existence
+   *              A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `index_endpoint="1"`
+   *   * `display_name="myDisplayName"`
+   *   * `regex(display_name, "^A") -> The display name starts with an A.
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+   * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous
+   * [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java new file mode 100644 index 000000000..1ecf6cb23 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java @@ -0,0 +1,1158 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} + */ +public final class ListIndexEndpointsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + ListIndexEndpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexEndpointsResponse.newBuilder() to construct. + private ListIndexEndpointsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexEndpointsResponse() { + indexEndpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIndexEndpointsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexEndpointsResponse( + 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)) { + indexEndpoints_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + indexEndpoints_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.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)) { + indexEndpoints_ = java.util.Collections.unmodifiableList(indexEndpoints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.Builder.class); + } + + public static final int INDEX_ENDPOINTS_FIELD_NUMBER = 1; + private java.util.List indexEndpoints_; + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + @java.lang.Override + public java.util.List getIndexEndpointsList() { + return indexEndpoints_; + } + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + @java.lang.Override + public java.util.List + getIndexEndpointsOrBuilderList() { + return indexEndpoints_; + } + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + @java.lang.Override + public int getIndexEndpointsCount() { + return indexEndpoints_.size(); + } + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoints(int index) { + return indexEndpoints_.get(index); + } + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointsOrBuilder( + int index) { + return indexEndpoints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 next page of results.
+   * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 < indexEndpoints_.size(); i++) { + output.writeMessage(1, indexEndpoints_.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 < indexEndpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexEndpoints_.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.v1beta1.ListIndexEndpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) obj; + + if (!getIndexEndpointsList().equals(other.getIndexEndpointsList())) 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 (getIndexEndpointsCount() > 0) { + hash = (37 * hash) + INDEX_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpointsList().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.v1beta1.ListIndexEndpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse 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.ListIndexEndpointsResponse 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 [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIndexEndpointsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (indexEndpointsBuilder_ == null) { + indexEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + indexEndpointsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexEndpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(this); + int from_bitField0_ = bitField0_; + if (indexEndpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + indexEndpoints_ = java.util.Collections.unmodifiableList(indexEndpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.indexEndpoints_ = indexEndpoints_; + } else { + result.indexEndpoints_ = indexEndpointsBuilder_.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.v1beta1.ListIndexEndpointsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.getDefaultInstance()) + return this; + if (indexEndpointsBuilder_ == null) { + if (!other.indexEndpoints_.isEmpty()) { + if (indexEndpoints_.isEmpty()) { + indexEndpoints_ = other.indexEndpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIndexEndpointsIsMutable(); + indexEndpoints_.addAll(other.indexEndpoints_); + } + onChanged(); + } + } else { + if (!other.indexEndpoints_.isEmpty()) { + if (indexEndpointsBuilder_.isEmpty()) { + indexEndpointsBuilder_.dispose(); + indexEndpointsBuilder_ = null; + indexEndpoints_ = other.indexEndpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + indexEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexEndpointsFieldBuilder() + : null; + } else { + indexEndpointsBuilder_.addAllMessages(other.indexEndpoints_); + } + } + } + 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.v1beta1.ListIndexEndpointsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List indexEndpoints_ = + java.util.Collections.emptyList(); + + private void ensureIndexEndpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + indexEndpoints_ = + new java.util.ArrayList( + indexEndpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + indexEndpointsBuilder_; + + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public java.util.List + getIndexEndpointsList() { + if (indexEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexEndpoints_); + } else { + return indexEndpointsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public int getIndexEndpointsCount() { + if (indexEndpointsBuilder_ == null) { + return indexEndpoints_.size(); + } else { + return indexEndpointsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoints(int index) { + if (indexEndpointsBuilder_ == null) { + return indexEndpoints_.get(index); + } else { + return indexEndpointsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder setIndexEndpoints( + int index, com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexEndpointsIsMutable(); + indexEndpoints_.set(index, value); + onChanged(); + } else { + indexEndpointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder setIndexEndpoints( + int index, com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { + if (indexEndpointsBuilder_ == null) { + ensureIndexEndpointsIsMutable(); + indexEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + indexEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder addIndexEndpoints(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexEndpointsIsMutable(); + indexEndpoints_.add(value); + onChanged(); + } else { + indexEndpointsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder addIndexEndpoints( + int index, com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexEndpointsIsMutable(); + indexEndpoints_.add(index, value); + onChanged(); + } else { + indexEndpointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder addIndexEndpoints( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { + if (indexEndpointsBuilder_ == null) { + ensureIndexEndpointsIsMutable(); + indexEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + indexEndpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder addIndexEndpoints( + int index, com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { + if (indexEndpointsBuilder_ == null) { + ensureIndexEndpointsIsMutable(); + indexEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + indexEndpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder addAllIndexEndpoints( + java.lang.Iterable values) { + if (indexEndpointsBuilder_ == null) { + ensureIndexEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexEndpoints_); + onChanged(); + } else { + indexEndpointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder clearIndexEndpoints() { + if (indexEndpointsBuilder_ == null) { + indexEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + indexEndpointsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public Builder removeIndexEndpoints(int index) { + if (indexEndpointsBuilder_ == null) { + ensureIndexEndpointsIsMutable(); + indexEndpoints_.remove(index); + onChanged(); + } else { + indexEndpointsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder getIndexEndpointsBuilder( + int index) { + return getIndexEndpointsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointsOrBuilder( + int index) { + if (indexEndpointsBuilder_ == null) { + return indexEndpoints_.get(index); + } else { + return indexEndpointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public java.util.List + getIndexEndpointsOrBuilderList() { + if (indexEndpointsBuilder_ != null) { + return indexEndpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexEndpoints_); + } + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder addIndexEndpointsBuilder() { + return getIndexEndpointsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder addIndexEndpointsBuilder( + int index) { + return getIndexEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of IndexEndpoints in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + public java.util.List + getIndexEndpointsBuilderList() { + return getIndexEndpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + getIndexEndpointsFieldBuilder() { + if (indexEndpointsBuilder_ == null) { + indexEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder>( + indexEndpoints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + indexEndpoints_ = null; + } + return indexEndpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 next page of results.
+     * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 next page of results.
+     * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 next page of results.
+     * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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 next page of results.
+     * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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.v1beta1.ListIndexEndpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexEndpointsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexEndpointsResponse(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.ListIndexEndpointsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponseOrBuilder.java new file mode 100644 index 000000000..d7e733acd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponseOrBuilder.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/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListIndexEndpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + java.util.List getIndexEndpointsList(); + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoints(int index); + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + int getIndexEndpointsCount(); + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + java.util.List + getIndexEndpointsOrBuilderList(); + /** + * + * + *
+   * List of IndexEndpoints in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoints = 1; + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java new file mode 100644 index 000000000..6075f5013 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java @@ -0,0 +1,1395 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexesRequest} + */ +public final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListIndexesRequest) + ListIndexesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesRequest.newBuilder() to construct. + private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIndexesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesRequest( + 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; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location from which to list the Indexes.
+   * 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 from which to list the Indexes.
+   * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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
+   * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+   * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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
+   * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+   * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!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_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListIndexesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListIndexesRequest) 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 (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest 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.ListIndexesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest 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.ListIndexesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest 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.ListIndexesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest 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.ListIndexesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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.ListIndexesRequest 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 [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListIndexesRequest) + com.google.cloud.aiplatform.v1beta1.ListIndexesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.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_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListIndexesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListIndexesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListIndexesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListIndexesRequest.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(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListIndexesRequest) 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 from which to list the Indexes.
+     * 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 from which to list the Indexes.
+     * 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 from which to list the Indexes.
+     * 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 from which to list the Indexes.
+     * 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 from which to list the Indexes.
+     * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * 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
+     * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+     * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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
+     * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+     * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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
+     * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+     * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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
+     * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+     * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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
+     * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+     * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] 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; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListIndexesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListIndexesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListIndexesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesRequest(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.ListIndexesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequestOrBuilder.java new file mode 100644 index 000000000..f4737cafb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListIndexesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListIndexesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to list the Indexes.
+   * 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 from which to list the Indexes.
+   * 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.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * 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
+   * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+   * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] call.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous
+   * [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] call.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java new file mode 100644 index 000000000..0ee871b47 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java @@ -0,0 +1,1136 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexesResponse} + */ +public final class ListIndexesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListIndexesResponse) + ListIndexesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesResponse.newBuilder() to construct. + private ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIndexesResponse() { + indexes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIndexesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesResponse( + 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)) { + indexes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + indexes_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Index.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)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.Builder.class); + } + + public static final int INDEXES_FIELD_NUMBER = 1; + private java.util.List indexes_; + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + @java.lang.Override + public java.util.List getIndexesList() { + return indexes_; + } + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + @java.lang.Override + public java.util.List + getIndexesOrBuilderList() { + return indexes_; + } + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + @java.lang.Override + public int getIndexesCount() { + return indexes_.size(); + } + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index getIndexes(int index) { + return indexes_.get(index); + } + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexesOrBuilder(int index) { + return indexes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 next page of results.
+   * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 < indexes_.size(); i++) { + output.writeMessage(1, indexes_.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 < indexes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.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.v1beta1.ListIndexesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListIndexesResponse) obj; + + if (!getIndexesList().equals(other.getIndexesList())) 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 (getIndexesCount() > 0) { + hash = (37 * hash) + INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getIndexesList().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.v1beta1.ListIndexesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse 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.ListIndexesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse 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.ListIndexesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse 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.ListIndexesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse 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.ListIndexesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse 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.ListIndexesResponse 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.ListIndexesResponse 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.ListIndexesResponse 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 [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListIndexesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListIndexesResponse) + com.google.cloud.aiplatform.v1beta1.ListIndexesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIndexesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + indexesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListIndexesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListIndexesResponse(this); + int from_bitField0_ = bitField0_; + if (indexesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + indexes_ = java.util.Collections.unmodifiableList(indexes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.indexes_ = indexes_; + } else { + result.indexes_ = indexesBuilder_.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.v1beta1.ListIndexesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListIndexesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexesResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListIndexesResponse.getDefaultInstance()) + return this; + if (indexesBuilder_ == null) { + if (!other.indexes_.isEmpty()) { + if (indexes_.isEmpty()) { + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIndexesIsMutable(); + indexes_.addAll(other.indexes_); + } + onChanged(); + } + } else { + if (!other.indexes_.isEmpty()) { + if (indexesBuilder_.isEmpty()) { + indexesBuilder_.dispose(); + indexesBuilder_ = null; + indexes_ = other.indexes_; + bitField0_ = (bitField0_ & ~0x00000001); + indexesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexesFieldBuilder() + : null; + } else { + indexesBuilder_.addAllMessages(other.indexes_); + } + } + } + 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.v1beta1.ListIndexesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListIndexesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List indexes_ = + java.util.Collections.emptyList(); + + private void ensureIndexesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + indexes_ = new java.util.ArrayList(indexes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + indexesBuilder_; + + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public java.util.List getIndexesList() { + if (indexesBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexes_); + } else { + return indexesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public int getIndexesCount() { + if (indexesBuilder_ == null) { + return indexes_.size(); + } else { + return indexesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Index getIndexes(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder setIndexes(int index, com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.set(index, value); + onChanged(); + } else { + indexesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder setIndexes( + int index, com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.set(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder addIndexes(com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(value); + onChanged(); + } else { + indexesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder addIndexes(int index, com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexesIsMutable(); + indexes_.add(index, value); + onChanged(); + } else { + indexesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder addIndexes(com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder addIndexes( + int index, com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.add(index, builderForValue.build()); + onChanged(); + } else { + indexesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder addAllIndexes( + java.lang.Iterable values) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); + onChanged(); + } else { + indexesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder clearIndexes() { + if (indexesBuilder_ == null) { + indexes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + indexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public Builder removeIndexes(int index) { + if (indexesBuilder_ == null) { + ensureIndexesIsMutable(); + indexes_.remove(index); + onChanged(); + } else { + indexesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Index.Builder getIndexesBuilder(int index) { + return getIndexesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexesOrBuilder(int index) { + if (indexesBuilder_ == null) { + return indexes_.get(index); + } else { + return indexesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public java.util.List + getIndexesOrBuilderList() { + if (indexesBuilder_ != null) { + return indexesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexes_); + } + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Index.Builder addIndexesBuilder() { + return getIndexesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()); + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Index.Builder addIndexesBuilder(int index) { + return getIndexesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()); + } + /** + * + * + *
+     * List of indexes in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + public java.util.List + getIndexesBuilderList() { + return getIndexesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + getIndexesFieldBuilder() { + if (indexesBuilder_ == null) { + indexesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder>( + indexes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + indexes_ = null; + } + return indexesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 next page of results.
+     * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 next page of results.
+     * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 next page of results.
+     * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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 next page of results.
+     * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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.v1beta1.ListIndexesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListIndexesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListIndexesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListIndexesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIndexesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIndexesResponse(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.ListIndexesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponseOrBuilder.java new file mode 100644 index 000000000..56b2ed7a7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponseOrBuilder.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListIndexesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListIndexesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + java.util.List getIndexesList(); + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + com.google.cloud.aiplatform.v1beta1.Index getIndexes(int index); + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + int getIndexesCount(); + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + java.util.List + getIndexesOrBuilderList(); + /** + * + * + *
+   * List of indexes in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Index indexes = 1; + */ + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java new file mode 100644 index 000000000..4f1c9070c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java @@ -0,0 +1,1162 @@ +/* + * 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.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} + */ +public final class ListMetadataSchemasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + ListMetadataSchemasRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetadataSchemasRequest.newBuilder() to construct. + private ListMetadataSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMetadataSchemasRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetadataSchemasRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMetadataSchemasRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + 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_ListMetadataSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The MetadataStore whose MetadataSchemas should be listed.
+   * 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 MetadataStore whose MetadataSchemas should be listed.
+   * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of MetadataSchemas to return. The service may return
+   * fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+   * next page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+   * next page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * A query to filter available MetadataSchemas for matching results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * A query to filter available MetadataSchemas for matching results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.ListMetadataSchemasRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest other = + (com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest 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.ListMetadataSchemasRequest 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.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + 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_ListMetadataSchemasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest build() { + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest result = + new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + 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.ListMetadataSchemasRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.ListMetadataSchemasRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The MetadataStore whose MetadataSchemas should be listed.
+     * 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 MetadataStore whose MetadataSchemas should be listed.
+     * 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 MetadataStore whose MetadataSchemas should be listed.
+     * 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 MetadataStore whose MetadataSchemas should be listed.
+     * 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 MetadataStore whose MetadataSchemas should be listed.
+     * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of MetadataSchemas to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of MetadataSchemas to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of MetadataSchemas to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+     * next page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+     * next page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+     * next page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+     * next page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+     * next page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A query to filter available MetadataSchemas for matching results.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A query to filter available MetadataSchemas for matching results.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A query to filter available MetadataSchemas for matching results.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A query to filter available MetadataSchemas for matching results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * A query to filter available MetadataSchemas for matching results.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @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.ListMetadataSchemasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetadataSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMetadataSchemasRequest(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.ListMetadataSchemasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequestOrBuilder.java new file mode 100644 index 000000000..06b7dc40f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * 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 ListMetadataSchemasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The MetadataStore whose MetadataSchemas should be listed.
+   * 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 MetadataStore whose MetadataSchemas should be listed.
+   * 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(); + + /** + * + * + *
+   * The maximum number of MetadataSchemas to return. The service may return
+   * fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+   * next page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the
+   * next page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A query to filter available MetadataSchemas for matching results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A query to filter available MetadataSchemas for matching results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java new file mode 100644 index 000000000..844ad3c48 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} + */ +public final class ListMetadataSchemasResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + ListMetadataSchemasResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetadataSchemasResponse.newBuilder() to construct. + private ListMetadataSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMetadataSchemasResponse() { + metadataSchemas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetadataSchemasResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMetadataSchemasResponse( + 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)) { + metadataSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + metadataSchemas_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.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)) { + metadataSchemas_ = java.util.Collections.unmodifiableList(metadataSchemas_); + } + 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_ListMetadataSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.Builder.class); + } + + public static final int METADATA_SCHEMAS_FIELD_NUMBER = 1; + private java.util.List metadataSchemas_; + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + @java.lang.Override + public java.util.List + getMetadataSchemasList() { + return metadataSchemas_; + } + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + @java.lang.Override + public java.util.List + getMetadataSchemasOrBuilderList() { + return metadataSchemas_; + } + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + @java.lang.Override + public int getMetadataSchemasCount() { + return metadataSchemas_.size(); + } + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchemas(int index) { + return metadataSchemas_.get(index); + } + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemasOrBuilder( + int index) { + return metadataSchemas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as
+   * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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 < metadataSchemas_.size(); i++) { + output.writeMessage(1, metadataSchemas_.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 < metadataSchemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadataSchemas_.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.v1beta1.ListMetadataSchemasResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse other = + (com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) obj; + + if (!getMetadataSchemasList().equals(other.getMetadataSchemasList())) 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 (getMetadataSchemasCount() > 0) { + hash = (37 * hash) + METADATA_SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataSchemasList().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.v1beta1.ListMetadataSchemasResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse 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.ListMetadataSchemasResponse 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.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataSchemasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataSchemasBuilder_ == null) { + metadataSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + metadataSchemasBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListMetadataSchemasResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse build() { + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse result = + new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(this); + int from_bitField0_ = bitField0_; + if (metadataSchemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metadataSchemas_ = java.util.Collections.unmodifiableList(metadataSchemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metadataSchemas_ = metadataSchemas_; + } else { + result.metadataSchemas_ = metadataSchemasBuilder_.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.v1beta1.ListMetadataSchemasResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.getDefaultInstance()) + return this; + if (metadataSchemasBuilder_ == null) { + if (!other.metadataSchemas_.isEmpty()) { + if (metadataSchemas_.isEmpty()) { + metadataSchemas_ = other.metadataSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetadataSchemasIsMutable(); + metadataSchemas_.addAll(other.metadataSchemas_); + } + onChanged(); + } + } else { + if (!other.metadataSchemas_.isEmpty()) { + if (metadataSchemasBuilder_.isEmpty()) { + metadataSchemasBuilder_.dispose(); + metadataSchemasBuilder_ = null; + metadataSchemas_ = other.metadataSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + metadataSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetadataSchemasFieldBuilder() + : null; + } else { + metadataSchemasBuilder_.addAllMessages(other.metadataSchemas_); + } + } + } + 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.v1beta1.ListMetadataSchemasResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List metadataSchemas_ = + java.util.Collections.emptyList(); + + private void ensureMetadataSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metadataSchemas_ = + new java.util.ArrayList( + metadataSchemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder> + metadataSchemasBuilder_; + + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public java.util.List + getMetadataSchemasList() { + if (metadataSchemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(metadataSchemas_); + } else { + return metadataSchemasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public int getMetadataSchemasCount() { + if (metadataSchemasBuilder_ == null) { + return metadataSchemas_.size(); + } else { + return metadataSchemasBuilder_.getCount(); + } + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchemas(int index) { + if (metadataSchemasBuilder_ == null) { + return metadataSchemas_.get(index); + } else { + return metadataSchemasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder setMetadataSchemas( + int index, com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { + if (metadataSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataSchemasIsMutable(); + metadataSchemas_.set(index, value); + onChanged(); + } else { + metadataSchemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder setMetadataSchemas( + int index, com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder builderForValue) { + if (metadataSchemasBuilder_ == null) { + ensureMetadataSchemasIsMutable(); + metadataSchemas_.set(index, builderForValue.build()); + onChanged(); + } else { + metadataSchemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder addMetadataSchemas(com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { + if (metadataSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataSchemasIsMutable(); + metadataSchemas_.add(value); + onChanged(); + } else { + metadataSchemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder addMetadataSchemas( + int index, com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { + if (metadataSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataSchemasIsMutable(); + metadataSchemas_.add(index, value); + onChanged(); + } else { + metadataSchemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder addMetadataSchemas( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder builderForValue) { + if (metadataSchemasBuilder_ == null) { + ensureMetadataSchemasIsMutable(); + metadataSchemas_.add(builderForValue.build()); + onChanged(); + } else { + metadataSchemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder addMetadataSchemas( + int index, com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder builderForValue) { + if (metadataSchemasBuilder_ == null) { + ensureMetadataSchemasIsMutable(); + metadataSchemas_.add(index, builderForValue.build()); + onChanged(); + } else { + metadataSchemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder addAllMetadataSchemas( + java.lang.Iterable values) { + if (metadataSchemasBuilder_ == null) { + ensureMetadataSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataSchemas_); + onChanged(); + } else { + metadataSchemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder clearMetadataSchemas() { + if (metadataSchemasBuilder_ == null) { + metadataSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metadataSchemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public Builder removeMetadataSchemas(int index) { + if (metadataSchemasBuilder_ == null) { + ensureMetadataSchemasIsMutable(); + metadataSchemas_.remove(index); + onChanged(); + } else { + metadataSchemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder getMetadataSchemasBuilder( + int index) { + return getMetadataSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemasOrBuilder( + int index) { + if (metadataSchemasBuilder_ == null) { + return metadataSchemas_.get(index); + } else { + return metadataSchemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public java.util.List + getMetadataSchemasOrBuilderList() { + if (metadataSchemasBuilder_ != null) { + return metadataSchemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metadataSchemas_); + } + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder addMetadataSchemasBuilder() { + return getMetadataSchemasFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance()); + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder addMetadataSchemasBuilder( + int index) { + return getMetadataSchemasFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance()); + } + /** + * + * + *
+     * The MetadataSchemas found for the MetadataStore.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + public java.util.List + getMetadataSchemasBuilderList() { + return getMetadataSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder> + getMetadataSchemasFieldBuilder() { + if (metadataSchemasBuilder_ == null) { + metadataSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataSchema, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder>( + metadataSchemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + metadataSchemas_ = null; + } + return metadataSchemasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as
+     * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as
+     * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListMetadataSchemasResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetadataSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMetadataSchemasResponse(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.ListMetadataSchemasResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponseOrBuilder.java new file mode 100644 index 000000000..2179143ac --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponseOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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 ListMetadataSchemasResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + java.util.List getMetadataSchemasList(); + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchemas(int index); + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + int getMetadataSchemasCount(); + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + java.util.List + getMetadataSchemasOrBuilderList(); + /** + * + * + *
+   * The MetadataSchemas found for the MetadataStore.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schemas = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemasOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java new file mode 100644 index 000000000..ade67b30e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java @@ -0,0 +1,981 @@ +/* + * 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.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} + */ +public final class ListMetadataStoresRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + ListMetadataStoresRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetadataStoresRequest.newBuilder() to construct. + private ListMetadataStoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMetadataStoresRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetadataStoresRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMetadataStoresRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The Location whose MetadataStores should be listed.
+   * 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 Location whose MetadataStores should be listed.
+   * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of Metadata Stores to return. The service may return
+   * fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+   * subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+   * subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.v1beta1.ListMetadataStoresRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest other = + (com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) obj; + + if (!getParent().equals(other.getParent())) 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) + 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.v1beta1.ListMetadataStoresRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest 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.ListMetadataStoresRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest 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.ListMetadataStoresRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest 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.ListMetadataStoresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest 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.ListMetadataStoresRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest 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.ListMetadataStoresRequest 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.ListMetadataStoresRequest 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.ListMetadataStoresRequest 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.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + 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_ListMetadataStoresRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest build() { + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest result = + new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(this); + result.parent_ = parent_; + 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.v1beta1.ListMetadataStoresRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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.v1beta1.ListMetadataStoresRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The Location whose MetadataStores should be listed.
+     * 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 Location whose MetadataStores should be listed.
+     * 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 Location whose MetadataStores should be listed.
+     * 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 Location whose MetadataStores should be listed.
+     * 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 Location whose MetadataStores should be listed.
+     * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of Metadata Stores to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Metadata Stores to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of Metadata Stores to return. The service may return
+     * fewer.
+     * Must be in range 1-1000, inclusive. Defaults to 100.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+     * subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+     * subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+     * subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+     * subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+     * subsequent page.
+     * When paginating, all other provided parameters must match the call that
+     * provided the page token. (Otherwise the request will fail with
+     * INVALID_ARGUMENT error.)
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @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.ListMetadataStoresRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetadataStoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMetadataStoresRequest(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.ListMetadataStoresRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequestOrBuilder.java new file mode 100644 index 000000000..9e41d2454 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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 ListMetadataStoresRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Location whose MetadataStores should be listed.
+   * 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 Location whose MetadataStores should be listed.
+   * 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 maximum number of Metadata Stores to return. The service may return
+   * fewer.
+   * Must be in range 1-1000, inclusive. Defaults to 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+   * subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the
+   * subsequent page.
+   * When paginating, all other provided parameters must match the call that
+   * provided the page token. (Otherwise the request will fail with
+   * INVALID_ARGUMENT error.)
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java new file mode 100644 index 000000000..7d8854874 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java @@ -0,0 +1,1165 @@ +/* + * 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.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} + */ +public final class ListMetadataStoresResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + ListMetadataStoresResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMetadataStoresResponse.newBuilder() to construct. + private ListMetadataStoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMetadataStoresResponse() { + metadataStores_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMetadataStoresResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMetadataStoresResponse( + 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)) { + metadataStores_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + metadataStores_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetadataStore.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)) { + metadataStores_ = java.util.Collections.unmodifiableList(metadataStores_); + } + 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_ListMetadataStoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.Builder.class); + } + + public static final int METADATA_STORES_FIELD_NUMBER = 1; + private java.util.List metadataStores_; + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + @java.lang.Override + public java.util.List getMetadataStoresList() { + return metadataStores_; + } + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + @java.lang.Override + public java.util.List + getMetadataStoresOrBuilderList() { + return metadataStores_; + } + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + @java.lang.Override + public int getMetadataStoresCount() { + return metadataStores_.size(); + } + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStores(int index) { + return metadataStores_.get(index); + } + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoresOrBuilder( + int index) { + return metadataStores_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as
+   * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * 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 < metadataStores_.size(); i++) { + output.writeMessage(1, metadataStores_.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 < metadataStores_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metadataStores_.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.v1beta1.ListMetadataStoresResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse other = + (com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) obj; + + if (!getMetadataStoresList().equals(other.getMetadataStoresList())) 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 (getMetadataStoresCount() > 0) { + hash = (37 * hash) + METADATA_STORES_FIELD_NUMBER; + hash = (53 * hash) + getMetadataStoresList().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.v1beta1.ListMetadataStoresResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse 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.ListMetadataStoresResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse 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.ListMetadataStoresResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse 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.ListMetadataStoresResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse 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.ListMetadataStoresResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse 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.ListMetadataStoresResponse 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.ListMetadataStoresResponse 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.ListMetadataStoresResponse 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.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.class, + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataStoresFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataStoresBuilder_ == null) { + metadataStores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + metadataStoresBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_ListMetadataStoresResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse build() { + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse result = + new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(this); + int from_bitField0_ = bitField0_; + if (metadataStoresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metadataStores_ = java.util.Collections.unmodifiableList(metadataStores_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metadataStores_ = metadataStores_; + } else { + result.metadataStores_ = metadataStoresBuilder_.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.v1beta1.ListMetadataStoresResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.getDefaultInstance()) + return this; + if (metadataStoresBuilder_ == null) { + if (!other.metadataStores_.isEmpty()) { + if (metadataStores_.isEmpty()) { + metadataStores_ = other.metadataStores_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetadataStoresIsMutable(); + metadataStores_.addAll(other.metadataStores_); + } + onChanged(); + } + } else { + if (!other.metadataStores_.isEmpty()) { + if (metadataStoresBuilder_.isEmpty()) { + metadataStoresBuilder_.dispose(); + metadataStoresBuilder_ = null; + metadataStores_ = other.metadataStores_; + bitField0_ = (bitField0_ & ~0x00000001); + metadataStoresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetadataStoresFieldBuilder() + : null; + } else { + metadataStoresBuilder_.addAllMessages(other.metadataStores_); + } + } + } + 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.v1beta1.ListMetadataStoresResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List metadataStores_ = + java.util.Collections.emptyList(); + + private void ensureMetadataStoresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metadataStores_ = + new java.util.ArrayList( + metadataStores_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder> + metadataStoresBuilder_; + + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public java.util.List + getMetadataStoresList() { + if (metadataStoresBuilder_ == null) { + return java.util.Collections.unmodifiableList(metadataStores_); + } else { + return metadataStoresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public int getMetadataStoresCount() { + if (metadataStoresBuilder_ == null) { + return metadataStores_.size(); + } else { + return metadataStoresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStores(int index) { + if (metadataStoresBuilder_ == null) { + return metadataStores_.get(index); + } else { + return metadataStoresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder setMetadataStores( + int index, com.google.cloud.aiplatform.v1beta1.MetadataStore value) { + if (metadataStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataStoresIsMutable(); + metadataStores_.set(index, value); + onChanged(); + } else { + metadataStoresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder setMetadataStores( + int index, com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder builderForValue) { + if (metadataStoresBuilder_ == null) { + ensureMetadataStoresIsMutable(); + metadataStores_.set(index, builderForValue.build()); + onChanged(); + } else { + metadataStoresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder addMetadataStores(com.google.cloud.aiplatform.v1beta1.MetadataStore value) { + if (metadataStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataStoresIsMutable(); + metadataStores_.add(value); + onChanged(); + } else { + metadataStoresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder addMetadataStores( + int index, com.google.cloud.aiplatform.v1beta1.MetadataStore value) { + if (metadataStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataStoresIsMutable(); + metadataStores_.add(index, value); + onChanged(); + } else { + metadataStoresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder addMetadataStores( + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder builderForValue) { + if (metadataStoresBuilder_ == null) { + ensureMetadataStoresIsMutable(); + metadataStores_.add(builderForValue.build()); + onChanged(); + } else { + metadataStoresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder addMetadataStores( + int index, com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder builderForValue) { + if (metadataStoresBuilder_ == null) { + ensureMetadataStoresIsMutable(); + metadataStores_.add(index, builderForValue.build()); + onChanged(); + } else { + metadataStoresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder addAllMetadataStores( + java.lang.Iterable values) { + if (metadataStoresBuilder_ == null) { + ensureMetadataStoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataStores_); + onChanged(); + } else { + metadataStoresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder clearMetadataStores() { + if (metadataStoresBuilder_ == null) { + metadataStores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metadataStoresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public Builder removeMetadataStores(int index) { + if (metadataStoresBuilder_ == null) { + ensureMetadataStoresIsMutable(); + metadataStores_.remove(index); + onChanged(); + } else { + metadataStoresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder getMetadataStoresBuilder( + int index) { + return getMetadataStoresFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoresOrBuilder( + int index) { + if (metadataStoresBuilder_ == null) { + return metadataStores_.get(index); + } else { + return metadataStoresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public java.util.List + getMetadataStoresOrBuilderList() { + if (metadataStoresBuilder_ != null) { + return metadataStoresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metadataStores_); + } + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder addMetadataStoresBuilder() { + return getMetadataStoresFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance()); + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder addMetadataStoresBuilder( + int index) { + return getMetadataStoresFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance()); + } + /** + * + * + *
+     * The MetadataStores found for the Location.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + public java.util.List + getMetadataStoresBuilderList() { + return getMetadataStoresFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder> + getMetadataStoresFieldBuilder() { + if (metadataStoresBuilder_ == null) { + metadataStoresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder>( + metadataStores_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + metadataStores_ = null; + } + return metadataStoresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as
+     * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as
+     * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+     * page. If this field is not populated, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListMetadataStoresResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMetadataStoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMetadataStoresResponse(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.ListMetadataStoresResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponseOrBuilder.java new file mode 100644 index 000000000..45562670c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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 ListMetadataStoresResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + java.util.List getMetadataStoresList(); + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStores(int index); + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + int getMetadataStoresCount(); + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + java.util.List + getMetadataStoresOrBuilderList(); + /** + * + * + *
+   * The MetadataStores found for the Location.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.MetadataStore metadata_stores = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoresOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as
+   * [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next
+   * page. If this field is not populated, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java new file mode 100644 index 000000000..39f7fb849 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java @@ -0,0 +1,1402 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} + */ +public final class ListModelDeploymentMonitoringJobsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + ListModelDeploymentMonitoringJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelDeploymentMonitoringJobsRequest.newBuilder() to construct. + private ListModelDeploymentMonitoringJobsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelDeploymentMonitoringJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelDeploymentMonitoringJobsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelDeploymentMonitoringJobsRequest( + 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; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent of the ModelDeploymentMonitoringJob.
+   * 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 parent of the ModelDeploymentMonitoringJob.
+   * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!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_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) 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 (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest + 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.ListModelDeploymentMonitoringJobsRequest 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
+   * [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.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_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + .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(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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 parent of the ModelDeploymentMonitoringJob.
+     * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * 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; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelDeploymentMonitoringJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelDeploymentMonitoringJobsRequest(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.ListModelDeploymentMonitoringJobsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java new file mode 100644 index 000000000..ba929bc01 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelDeploymentMonitoringJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the ModelDeploymentMonitoringJob.
+   * 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 parent of the ModelDeploymentMonitoringJob.
+   * 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.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java new file mode 100644 index 000000000..ca6a223e4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java @@ -0,0 +1,1269 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} + */ +public final class ListModelDeploymentMonitoringJobsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + ListModelDeploymentMonitoringJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelDeploymentMonitoringJobsResponse.newBuilder() to construct. + private ListModelDeploymentMonitoringJobsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelDeploymentMonitoringJobsResponse() { + modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelDeploymentMonitoringJobsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelDeploymentMonitoringJobsResponse( + 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)) { + modelDeploymentMonitoringJobs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>(); + mutable_bitField0_ |= 0x00000001; + } + modelDeploymentMonitoringJobs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.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)) { + modelDeploymentMonitoringJobs_ = + java.util.Collections.unmodifiableList(modelDeploymentMonitoringJobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.Builder + .class); + } + + public static final int MODEL_DEPLOYMENT_MONITORING_JOBS_FIELD_NUMBER = 1; + private java.util.List + modelDeploymentMonitoringJobs_; + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + @java.lang.Override + public java.util.List + getModelDeploymentMonitoringJobsList() { + return modelDeploymentMonitoringJobs_; + } + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobsOrBuilderList() { + return modelDeploymentMonitoringJobs_; + } + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + @java.lang.Override + public int getModelDeploymentMonitoringJobsCount() { + return modelDeploymentMonitoringJobs_.size(); + } + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJobs(int index) { + return modelDeploymentMonitoringJobs_.get(index); + } + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobsOrBuilder(int index) { + return modelDeploymentMonitoringJobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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 < modelDeploymentMonitoringJobs_.size(); i++) { + output.writeMessage(1, modelDeploymentMonitoringJobs_.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 < modelDeploymentMonitoringJobs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, modelDeploymentMonitoringJobs_.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.v1beta1.ListModelDeploymentMonitoringJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) obj; + + if (!getModelDeploymentMonitoringJobsList() + .equals(other.getModelDeploymentMonitoringJobsList())) 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 (getModelDeploymentMonitoringJobsCount() > 0) { + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringJobsList().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.v1beta1.ListModelDeploymentMonitoringJobsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse + 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.ListModelDeploymentMonitoringJobsResponse 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
+   * [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getModelDeploymentMonitoringJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (modelDeploymentMonitoringJobsBuilder_ == null) { + modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + modelDeploymentMonitoringJobsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelDeploymentMonitoringJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(this); + int from_bitField0_ = bitField0_; + if (modelDeploymentMonitoringJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringJobs_ = + java.util.Collections.unmodifiableList(modelDeploymentMonitoringJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.modelDeploymentMonitoringJobs_ = modelDeploymentMonitoringJobs_; + } else { + result.modelDeploymentMonitoringJobs_ = modelDeploymentMonitoringJobsBuilder_.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.v1beta1.ListModelDeploymentMonitoringJobsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + .getDefaultInstance()) return this; + if (modelDeploymentMonitoringJobsBuilder_ == null) { + if (!other.modelDeploymentMonitoringJobs_.isEmpty()) { + if (modelDeploymentMonitoringJobs_.isEmpty()) { + modelDeploymentMonitoringJobs_ = other.modelDeploymentMonitoringJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.addAll(other.modelDeploymentMonitoringJobs_); + } + onChanged(); + } + } else { + if (!other.modelDeploymentMonitoringJobs_.isEmpty()) { + if (modelDeploymentMonitoringJobsBuilder_.isEmpty()) { + modelDeploymentMonitoringJobsBuilder_.dispose(); + modelDeploymentMonitoringJobsBuilder_ = null; + modelDeploymentMonitoringJobs_ = other.modelDeploymentMonitoringJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + modelDeploymentMonitoringJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelDeploymentMonitoringJobsFieldBuilder() + : null; + } else { + modelDeploymentMonitoringJobsBuilder_.addAllMessages( + other.modelDeploymentMonitoringJobs_); + } + } + } + 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.v1beta1.ListModelDeploymentMonitoringJobsResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); + + private void ensureModelDeploymentMonitoringJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringJobs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob>( + modelDeploymentMonitoringJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + modelDeploymentMonitoringJobsBuilder_; + + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public java.util.List + getModelDeploymentMonitoringJobsList() { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(modelDeploymentMonitoringJobs_); + } else { + return modelDeploymentMonitoringJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public int getModelDeploymentMonitoringJobsCount() { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + return modelDeploymentMonitoringJobs_.size(); + } else { + return modelDeploymentMonitoringJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJobs(int index) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + return modelDeploymentMonitoringJobs_.get(index); + } else { + return modelDeploymentMonitoringJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder setModelDeploymentMonitoringJobs( + int index, com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.set(index, value); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder setModelDeploymentMonitoringJobs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder addModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.add(value); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder addModelDeploymentMonitoringJobs( + int index, com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.add(index, value); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder addModelDeploymentMonitoringJobs( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.add(builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder addModelDeploymentMonitoringJobs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder addAllModelDeploymentMonitoringJobs( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob> + values) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + ensureModelDeploymentMonitoringJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelDeploymentMonitoringJobs_); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder clearModelDeploymentMonitoringJobs() { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public Builder removeModelDeploymentMonitoringJobs(int index) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + ensureModelDeploymentMonitoringJobsIsMutable(); + modelDeploymentMonitoringJobs_.remove(index); + onChanged(); + } else { + modelDeploymentMonitoringJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder + getModelDeploymentMonitoringJobsBuilder(int index) { + return getModelDeploymentMonitoringJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobsOrBuilder(int index) { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + return modelDeploymentMonitoringJobs_.get(index); + } else { + return modelDeploymentMonitoringJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobsOrBuilderList() { + if (modelDeploymentMonitoringJobsBuilder_ != null) { + return modelDeploymentMonitoringJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modelDeploymentMonitoringJobs_); + } + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder + addModelDeploymentMonitoringJobsBuilder() { + return getModelDeploymentMonitoringJobsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder + addModelDeploymentMonitoringJobsBuilder(int index) { + return getModelDeploymentMonitoringJobsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+     * in the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + public java.util.List + getModelDeploymentMonitoringJobsBuilderList() { + return getModelDeploymentMonitoringJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobsFieldBuilder() { + if (modelDeploymentMonitoringJobsBuilder_ == null) { + modelDeploymentMonitoringJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder>( + modelDeploymentMonitoringJobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + modelDeploymentMonitoringJobs_ = null; + } + return modelDeploymentMonitoringJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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.v1beta1.ListModelDeploymentMonitoringJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelDeploymentMonitoringJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelDeploymentMonitoringJobsResponse(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.ListModelDeploymentMonitoringJobsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponseOrBuilder.java new file mode 100644 index 000000000..0319907e1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelDeploymentMonitoringJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + java.util.List + getModelDeploymentMonitoringJobsList(); + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob getModelDeploymentMonitoringJobs( + int index); + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + int getModelDeploymentMonitoringJobsCount(); + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobsOrBuilderList(); + /** + * + * + *
+   * A list of ModelDeploymentMonitoringJobs that matches the specified filter
+   * in the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobsOrBuilder(int index); + + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java new file mode 100644 index 000000000..1066aa0de --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java @@ -0,0 +1,654 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest} + */ +public final class ListOptimalTrialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) + ListOptimalTrialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOptimalTrialsRequest.newBuilder() to construct. + private ListOptimalTrialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOptimalTrialsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOptimalTrialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListOptimalTrialsRequest( + 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; + } + 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The name of the Study that the optimal Trial belongs to.
+   * 
+ * + * + * 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 name of the Study that the optimal Trial belongs to.
+   * 
+ * + * + * 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; + } + } + + 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_); + } + 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_); + } + 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.ListOptimalTrialsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) obj; + + if (!getParent().equals(other.getParent())) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest 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.ListOptimalTrialsRequest 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 [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.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_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest(this); + result.parent_ = parent_; + 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.ListOptimalTrialsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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.ListOptimalTrialsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the Study that the optimal Trial belongs to.
+     * 
+ * + * + * 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 name of the Study that the optimal Trial belongs to.
+     * 
+ * + * + * 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 name of the Study that the optimal Trial belongs to.
+     * 
+ * + * + * 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 name of the Study that the optimal Trial belongs to.
+     * 
+ * + * + * 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 name of the Study that the optimal Trial belongs to.
+     * 
+ * + * + * 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; + } + + @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.ListOptimalTrialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOptimalTrialsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOptimalTrialsRequest(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.ListOptimalTrialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequestOrBuilder.java new file mode 100644 index 000000000..4c236b1e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListOptimalTrialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Study that the optimal Trial belongs to.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the Study that the optimal Trial belongs to.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java new file mode 100644 index 000000000..ad5de1ce9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java @@ -0,0 +1,1029 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse} + */ +public final class ListOptimalTrialsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) + ListOptimalTrialsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOptimalTrialsResponse.newBuilder() to construct. + private ListOptimalTrialsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOptimalTrialsResponse() { + optimalTrials_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOptimalTrialsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListOptimalTrialsResponse( + 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)) { + optimalTrials_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + optimalTrials_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Trial.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)) { + optimalTrials_ = java.util.Collections.unmodifiableList(optimalTrials_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.Builder.class); + } + + public static final int OPTIMAL_TRIALS_FIELD_NUMBER = 1; + private java.util.List optimalTrials_; + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + @java.lang.Override + public java.util.List getOptimalTrialsList() { + return optimalTrials_; + } + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + @java.lang.Override + public java.util.List + getOptimalTrialsOrBuilderList() { + return optimalTrials_; + } + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + @java.lang.Override + public int getOptimalTrialsCount() { + return optimalTrials_.size(); + } + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trial getOptimalTrials(int index) { + return optimalTrials_.get(index); + } + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getOptimalTrialsOrBuilder(int index) { + return optimalTrials_.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 < optimalTrials_.size(); i++) { + output.writeMessage(1, optimalTrials_.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 < optimalTrials_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, optimalTrials_.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.ListOptimalTrialsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) obj; + + if (!getOptimalTrialsList().equals(other.getOptimalTrialsList())) 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 (getOptimalTrialsCount() > 0) { + hash = (37 * hash) + OPTIMAL_TRIALS_FIELD_NUMBER; + hash = (53 * hash) + getOptimalTrialsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse 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.ListOptimalTrialsResponse 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 [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOptimalTrialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (optimalTrialsBuilder_ == null) { + optimalTrials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + optimalTrialsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse(this); + int from_bitField0_ = bitField0_; + if (optimalTrialsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + optimalTrials_ = java.util.Collections.unmodifiableList(optimalTrials_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.optimalTrials_ = optimalTrials_; + } else { + result.optimalTrials_ = optimalTrialsBuilder_.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.ListOptimalTrialsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse.getDefaultInstance()) + return this; + if (optimalTrialsBuilder_ == null) { + if (!other.optimalTrials_.isEmpty()) { + if (optimalTrials_.isEmpty()) { + optimalTrials_ = other.optimalTrials_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOptimalTrialsIsMutable(); + optimalTrials_.addAll(other.optimalTrials_); + } + onChanged(); + } + } else { + if (!other.optimalTrials_.isEmpty()) { + if (optimalTrialsBuilder_.isEmpty()) { + optimalTrialsBuilder_.dispose(); + optimalTrialsBuilder_ = null; + optimalTrials_ = other.optimalTrials_; + bitField0_ = (bitField0_ & ~0x00000001); + optimalTrialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOptimalTrialsFieldBuilder() + : null; + } else { + optimalTrialsBuilder_.addAllMessages(other.optimalTrials_); + } + } + } + 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.ListOptimalTrialsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List optimalTrials_ = + java.util.Collections.emptyList(); + + private void ensureOptimalTrialsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + optimalTrials_ = + new java.util.ArrayList(optimalTrials_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + optimalTrialsBuilder_; + + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public java.util.List getOptimalTrialsList() { + if (optimalTrialsBuilder_ == null) { + return java.util.Collections.unmodifiableList(optimalTrials_); + } else { + return optimalTrialsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public int getOptimalTrialsCount() { + if (optimalTrialsBuilder_ == null) { + return optimalTrials_.size(); + } else { + return optimalTrialsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial getOptimalTrials(int index) { + if (optimalTrialsBuilder_ == null) { + return optimalTrials_.get(index); + } else { + return optimalTrialsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder setOptimalTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (optimalTrialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptimalTrialsIsMutable(); + optimalTrials_.set(index, value); + onChanged(); + } else { + optimalTrialsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder setOptimalTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (optimalTrialsBuilder_ == null) { + ensureOptimalTrialsIsMutable(); + optimalTrials_.set(index, builderForValue.build()); + onChanged(); + } else { + optimalTrialsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder addOptimalTrials(com.google.cloud.aiplatform.v1beta1.Trial value) { + if (optimalTrialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptimalTrialsIsMutable(); + optimalTrials_.add(value); + onChanged(); + } else { + optimalTrialsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder addOptimalTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (optimalTrialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptimalTrialsIsMutable(); + optimalTrials_.add(index, value); + onChanged(); + } else { + optimalTrialsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder addOptimalTrials( + com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (optimalTrialsBuilder_ == null) { + ensureOptimalTrialsIsMutable(); + optimalTrials_.add(builderForValue.build()); + onChanged(); + } else { + optimalTrialsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder addOptimalTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (optimalTrialsBuilder_ == null) { + ensureOptimalTrialsIsMutable(); + optimalTrials_.add(index, builderForValue.build()); + onChanged(); + } else { + optimalTrialsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder addAllOptimalTrials( + java.lang.Iterable values) { + if (optimalTrialsBuilder_ == null) { + ensureOptimalTrialsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, optimalTrials_); + onChanged(); + } else { + optimalTrialsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder clearOptimalTrials() { + if (optimalTrialsBuilder_ == null) { + optimalTrials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + optimalTrialsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public Builder removeOptimalTrials(int index) { + if (optimalTrialsBuilder_ == null) { + ensureOptimalTrialsIsMutable(); + optimalTrials_.remove(index); + onChanged(); + } else { + optimalTrialsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder getOptimalTrialsBuilder(int index) { + return getOptimalTrialsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getOptimalTrialsOrBuilder(int index) { + if (optimalTrialsBuilder_ == null) { + return optimalTrials_.get(index); + } else { + return optimalTrialsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public java.util.List + getOptimalTrialsOrBuilderList() { + if (optimalTrialsBuilder_ != null) { + return optimalTrialsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(optimalTrials_); + } + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addOptimalTrialsBuilder() { + return getOptimalTrialsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addOptimalTrialsBuilder(int index) { + return getOptimalTrialsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * The pareto-optimal Trials for multiple objective Study or the
+     * optimal trial for single objective Study. The definition of
+     * pareto-optimal can be checked in wiki page.
+     * https://en.wikipedia.org/wiki/Pareto_efficiency
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + public java.util.List + getOptimalTrialsBuilderList() { + return getOptimalTrialsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + getOptimalTrialsFieldBuilder() { + if (optimalTrialsBuilder_ == null) { + optimalTrialsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>( + optimalTrials_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + optimalTrials_ = null; + } + return optimalTrialsBuilder_; + } + + @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.ListOptimalTrialsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOptimalTrialsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOptimalTrialsResponse(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.ListOptimalTrialsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponseOrBuilder.java new file mode 100644 index 000000000..adf7a004a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponseOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListOptimalTrialsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + java.util.List getOptimalTrialsList(); + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.Trial getOptimalTrials(int index); + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + int getOptimalTrialsCount(); + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + java.util.List + getOptimalTrialsOrBuilderList(); + /** + * + * + *
+   * The pareto-optimal Trials for multiple objective Study or the
+   * optimal trial for single objective Study. The definition of
+   * pareto-optimal can be checked in wiki page.
+   * https://en.wikipedia.org/wiki/Pareto_efficiency
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial optimal_trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getOptimalTrialsOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java new file mode 100644 index 000000000..53584bab0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} + */ +public final class ListPipelineJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.ListPipelineJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java new file mode 100644 index 000000000..65da5be6a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListPipelineJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] call.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java new file mode 100644 index 000000000..553b3d552 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} + */ +public final class ListPipelineJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public int getPipelineJobsCount() { + return pipelineJobs_.size(); + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJobs(int index) { + return pipelineJobs_.get(index); + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListPipelineJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineService.ListPipelineJobs]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder> + pipelineJobsBuilder_; + + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder setPipelineJobs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder setPipelineJobs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs(com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder getPipelineJobsBuilder( + int index) { + return getPipelineJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder addPipelineJobsBuilder() { + return getPipelineJobsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder addPipelineJobsBuilder( + int index) { + return getPipelineJobsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List + getPipelineJobsBuilderList() { + return getPipelineJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder> + getPipelineJobsFieldBuilder() { + if (pipelineJobsBuilder_ == null) { + pipelineJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListPipelineJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ListPipelineJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponseOrBuilder.java new file mode 100644 index 000000000..dc5fdb895 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/pipeline_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListPipelineJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + java.util.List getPipelineJobsList(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJobs(int index); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + int getPipelineJobsCount(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + java.util.List + getPipelineJobsOrBuilderList(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PipelineJob pipeline_jobs = 1; + */ + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1beta1.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.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java new file mode 100644 index 000000000..273a81844 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java @@ -0,0 +1,938 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListStudiesRequest} + */ +public final class ListStudiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListStudiesRequest) + ListStudiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListStudiesRequest.newBuilder() to construct. + private ListStudiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListStudiesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListStudiesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListStudiesRequest( + 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(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.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 Study 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 Study 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 PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional. The maximum number of studies to return per "page" of results.
+   * If unspecified, service will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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 (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + 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 (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + 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.ListStudiesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListStudiesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) 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) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest 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.ListStudiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest 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.ListStudiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest 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.ListStudiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest 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.ListStudiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest 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.ListStudiesRequest 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.ListStudiesRequest 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.ListStudiesRequest 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 [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListStudiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListStudiesRequest) + com.google.cloud.aiplatform.v1beta1.ListStudiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.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_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListStudiesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + 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.ListStudiesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListStudiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListStudiesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListStudiesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + 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.ListStudiesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListStudiesRequest) 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 Study 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 Study 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 Study 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 Study 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 Study 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 pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of studies to return per "page" of results.
+     * If unspecified, service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of studies to return per "page" of results.
+     * If unspecified, service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of studies to return per "page" of results.
+     * If unspecified, service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 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.ListStudiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListStudiesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListStudiesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListStudiesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStudiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListStudiesRequest(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.ListStudiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequestOrBuilder.java new file mode 100644 index 000000000..38008dee0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListStudiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListStudiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list the Study 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 Study 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(); + + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The maximum number of studies to return per "page" of results.
+   * If unspecified, service will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java new file mode 100644 index 000000000..5b88fc52b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java @@ -0,0 +1,1143 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListStudiesResponse} + */ +public final class ListStudiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListStudiesResponse) + ListStudiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListStudiesResponse.newBuilder() to construct. + private ListStudiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListStudiesResponse() { + studies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListStudiesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListStudiesResponse( + 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)) { + studies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + studies_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Study.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)) { + studies_ = java.util.Collections.unmodifiableList(studies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.Builder.class); + } + + public static final int STUDIES_FIELD_NUMBER = 1; + private java.util.List studies_; + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + @java.lang.Override + public java.util.List getStudiesList() { + return studies_; + } + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + @java.lang.Override + public java.util.List + getStudiesOrBuilderList() { + return studies_; + } + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + @java.lang.Override + public int getStudiesCount() { + return studies_.size(); + } + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study getStudies(int index) { + return studies_.get(index); + } + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudiesOrBuilder(int index) { + return studies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Passes this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Passes this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < studies_.size(); i++) { + output.writeMessage(1, studies_.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 < studies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, studies_.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.v1beta1.ListStudiesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListStudiesResponse) obj; + + if (!getStudiesList().equals(other.getStudiesList())) 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 (getStudiesCount() > 0) { + hash = (37 * hash) + STUDIES_FIELD_NUMBER; + hash = (53 * hash) + getStudiesList().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.v1beta1.ListStudiesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse 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.ListStudiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse 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.ListStudiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse 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.ListStudiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse 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.ListStudiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse 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.ListStudiesResponse 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.ListStudiesResponse 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.ListStudiesResponse 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 [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListStudiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListStudiesResponse) + com.google.cloud.aiplatform.v1beta1.ListStudiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStudiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (studiesBuilder_ == null) { + studies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + studiesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListStudiesResponse(this); + int from_bitField0_ = bitField0_; + if (studiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + studies_ = java.util.Collections.unmodifiableList(studies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.studies_ = studies_; + } else { + result.studies_ = studiesBuilder_.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.v1beta1.ListStudiesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListStudiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListStudiesResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListStudiesResponse.getDefaultInstance()) + return this; + if (studiesBuilder_ == null) { + if (!other.studies_.isEmpty()) { + if (studies_.isEmpty()) { + studies_ = other.studies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStudiesIsMutable(); + studies_.addAll(other.studies_); + } + onChanged(); + } + } else { + if (!other.studies_.isEmpty()) { + if (studiesBuilder_.isEmpty()) { + studiesBuilder_.dispose(); + studiesBuilder_ = null; + studies_ = other.studies_; + bitField0_ = (bitField0_ & ~0x00000001); + studiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStudiesFieldBuilder() + : null; + } else { + studiesBuilder_.addAllMessages(other.studies_); + } + } + } + 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.v1beta1.ListStudiesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListStudiesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List studies_ = + java.util.Collections.emptyList(); + + private void ensureStudiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + studies_ = new java.util.ArrayList(studies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder> + studiesBuilder_; + + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public java.util.List getStudiesList() { + if (studiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(studies_); + } else { + return studiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public int getStudiesCount() { + if (studiesBuilder_ == null) { + return studies_.size(); + } else { + return studiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Study getStudies(int index) { + if (studiesBuilder_ == null) { + return studies_.get(index); + } else { + return studiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder setStudies(int index, com.google.cloud.aiplatform.v1beta1.Study value) { + if (studiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStudiesIsMutable(); + studies_.set(index, value); + onChanged(); + } else { + studiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder setStudies( + int index, com.google.cloud.aiplatform.v1beta1.Study.Builder builderForValue) { + if (studiesBuilder_ == null) { + ensureStudiesIsMutable(); + studies_.set(index, builderForValue.build()); + onChanged(); + } else { + studiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder addStudies(com.google.cloud.aiplatform.v1beta1.Study value) { + if (studiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStudiesIsMutable(); + studies_.add(value); + onChanged(); + } else { + studiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder addStudies(int index, com.google.cloud.aiplatform.v1beta1.Study value) { + if (studiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStudiesIsMutable(); + studies_.add(index, value); + onChanged(); + } else { + studiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder addStudies(com.google.cloud.aiplatform.v1beta1.Study.Builder builderForValue) { + if (studiesBuilder_ == null) { + ensureStudiesIsMutable(); + studies_.add(builderForValue.build()); + onChanged(); + } else { + studiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder addStudies( + int index, com.google.cloud.aiplatform.v1beta1.Study.Builder builderForValue) { + if (studiesBuilder_ == null) { + ensureStudiesIsMutable(); + studies_.add(index, builderForValue.build()); + onChanged(); + } else { + studiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder addAllStudies( + java.lang.Iterable values) { + if (studiesBuilder_ == null) { + ensureStudiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, studies_); + onChanged(); + } else { + studiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder clearStudies() { + if (studiesBuilder_ == null) { + studies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + studiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public Builder removeStudies(int index) { + if (studiesBuilder_ == null) { + ensureStudiesIsMutable(); + studies_.remove(index); + onChanged(); + } else { + studiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Study.Builder getStudiesBuilder(int index) { + return getStudiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudiesOrBuilder(int index) { + if (studiesBuilder_ == null) { + return studies_.get(index); + } else { + return studiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public java.util.List + getStudiesOrBuilderList() { + if (studiesBuilder_ != null) { + return studiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(studies_); + } + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Study.Builder addStudiesBuilder() { + return getStudiesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()); + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Study.Builder addStudiesBuilder(int index) { + return getStudiesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()); + } + /** + * + * + *
+     * The studies associated with the project.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + public java.util.List + getStudiesBuilderList() { + return getStudiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder> + getStudiesFieldBuilder() { + if (studiesBuilder_ == null) { + studiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Study, + com.google.cloud.aiplatform.v1beta1.Study.Builder, + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder>( + studies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + studies_ = null; + } + return studiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Passes this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Passes this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Passes this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Passes this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Passes this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListStudiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListStudiesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListStudiesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListStudiesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListStudiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStudiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListStudiesResponse(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.ListStudiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponseOrBuilder.java new file mode 100644 index 000000000..c32cd9be9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListStudiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListStudiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + java.util.List getStudiesList(); + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + com.google.cloud.aiplatform.v1beta1.Study getStudies(int index); + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + int getStudiesCount(); + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + java.util.List + getStudiesOrBuilderList(); + /** + * + * + *
+   * The studies associated with the project.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Study studies = 1; + */ + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudiesOrBuilder(int index); + + /** + * + * + *
+   * Passes this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Passes this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java new file mode 100644 index 000000000..988a93cd0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java @@ -0,0 +1,1619 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest} + */ +public final class ListTensorboardExperimentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + ListTensorboardExperimentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardExperimentsRequest.newBuilder() to construct. + private ListTensorboardExperimentsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardExperimentsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardExperimentsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardExperimentsRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Tensorboard to list TensorboardExperiments.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+   * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * Lists the TensorboardExperiments that match the filter expression.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the TensorboardExperiments that match the filter expression.
+   * 
+ * + * 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 maximum number of TensorboardExperiments to return. The service may
+   * return fewer than this value. If unspecified, at most 50
+   * TensorboardExperiments will be returned. The maximum value is 1000; values
+   * above 1000 will be coerced to 1000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + 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.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest 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.ListTensorboardExperimentsRequest 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 [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + .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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Tensorboard to list TensorboardExperiments.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+     * 
+ * + * + * 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_ = ""; + /** + * + * + *
+     * Lists the TensorboardExperiments that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardExperiments that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardExperiments that match the filter expression.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the TensorboardExperiments that match the filter expression.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the TensorboardExperiments that match the filter expression.
+     * 
+ * + * 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 maximum number of TensorboardExperiments to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardExperiments will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of TensorboardExperiments to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardExperiments will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * 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 maximum number of TensorboardExperiments to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardExperiments will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardExperimentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardExperimentsRequest(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.ListTensorboardExperimentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequestOrBuilder.java new file mode 100644 index 000000000..7d28ffea4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardExperimentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Tensorboard to list TensorboardExperiments.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+   * 
+ * + * + * 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 Tensorboard to list TensorboardExperiments.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Lists the TensorboardExperiments that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the TensorboardExperiments that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of TensorboardExperiments to return. The service may
+   * return fewer than this value. If unspecified, at most 50
+   * TensorboardExperiments will be returned. The maximum value is 1000; values
+   * above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java new file mode 100644 index 000000000..903d56af1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java @@ -0,0 +1,1235 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse} + */ +public final class ListTensorboardExperimentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) + ListTensorboardExperimentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardExperimentsResponse.newBuilder() to construct. + private ListTensorboardExperimentsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardExperimentsResponse() { + tensorboardExperiments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardExperimentsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardExperimentsResponse( + 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)) { + tensorboardExperiments_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment>(); + mutable_bitField0_ |= 0x00000001; + } + tensorboardExperiments_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.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)) { + tensorboardExperiments_ = java.util.Collections.unmodifiableList(tensorboardExperiments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.Builder.class); + } + + public static final int TENSORBOARD_EXPERIMENTS_FIELD_NUMBER = 1; + private java.util.List + tensorboardExperiments_; + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + @java.lang.Override + public java.util.List + getTensorboardExperimentsList() { + return tensorboardExperiments_; + } + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + getTensorboardExperimentsOrBuilderList() { + return tensorboardExperiments_; + } + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + @java.lang.Override + public int getTensorboardExperimentsCount() { + return tensorboardExperiments_.size(); + } + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiments( + int index) { + return tensorboardExperiments_.get(index); + } + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentsOrBuilder(int index) { + return tensorboardExperiments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as
+   * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < tensorboardExperiments_.size(); i++) { + output.writeMessage(1, tensorboardExperiments_.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 < tensorboardExperiments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, tensorboardExperiments_.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.v1beta1.ListTensorboardExperimentsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) obj; + + if (!getTensorboardExperimentsList().equals(other.getTensorboardExperimentsList())) + 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 (getTensorboardExperimentsCount() > 0) { + hash = (37 * hash) + TENSORBOARD_EXPERIMENTS_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardExperimentsList().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.v1beta1.ListTensorboardExperimentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + 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.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse 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.ListTensorboardExperimentsResponse 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 [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTensorboardExperimentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorboardExperimentsBuilder_ == null) { + tensorboardExperiments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tensorboardExperimentsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse(this); + int from_bitField0_ = bitField0_; + if (tensorboardExperimentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensorboardExperiments_ = java.util.Collections.unmodifiableList(tensorboardExperiments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorboardExperiments_ = tensorboardExperiments_; + } else { + result.tensorboardExperiments_ = tensorboardExperimentsBuilder_.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.v1beta1.ListTensorboardExperimentsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + .getDefaultInstance()) return this; + if (tensorboardExperimentsBuilder_ == null) { + if (!other.tensorboardExperiments_.isEmpty()) { + if (tensorboardExperiments_.isEmpty()) { + tensorboardExperiments_ = other.tensorboardExperiments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.addAll(other.tensorboardExperiments_); + } + onChanged(); + } + } else { + if (!other.tensorboardExperiments_.isEmpty()) { + if (tensorboardExperimentsBuilder_.isEmpty()) { + tensorboardExperimentsBuilder_.dispose(); + tensorboardExperimentsBuilder_ = null; + tensorboardExperiments_ = other.tensorboardExperiments_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorboardExperimentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTensorboardExperimentsFieldBuilder() + : null; + } else { + tensorboardExperimentsBuilder_.addAllMessages(other.tensorboardExperiments_); + } + } + } + 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.v1beta1.ListTensorboardExperimentsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + tensorboardExperiments_ = java.util.Collections.emptyList(); + + private void ensureTensorboardExperimentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorboardExperiments_ = + new java.util.ArrayList( + tensorboardExperiments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + tensorboardExperimentsBuilder_; + + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public java.util.List + getTensorboardExperimentsList() { + if (tensorboardExperimentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensorboardExperiments_); + } else { + return tensorboardExperimentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public int getTensorboardExperimentsCount() { + if (tensorboardExperimentsBuilder_ == null) { + return tensorboardExperiments_.size(); + } else { + return tensorboardExperimentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiments( + int index) { + if (tensorboardExperimentsBuilder_ == null) { + return tensorboardExperiments_.get(index); + } else { + return tensorboardExperimentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder setTensorboardExperiments( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.set(index, value); + onChanged(); + } else { + tensorboardExperimentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder setTensorboardExperiments( + int index, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { + if (tensorboardExperimentsBuilder_ == null) { + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorboardExperimentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder addTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.add(value); + onChanged(); + } else { + tensorboardExperimentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder addTensorboardExperiments( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.add(index, value); + onChanged(); + } else { + tensorboardExperimentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder addTensorboardExperiments( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { + if (tensorboardExperimentsBuilder_ == null) { + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.add(builderForValue.build()); + onChanged(); + } else { + tensorboardExperimentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder addTensorboardExperiments( + int index, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { + if (tensorboardExperimentsBuilder_ == null) { + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorboardExperimentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder addAllTensorboardExperiments( + java.lang.Iterable + values) { + if (tensorboardExperimentsBuilder_ == null) { + ensureTensorboardExperimentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tensorboardExperiments_); + onChanged(); + } else { + tensorboardExperimentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder clearTensorboardExperiments() { + if (tensorboardExperimentsBuilder_ == null) { + tensorboardExperiments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorboardExperimentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public Builder removeTensorboardExperiments(int index) { + if (tensorboardExperimentsBuilder_ == null) { + ensureTensorboardExperimentsIsMutable(); + tensorboardExperiments_.remove(index); + onChanged(); + } else { + tensorboardExperimentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder + getTensorboardExperimentsBuilder(int index) { + return getTensorboardExperimentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentsOrBuilder(int index) { + if (tensorboardExperimentsBuilder_ == null) { + return tensorboardExperiments_.get(index); + } else { + return tensorboardExperimentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + getTensorboardExperimentsOrBuilderList() { + if (tensorboardExperimentsBuilder_ != null) { + return tensorboardExperimentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensorboardExperiments_); + } + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder + addTensorboardExperimentsBuilder() { + return getTensorboardExperimentsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder + addTensorboardExperimentsBuilder(int index) { + return getTensorboardExperimentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardExperiments mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + public java.util.List + getTensorboardExperimentsBuilderList() { + return getTensorboardExperimentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + getTensorboardExperimentsFieldBuilder() { + if (tensorboardExperimentsBuilder_ == null) { + tensorboardExperimentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder>( + tensorboardExperiments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensorboardExperiments_ = null; + } + return tensorboardExperimentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as
+     * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as
+     * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListTensorboardExperimentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardExperimentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardExperimentsResponse(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.ListTensorboardExperimentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponseOrBuilder.java new file mode 100644 index 000000000..c10a4375f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponseOrBuilder.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardExperimentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + java.util.List + getTensorboardExperimentsList(); + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiments(int index); + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + int getTensorboardExperimentsCount(); + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + java.util.List + getTensorboardExperimentsOrBuilderList(); + /** + * + * + *
+   * The TensorboardExperiments mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiments = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java new file mode 100644 index 000000000..5f2f28ad8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java @@ -0,0 +1,1613 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest} + */ +public final class ListTensorboardRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + ListTensorboardRunsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardRunsRequest.newBuilder() to construct. + private ListTensorboardRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardRunsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardRunsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardRunsRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Tensorboard to list TensorboardRuns.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+   * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * Lists the TensorboardRuns that match the filter expression.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the TensorboardRuns that match the filter expression.
+   * 
+ * + * 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 maximum number of TensorboardRuns to return. The service may return
+   * fewer than this value. If unspecified, at most 50 TensorboardRuns will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest 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.ListTensorboardRunsRequest 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 [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Tensorboard to list TensorboardRuns.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+     * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+     * 
+ * + * + * 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_ = ""; + /** + * + * + *
+     * Lists the TensorboardRuns that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardRuns that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardRuns that match the filter expression.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the TensorboardRuns that match the filter expression.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the TensorboardRuns that match the filter expression.
+     * 
+ * + * 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 maximum number of TensorboardRuns to return. The service may return
+     * fewer than this value. If unspecified, at most 50 TensorboardRuns will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of TensorboardRuns to return. The service may return
+     * fewer than this value. If unspecified, at most 50 TensorboardRuns will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * 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 maximum number of TensorboardRuns to return. The service may return
+     * fewer than this value. If unspecified, at most 50 TensorboardRuns will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardRunsRequest(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.ListTensorboardRunsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequestOrBuilder.java new file mode 100644 index 000000000..1b4fb7f47 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardRunsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Tensorboard to list TensorboardRuns.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+   * 
+ * + * + * 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 Tensorboard to list TensorboardRuns.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Lists the TensorboardRuns that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the TensorboardRuns that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of TensorboardRuns to return. The service may return
+   * fewer than this value. If unspecified, at most 50 TensorboardRuns will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java new file mode 100644 index 000000000..ebff766a6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse} + */ +public final class ListTensorboardRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) + ListTensorboardRunsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardRunsResponse.newBuilder() to construct. + private ListTensorboardRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardRunsResponse() { + tensorboardRuns_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardRunsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardRunsResponse( + 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)) { + tensorboardRuns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tensorboardRuns_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.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)) { + tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.Builder.class); + } + + public static final int TENSORBOARD_RUNS_FIELD_NUMBER = 1; + private java.util.List tensorboardRuns_; + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + @java.lang.Override + public java.util.List + getTensorboardRunsList() { + return tensorboardRuns_; + } + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + @java.lang.Override + public java.util.List + getTensorboardRunsOrBuilderList() { + return tensorboardRuns_; + } + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + @java.lang.Override + public int getTensorboardRunsCount() { + return tensorboardRuns_.size(); + } + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRuns(int index) { + return tensorboardRuns_.get(index); + } + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunsOrBuilder( + int index) { + return tensorboardRuns_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < tensorboardRuns_.size(); i++) { + output.writeMessage(1, tensorboardRuns_.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 < tensorboardRuns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tensorboardRuns_.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.v1beta1.ListTensorboardRunsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) obj; + + if (!getTensorboardRunsList().equals(other.getTensorboardRunsList())) 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 (getTensorboardRunsCount() > 0) { + hash = (37 * hash) + TENSORBOARD_RUNS_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardRunsList().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.v1beta1.ListTensorboardRunsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse 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.ListTensorboardRunsResponse 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 [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTensorboardRunsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorboardRunsBuilder_ == null) { + tensorboardRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tensorboardRunsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse(this); + int from_bitField0_ = bitField0_; + if (tensorboardRunsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorboardRuns_ = tensorboardRuns_; + } else { + result.tensorboardRuns_ = tensorboardRunsBuilder_.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.v1beta1.ListTensorboardRunsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.getDefaultInstance()) + return this; + if (tensorboardRunsBuilder_ == null) { + if (!other.tensorboardRuns_.isEmpty()) { + if (tensorboardRuns_.isEmpty()) { + tensorboardRuns_ = other.tensorboardRuns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.addAll(other.tensorboardRuns_); + } + onChanged(); + } + } else { + if (!other.tensorboardRuns_.isEmpty()) { + if (tensorboardRunsBuilder_.isEmpty()) { + tensorboardRunsBuilder_.dispose(); + tensorboardRunsBuilder_ = null; + tensorboardRuns_ = other.tensorboardRuns_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorboardRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTensorboardRunsFieldBuilder() + : null; + } else { + tensorboardRunsBuilder_.addAllMessages(other.tensorboardRuns_); + } + } + } + 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.v1beta1.ListTensorboardRunsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tensorboardRuns_ = + java.util.Collections.emptyList(); + + private void ensureTensorboardRunsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorboardRuns_ = + new java.util.ArrayList( + tensorboardRuns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + tensorboardRunsBuilder_; + + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public java.util.List + getTensorboardRunsList() { + if (tensorboardRunsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensorboardRuns_); + } else { + return tensorboardRunsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public int getTensorboardRunsCount() { + if (tensorboardRunsBuilder_ == null) { + return tensorboardRuns_.size(); + } else { + return tensorboardRunsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRuns(int index) { + if (tensorboardRunsBuilder_ == null) { + return tensorboardRuns_.get(index); + } else { + return tensorboardRunsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder setTensorboardRuns( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.set(index, value); + onChanged(); + } else { + tensorboardRunsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder setTensorboardRuns( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { + if (tensorboardRunsBuilder_ == null) { + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorboardRunsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder addTensorboardRuns(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.add(value); + onChanged(); + } else { + tensorboardRunsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder addTensorboardRuns( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.add(index, value); + onChanged(); + } else { + tensorboardRunsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder addTensorboardRuns( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { + if (tensorboardRunsBuilder_ == null) { + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.add(builderForValue.build()); + onChanged(); + } else { + tensorboardRunsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder addTensorboardRuns( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { + if (tensorboardRunsBuilder_ == null) { + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorboardRunsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder addAllTensorboardRuns( + java.lang.Iterable values) { + if (tensorboardRunsBuilder_ == null) { + ensureTensorboardRunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tensorboardRuns_); + onChanged(); + } else { + tensorboardRunsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder clearTensorboardRuns() { + if (tensorboardRunsBuilder_ == null) { + tensorboardRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorboardRunsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public Builder removeTensorboardRuns(int index) { + if (tensorboardRunsBuilder_ == null) { + ensureTensorboardRunsIsMutable(); + tensorboardRuns_.remove(index); + onChanged(); + } else { + tensorboardRunsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboardRunsBuilder( + int index) { + return getTensorboardRunsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunsOrBuilder( + int index) { + if (tensorboardRunsBuilder_ == null) { + return tensorboardRuns_.get(index); + } else { + return tensorboardRunsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public java.util.List + getTensorboardRunsOrBuilderList() { + if (tensorboardRunsBuilder_ != null) { + return tensorboardRunsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensorboardRuns_); + } + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder addTensorboardRunsBuilder() { + return getTensorboardRunsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder addTensorboardRunsBuilder( + int index) { + return getTensorboardRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardRuns mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + public java.util.List + getTensorboardRunsBuilderList() { + return getTensorboardRunsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + getTensorboardRunsFieldBuilder() { + if (tensorboardRunsBuilder_ == null) { + tensorboardRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder>( + tensorboardRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensorboardRuns_ = null; + } + return tensorboardRunsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListTensorboardRunsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardRunsResponse(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.ListTensorboardRunsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponseOrBuilder.java new file mode 100644 index 000000000..56d7b8309 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponseOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardRunsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + java.util.List getTensorboardRunsList(); + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRuns(int index); + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + int getTensorboardRunsCount(); + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + java.util.List + getTensorboardRunsOrBuilderList(); + /** + * + * + *
+   * The TensorboardRuns mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_runs = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java new file mode 100644 index 000000000..3ebf527c0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java @@ -0,0 +1,1619 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest} + */ +public final class ListTensorboardTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + ListTensorboardTimeSeriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardTimeSeriesRequest.newBuilder() to construct. + private ListTensorboardTimeSeriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardTimeSeriesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardTimeSeriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardTimeSeriesRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+   * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * Lists the TensorboardTimeSeries that match the filter expression.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the TensorboardTimeSeries that match the filter expression.
+   * 
+ * + * 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 maximum number of TensorboardTimeSeries to return. The service may
+   * return fewer than this value. If unspecified, at most 50
+   * TensorboardTimeSeries will be returned. The maximum value is 1000; values
+   * above 1000 will be coerced to 1000.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + 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.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest 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.ListTensorboardTimeSeriesRequest 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 [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + .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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+     * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+     * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+     * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+     * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+     * 
+ * + * + * 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_ = ""; + /** + * + * + *
+     * Lists the TensorboardTimeSeries that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardTimeSeries that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the TensorboardTimeSeries that match the filter expression.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the TensorboardTimeSeries that match the filter expression.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the TensorboardTimeSeries that match the filter expression.
+     * 
+ * + * 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 maximum number of TensorboardTimeSeries to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardTimeSeries will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of TensorboardTimeSeries to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardTimeSeries will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * 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 maximum number of TensorboardTimeSeries to return. The service may
+     * return fewer than this value. If unspecified, at most 50
+     * TensorboardTimeSeries will be returned. The maximum value is 1000; values
+     * above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardTimeSeriesRequest(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.ListTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequestOrBuilder.java new file mode 100644 index 000000000..93f79caea --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardTimeSeriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+   * 
+ * + * + * 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 TensorboardRun to list TensorboardTimeSeries.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Lists the TensorboardTimeSeries that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the TensorboardTimeSeries that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of TensorboardTimeSeries to return. The service may
+   * return fewer than this value. If unspecified, at most 50
+   * TensorboardTimeSeries will be returned. The maximum value is 1000; values
+   * above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java new file mode 100644 index 000000000..5f0ac77bb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java @@ -0,0 +1,1233 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse} + */ +public final class ListTensorboardTimeSeriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) + ListTensorboardTimeSeriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardTimeSeriesResponse.newBuilder() to construct. + private ListTensorboardTimeSeriesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardTimeSeriesResponse() { + tensorboardTimeSeries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardTimeSeriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardTimeSeriesResponse( + 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)) { + tensorboardTimeSeries_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries>(); + mutable_bitField0_ |= 0x00000001; + } + tensorboardTimeSeries_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.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)) { + tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.Builder.class); + } + + public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + private java.util.List + tensorboardTimeSeries_; + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + @java.lang.Override + public java.util.List + getTensorboardTimeSeriesList() { + return tensorboardTimeSeries_; + } + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + getTensorboardTimeSeriesOrBuilderList() { + return tensorboardTimeSeries_; + } + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + @java.lang.Override + public int getTensorboardTimeSeriesCount() { + return tensorboardTimeSeries_.size(); + } + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries( + int index) { + return tensorboardTimeSeries_.get(index); + } + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder(int index) { + return tensorboardTimeSeries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as
+   * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < tensorboardTimeSeries_.size(); i++) { + output.writeMessage(1, tensorboardTimeSeries_.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 < tensorboardTimeSeries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, tensorboardTimeSeries_.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.v1beta1.ListTensorboardTimeSeriesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) obj; + + if (!getTensorboardTimeSeriesList().equals(other.getTensorboardTimeSeriesList())) 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 (getTensorboardTimeSeriesCount() > 0) { + hash = (37 * hash) + TENSORBOARD_TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeriesList().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.v1beta1.ListTensorboardTimeSeriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + 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.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse 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.ListTensorboardTimeSeriesResponse 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 [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTensorboardTimeSeriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tensorboardTimeSeriesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse(this); + int from_bitField0_ = bitField0_; + if (tensorboardTimeSeriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } else { + result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.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.v1beta1.ListTensorboardTimeSeriesResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + .getDefaultInstance()) return this; + if (tensorboardTimeSeriesBuilder_ == null) { + if (!other.tensorboardTimeSeries_.isEmpty()) { + if (tensorboardTimeSeries_.isEmpty()) { + tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.addAll(other.tensorboardTimeSeries_); + } + onChanged(); + } + } else { + if (!other.tensorboardTimeSeries_.isEmpty()) { + if (tensorboardTimeSeriesBuilder_.isEmpty()) { + tensorboardTimeSeriesBuilder_.dispose(); + tensorboardTimeSeriesBuilder_ = null; + tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorboardTimeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTensorboardTimeSeriesFieldBuilder() + : null; + } else { + tensorboardTimeSeriesBuilder_.addAllMessages(other.tensorboardTimeSeries_); + } + } + } + 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.v1beta1.ListTensorboardTimeSeriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + tensorboardTimeSeries_ = java.util.Collections.emptyList(); + + private void ensureTensorboardTimeSeriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorboardTimeSeries_ = + new java.util.ArrayList( + tensorboardTimeSeries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + tensorboardTimeSeriesBuilder_; + + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public java.util.List + getTensorboardTimeSeriesList() { + if (tensorboardTimeSeriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensorboardTimeSeries_); + } else { + return tensorboardTimeSeriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public int getTensorboardTimeSeriesCount() { + if (tensorboardTimeSeriesBuilder_ == null) { + return tensorboardTimeSeries_.size(); + } else { + return tensorboardTimeSeriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries( + int index) { + if (tensorboardTimeSeriesBuilder_ == null) { + return tensorboardTimeSeries_.get(index); + } else { + return tensorboardTimeSeriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder setTensorboardTimeSeries( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.set(index, value); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder setTensorboardTimeSeries( + int index, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { + if (tensorboardTimeSeriesBuilder_ == null) { + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder addTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.add(value); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder addTensorboardTimeSeries( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.add(index, value); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder addTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { + if (tensorboardTimeSeriesBuilder_ == null) { + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.add(builderForValue.build()); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder addTensorboardTimeSeries( + int index, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { + if (tensorboardTimeSeriesBuilder_ == null) { + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder addAllTensorboardTimeSeries( + java.lang.Iterable + values) { + if (tensorboardTimeSeriesBuilder_ == null) { + ensureTensorboardTimeSeriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tensorboardTimeSeries_); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder clearTensorboardTimeSeries() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public Builder removeTensorboardTimeSeries(int index) { + if (tensorboardTimeSeriesBuilder_ == null) { + ensureTensorboardTimeSeriesIsMutable(); + tensorboardTimeSeries_.remove(index); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder + getTensorboardTimeSeriesBuilder(int index) { + return getTensorboardTimeSeriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder(int index) { + if (tensorboardTimeSeriesBuilder_ == null) { + return tensorboardTimeSeries_.get(index); + } else { + return tensorboardTimeSeriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + getTensorboardTimeSeriesOrBuilderList() { + if (tensorboardTimeSeriesBuilder_ != null) { + return tensorboardTimeSeriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensorboardTimeSeries_); + } + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder + addTensorboardTimeSeriesBuilder() { + return getTensorboardTimeSeriesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder + addTensorboardTimeSeriesBuilder(int index) { + return getTensorboardTimeSeriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance()); + } + /** + * + * + *
+     * The TensorboardTimeSeries mathching the request.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + public java.util.List + getTensorboardTimeSeriesBuilderList() { + return getTensorboardTimeSeriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + getTensorboardTimeSeriesFieldBuilder() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder>( + tensorboardTimeSeries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensorboardTimeSeries_ = null; + } + return tensorboardTimeSeriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as
+     * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as
+     * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as
+     * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListTensorboardTimeSeriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardTimeSeriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardTimeSeriesResponse(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.ListTensorboardTimeSeriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponseOrBuilder.java new file mode 100644 index 000000000..6e938a17b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponseOrBuilder.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/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardTimeSeriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + java.util.List + getTensorboardTimeSeriesList(); + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries(int index); + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + int getTensorboardTimeSeriesCount(); + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + java.util.List + getTensorboardTimeSeriesOrBuilderList(); + /** + * + * + *
+   * The TensorboardTimeSeries mathching the request.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as
+   * [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java new file mode 100644 index 000000000..10a27292d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java @@ -0,0 +1,1607 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardsRequest} + */ +public final class ListTensorboardsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) + ListTensorboardsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardsRequest.newBuilder() to construct. + private ListTensorboardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardsRequest( + 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; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 50: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.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 Tensorboards.
+   * 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 Tensorboards.
+   * 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_; + /** + * + * + *
+   * Lists the Tensorboards that match the filter expression.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Lists the Tensorboards that match the filter expression.
+   * 
+ * + * 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 maximum number of Tensorboards to return. The service may return
+   * fewer than this value. If unspecified, at most 100 Tensorboards will be
+   * returned. The maximum value is 100; values above 100 will be coerced to
+   * 100.
+   * 
+ * + * 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_; + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+   * match the call that provided the page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (readMask_ != null) { + output.writeMessage(6, getReadMask()); + } + 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_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest 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.ListTensorboardsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest 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.ListTensorboardsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest 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.ListTensorboardsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest 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.ListTensorboardsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest 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.ListTensorboardsRequest 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.ListTensorboardsRequest 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.ListTensorboardsRequest 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 [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.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_ = ""; + + orderBy_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.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(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) 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 Tensorboards.
+     * 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 Tensorboards.
+     * 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 Tensorboards.
+     * 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 Tensorboards.
+     * 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 Tensorboards.
+     * 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_ = ""; + /** + * + * + *
+     * Lists the Tensorboards that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the Tensorboards that match the filter expression.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Lists the Tensorboards that match the filter expression.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Lists the Tensorboards that match the filter expression.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Lists the Tensorboards that match the filter expression.
+     * 
+ * + * 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 maximum number of Tensorboards to return. The service may return
+     * fewer than this value. If unspecified, at most 100 Tensorboards will be
+     * returned. The maximum value is 100; values above 100 will be coerced to
+     * 100.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Tensorboards to return. The service may return
+     * fewer than this value. If unspecified, at most 100 Tensorboards will be
+     * returned. The maximum value is 100; values above 100 will be coerced to
+     * 100.
+     * 
+ * + * 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 maximum number of Tensorboards to return. The service may return
+     * fewer than this value. If unspecified, at most 100 Tensorboards will be
+     * returned. The maximum value is 100; values above 100 will be coerced to
+     * 100.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+     * match the call that provided the page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Field to use to sort the list.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardsRequest(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.ListTensorboardsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequestOrBuilder.java new file mode 100644 index 000000000..f6f7a9121 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list Tensorboards.
+   * 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 Tensorboards.
+   * 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(); + + /** + * + * + *
+   * Lists the Tensorboards that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Lists the Tensorboards that match the filter expression.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of Tensorboards to return. The service may return
+   * fewer than this value. If unspecified, at most 100 Tensorboards will be
+   * returned. The maximum value is 100; values above 100 will be coerced to
+   * 100.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Field to use to sort the list.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java new file mode 100644 index 000000000..228d36d2f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java @@ -0,0 +1,1155 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardsResponse} + */ +public final class ListTensorboardsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) + ListTensorboardsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTensorboardsResponse.newBuilder() to construct. + private ListTensorboardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTensorboardsResponse() { + tensorboards_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTensorboardsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTensorboardsResponse( + 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)) { + tensorboards_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tensorboards_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tensorboard.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)) { + tensorboards_ = java.util.Collections.unmodifiableList(tensorboards_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.Builder.class); + } + + public static final int TENSORBOARDS_FIELD_NUMBER = 1; + private java.util.List tensorboards_; + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + @java.lang.Override + public java.util.List getTensorboardsList() { + return tensorboards_; + } + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + @java.lang.Override + public java.util.List + getTensorboardsOrBuilderList() { + return tensorboards_; + } + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + @java.lang.Override + public int getTensorboardsCount() { + return tensorboards_.size(); + } + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboards(int index) { + return tensorboards_.get(index); + } + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardsOrBuilder( + int index) { + return tensorboards_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * 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, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * 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 < tensorboards_.size(); i++) { + output.writeMessage(1, tensorboards_.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 < tensorboards_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tensorboards_.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.v1beta1.ListTensorboardsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) obj; + + if (!getTensorboardsList().equals(other.getTensorboardsList())) 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 (getTensorboardsCount() > 0) { + hash = (37 * hash) + TENSORBOARDS_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardsList().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.v1beta1.ListTensorboardsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse 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.ListTensorboardsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse 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.ListTensorboardsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse 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.ListTensorboardsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse 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.ListTensorboardsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse 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.ListTensorboardsResponse 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.ListTensorboardsResponse 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.ListTensorboardsResponse 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 [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTensorboardsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTensorboardsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorboardsBuilder_ == null) { + tensorboards_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tensorboardsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse(this); + int from_bitField0_ = bitField0_; + if (tensorboardsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensorboards_ = java.util.Collections.unmodifiableList(tensorboards_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorboards_ = tensorboards_; + } else { + result.tensorboards_ = tensorboardsBuilder_.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.v1beta1.ListTensorboardsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.getDefaultInstance()) + return this; + if (tensorboardsBuilder_ == null) { + if (!other.tensorboards_.isEmpty()) { + if (tensorboards_.isEmpty()) { + tensorboards_ = other.tensorboards_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorboardsIsMutable(); + tensorboards_.addAll(other.tensorboards_); + } + onChanged(); + } + } else { + if (!other.tensorboards_.isEmpty()) { + if (tensorboardsBuilder_.isEmpty()) { + tensorboardsBuilder_.dispose(); + tensorboardsBuilder_ = null; + tensorboards_ = other.tensorboards_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorboardsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTensorboardsFieldBuilder() + : null; + } else { + tensorboardsBuilder_.addAllMessages(other.tensorboards_); + } + } + } + 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.v1beta1.ListTensorboardsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tensorboards_ = + java.util.Collections.emptyList(); + + private void ensureTensorboardsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorboards_ = + new java.util.ArrayList(tensorboards_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + tensorboardsBuilder_; + + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public java.util.List getTensorboardsList() { + if (tensorboardsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensorboards_); + } else { + return tensorboardsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public int getTensorboardsCount() { + if (tensorboardsBuilder_ == null) { + return tensorboards_.size(); + } else { + return tensorboardsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboards(int index) { + if (tensorboardsBuilder_ == null) { + return tensorboards_.get(index); + } else { + return tensorboardsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder setTensorboards( + int index, com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardsIsMutable(); + tensorboards_.set(index, value); + onChanged(); + } else { + tensorboardsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder setTensorboards( + int index, com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { + if (tensorboardsBuilder_ == null) { + ensureTensorboardsIsMutable(); + tensorboards_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorboardsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder addTensorboards(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardsIsMutable(); + tensorboards_.add(value); + onChanged(); + } else { + tensorboardsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder addTensorboards( + int index, com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorboardsIsMutable(); + tensorboards_.add(index, value); + onChanged(); + } else { + tensorboardsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder addTensorboards( + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { + if (tensorboardsBuilder_ == null) { + ensureTensorboardsIsMutable(); + tensorboards_.add(builderForValue.build()); + onChanged(); + } else { + tensorboardsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder addTensorboards( + int index, com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { + if (tensorboardsBuilder_ == null) { + ensureTensorboardsIsMutable(); + tensorboards_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorboardsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder addAllTensorboards( + java.lang.Iterable values) { + if (tensorboardsBuilder_ == null) { + ensureTensorboardsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tensorboards_); + onChanged(); + } else { + tensorboardsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder clearTensorboards() { + if (tensorboardsBuilder_ == null) { + tensorboards_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorboardsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public Builder removeTensorboards(int index) { + if (tensorboardsBuilder_ == null) { + ensureTensorboardsIsMutable(); + tensorboards_.remove(index); + onChanged(); + } else { + tensorboardsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder getTensorboardsBuilder( + int index) { + return getTensorboardsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardsOrBuilder( + int index) { + if (tensorboardsBuilder_ == null) { + return tensorboards_.get(index); + } else { + return tensorboardsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public java.util.List + getTensorboardsOrBuilderList() { + if (tensorboardsBuilder_ != null) { + return tensorboardsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensorboards_); + } + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder addTensorboardsBuilder() { + return getTensorboardsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance()); + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder addTensorboardsBuilder( + int index) { + return getTensorboardsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance()); + } + /** + * + * + *
+     * The Tensorboards mathching the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + public java.util.List + getTensorboardsBuilderList() { + return getTensorboardsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + getTensorboardsFieldBuilder() { + if (tensorboardsBuilder_ == null) { + tensorboardsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder>( + tensorboards_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tensorboards_ = null; + } + return tensorboardsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * 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, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * 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.v1beta1.ListTensorboardsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTensorboardsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTensorboardsResponse(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.ListTensorboardsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponseOrBuilder.java new file mode 100644 index 000000000..17a6e68aa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTensorboardsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTensorboardsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + java.util.List getTensorboardsList(); + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboards(int index); + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + int getTensorboardsCount(); + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + java.util.List + getTensorboardsOrBuilderList(); + /** + * + * + *
+   * The Tensorboards mathching the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Tensorboard tensorboards = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java index 3b39e34a4..f53f27d29 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java @@ -206,7 +206,7 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipelines * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
    * 
* @@ -230,7 +230,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
    * 
* @@ -1022,7 +1022,7 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline.Builder addTrainingP * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
      * 
* @@ -1045,7 +1045,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
      * 
* @@ -1068,7 +1068,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
      * 
* @@ -1090,7 +1090,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
      * 
* @@ -1108,7 +1108,7 @@ public Builder clearNextPageToken() { * * *
-     * A token to retrieve next page of results.
+     * A token to retrieve the next page of results.
      * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponseOrBuilder.java index d8e47ad9a..5774b7ab3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponseOrBuilder.java @@ -80,7 +80,7 @@ com.google.cloud.aiplatform.v1beta1.TrainingPipelineOrBuilder getTrainingPipelin * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
    * 
* @@ -93,7 +93,7 @@ com.google.cloud.aiplatform.v1beta1.TrainingPipelineOrBuilder getTrainingPipelin * * *
-   * A token to retrieve next page of results.
+   * A token to retrieve the next page of results.
    * Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java new file mode 100644 index 000000000..e2396ca49 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java @@ -0,0 +1,938 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTrialsRequest} + */ +public final class ListTrialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTrialsRequest) + ListTrialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTrialsRequest.newBuilder() to construct. + private ListTrialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTrialsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTrialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTrialsRequest( + 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(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Study to list the Trial from.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study to list the Trial from.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional. The number of Trials to retrieve per "page" of results.
+   * If unspecified, the service will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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 (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + 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 (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + 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.ListTrialsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListTrialsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) 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) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest 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.ListTrialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest 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.ListTrialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest 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.ListTrialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest 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.ListTrialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest 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.ListTrialsRequest 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.ListTrialsRequest 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.ListTrialsRequest 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 [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTrialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTrialsRequest) + com.google.cloud.aiplatform.v1beta1.ListTrialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.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_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListTrialsRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + 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.ListTrialsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTrialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTrialsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListTrialsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + 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.ListTrialsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTrialsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Study to list the Trial from.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to list the Trial from.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to list the Trial from.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to list the Trial from.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 Study to list the Trial from.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token to request the next page of results.
+     * If unspecified, there are no subsequent pages.
+     * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The number of Trials to retrieve per "page" of results.
+     * If unspecified, the service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The number of Trials to retrieve per "page" of results.
+     * If unspecified, the service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of Trials to retrieve per "page" of results.
+     * If unspecified, the service will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 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.ListTrialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTrialsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListTrialsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTrialsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTrialsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTrialsRequest(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.ListTrialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequestOrBuilder.java new file mode 100644 index 000000000..ff90f76c4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTrialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTrialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Study to list the Trial from.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 Study to list the Trial from.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token to request the next page of results.
+   * If unspecified, there are no subsequent pages.
+   * 
+ * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The number of Trials to retrieve per "page" of results.
+   * If unspecified, the service will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java new file mode 100644 index 000000000..c11e0624d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java @@ -0,0 +1,1143 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTrialsResponse} + */ +public final class ListTrialsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListTrialsResponse) + ListTrialsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTrialsResponse.newBuilder() to construct. + private ListTrialsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTrialsResponse() { + trials_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTrialsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTrialsResponse( + 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)) { + trials_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + trials_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Trial.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)) { + trials_ = java.util.Collections.unmodifiableList(trials_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.Builder.class); + } + + public static final int TRIALS_FIELD_NUMBER = 1; + private java.util.List trials_; + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public java.util.List getTrialsList() { + return trials_; + } + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public java.util.List + getTrialsOrBuilderList() { + return trials_; + } + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public int getTrialsCount() { + return trials_.size(); + } + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) { + return trials_.get(index); + } + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) { + return trials_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Pass this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Pass this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < trials_.size(); i++) { + output.writeMessage(1, trials_.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 < trials_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, trials_.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.v1beta1.ListTrialsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListTrialsResponse) obj; + + if (!getTrialsList().equals(other.getTrialsList())) 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 (getTrialsCount() > 0) { + hash = (37 * hash) + TRIALS_FIELD_NUMBER; + hash = (53 * hash) + getTrialsList().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.v1beta1.ListTrialsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse 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.ListTrialsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse 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.ListTrialsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse 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.ListTrialsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse 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.ListTrialsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse 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.ListTrialsResponse 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.ListTrialsResponse 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.ListTrialsResponse 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 [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListTrialsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListTrialsResponse) + com.google.cloud.aiplatform.v1beta1.ListTrialsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTrialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (trialsBuilder_ == null) { + trials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + trialsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListTrialsResponse(this); + int from_bitField0_ = bitField0_; + if (trialsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trials_ = java.util.Collections.unmodifiableList(trials_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trials_ = trials_; + } else { + result.trials_ = trialsBuilder_.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.v1beta1.ListTrialsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListTrialsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTrialsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListTrialsResponse.getDefaultInstance()) + return this; + if (trialsBuilder_ == null) { + if (!other.trials_.isEmpty()) { + if (trials_.isEmpty()) { + trials_ = other.trials_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrialsIsMutable(); + trials_.addAll(other.trials_); + } + onChanged(); + } + } else { + if (!other.trials_.isEmpty()) { + if (trialsBuilder_.isEmpty()) { + trialsBuilder_.dispose(); + trialsBuilder_ = null; + trials_ = other.trials_; + bitField0_ = (bitField0_ & ~0x00000001); + trialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrialsFieldBuilder() + : null; + } else { + trialsBuilder_.addAllMessages(other.trials_); + } + } + } + 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.v1beta1.ListTrialsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListTrialsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List trials_ = + java.util.Collections.emptyList(); + + private void ensureTrialsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trials_ = new java.util.ArrayList(trials_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + trialsBuilder_; + + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List getTrialsList() { + if (trialsBuilder_ == null) { + return java.util.Collections.unmodifiableList(trials_); + } else { + return trialsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public int getTrialsCount() { + if (trialsBuilder_ == null) { + return trials_.size(); + } else { + return trialsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) { + if (trialsBuilder_ == null) { + return trials_.get(index); + } else { + return trialsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder setTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.set(index, value); + onChanged(); + } else { + trialsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder setTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.set(index, builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.add(value); + onChanged(); + } else { + trialsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.add(index, value); + onChanged(); + } else { + trialsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.add(builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.add(index, builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addAllTrials( + java.lang.Iterable values) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trials_); + onChanged(); + } else { + trialsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder clearTrials() { + if (trialsBuilder_ == null) { + trials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trialsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder removeTrials(int index) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.remove(index); + onChanged(); + } else { + trialsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder getTrialsBuilder(int index) { + return getTrialsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) { + if (trialsBuilder_ == null) { + return trials_.get(index); + } else { + return trialsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List + getTrialsOrBuilderList() { + if (trialsBuilder_ != null) { + return trialsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trials_); + } + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder() { + return getTrialsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder(int index) { + return getTrialsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * The Trials associated with the Study.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List + getTrialsBuilderList() { + return getTrialsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + getTrialsFieldBuilder() { + if (trialsBuilder_ == null) { + trialsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>( + trials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + trials_ = null; + } + return trialsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Pass this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Pass this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Pass this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Pass this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Pass this token as the `page_token` field of the request for a
+     * subsequent call.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.ListTrialsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListTrialsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListTrialsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListTrialsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListTrialsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTrialsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTrialsResponse(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.ListTrialsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponseOrBuilder.java new file mode 100644 index 000000000..89b0c939c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListTrialsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListTrialsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + java.util.List getTrialsList(); + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index); + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + int getTrialsCount(); + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + java.util.List + getTrialsOrBuilderList(); + /** + * + * + *
+   * The Trials associated with the Study.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index); + + /** + * + * + *
+   * Pass this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Pass this token as the `page_token` field of the request for a
+   * subsequent call.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java index 95ce9514a..af0f49aa9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java new file mode 100644 index 000000000..e20d81da1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java @@ -0,0 +1,837 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.LookupStudy][google.cloud.aiplatform.v1beta1.VizierService.LookupStudy].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LookupStudyRequest} + */ +public final class LookupStudyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LookupStudyRequest) + LookupStudyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookupStudyRequest.newBuilder() to construct. + private LookupStudyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookupStudyRequest() { + parent_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LookupStudyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LookupStudyRequest( + 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(); + + displayName_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location to get the Study 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 get the Study 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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. The user-defined display name of the Study
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The user-defined display name of the Study
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + 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 (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.LookupStudyRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest other = + (com.google.cloud.aiplatform.v1beta1.LookupStudyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest 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.LookupStudyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest 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.LookupStudyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest 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.LookupStudyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest 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.LookupStudyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest 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.LookupStudyRequest 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.LookupStudyRequest 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.LookupStudyRequest 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 [VizierService.LookupStudy][google.cloud.aiplatform.v1beta1.VizierService.LookupStudy].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LookupStudyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.LookupStudyRequest) + com.google.cloud.aiplatform.v1beta1.LookupStudyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.class, + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.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_ = ""; + + displayName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LookupStudyRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LookupStudyRequest build() { + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LookupStudyRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest result = + new com.google.cloud.aiplatform.v1beta1.LookupStudyRequest(this); + result.parent_ = parent_; + result.displayName_ = displayName_; + 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.LookupStudyRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.LookupStudyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LookupStudyRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.LookupStudyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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.LookupStudyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.LookupStudyRequest) 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 get the Study 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 get the Study 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 get the Study 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 get the Study 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 get the Study 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 displayName_ = ""; + /** + * + * + *
+     * Required. The user-defined display name of the Study
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The user-defined display name of the Study
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The user-defined display name of the Study
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The user-defined display name of the Study
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined display name of the Study
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + @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.LookupStudyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.LookupStudyRequest) + private static final com.google.cloud.aiplatform.v1beta1.LookupStudyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.LookupStudyRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.LookupStudyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupStudyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LookupStudyRequest(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.LookupStudyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequestOrBuilder.java new file mode 100644 index 000000000..fb61a7a4f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface LookupStudyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.LookupStudyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to get the Study 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 get the Study 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(); + + /** + * + * + *
+   * Required. The user-defined display name of the Study
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The user-defined display name of the Study
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} 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 7efe8d27d..4759b2fd1 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 @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -69,24 +73,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e\030\001 \001(\tB\003\340A\005\022O\n\020accelerator_type\030\002 \001(\01620" + ".google.cloud.aiplatform.v1beta1.Acceler" + "atorTypeB\003\340A\005\022\031\n\021accelerator_count\030\003 \001(\005" - + "\"\243\001\n\022DedicatedResources\022J\n\014machine_spec\030" + + "\"\202\002\n\022DedicatedResources\022J\n\014machine_spec\030" + "\001 \001(\0132,.google.cloud.aiplatform.v1beta1." + "MachineSpecB\006\340A\002\340A\005\022!\n\021min_replica_count" + "\030\002 \001(\005B\006\340A\002\340A\005\022\036\n\021max_replica_count\030\003 \001(" - + "\005B\003\340A\005\"T\n\022AutomaticResources\022\036\n\021min_repl" - + "ica_count\030\001 \001(\005B\003\340A\005\022\036\n\021max_replica_coun" - + "t\030\002 \001(\005B\003\340A\005\"\252\001\n\027BatchDedicatedResources" - + "\022J\n\014machine_spec\030\001 \001(\0132,.google.cloud.ai" - + "platform.v1beta1.MachineSpecB\006\340A\002\340A\005\022#\n\026" - + "starting_replica_count\030\002 \001(\005B\003\340A\005\022\036\n\021max" - + "_replica_count\030\003 \001(\005B\003\340A\005\"/\n\021ResourcesCo" - + "nsumed\022\032\n\rreplica_hours\030\001 \001(\001B\003\340A\003\"=\n\010Di" - + "skSpec\022\026\n\016boot_disk_type\030\001 \001(\t\022\031\n\021boot_d" - + "isk_size_gb\030\002 \001(\005B\211\001\n#com.google.cloud.a" - + "iplatform.v1beta1B\025MachineResourcesProto" - + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatformb\006p" - + "roto3" + + "\005B\003\340A\005\022]\n\030autoscaling_metric_specs\030\004 \003(\013" + + "26.google.cloud.aiplatform.v1beta1.Autos" + + "calingMetricSpecB\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\"\252\001\n\027BatchDed" + + "icatedResources\022J\n\014machine_spec\030\001 \001(\0132,." + + "google.cloud.aiplatform.v1beta1.MachineS" + + "pecB\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\021ResourcesConsumed\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(\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" + + ".aiplatform.v1beta1B\025MachineResourcesPro" + + "toP\001ZIgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1beta1;aiplatformb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -110,7 +118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor, new java.lang.String[] { - "MachineSpec", "MinReplicaCount", "MaxReplicaCount", + "MachineSpec", "MinReplicaCount", "MaxReplicaCount", "AutoscalingMetricSpecs", }); internal_static_google_cloud_aiplatform_v1beta1_AutomaticResources_descriptor = getDescriptor().getMessageTypes().get(2); @@ -144,6 +152,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); + internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java index 1f71333d7..ff701952d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java @@ -130,10 +130,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -159,10 +160,11 @@ public java.lang.String getMachineType() {
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -603,10 +605,11 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -631,10 +634,11 @@ public java.lang.String getMachineType() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -659,10 +663,11 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -686,10 +691,11 @@ public Builder setMachineType(java.lang.String value) {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -709,10 +715,11 @@ public Builder clearMachineType() {
      *
      *
      * 
-     * Immutable. The type of the machine. For the machine types supported for prediction,
-     * see https://tinyurl.com/aip-docs/predictions/machine-types.
-     * For machine types supported for creating a custom training job, see
-     * https://tinyurl.com/aip-docs/training/configure-compute.
+     * Immutable. The type of the machine.
+     * See the [list of machine types supported for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+     * See the [list of machine types supported for custom
+     * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
      * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
      * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
index 43a7bc1d7..1fb4fbbcc 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java
@@ -27,10 +27,11 @@ public interface MachineSpecOrBuilder
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
@@ -45,10 +46,11 @@ public interface MachineSpecOrBuilder
    *
    *
    * 
-   * Immutable. The type of the machine. For the machine types supported for prediction,
-   * see https://tinyurl.com/aip-docs/predictions/machine-types.
-   * For machine types supported for creating a custom training job, see
-   * https://tinyurl.com/aip-docs/training/configure-compute.
+   * Immutable. The type of the machine.
+   * See the [list of machine types supported for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
+   * See the [list of machine types supported for custom
+   * training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
    * For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default
    * value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of
    * [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java
index 7c6e40e11..8d94fe651 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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();
@@ -898,6 +913,60 @@ public com.google.cloud.aiplatform.v1beta1.Measurement.Metric getDefaultInstance
     }
   }
 
+  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_; /** @@ -1016,6 +1085,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_); } @@ -1031,6 +1103,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_); } @@ -1053,6 +1128,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1beta1.Measurement other = (com.google.cloud.aiplatform.v1beta1.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; @@ -1066,6 +1145,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) { @@ -1221,6 +1304,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) { @@ -1257,6 +1346,11 @@ public com.google.cloud.aiplatform.v1beta1.Measurement buildPartial() { com.google.cloud.aiplatform.v1beta1.Measurement result = new com.google.cloud.aiplatform.v1beta1.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)) { @@ -1317,6 +1411,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Measurement other) { if (other == com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance()) return this; + if (other.hasElapsedDuration()) { + mergeElapsedDuration(other.getElapsedDuration()); + } if (other.getStepCount() != 0L) { setStepCount(other.getStepCount()); } @@ -1378,6 +1475,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MeasurementOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MeasurementOrBuilder.java index c6505a99e..39bb679ca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MeasurementOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MeasurementOrBuilder.java @@ -23,6 +23,47 @@ public interface MeasurementOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-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 new file mode 100644 index 000000000..30ca3af6f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/metadata_store.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class MetadataProto { + private MetadataProto() {} + + 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_v1beta1_MetadataStore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/aiplatform/v1beta1/metada" + + "ta_store.proto\022\037google.cloud.aiplatform." + + "v1beta1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\0325google/clou" + + "d/aiplatform/v1beta1/encryption_spec.pro" + + "to\032\037google/protobuf/timestamp.proto\032\034goo" + + "gle/api/annotations.proto\"\361\003\n\rMetadataSt" + + "ore\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022H\n\017encryption_spec\030\005 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.Encryption" + + "Spec\022\023\n\013description\030\006 \001(\t\022U\n\005state\030\007 \001(\013" + + "2A.google.cloud.aiplatform.v1beta1.Metad" + + "ataStore.MetadataStoreStateB\003\340A\003\0324\n\022Meta" + + "dataStoreState\022\036\n\026disk_utilization_bytes" + + "\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" + + "beta1B\rMetadataProtoP\001ZIgoogle.golang.or" + + "g/genproto/googleapis/cloud/aiplatform/v" + + "1beta1;aiplatformb\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.v1beta1.EncryptionSpecProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "EncryptionSpec", "Description", "State", + }); + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor, + new java.lang.String[] { + "DiskUtilizationBytes", + }); + 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.v1beta1.EncryptionSpecProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java new file mode 100644 index 000000000..b05df1342 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java @@ -0,0 +1,1875 @@ +/* + * 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_schema.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instance of a general MetadataSchema.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataSchema} + */ +public final class MetadataSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetadataSchema) + MetadataSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetadataSchema.newBuilder() to construct. + private MetadataSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetadataSchema() { + name_ = ""; + schemaVersion_ = ""; + schema_ = ""; + schemaType_ = 0; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetadataSchema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetadataSchema( + 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(); + + schemaVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + schemaType_ = rawValue; + break; + } + case 42: + { + 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 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = 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.MetadataSchemaProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.class, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder.class); + } + + /** + * + * + *
+   * Describes the type of the MetadataSchema.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType} + */ + public enum MetadataSchemaType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified type for the MetadataSchema.
+     * 
+ * + * METADATA_SCHEMA_TYPE_UNSPECIFIED = 0; + */ + METADATA_SCHEMA_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A type indicating that the MetadataSchema will be used by Artifacts.
+     * 
+ * + * ARTIFACT_TYPE = 1; + */ + ARTIFACT_TYPE(1), + /** + * + * + *
+     * A typee indicating that the MetadataSchema will be used by Executions.
+     * 
+ * + * EXECUTION_TYPE = 2; + */ + EXECUTION_TYPE(2), + /** + * + * + *
+     * A state indicating that the MetadataSchema will be used by Contexts.
+     * 
+ * + * CONTEXT_TYPE = 3; + */ + CONTEXT_TYPE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified type for the MetadataSchema.
+     * 
+ * + * METADATA_SCHEMA_TYPE_UNSPECIFIED = 0; + */ + public static final int METADATA_SCHEMA_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A type indicating that the MetadataSchema will be used by Artifacts.
+     * 
+ * + * ARTIFACT_TYPE = 1; + */ + public static final int ARTIFACT_TYPE_VALUE = 1; + /** + * + * + *
+     * A typee indicating that the MetadataSchema will be used by Executions.
+     * 
+ * + * EXECUTION_TYPE = 2; + */ + public static final int EXECUTION_TYPE_VALUE = 2; + /** + * + * + *
+     * A state indicating that the MetadataSchema will be used by Contexts.
+     * 
+ * + * CONTEXT_TYPE = 3; + */ + public static final int CONTEXT_TYPE_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 MetadataSchemaType 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 MetadataSchemaType forNumber(int value) { + switch (value) { + case 0: + return METADATA_SCHEMA_TYPE_UNSPECIFIED; + case 1: + return ARTIFACT_TYPE; + case 2: + return EXECUTION_TYPE; + case 3: + return CONTEXT_TYPE; + 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 MetadataSchemaType findValueByNumber(int number) { + return MetadataSchemaType.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.MetadataSchema.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MetadataSchemaType[] VALUES = values(); + + public static MetadataSchemaType 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 MetadataSchemaType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the MetadataSchema.
+   * 
+ * + * 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 MetadataSchema.
+   * 
+ * + * 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 SCHEMA_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object schemaVersion_; + /** + * + * + *
+   * The version of the MetadataSchema. The version's format must match
+   * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+   * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+   * 
+ * + * string schema_version = 2; + * + * @return The schemaVersion. + */ + @java.lang.Override + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + 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(); + schemaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the MetadataSchema. The version's format must match
+   * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+   * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+   * 
+ * + * string schema_version = 2; + * + * @return The bytes for schemaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private volatile java.lang.Object schema_; + /** + * + * + *
+   * Required. The raw YAML string representation of the MetadataSchema. The combination
+   * of [MetadataSchema.version] and the schema name given by `title` in
+   * [MetadataSchema.schema] must be unique within a MetadataStore.
+   * The schema is defined as an OpenAPI 3.0.2
+   * [MetadataSchema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+   * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The raw YAML string representation of the MetadataSchema. The combination
+   * of [MetadataSchema.version] and the schema name given by `title` in
+   * [MetadataSchema.schema] must be unique within a MetadataStore.
+   * The schema is defined as an OpenAPI 3.0.2
+   * [MetadataSchema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+   * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_TYPE_FIELD_NUMBER = 4; + private int schemaType_; + /** + * + * + *
+   * The type of the MetadataSchema. This is a property that identifies which
+   * metadata types will use the MetadataSchema.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The enum numeric value on the wire for schemaType. + */ + @java.lang.Override + public int getSchemaTypeValue() { + return schemaType_; + } + /** + * + * + *
+   * The type of the MetadataSchema. This is a property that identifies which
+   * metadata types will use the MetadataSchema.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The schemaType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType getSchemaType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType result = + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.valueOf(schemaType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of the Metadata Schema
+   * 
+ * + * string description = 6; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of the Metadata Schema
+   * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 (!getSchemaVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaVersion_); + } + if (!getSchemaBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); + } + if (schemaType_ + != com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType + .METADATA_SCHEMA_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, schemaType_); + } + if (createTime_ != null) { + output.writeMessage(5, getCreateTime()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + 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 (!getSchemaVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaVersion_); + } + if (!getSchemaBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); + } + if (schemaType_ + != com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType + .METADATA_SCHEMA_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, schemaType_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + 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.MetadataSchema)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetadataSchema other = + (com.google.cloud.aiplatform.v1beta1.MetadataSchema) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSchemaVersion().equals(other.getSchemaVersion())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (schemaType_ != other.schemaType_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) 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) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + SCHEMA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + schemaType_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema 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.MetadataSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema 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.MetadataSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema 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.MetadataSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema 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.MetadataSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema 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.MetadataSchema 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.MetadataSchema 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.MetadataSchema 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 MetadataSchema.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetadataSchema) + com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.class, + com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetadataSchema.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_ = ""; + + schemaVersion_ = ""; + + schema_ = ""; + + schemaType_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema build() { + com.google.cloud.aiplatform.v1beta1.MetadataSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetadataSchema result = + new com.google.cloud.aiplatform.v1beta1.MetadataSchema(this); + result.name_ = name_; + result.schemaVersion_ = schemaVersion_; + result.schema_ = schema_; + result.schemaType_ = schemaType_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.description_ = description_; + 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.MetadataSchema) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetadataSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataSchema other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getSchemaVersion().isEmpty()) { + schemaVersion_ = other.schemaVersion_; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (other.schemaType_ != 0) { + setSchemaTypeValue(other.getSchemaTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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.MetadataSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.MetadataSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the MetadataSchema.
+     * 
+ * + * 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 MetadataSchema.
+     * 
+ * + * 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 MetadataSchema.
+     * 
+ * + * 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 MetadataSchema.
+     * 
+ * + * 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 MetadataSchema.
+     * 
+ * + * 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 schemaVersion_ = ""; + /** + * + * + *
+     * The version of the MetadataSchema. The version's format must match
+     * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+     * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+     * 
+ * + * string schema_version = 2; + * + * @return The schemaVersion. + */ + public java.lang.String getSchemaVersion() { + java.lang.Object ref = schemaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the MetadataSchema. The version's format must match
+     * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+     * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+     * 
+ * + * string schema_version = 2; + * + * @return The bytes for schemaVersion. + */ + public com.google.protobuf.ByteString getSchemaVersionBytes() { + java.lang.Object ref = schemaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the MetadataSchema. The version's format must match
+     * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+     * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+     * 
+ * + * string schema_version = 2; + * + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the MetadataSchema. The version's format must match
+     * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+     * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+     * 
+ * + * string schema_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + + schemaVersion_ = getDefaultInstance().getSchemaVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the MetadataSchema. The version's format must match
+     * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+     * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+     * 
+ * + * string schema_version = 2; + * + * @param value The bytes for schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + /** + * + * + *
+     * Required. The raw YAML string representation of the MetadataSchema. The combination
+     * of [MetadataSchema.version] and the schema name given by `title` in
+     * [MetadataSchema.schema] must be unique within a MetadataStore.
+     * The schema is defined as an OpenAPI 3.0.2
+     * [MetadataSchema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+     * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The raw YAML string representation of the MetadataSchema. The combination
+     * of [MetadataSchema.version] and the schema name given by `title` in
+     * [MetadataSchema.schema] must be unique within a MetadataStore.
+     * The schema is defined as an OpenAPI 3.0.2
+     * [MetadataSchema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+     * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The raw YAML string representation of the MetadataSchema. The combination
+     * of [MetadataSchema.version] and the schema name given by `title` in
+     * [MetadataSchema.schema] must be unique within a MetadataStore.
+     * The schema is defined as an OpenAPI 3.0.2
+     * [MetadataSchema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+     * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The raw YAML string representation of the MetadataSchema. The combination
+     * of [MetadataSchema.version] and the schema name given by `title` in
+     * [MetadataSchema.schema] must be unique within a MetadataStore.
+     * The schema is defined as an OpenAPI 3.0.2
+     * [MetadataSchema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+     * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The raw YAML string representation of the MetadataSchema. The combination
+     * of [MetadataSchema.version] and the schema name given by `title` in
+     * [MetadataSchema.schema] must be unique within a MetadataStore.
+     * The schema is defined as an OpenAPI 3.0.2
+     * [MetadataSchema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+     * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private int schemaType_ = 0; + /** + * + * + *
+     * The type of the MetadataSchema. This is a property that identifies which
+     * metadata types will use the MetadataSchema.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The enum numeric value on the wire for schemaType. + */ + @java.lang.Override + public int getSchemaTypeValue() { + return schemaType_; + } + /** + * + * + *
+     * The type of the MetadataSchema. This is a property that identifies which
+     * metadata types will use the MetadataSchema.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @param value The enum numeric value on the wire for schemaType to set. + * @return This builder for chaining. + */ + public Builder setSchemaTypeValue(int value) { + + schemaType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the MetadataSchema. This is a property that identifies which
+     * metadata types will use the MetadataSchema.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The schemaType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType getSchemaType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType result = + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.valueOf( + schemaType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of the MetadataSchema. This is a property that identifies which
+     * metadata types will use the MetadataSchema.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @param value The schemaType to set. + * @return This builder for chaining. + */ + public Builder setSchemaType( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the MetadataSchema. This is a property that identifies which
+     * metadata types will use the MetadataSchema.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSchemaType() { + + schemaType_ = 0; + 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. Timestamp when this MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 MetadataSchema was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 java.lang.Object description_ = ""; + /** + * + * + *
+     * Description of the Metadata Schema
+     * 
+ * + * string description = 6; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of the Metadata Schema
+     * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of the Metadata Schema
+     * 
+ * + * string description = 6; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Metadata Schema
+     * 
+ * + * string description = 6; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the Metadata Schema
+     * 
+ * + * string description = 6; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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.MetadataSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetadataSchema) + private static final com.google.cloud.aiplatform.v1beta1.MetadataSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetadataSchema(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetadataSchema(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.MetadataSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java new file mode 100644 index 000000000..839949df8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java @@ -0,0 +1,269 @@ +/* + * 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 MetadataSchemaName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_METADATA_STORE_METADATA_SCHEMA = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String metadataStore; + private final String metadataSchema; + + @Deprecated + protected MetadataSchemaName() { + project = null; + location = null; + metadataStore = null; + metadataSchema = null; + } + + private MetadataSchemaName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + metadataStore = Preconditions.checkNotNull(builder.getMetadataStore()); + metadataSchema = Preconditions.checkNotNull(builder.getMetadataSchema()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getMetadataSchema() { + return metadataSchema; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MetadataSchemaName of( + String project, String location, String metadataStore, String metadataSchema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setMetadataSchema(metadataSchema) + .build(); + } + + public static String format( + String project, String location, String metadataStore, String metadataSchema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .setMetadataSchema(metadataSchema) + .build() + .toString(); + } + + public static MetadataSchemaName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_METADATA_STORE_METADATA_SCHEMA.validatedMatch( + formattedString, "MetadataSchemaName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("metadata_store"), + matchMap.get("metadata_schema")); + } + + 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 (MetadataSchemaName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_METADATA_STORE_METADATA_SCHEMA.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 (metadataStore != null) { + fieldMapBuilder.put("metadata_store", metadataStore); + } + if (metadataSchema != null) { + fieldMapBuilder.put("metadata_schema", metadataSchema); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_METADATA_STORE_METADATA_SCHEMA.instantiate( + "project", + project, + "location", + location, + "metadata_store", + metadataStore, + "metadata_schema", + metadataSchema); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + MetadataSchemaName that = ((MetadataSchemaName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.metadataStore, that.metadataStore) + && Objects.equals(this.metadataSchema, that.metadataSchema); + } + 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(metadataStore); + h *= 1000003; + h ^= Objects.hashCode(metadataSchema); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}. + */ + public static class Builder { + private String project; + private String location; + private String metadataStore; + private String metadataSchema; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public String getMetadataSchema() { + return metadataSchema; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMetadataStore(String metadataStore) { + this.metadataStore = metadataStore; + return this; + } + + public Builder setMetadataSchema(String metadataSchema) { + this.metadataSchema = metadataSchema; + return this; + } + + private Builder(MetadataSchemaName metadataSchemaName) { + project = metadataSchemaName.project; + location = metadataSchemaName.location; + metadataStore = metadataSchemaName.metadataStore; + metadataSchema = metadataSchemaName.metadataSchema; + } + + public MetadataSchemaName build() { + return new MetadataSchemaName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaOrBuilder.java new file mode 100644 index 000000000..0d2816a98 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaOrBuilder.java @@ -0,0 +1,206 @@ +/* + * 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_schema.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface MetadataSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetadataSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the MetadataSchema.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the MetadataSchema.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The version of the MetadataSchema. The version's format must match
+   * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+   * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+   * 
+ * + * string schema_version = 2; + * + * @return The schemaVersion. + */ + java.lang.String getSchemaVersion(); + /** + * + * + *
+   * The version of the MetadataSchema. The version's format must match
+   * the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
+   * allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc.
+   * 
+ * + * string schema_version = 2; + * + * @return The bytes for schemaVersion. + */ + com.google.protobuf.ByteString getSchemaVersionBytes(); + + /** + * + * + *
+   * Required. The raw YAML string representation of the MetadataSchema. The combination
+   * of [MetadataSchema.version] and the schema name given by `title` in
+   * [MetadataSchema.schema] must be unique within a MetadataStore.
+   * The schema is defined as an OpenAPI 3.0.2
+   * [MetadataSchema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+   * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+   * Required. The raw YAML string representation of the MetadataSchema. The combination
+   * of [MetadataSchema.version] and the schema name given by `title` in
+   * [MetadataSchema.schema] must be unique within a MetadataStore.
+   * The schema is defined as an OpenAPI 3.0.2
+   * [MetadataSchema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
+   * 
+ * + * string schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+   * The type of the MetadataSchema. This is a property that identifies which
+   * metadata types will use the MetadataSchema.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The enum numeric value on the wire for schemaType. + */ + int getSchemaTypeValue(); + /** + * + * + *
+   * The type of the MetadataSchema. This is a property that identifies which
+   * metadata types will use the MetadataSchema.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType schema_type = 4; + * + * + * @return The schemaType. + */ + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType getSchemaType(); + + /** + * + * + *
+   * Output only. Timestamp when this MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataSchema was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Description of the Metadata Schema
+   * 
+ * + * string description = 6; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of the Metadata Schema
+   * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} 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 new file mode 100644 index 000000000..65871a22a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java @@ -0,0 +1,96 @@ +/* + * 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_schema.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class MetadataSchemaProto { + private MetadataSchemaProto() {} + + 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_v1beta1_MetadataSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/aiplatform/v1beta1/metada" + + "ta_schema.proto\022\037google.cloud.aiplatform" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\034google/api/annota" + + "tions.proto\"\205\004\n\016MetadataSchema\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\026\n\016schema_version\030\002 \001(\t\022\023\n\006sch" + + "ema\030\003 \001(\tB\003\340A\002\022W\n\013schema_type\030\004 \001(\0162B.go" + + "ogle.cloud.aiplatform.v1beta1.MetadataSc" + + "hema.MetadataSchemaType\0224\n\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\013description\030\006 \001(\t\"s\n\022MetadataSchemaType" + + "\022$\n METADATA_SCHEMA_TYPE_UNSPECIFIED\020\000\022\021" + + "\n\rARTIFACT_TYPE\020\001\022\022\n\016EXECUTION_TYPE\020\002\022\020\n" + + "\014CONTEXT_TYPE\020\003:\231\001\352A\225\001\n(aiplatform.googl" + + "eapis.com/MetadataSchema\022iprojects/{proj" + + "ect}/locations/{location}/metadataStores" + + "/{metadata_store}/metadataSchemas/{metad" + + "ata_schema}B\207\001\n#com.google.cloud.aiplatf" + + "orm.v1beta1B\023MetadataSchemaProtoP\001ZIgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "aiplatform/v1beta1;aiplatformb\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.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_MetadataSchema_descriptor, + new java.lang.String[] { + "Name", "SchemaVersion", "Schema", "SchemaType", "CreateTime", "Description", + }); + 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.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 new file mode 100644 index 000000000..04f0b3244 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java @@ -0,0 +1,808 @@ +/* + * 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 final class MetadataServiceProto { + private MetadataServiceProto() {} + + 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_v1beta1_CreateMetadataStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_CreateContextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_AddContextArtifactsAndExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_AddExecutionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/aiplatform/v1beta1/metada" + + "ta_service.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032.google/cloud/aiplatform/v1beta1/ar" + + "tifact.proto\032-google/cloud/aiplatform/v1" + + "beta1/context.proto\032+google/cloud/aiplat" + + "form/v1beta1/event.proto\032/google/cloud/a" + + "iplatform/v1beta1/execution.proto\0326googl" + + "e/cloud/aiplatform/v1beta1/lineage_subgr" + + "aph.proto\0325google/cloud/aiplatform/v1bet" + + "a1/metadata_schema.proto\0324google/cloud/a" + + "iplatform/v1beta1/metadata_store.proto\032/" + + "google/cloud/aiplatform/v1beta1/operatio" + + "n.proto\032#google/longrunning/operations.p" + + "roto\032 google/protobuf/field_mask.proto\"\277" + + "\001\n\032CreateMetadataStoreRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022K\n\016metadata_store\030\002 \001(\0132..googl" + + "e.cloud.aiplatform.v1beta1.MetadataStore" + + "B\003\340A\002\022\031\n\021metadata_store_id\030\003 \001(\t\"{\n$Crea" + + "teMetadataStoreOperationMetadata\022S\n\020gene" + + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" + + "form.v1beta1.GenericOperationMetadata\"X\n" + + "\027GetMetadataStoreRequest\022=\n\004name\030\001 \001(\tB/" + + "\340A\002\372A)\n\'aiplatform.googleapis.com/Metada" + + "taStore\"}\n\031ListMetadataStoresRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"~\n\032ListMetadataStoresResp" + + "onse\022G\n\017metadata_stores\030\001 \003(\0132..google.c" + + "loud.aiplatform.v1beta1.MetadataStore\022\027\n" + + "\017next_page_token\030\002 \001(\t\"j\n\032DeleteMetadata" + + "StoreRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'aipl" + + "atform.googleapis.com/MetadataStore\022\r\n\005f" + + "orce\030\002 \001(\010\"{\n$DeleteMetadataStoreOperati" + + "onMetadata\022S\n\020generic_metadata\030\001 \001(\01329.g" + + "oogle.cloud.aiplatform.v1beta1.GenericOp" + + "erationMetadata\"\257\001\n\025CreateArtifactReques" + + "t\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform.go" + + "ogleapis.com/MetadataStore\022@\n\010artifact\030\002" + + " \001(\0132).google.cloud.aiplatform.v1beta1.A" + + "rtifactB\003\340A\002\022\023\n\013artifact_id\030\003 \001(\t\"N\n\022Get" + + "ArtifactRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"a" + + "iplatform.googleapis.com/Artifact\"\211\001\n\024Li" + + "stArtifactsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" + + "A$\022\"aiplatform.googleapis.com/Artifact\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\"n\n\025ListArtifactsResponse\022<" + + "\n\tartifacts\030\001 \003(\0132).google.cloud.aiplatf" + + "orm.v1beta1.Artifact\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\246\001\n\025UpdateArtifactRequest\022@\n\010artif" + + "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" + + "\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." + + "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" + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MetadataProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreRequest_descriptor, + new java.lang.String[] { + "Parent", "MetadataStore", "MetadataStoreId", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataStoreOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataStoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataStoresResponse_descriptor, + new java.lang.String[] { + "MetadataStores", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteMetadataStoreOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateArtifactRequest_descriptor, + new java.lang.String[] { + "Parent", "Artifact", "ArtifactId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetArtifactRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListArtifactsResponse_descriptor, + new java.lang.String[] { + "Artifacts", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_descriptor, + new java.lang.String[] { + "Artifact", "UpdateMask", "AllowMissing", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor, + new java.lang.String[] { + "Parent", "Context", "ContextId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor, + new java.lang.String[] { + "Contexts", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor, + new java.lang.String[] { + "Context", "UpdateMask", "AllowMissing", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + 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", + }); + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_descriptor, + new java.lang.String[] { + "Context", "Artifacts", "Executions", + }); + internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + 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); + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_descriptor, + new java.lang.String[] { + "Context", "ChildContexts", + }); + internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + 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); + internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_descriptor, + new java.lang.String[] { + "Context", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor, + new java.lang.String[] { + "Parent", "Execution", "ExecutionId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor, + new java.lang.String[] { + "Executions", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + 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_AddExecutionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_descriptor, + new java.lang.String[] { + "Execution", "Events", + }); + internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + 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); + internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_descriptor, + new java.lang.String[] { + "Execution", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "MetadataSchema", "MetadataSchemaId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor, + new java.lang.String[] { + "MetadataSchemas", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor, + new java.lang.String[] { + "Artifact", "MaxHops", "Filter", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ArtifactProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EventProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.LineageSubgraphProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MetadataSchemaProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MetadataProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java new file mode 100644 index 000000000..f819e50f5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java @@ -0,0 +1,2583 @@ +/* + * 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_store.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instance of a metadata store. Contains a set of metadata that can be
+ * queried.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataStore} + */ +public final class MetadataStore extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetadataStore) + MetadataStoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetadataStore.newBuilder() to construct. + private MetadataStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetadataStore() { + name_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetadataStore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetadataStore( + 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 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 (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 42: + { + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder subBuilder = null; + if (encryptionSpec_ != null) { + subBuilder = encryptionSpec_.toBuilder(); + } + encryptionSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptionSpec_); + encryptionSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 58: + { + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder + subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = 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.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataStore.class, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder.class); + } + + public interface MetadataStoreStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The disk utilization of the MetadataStore in bytes.
+     * 
+ * + * int64 disk_utilization_bytes = 1; + * + * @return The diskUtilizationBytes. + */ + long getDiskUtilizationBytes(); + } + /** + * + * + *
+   * Represents state information for a MetadataStore.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} + */ + public static final class MetadataStoreState extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + MetadataStoreStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetadataStoreState.newBuilder() to construct. + private MetadataStoreState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetadataStoreState() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetadataStoreState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetadataStoreState( + 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: + { + diskUtilizationBytes_ = 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.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.class, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder.class); + } + + public static final int DISK_UTILIZATION_BYTES_FIELD_NUMBER = 1; + private long diskUtilizationBytes_; + /** + * + * + *
+     * The disk utilization of the MetadataStore in bytes.
+     * 
+ * + * int64 disk_utilization_bytes = 1; + * + * @return The diskUtilizationBytes. + */ + @java.lang.Override + public long getDiskUtilizationBytes() { + return diskUtilizationBytes_; + } + + 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 (diskUtilizationBytes_ != 0L) { + output.writeInt64(1, diskUtilizationBytes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (diskUtilizationBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, diskUtilizationBytes_); + } + 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.MetadataStore.MetadataStoreState)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState other = + (com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) obj; + + if (getDiskUtilizationBytes() != other.getDiskUtilizationBytes()) 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) + DISK_UTILIZATION_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskUtilizationBytes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + 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.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState 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.MetadataStore.MetadataStoreState 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; + } + /** + * + * + *
+     * Represents state information for a MetadataStore.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.class, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.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(); + diskUtilizationBytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_MetadataStoreState_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState build() { + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState result = + new com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(this); + result.diskUtilizationBytes_ = diskUtilizationBytes_; + 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.MetadataStore.MetadataStoreState) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState other) { + if (other + == com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + .getDefaultInstance()) return this; + if (other.getDiskUtilizationBytes() != 0L) { + setDiskUtilizationBytes(other.getDiskUtilizationBytes()); + } + 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.MetadataStore.MetadataStoreState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long diskUtilizationBytes_; + /** + * + * + *
+       * The disk utilization of the MetadataStore in bytes.
+       * 
+ * + * int64 disk_utilization_bytes = 1; + * + * @return The diskUtilizationBytes. + */ + @java.lang.Override + public long getDiskUtilizationBytes() { + return diskUtilizationBytes_; + } + /** + * + * + *
+       * The disk utilization of the MetadataStore in bytes.
+       * 
+ * + * int64 disk_utilization_bytes = 1; + * + * @param value The diskUtilizationBytes to set. + * @return This builder for chaining. + */ + public Builder setDiskUtilizationBytes(long value) { + + diskUtilizationBytes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The disk utilization of the MetadataStore in bytes.
+       * 
+ * + * int64 disk_utilization_bytes = 1; + * + * @return This builder for chaining. + */ + public Builder clearDiskUtilizationBytes() { + + diskUtilizationBytes_ = 0L; + 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.MetadataStore.MetadataStoreState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + private static final com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataStoreState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetadataStoreState(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.MetadataStore.MetadataStoreState + 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 MetadataStore instance.
+   * 
+ * + * 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 MetadataStore instance.
+   * 
+ * + * 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was created.
+   * 
+ * + * .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. Timestamp when this MetadataStore was created.
+   * 
+ * + * .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. Timestamp when this MetadataStore was created.
+   * 
+ * + * .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 UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return encryptionSpec_ != null; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return getEncryptionSpec(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of the MetadataStore.
+   * 
+ * + * string description = 6; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of the MetadataStore.
+   * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state_; + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return state_ != null; + } + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState getState() { + return state_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.getDefaultInstance() + : state_; + } + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder + getStateOrBuilder() { + return getState(); + } + + 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 (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (encryptionSpec_ != null) { + output.writeMessage(5, getEncryptionSpec()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + if (state_ != null) { + output.writeMessage(7, getState()); + } + 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 (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (encryptionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionSpec()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + if (state_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getState()); + } + 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.MetadataStore)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetadataStore other = + (com.google.cloud.aiplatform.v1beta1.MetadataStore) obj; + + if (!getName().equals(other.getName())) 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 (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (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 (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore 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.MetadataStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore 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.MetadataStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore 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.MetadataStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore 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.MetadataStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore 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.MetadataStore 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.MetadataStore 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.MetadataStore 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 metadata store. Contains a set of metadata that can be
+   * queried.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetadataStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetadataStore) + com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetadataStore.class, + com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetadataStore.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_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + description_ = ""; + + if (stateBuilder_ == null) { + state_ = null; + } else { + state_ = null; + stateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_MetadataStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore build() { + com.google.cloud.aiplatform.v1beta1.MetadataStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetadataStore buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetadataStore result = + new com.google.cloud.aiplatform.v1beta1.MetadataStore(this); + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (encryptionSpecBuilder_ == null) { + result.encryptionSpec_ = encryptionSpec_; + } else { + result.encryptionSpec_ = encryptionSpecBuilder_.build(); + } + result.description_ = description_; + if (stateBuilder_ == null) { + result.state_ = state_; + } else { + result.state_ = stateBuilder_.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.MetadataStore) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetadataStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataStore other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasState()) { + mergeState(other.getState()); + } + 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.MetadataStore parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.MetadataStore) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the MetadataStore instance.
+     * 
+ * + * 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 MetadataStore instance.
+     * 
+ * + * 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 MetadataStore instance.
+     * 
+ * + * 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 MetadataStore instance.
+     * 
+ * + * 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 MetadataStore instance.
+     * 
+ * + * 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 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 MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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. Timestamp when this MetadataStore was created.
+     * 
+ * + * + * .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 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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MetadataStore was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.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 Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + onChanged(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (encryptionSpec_ != null) { + encryptionSpec_ = + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSpec_ = value; + } + onChanged(); + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public Builder clearEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + onChanged(); + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + + onChanged(); + return getEncryptionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder + getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Metadata Store. If set, this
+     * Metadata Store and all sub-resources of this Metadata Store are secured
+     * using this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Description of the MetadataStore.
+     * 
+ * + * string description = 6; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of the MetadataStore.
+     * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of the MetadataStore.
+     * 
+ * + * string description = 6; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the MetadataStore.
+     * 
+ * + * string description = 6; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of the MetadataStore.
+     * 
+ * + * string description = 6; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder> + stateBuilder_; + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return stateBuilder_ != null || state_ != null; + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + .getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + onChanged(); + } else { + stateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder + builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + onChanged(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState value) { + if (stateBuilder_ == null) { + if (state_ != null) { + state_ = + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.newBuilder( + state_) + .mergeFrom(value) + .buildPartial(); + } else { + state_ = value; + } + onChanged(); + } else { + stateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + if (stateBuilder_ == null) { + state_ = null; + onChanged(); + } else { + state_ = null; + stateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder + getStateBuilder() { + + onChanged(); + return getStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder + getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + .getDefaultInstance() + : state_; + } + } + /** + * + * + *
+     * Output only. State information of the MetadataStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder> + getStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder, + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + @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.MetadataStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetadataStore) + private static final com.google.cloud.aiplatform.v1beta1.MetadataStore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetadataStore(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetadataStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataStore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetadataStore(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.MetadataStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java new file mode 100644 index 000000000..4ddf95d4d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java @@ -0,0 +1,227 @@ +/* + * 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 MetadataStoreName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_METADATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/metadataStores/{metadata_store}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String metadataStore; + + @Deprecated + protected MetadataStoreName() { + project = null; + location = null; + metadataStore = null; + } + + private MetadataStoreName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + metadataStore = Preconditions.checkNotNull(builder.getMetadataStore()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MetadataStoreName of(String project, String location, String metadataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .build(); + } + + public static String format(String project, String location, String metadataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMetadataStore(metadataStore) + .build() + .toString(); + } + + public static MetadataStoreName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_METADATA_STORE.validatedMatch( + formattedString, "MetadataStoreName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("metadata_store")); + } + + 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 (MetadataStoreName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_METADATA_STORE.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 (metadataStore != null) { + fieldMapBuilder.put("metadata_store", metadataStore); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_METADATA_STORE.instantiate( + "project", project, "location", location, "metadata_store", metadataStore); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + MetadataStoreName that = ((MetadataStoreName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.metadataStore, that.metadataStore); + } + 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(metadataStore); + return h; + } + + /** Builder for projects/{project}/locations/{location}/metadataStores/{metadata_store}. */ + public static class Builder { + private String project; + private String location; + private String metadataStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMetadataStore() { + return metadataStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMetadataStore(String metadataStore) { + this.metadataStore = metadataStore; + return this; + } + + private Builder(MetadataStoreName metadataStoreName) { + project = metadataStoreName.project; + location = metadataStoreName.location; + metadataStore = metadataStoreName.metadataStore; + } + + public MetadataStoreName build() { + return new MetadataStoreName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreOrBuilder.java new file mode 100644 index 000000000..845074189 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreOrBuilder.java @@ -0,0 +1,233 @@ +/* + * 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_store.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface MetadataStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetadataStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the MetadataStore instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the MetadataStore instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this MetadataStore was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a Metadata Store. If set, this
+   * Metadata Store and all sub-resources of this Metadata Store are secured
+   * using this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Description of the MetadataStore.
+   * 
+ * + * string description = 6; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of the MetadataStore.
+   * 
+ * + * string description = 6; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState getState(); + /** + * + * + *
+   * Output only. State information of the MetadataStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder getStateOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java index b11e96b08..12dd51a1b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java @@ -5823,8 +5823,9 @@ public boolean hasDataLabelingDataset() { * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -5841,8 +5842,9 @@ public boolean hasLastMigrateTime() { * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -5861,8 +5863,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -7419,8 +7422,9 @@ public Builder clearDataLabelingDataset() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7436,8 +7440,9 @@ public boolean hasLastMigrateTime() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7459,8 +7464,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7484,8 +7490,9 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7506,8 +7513,9 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderF * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7535,8 +7543,9 @@ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7558,8 +7567,9 @@ public Builder clearLastMigrateTime() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7575,8 +7585,9 @@ public com.google.protobuf.Timestamp.Builder getLastMigrateTimeBuilder() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * @@ -7596,8 +7607,9 @@ public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { * * *
-     * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-     * Will not be set if there's no migrate attempt on this MigratableResource.
+     * Output only. Timestamp when the last migration attempt on this MigratableResource
+     * started. Will not be set if there's no migration attempt on this
+     * MigratableResource.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceOrBuilder.java index 2de47aa39..16359b4db 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceOrBuilder.java @@ -197,8 +197,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -212,8 +213,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * @@ -227,8 +229,9 @@ public interface MigratableResourceOrBuilder * * *
-   * Output only. Timestamp when last migrate attempt on this MigratableResource started.
-   * Will not be set if there's no migrate attempt on this MigratableResource.
+   * Output only. Timestamp when the last migration attempt on this MigratableResource
+   * started. Will not be set if there's no migration attempt on this
+   * MigratableResource.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java index 505cb3471..f18040589 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java @@ -23,7 +23,7 @@ * *
  * Config of migrating one resource from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.MigrateResourceRequest} @@ -288,7 +288,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -301,7 +301,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -315,7 +315,7 @@ public interface MigrateMlEngineModelVersionConfigOrBuilder * * *
-   * Config for migrating version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating version in ml.googleapis.com to Vertex AI's Model.
    * 
* * Protobuf type {@code @@ -547,7 +547,7 @@ public com.google.protobuf.ByteString getModelVersionBytes() { * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -571,7 +571,7 @@ public java.lang.String getModelDisplayName() { * * *
-     * Required. Display name of the model in AI Platform.
+     * Required. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -800,7 +800,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating version in ml.googleapis.com to Vertex AI's Model.
      * 
* * Protobuf type {@code @@ -1262,7 +1262,7 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1285,7 +1285,7 @@ public java.lang.String getModelDisplayName() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1308,7 +1308,7 @@ public com.google.protobuf.ByteString getModelDisplayNameBytes() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1330,7 +1330,7 @@ public Builder setModelDisplayName(java.lang.String value) { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1348,7 +1348,7 @@ public Builder clearModelDisplayName() { * * *
-       * Required. Display name of the model in AI Platform.
+       * Required. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -1470,7 +1470,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1483,7 +1483,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1497,7 +1497,7 @@ public interface MigrateAutomlModelConfigOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's Model.
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's Model.
    * 
* * Protobuf type {@code @@ -1660,7 +1660,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1684,7 +1684,7 @@ public java.lang.String getModelDisplayName() { * * *
-     * Optional. Display name of the model in AI Platform.
+     * Optional. Display name of the model in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -1900,7 +1900,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's Model.
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's Model.
      * 
* * Protobuf type {@code @@ -2216,7 +2216,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2239,7 +2239,7 @@ public java.lang.String getModelDisplayName() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2262,7 +2262,7 @@ public com.google.protobuf.ByteString getModelDisplayNameBytes() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2284,7 +2284,7 @@ public Builder setModelDisplayName(java.lang.String value) { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2302,7 +2302,7 @@ public Builder clearModelDisplayName() { * * *
-       * Optional. Display name of the model in AI Platform.
+       * Optional. Display name of the model in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -2422,7 +2422,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2435,7 +2435,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2449,7 +2449,7 @@ public interface MigrateAutomlDatasetConfigOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -2614,7 +2614,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2638,7 +2638,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-     * Required. Display name of the Dataset in AI Platform.
+     * Required. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -2855,7 +2855,7 @@ protected Builder newBuilderForType( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -3175,7 +3175,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3198,7 +3198,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3221,7 +3221,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3243,7 +3243,7 @@ public Builder setDatasetDisplayName(java.lang.String value) { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3261,7 +3261,7 @@ public Builder clearDatasetDisplayName() { * * *
-       * Required. Display name of the Dataset in AI Platform.
+       * Required. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -3382,7 +3382,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -3395,7 +3395,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -3410,7 +3410,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3427,7 +3427,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3443,7 +3443,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3457,7 +3457,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3476,7 +3476,7 @@ public interface MigrateDataLabelingDatasetConfigOrBuilder * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -3662,7 +3662,7 @@ public interface MigrateDataLabelingAnnotatedDatasetConfigOrBuilder * *
      * Config for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery.
+     * Vertex AI's SavedQuery.
      * 
* * Protobuf type {@code @@ -4011,7 +4011,7 @@ protected Builder newBuilderForType( * *
        * Config for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery.
+       * Vertex AI's SavedQuery.
        * 
* * Protobuf type {@code @@ -4456,7 +4456,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -4480,7 +4480,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-     * Optional. Display name of the Dataset in AI Platform.
+     * Optional. Display name of the Dataset in Vertex AI.
      * System will pick a display name if unspecified.
      * 
* @@ -4511,7 +4511,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4531,7 +4531,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4553,7 +4553,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4570,7 +4570,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -4589,7 +4589,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
      * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-     * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+     * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
      * to the datalabeling Dataset.
      * 
* @@ -5196,7 +5196,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5219,7 +5219,7 @@ public java.lang.String getDatasetDisplayName() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5242,7 +5242,7 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5264,7 +5264,7 @@ public Builder setDatasetDisplayName(java.lang.String value) { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5282,7 +5282,7 @@ public Builder clearDatasetDisplayName() { * * *
-       * Optional. Display name of the Dataset in AI Platform.
+       * Optional. Display name of the Dataset in Vertex AI.
        * System will pick a display name if unspecified.
        * 
* @@ -5334,7 +5334,7 @@ private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5358,7 +5358,7 @@ private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5378,7 +5378,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5400,7 +5400,7 @@ public int getMigrateDataLabelingAnnotatedDatasetConfigsCount() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5430,7 +5430,7 @@ public Builder setMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5459,7 +5459,7 @@ public Builder setMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5488,7 +5488,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5518,7 +5518,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5545,7 +5545,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5574,7 +5574,7 @@ public Builder addMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5604,7 +5604,7 @@ public Builder addAllMigrateDataLabelingAnnotatedDatasetConfigs( * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5627,7 +5627,7 @@ public Builder clearMigrateDataLabelingAnnotatedDatasetConfigs() { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5650,7 +5650,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5668,7 +5668,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5690,7 +5690,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5716,7 +5716,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5738,7 +5738,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5761,7 +5761,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { * *
        * Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to
-       * AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong
+       * Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong
        * to the datalabeling Dataset.
        * 
* @@ -5925,7 +5925,7 @@ public RequestCase getRequestCase() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5942,7 +5942,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5967,7 +5967,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -5992,7 +5992,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -6010,7 +6010,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -6034,7 +6034,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -6059,7 +6059,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6077,7 +6077,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6101,7 +6101,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -6127,7 +6127,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6145,7 +6145,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6170,7 +6170,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -6444,7 +6444,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Config of migrating one resource from automl.googleapis.com,
-   * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+   * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.MigrateResourceRequest} @@ -6675,7 +6675,7 @@ public Builder clearRequest() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6692,7 +6692,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6725,7 +6725,7 @@ public boolean hasMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6751,7 +6751,7 @@ public Builder setMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6775,7 +6775,7 @@ public Builder setMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6815,7 +6815,7 @@ public Builder mergeMigrateMlEngineModelVersionConfig( * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6842,7 +6842,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6858,7 +6858,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6885,7 +6885,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+     * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
      * 
* * @@ -6938,7 +6938,7 @@ public Builder clearMigrateMlEngineModelVersionConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6956,7 +6956,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -6989,7 +6989,7 @@ public boolean hasMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7015,7 +7015,7 @@ public Builder setMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7039,7 +7039,7 @@ public Builder setMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7079,7 +7079,7 @@ public Builder mergeMigrateAutomlModelConfig( * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7107,7 +7107,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7124,7 +7124,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7152,7 +7152,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Model in automl.googleapis.com to AI Platform's
+     * Config for migrating Model in automl.googleapis.com to Vertex AI's
      * Model.
      * 
* @@ -7204,7 +7204,7 @@ public Builder clearMigrateAutomlModelConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7222,7 +7222,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7255,7 +7255,7 @@ public boolean hasMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7282,7 +7282,7 @@ public Builder setMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7307,7 +7307,7 @@ public Builder setMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7348,7 +7348,7 @@ public Builder mergeMigrateAutomlDatasetConfig( * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7376,7 +7376,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7393,7 +7393,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7421,7 +7421,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * * *
-     * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+     * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
      * Dataset.
      * 
* @@ -7476,7 +7476,7 @@ public Builder clearMigrateAutomlDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7494,7 +7494,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7528,7 +7528,7 @@ public boolean hasMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7555,7 +7555,7 @@ public Builder setMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7580,7 +7580,7 @@ public Builder setMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7621,7 +7621,7 @@ public Builder mergeMigrateDataLabelingDatasetConfig( * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7649,7 +7649,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7666,7 +7666,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * @@ -7694,7 +7694,7 @@ public Builder clearMigrateDataLabelingDatasetConfig() { * *
      * Config for migrating Dataset in datalabeling.googleapis.com to
-     * AI Platform's Dataset.
+     * Vertex AI's Dataset.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequestOrBuilder.java index 848ce3e12..89aeaced4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -41,7 +41,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -56,7 +56,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Version in ml.googleapis.com to AI Platform's Model.
+   * Config for migrating Version in ml.googleapis.com to Vertex AI's Model.
    * 
* * @@ -71,7 +71,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -86,7 +86,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -102,7 +102,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Model in automl.googleapis.com to AI Platform's
+   * Config for migrating Model in automl.googleapis.com to Vertex AI's
    * Model.
    * 
* @@ -117,7 +117,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -132,7 +132,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -148,7 +148,7 @@ public interface MigrateResourceRequestOrBuilder * * *
-   * Config for migrating Dataset in automl.googleapis.com to AI Platform's
+   * Config for migrating Dataset in automl.googleapis.com to Vertex AI's
    * Dataset.
    * 
* @@ -164,7 +164,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -179,7 +179,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * @@ -195,7 +195,7 @@ public interface MigrateResourceRequestOrBuilder * *
    * Config for migrating Dataset in datalabeling.googleapis.com to
-   * AI Platform's Dataset.
+   * Vertex AI's Dataset.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java index 3a5a03820..ed313855f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java @@ -181,6 +181,20 @@ public MigratedResourceCase getMigratedResourceCase() { } public static final int DATASET_FIELD_NUMBER = 1; + /** + * + * + *
+   * Migrated Dataset's resource name.
+   * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return migratedResourceCase_ == 1; + } /** * * @@ -237,6 +251,20 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int MODEL_FIELD_NUMBER = 2; + /** + * + * + *
+   * Migrated Model's resource name.
+   * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return migratedResourceCase_ == 2; + } /** * * @@ -753,6 +781,21 @@ public Builder clearMigratedResource() { return this; } + /** + * + * + *
+     * Migrated Dataset's resource name.
+     * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return migratedResourceCase_ == 1; + } /** * * @@ -872,6 +915,21 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Migrated Model's resource name.
+     * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return migratedResourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponseOrBuilder.java index 82e7eff35..c3e80826c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponseOrBuilder.java @@ -23,6 +23,18 @@ public interface MigrateResourceResponseOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MigrateResourceResponse) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Migrated Dataset's resource name.
+   * 
+ * + * string dataset = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); /** * * @@ -48,6 +60,18 @@ public interface MigrateResourceResponseOrBuilder */ com.google.protobuf.ByteString getDatasetBytes(); + /** + * + * + *
+   * Migrated Model's resource name.
+   * 
+ * + * string model = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index e7fcfc7af..e3a2ca162 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -424,7 +424,7 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * * *
-     * Resources that to large degree are decided by AI Platform, and require
+     * Resources that to large degree are decided by Vertex AI, and require
      * only a modest additional configuration.
      * 
* @@ -459,7 +459,7 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * * *
-     * Resources that to large degree are decided by AI Platform, and require
+     * Resources that to large degree are decided by Vertex AI, and require
      * only a modest additional configuration.
      * 
* @@ -690,7 +690,7 @@ com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent getExpo * * *
-   * Represents a supported by the Model export format.
+   * Represents export format supported by the Model.
    * All formats export to Google Cloud Storage.
    * 
* @@ -1365,7 +1365,7 @@ protected Builder newBuilderForType( * * *
-     * Represents a supported by the Model export format.
+     * Represents export format supported by the Model.
      * All formats export to Google Cloud Storage.
      * 
* @@ -2244,10 +2244,10 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -2276,10 +2276,10 @@ public java.lang.String getMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -2504,7 +2504,7 @@ public com.google.protobuf.ByteString getTrainingPipelineBytes() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -2525,7 +2525,7 @@ public boolean hasContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -2548,7 +2548,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -3136,7 +3136,7 @@ public com.google.protobuf.ByteString getSupportedOutputStorageFormatsBytes(int * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3152,7 +3152,7 @@ public boolean hasCreateTime() { * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3168,7 +3168,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3323,14 +3323,22 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployed * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -3348,14 +3356,22 @@ public boolean hasExplanationSpec() { * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -3375,14 +3391,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -5030,10 +5054,10 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSch * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -5061,10 +5085,10 @@ public java.lang.String getMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -5092,10 +5116,10 @@ public com.google.protobuf.ByteString getMetadataSchemaUriBytes() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -5122,10 +5146,10 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -5148,10 +5172,10 @@ public Builder clearMetadataSchemaUri() { * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -5919,7 +5943,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5939,7 +5963,7 @@ public boolean hasContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5965,7 +5989,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -5993,7 +6017,7 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContain * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -6019,7 +6043,7 @@ public Builder setContainerSpec( * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -6052,7 +6076,7 @@ public Builder mergeContainerSpec( * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -6078,7 +6102,7 @@ public Builder clearContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -6099,7 +6123,7 @@ public Builder clearContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -6124,7 +6148,7 @@ public Builder clearContainerSpec() { * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. *
* @@ -7507,7 +7531,7 @@ public Builder addSupportedOutputStorageFormatsBytes(com.google.protobuf.ByteStr * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7523,7 +7547,7 @@ public boolean hasCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7545,7 +7569,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7569,7 +7593,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7590,7 +7614,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7616,7 +7640,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7638,7 +7662,7 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7654,7 +7678,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -7674,7 +7698,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. Timestamp when this Model was uploaded into AI Platform.
+     * Output only. Timestamp when this Model was uploaded into Vertex AI.
      * 
* * @@ -8328,14 +8352,22 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8352,14 +8384,22 @@ public boolean hasExplanationSpec() { * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8382,14 +8422,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8414,14 +8462,22 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8444,14 +8500,22 @@ public Builder setExplanationSpec( * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8480,14 +8544,22 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8510,14 +8582,22 @@ public Builder clearExplanationSpec() { * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8534,14 +8614,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanatio * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -8563,14 +8651,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanatio * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. *
* * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java index 0f8cd2ff7..21a3012c4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java @@ -22,9 +22,9 @@ * * *
- * Specification of a container for serving predictions. This message is a
- * subset of the Kubernetes Container v1 core
- * [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+ * Specification of a container for serving predictions. Some fields in this
+ * message correspond to fields in the [Kubernetes Container v1 core
+ * specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelContainerSpec} @@ -196,14 +196,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -230,14 +233,17 @@ public java.lang.String getImageUri() { *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -274,17 +280,17 @@ public com.google.protobuf.ByteString getImageUriBytes() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -296,7 +302,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -319,17 +326,17 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -341,7 +348,8 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -364,17 +372,17 @@ public int getCommandCount() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -386,7 +394,8 @@ public int getCommandCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -410,17 +419,17 @@ public java.lang.String getCommand(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -432,7 +441,8 @@ public java.lang.String getCommand(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -458,17 +468,18 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -480,7 +491,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -502,17 +514,18 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -524,7 +537,8 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -546,17 +560,18 @@ public int getArgsCount() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -568,7 +583,8 @@ public int getArgsCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -591,17 +607,18 @@ public java.lang.String getArgs(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -613,7 +630,8 @@ public java.lang.String getArgs(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -653,7 +671,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -690,7 +709,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -728,7 +748,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -765,7 +786,8 @@ public int getEnvCount() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -802,7 +824,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -820,10 +843,11 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -833,9 +857,10 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -850,10 +875,11 @@ public java.util.List getPortsList() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -863,9 +889,10 @@ public java.util.List getPortsList() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -881,10 +908,11 @@ public java.util.List getPortsList() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -894,9 +922,10 @@ public java.util.List getPortsList() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -911,10 +940,11 @@ public int getPortsCount() { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -924,9 +954,10 @@ public int getPortsCount() {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -941,10 +972,11 @@ public com.google.cloud.aiplatform.v1beta1.Port getPorts(int index) { * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -954,9 +986,10 @@ public com.google.cloud.aiplatform.v1beta1.Port getPorts(int index) {
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -974,12 +1007,12 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -990,14 +1023,13 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1020,12 +1052,12 @@ public java.lang.String getPredictRoute() { * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -1036,14 +1068,13 @@ public java.lang.String getPredictRoute() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1069,12 +1100,12 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { * * *
-   * Immutable. HTTP path on the container to send health checkss to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -1084,14 +1115,13 @@ public com.google.protobuf.ByteString getPredictRouteBytes() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1114,12 +1144,12 @@ public java.lang.String getHealthRoute() { * * *
-   * Immutable. HTTP path on the container to send health checkss to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -1129,14 +1159,13 @@ public java.lang.String getHealthRoute() {
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1392,9 +1421,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Specification of a container for serving predictions. This message is a
-   * subset of the Kubernetes Container v1 core
-   * [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * Specification of a container for serving predictions. Some fields in this
+   * message correspond to fields in the [Kubernetes Container v1 core
+   * specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelContainerSpec} @@ -1694,14 +1723,17 @@ public Builder mergeFrom( *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1727,14 +1759,17 @@ public java.lang.String getImageUri() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1760,14 +1795,17 @@ public com.google.protobuf.ByteString getImageUriBytes() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1792,14 +1830,17 @@ public Builder setImageUri(java.lang.String value) { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1820,14 +1861,17 @@ public Builder clearImageUri() { *
      * Required. Immutable. URI of the Docker image to be used as the custom container for serving
      * predictions. This URI must identify an image in Artifact Registry or
-     * Container Registry. Learn more about the container publishing
-     * requirements, including permissions requirements for the AI Platform
-     * Service Agent,
-     * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+     * Container Registry. Learn more about the [container publishing
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+     * including permissions requirements for the AI Platform Service Agent.
      * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
      * internally, and this original path is afterwards not used.
      * To learn about the requirements for the Docker image itself, see
-     * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+     * [Custom container
+     * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+     * You can use the URI to one of Vertex AI's [pre-built container images for
+     * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+     * in this field.
      * 
* * @@ -1870,17 +1914,17 @@ private void ensureCommandIsMutable() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1892,7 +1936,8 @@ private void ensureCommandIsMutable() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1915,17 +1960,17 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1937,7 +1982,8 @@ public com.google.protobuf.ProtocolStringList getCommandList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1960,17 +2006,17 @@ public int getCommandCount() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -1982,7 +2028,8 @@ public int getCommandCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2006,17 +2053,17 @@ public java.lang.String getCommand(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2028,7 +2075,8 @@ public java.lang.String getCommand(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2052,17 +2100,17 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2074,7 +2122,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2105,17 +2154,17 @@ public Builder setCommand(int index, java.lang.String value) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2127,7 +2176,8 @@ public Builder setCommand(int index, java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2157,17 +2207,17 @@ public Builder addCommand(java.lang.String value) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2179,7 +2229,8 @@ public Builder addCommand(java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2206,17 +2257,17 @@ public Builder addAllCommand(java.lang.Iterable values) { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2228,7 +2279,8 @@ public Builder addAllCommand(java.lang.Iterable values) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2254,17 +2306,17 @@ public Builder clearCommand() { * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2276,7 +2328,8 @@ public Builder clearCommand() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2316,17 +2369,18 @@ private void ensureArgsIsMutable() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2338,7 +2392,8 @@ private void ensureArgsIsMutable() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2360,17 +2415,18 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2382,7 +2438,8 @@ public com.google.protobuf.ProtocolStringList getArgsList() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2404,17 +2461,18 @@ public int getArgsCount() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2426,7 +2484,8 @@ public int getArgsCount() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2449,17 +2508,18 @@ public java.lang.String getArgs(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2471,7 +2531,8 @@ public java.lang.String getArgs(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2494,17 +2555,18 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2516,7 +2578,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2546,17 +2609,18 @@ public Builder setArgs(int index, java.lang.String value) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2568,7 +2632,8 @@ public Builder setArgs(int index, java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2597,17 +2662,18 @@ public Builder addArgs(java.lang.String value) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2619,7 +2685,8 @@ public Builder addArgs(java.lang.String value) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2645,17 +2712,18 @@ public Builder addAllArgs(java.lang.Iterable values) { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2667,7 +2735,8 @@ public Builder addAllArgs(java.lang.Iterable values) { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2692,17 +2761,18 @@ public Builder clearArgs() { * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -2714,7 +2784,8 @@ public Builder clearArgs() { * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2775,7 +2846,8 @@ private void ensureEnvIsMutable() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -2815,7 +2887,8 @@ public java.util.List getEnvList() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -2855,7 +2928,8 @@ public int getEnvCount() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -2895,7 +2969,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -2941,7 +3016,8 @@ public Builder setEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar valu * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -2985,7 +3061,8 @@ public Builder setEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -3031,7 +3108,8 @@ public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar value) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -3077,7 +3155,8 @@ public Builder addEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar valu * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -3120,7 +3199,8 @@ public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -3164,7 +3244,8 @@ public Builder addEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). *
* * @@ -3208,7 +3289,8 @@ public Builder addAllEnv( * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3251,7 +3333,8 @@ public Builder clearEnv() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3294,7 +3377,8 @@ public Builder removeEnv(int index) { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3330,7 +3414,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder getEnvBuilder(int inde * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3370,7 +3455,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3411,7 +3497,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3448,7 +3535,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder() { * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3485,7 +3573,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder(int inde * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -3533,10 +3622,11 @@ private void ensurePortsIsMutable() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3546,9 +3636,10 @@ private void ensurePortsIsMutable() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3566,10 +3657,11 @@ public java.util.List getPortsList() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3579,9 +3671,10 @@ public java.util.List getPortsList() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3599,10 +3692,11 @@ public int getPortsCount() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3612,9 +3706,10 @@ public int getPortsCount() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3632,10 +3727,11 @@ public com.google.cloud.aiplatform.v1beta1.Port getPorts(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3645,9 +3741,10 @@ public com.google.cloud.aiplatform.v1beta1.Port getPorts(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3671,10 +3768,11 @@ public Builder setPorts(int index, com.google.cloud.aiplatform.v1beta1.Port valu * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3684,9 +3782,10 @@ public Builder setPorts(int index, com.google.cloud.aiplatform.v1beta1.Port valu
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3708,10 +3807,11 @@ public Builder setPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3721,9 +3821,10 @@ public Builder setPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3747,10 +3848,11 @@ public Builder addPorts(com.google.cloud.aiplatform.v1beta1.Port value) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3760,9 +3862,10 @@ public Builder addPorts(com.google.cloud.aiplatform.v1beta1.Port value) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3786,10 +3889,11 @@ public Builder addPorts(int index, com.google.cloud.aiplatform.v1beta1.Port valu * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3799,9 +3903,10 @@ public Builder addPorts(int index, com.google.cloud.aiplatform.v1beta1.Port valu
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3822,10 +3927,11 @@ public Builder addPorts(com.google.cloud.aiplatform.v1beta1.Port.Builder builder * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3835,9 +3941,10 @@ public Builder addPorts(com.google.cloud.aiplatform.v1beta1.Port.Builder builder
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3859,10 +3966,11 @@ public Builder addPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3872,9 +3980,10 @@ public Builder addPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3896,10 +4005,11 @@ public Builder addAllPorts( * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3909,9 +4019,10 @@ public Builder addAllPorts(
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3932,10 +4043,11 @@ public Builder clearPorts() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3945,9 +4057,10 @@ public Builder clearPorts() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3968,10 +4081,11 @@ public Builder removePorts(int index) { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -3981,9 +4095,10 @@ public Builder removePorts(int index) {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -3997,10 +4112,11 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder getPortsBuilder(int inde * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4010,9 +4126,10 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder getPortsBuilder(int inde
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4030,10 +4147,11 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4043,9 +4161,10 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4064,10 +4183,11 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4077,9 +4197,10 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4094,10 +4215,11 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder addPortsBuilder() { * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4107,9 +4229,10 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder addPortsBuilder() {
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4124,10 +4247,11 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder addPortsBuilder(int inde * * *
-     * Immutable. List of ports to expose from the container. AI Platform sends any
+     * Immutable. List of ports to expose from the container. Vertex AI sends any
      * prediction requests that it receives to the first port on this list. AI
      * Platform also sends
-     * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+     * [liveness and health
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
      * to this port.
      * If you do not specify this field, it defaults to following value:
      * ```json
@@ -4137,9 +4261,10 @@ public com.google.cloud.aiplatform.v1beta1.Port.Builder addPortsBuilder(int inde
      *   }
      * ]
      * ```
-     * AI Platform does not use ports other than the first one listed. This field
+     * Vertex AI does not use ports other than the first one listed. This field
      * corresponds to the `ports` field of the Kubernetes Containers
-     * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+     * [v1 core
+     * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
      * 
* * @@ -4172,12 +4297,12 @@ public java.util.List getPorts * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4188,14 +4313,13 @@ public java.util.List getPorts
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4217,12 +4341,12 @@ public java.lang.String getPredictRoute() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4233,14 +4357,13 @@ public java.lang.String getPredictRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4262,12 +4385,12 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4278,14 +4401,13 @@ public com.google.protobuf.ByteString getPredictRouteBytes() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4306,12 +4428,12 @@ public Builder setPredictRoute(java.lang.String value) { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4322,14 +4444,13 @@ public Builder setPredictRoute(java.lang.String value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4346,12 +4467,12 @@ public Builder clearPredictRoute() { * * *
-     * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+     * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
      * forwards requests sent using
      * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-     * path on the container's IP address and port. AI Platform then returns the
+     * path on the container's IP address and port. Vertex AI then returns the
      * container's response in the API response.
-     * For example, if you set this field to `/foo`, then when AI Platform
+     * For example, if you set this field to `/foo`, then when Vertex AI
      * receives a prediction request, it forwards the request body in a POST
      * request to the `/foo` path on the port of your container specified by the
      * first value of this `ModelContainerSpec`'s
@@ -4362,14 +4483,13 @@ public Builder clearPredictRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *  environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code
+     *   (Vertex AI makes this value available to your container code
      *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-     *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4393,12 +4513,12 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. HTTP path on the container to send health checkss to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -4408,14 +4528,13 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4437,12 +4556,12 @@ public java.lang.String getHealthRoute() { * * *
-     * Immutable. HTTP path on the container to send health checkss to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -4452,14 +4571,13 @@ public java.lang.String getHealthRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4481,12 +4599,12 @@ public com.google.protobuf.ByteString getHealthRouteBytes() { * * *
-     * Immutable. HTTP path on the container to send health checkss to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -4496,14 +4614,13 @@ public com.google.protobuf.ByteString getHealthRouteBytes() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4524,12 +4641,12 @@ public Builder setHealthRoute(java.lang.String value) { * * *
-     * Immutable. HTTP path on the container to send health checkss to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -4539,14 +4656,13 @@ public Builder setHealthRoute(java.lang.String value) {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4563,12 +4679,12 @@ public Builder clearHealthRoute() { * * *
-     * Immutable. HTTP path on the container to send health checkss to. AI Platform
+     * Immutable. HTTP path on the container to send health checks to. Vertex AI
      * intermittently sends GET requests to this path on the container's IP
      * address and port to check that the container is healthy. Read more about
      * [health
-     * checks](https://tinyurl.com/cust-cont-reqs#checks).
-     * For example, if you set this field to `/bar`, then AI Platform
+     * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+     * For example, if you set this field to `/bar`, then Vertex AI
      * intermittently sends a GET request to the `/bar` path on the port of your
      * container specified by the first value of this `ModelContainerSpec`'s
      * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -4578,14 +4694,13 @@ public Builder clearHealthRoute() {
      * The placeholders in this value are replaced as follows:
      * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
      *   Endpoint.name][] field of the Endpoint where this Model has been
-     *   deployed. (AI Platform makes this value available to your container code
-     *   as the
-     *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   deployed. (Vertex AI makes this value available to your container code
+     *   as the [`AIP_ENDPOINT_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-     *   (AI Platform makes this value available to your container code as the
-     * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-     *   environment variable.)
+     *   (Vertex AI makes this value available to your container code as the
+     *   [`AIP_DEPLOYED_MODEL_ID` environment
+     *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
      * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpecOrBuilder.java index 4a8124685..bff332f42 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpecOrBuilder.java @@ -29,14 +29,17 @@ public interface ModelContainerSpecOrBuilder *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -52,14 +55,17 @@ public interface ModelContainerSpecOrBuilder *
    * Required. Immutable. URI of the Docker image to be used as the custom container for serving
    * predictions. This URI must identify an image in Artifact Registry or
-   * Container Registry. Learn more about the container publishing
-   * requirements, including permissions requirements for the AI Platform
-   * Service Agent,
-   * [here](https://tinyurl.com/cust-cont-reqs#publishing).
+   * Container Registry. Learn more about the [container publishing
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing),
+   * including permissions requirements for the AI Platform Service Agent.
    * The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored
    * internally, and this original path is afterwards not used.
    * To learn about the requirements for the Docker image itself, see
-   * [Custom container requirements](https://tinyurl.com/cust-cont-reqs).
+   * [Custom container
+   * requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#).
+   * You can use the URI to one of Vertex AI's [pre-built container images for
+   * prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers)
+   * in this field.
    * 
* * @@ -83,17 +89,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -105,7 +111,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -126,17 +133,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -148,7 +155,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -169,17 +177,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -191,7 +199,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -213,17 +222,17 @@ public interface ModelContainerSpecOrBuilder * in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the * container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), * if either exists. If this field is not specified and the container does not - * have an `ENTRYPOINT`, then refer to the Docker documentation about how + * have an `ENTRYPOINT`, then refer to the Docker documentation about [how * `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). * If you specify this field, then you can also specify the `args` field to * provide additional arguments for this command. However, if you specify this * field, then the container's `CMD` is ignored. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). + * In this field, you can reference [environment variables set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -235,7 +244,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `command` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string command = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -257,17 +267,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -279,7 +290,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -299,17 +311,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -321,7 +334,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -341,17 +355,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -363,7 +378,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -384,17 +400,18 @@ public interface ModelContainerSpecOrBuilder * If you don't specify this field but do specify the * [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the * `command` field runs without any additional arguments. See the - * [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + * [Kubernetes documentation about how the * `command` and `args` fields interact with a container's `ENTRYPOINT` and - * `CMD`. + * `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). * If you don't specify this field and don't specify the `command` field, * then the container's * [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and * `CMD` determine what runs based on their default behavior. See the Docker - * documentation about how `CMD` and `ENTRYPOINT` - * [interact](https://tinyurl.com/h3kdcgs). - * In this field, you can reference environment variables - * [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + * documentation about [how `CMD` and `ENTRYPOINT` + * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * In this field, you can reference [environment variables + * set by Vertex + * AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) * and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. * You cannot reference environment variables set in the Docker image. In * order for environment variables to be expanded, reference them by using the @@ -406,7 +423,8 @@ public interface ModelContainerSpecOrBuilder * syntax with `$$`; for example: * <code>$$(<var>VARIABLE_NAME</var>)</code> * This field corresponds to the `args` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * repeated string args = 3 [(.google.api.field_behavior) = IMMUTABLE]; @@ -442,7 +460,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -476,7 +495,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -510,7 +530,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -544,7 +565,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -579,7 +601,8 @@ public interface ModelContainerSpecOrBuilder * If you switch the order of the variables in the example, then the expansion * does not occur. * This field corresponds to the `env` field of the Kubernetes Containers - * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + * [v1 core + * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). * * * @@ -592,10 +615,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -605,9 +629,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -619,10 +644,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -632,9 +658,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -646,10 +673,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -659,9 +687,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -673,10 +702,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -686,9 +716,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -701,10 +732,11 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. List of ports to expose from the container. AI Platform sends any
+   * Immutable. List of ports to expose from the container. Vertex AI sends any
    * prediction requests that it receives to the first port on this list. AI
    * Platform also sends
-   * [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health)
+   * [liveness and health
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness)
    * to this port.
    * If you do not specify this field, it defaults to following value:
    * ```json
@@ -714,9 +746,10 @@ public interface ModelContainerSpecOrBuilder
    *   }
    * ]
    * ```
-   * AI Platform does not use ports other than the first one listed. This field
+   * Vertex AI does not use ports other than the first one listed. This field
    * corresponds to the `ports` field of the Kubernetes Containers
-   * [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core).
+   * [v1 core
+   * API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
    * 
* * @@ -729,12 +762,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -745,14 +778,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -764,12 +796,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send prediction requests to. AI Platform
+   * Immutable. HTTP path on the container to send prediction requests to. Vertex AI
    * forwards requests sent using
    * [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this
-   * path on the container's IP address and port. AI Platform then returns the
+   * path on the container's IP address and port. Vertex AI then returns the
    * container's response in the API response.
-   * For example, if you set this field to `/foo`, then when AI Platform
+   * For example, if you set this field to `/foo`, then when Vertex AI
    * receives a prediction request, it forwards the request body in a POST
    * request to the `/foo` path on the port of your container specified by the
    * first value of this `ModelContainerSpec`'s
@@ -780,14 +812,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *  [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *  environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *  variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code
+   *   (Vertex AI makes this value available to your container code
    *   as the [`AIP_DEPLOYED_MODEL_ID` environment
-   *   variable](https://tinyurl.com/cust-cont-reqs#aip-variables).)
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string predict_route = 6 [(.google.api.field_behavior) = IMMUTABLE]; @@ -800,12 +831,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send health checkss to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -815,14 +846,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; @@ -834,12 +864,12 @@ public interface ModelContainerSpecOrBuilder * * *
-   * Immutable. HTTP path on the container to send health checkss to. AI Platform
+   * Immutable. HTTP path on the container to send health checks to. Vertex AI
    * intermittently sends GET requests to this path on the container's IP
    * address and port to check that the container is healthy. Read more about
    * [health
-   * checks](https://tinyurl.com/cust-cont-reqs#checks).
-   * For example, if you set this field to `/bar`, then AI Platform
+   * checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health).
+   * For example, if you set this field to `/bar`, then Vertex AI
    * intermittently sends a GET request to the `/bar` path on the port of your
    * container specified by the first value of this `ModelContainerSpec`'s
    * [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field.
@@ -849,14 +879,13 @@ public interface ModelContainerSpecOrBuilder
    * The placeholders in this value are replaced as follows:
    * * <var>ENDPOINT</var>: The last segment (following `endpoints/`)of the
    *   Endpoint.name][] field of the Endpoint where this Model has been
-   *   deployed. (AI Platform makes this value available to your container code
-   *   as the
-   *   [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   deployed. (Vertex AI makes this value available to your container code
+   *   as the [`AIP_ENDPOINT_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * * <var>DEPLOYED_MODEL</var>: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`.
-   *   (AI Platform makes this value available to your container code as the
-   * [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables)
-   *   environment variable.)
+   *   (Vertex AI makes this value available to your container code as the
+   *   [`AIP_DEPLOYED_MODEL_ID` environment
+   *   variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).)
    * 
* * string health_route = 7 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java new file mode 100644 index 000000000..0e061c89f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java @@ -0,0 +1,1364 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name
+ * as well as some information of the logs stored in this table.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} + */ +public final class ModelDeploymentMonitoringBigQueryTable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + ModelDeploymentMonitoringBigQueryTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelDeploymentMonitoringBigQueryTable.newBuilder() to construct. + private ModelDeploymentMonitoringBigQueryTable( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelDeploymentMonitoringBigQueryTable() { + logSource_ = 0; + logType_ = 0; + bigqueryTablePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelDeploymentMonitoringBigQueryTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelDeploymentMonitoringBigQueryTable( + 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(); + + logSource_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + logType_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + bigqueryTablePath_ = 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.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + .class); + } + + /** + * + * + *
+   * Indicates where does the log come from.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} + */ + public enum LogSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * LOG_SOURCE_UNSPECIFIED = 0; + */ + LOG_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Logs coming from Training dataset.
+     * 
+ * + * TRAINING = 1; + */ + TRAINING(1), + /** + * + * + *
+     * Logs coming from Serving traffic.
+     * 
+ * + * SERVING = 2; + */ + SERVING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * LOG_SOURCE_UNSPECIFIED = 0; + */ + public static final int LOG_SOURCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Logs coming from Training dataset.
+     * 
+ * + * TRAINING = 1; + */ + public static final int TRAINING_VALUE = 1; + /** + * + * + *
+     * Logs coming from Serving traffic.
+     * 
+ * + * SERVING = 2; + */ + public static final int SERVING_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 LogSource 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 LogSource forNumber(int value) { + switch (value) { + case 0: + return LOG_SOURCE_UNSPECIFIED; + case 1: + return TRAINING; + case 2: + return SERVING; + 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 LogSource findValueByNumber(int number) { + return LogSource.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.ModelDeploymentMonitoringBigQueryTable + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LogSource[] VALUES = values(); + + public static LogSource 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 LogSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource) + } + + /** + * + * + *
+   * Indicates what type of traffic does the log belong to.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} + */ + public enum LogType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified type.
+     * 
+ * + * LOG_TYPE_UNSPECIFIED = 0; + */ + LOG_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Predict logs.
+     * 
+ * + * PREDICT = 1; + */ + PREDICT(1), + /** + * + * + *
+     * Explain logs.
+     * 
+ * + * EXPLAIN = 2; + */ + EXPLAIN(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified type.
+     * 
+ * + * LOG_TYPE_UNSPECIFIED = 0; + */ + public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Predict logs.
+     * 
+ * + * PREDICT = 1; + */ + public static final int PREDICT_VALUE = 1; + /** + * + * + *
+     * Explain logs.
+     * 
+ * + * EXPLAIN = 2; + */ + public static final int EXPLAIN_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 LogType 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 LogType forNumber(int value) { + switch (value) { + case 0: + return LOG_TYPE_UNSPECIFIED; + case 1: + return PREDICT; + case 2: + return EXPLAIN; + 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 LogType findValueByNumber(int number) { + return LogType.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.ModelDeploymentMonitoringBigQueryTable + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final LogType[] VALUES = values(); + + public static LogType 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 LogType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType) + } + + public static final int LOG_SOURCE_FIELD_NUMBER = 1; + private int logSource_; + /** + * + * + *
+   * The source of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The enum numeric value on the wire for logSource. + */ + @java.lang.Override + public int getLogSourceValue() { + return logSource_; + } + /** + * + * + *
+   * The source of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The logSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + getLogSource() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .valueOf(logSource_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .UNRECOGNIZED + : result; + } + + public static final int LOG_TYPE_FIELD_NUMBER = 2; + private int logType_; + /** + * + * + *
+   * The type of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The enum numeric value on the wire for logType. + */ + @java.lang.Override + public int getLogTypeValue() { + return logType_; + } + /** + * + * + *
+   * The type of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The logType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + getLogType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType.valueOf( + logType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .UNRECOGNIZED + : result; + } + + public static final int BIGQUERY_TABLE_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object bigqueryTablePath_; + /** + * + * + *
+   * The created BigQuery table to store logs. Customer could do their own query
+   * & analysis. Format:
+   * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+   * 
+ * + * string bigquery_table_path = 3; + * + * @return The bigqueryTablePath. + */ + @java.lang.Override + public java.lang.String getBigqueryTablePath() { + java.lang.Object ref = bigqueryTablePath_; + 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(); + bigqueryTablePath_ = s; + return s; + } + } + /** + * + * + *
+   * The created BigQuery table to store logs. Customer could do their own query
+   * & analysis. Format:
+   * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+   * 
+ * + * string bigquery_table_path = 3; + * + * @return The bytes for bigqueryTablePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBigqueryTablePathBytes() { + java.lang.Object ref = bigqueryTablePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryTablePath_ = 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 (logSource_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .LOG_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, logSource_); + } + if (logType_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .LOG_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, logType_); + } + if (!getBigqueryTablePathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bigqueryTablePath_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (logSource_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .LOG_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, logSource_); + } + if (logType_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .LOG_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, logType_); + } + if (!getBigqueryTablePathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bigqueryTablePath_); + } + 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.ModelDeploymentMonitoringBigQueryTable)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable other = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) obj; + + if (logSource_ != other.logSource_) return false; + if (logType_ != other.logType_) return false; + if (!getBigqueryTablePath().equals(other.getBigqueryTablePath())) 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) + LOG_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + logSource_; + hash = (37 * hash) + LOG_TYPE_FIELD_NUMBER; + hash = (53 * hash) + logType_; + hash = (37 * hash) + BIGQUERY_TABLE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryTablePath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable + 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.ModelDeploymentMonitoringBigQueryTable 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; + } + /** + * + * + *
+   * ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name
+   * as well as some information of the logs stored in this table.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.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(); + logSource_ = 0; + + logType_ = 0; + + bigqueryTablePath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable build() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable result = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(this); + result.logSource_ = logSource_; + result.logType_ = logType_; + result.bigqueryTablePath_ = bigqueryTablePath_; + 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.ModelDeploymentMonitoringBigQueryTable) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + .getDefaultInstance()) return this; + if (other.logSource_ != 0) { + setLogSourceValue(other.getLogSourceValue()); + } + if (other.logType_ != 0) { + setLogTypeValue(other.getLogTypeValue()); + } + if (!other.getBigqueryTablePath().isEmpty()) { + bigqueryTablePath_ = other.bigqueryTablePath_; + 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.ModelDeploymentMonitoringBigQueryTable parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int logSource_ = 0; + /** + * + * + *
+     * The source of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The enum numeric value on the wire for logSource. + */ + @java.lang.Override + public int getLogSourceValue() { + return logSource_; + } + /** + * + * + *
+     * The source of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @param value The enum numeric value on the wire for logSource to set. + * @return This builder for chaining. + */ + public Builder setLogSourceValue(int value) { + + logSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The source of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The logSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + getLogSource() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .valueOf(logSource_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The source of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @param value The logSource to set. + * @return This builder for chaining. + */ + public Builder setLogSource( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + value) { + if (value == null) { + throw new NullPointerException(); + } + + logSource_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The source of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearLogSource() { + + logSource_ = 0; + onChanged(); + return this; + } + + private int logType_ = 0; + /** + * + * + *
+     * The type of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The enum numeric value on the wire for logType. + */ + @java.lang.Override + public int getLogTypeValue() { + return logType_; + } + /** + * + * + *
+     * The type of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @param value The enum numeric value on the wire for logType to set. + * @return This builder for chaining. + */ + public Builder setLogTypeValue(int value) { + + logType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The logType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + getLogType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .valueOf(logType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @param value The logType to set. + * @return This builder for chaining. + */ + public Builder setLogType( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType value) { + if (value == null) { + throw new NullPointerException(); + } + + logType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of log.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearLogType() { + + logType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object bigqueryTablePath_ = ""; + /** + * + * + *
+     * The created BigQuery table to store logs. Customer could do their own query
+     * & analysis. Format:
+     * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+     * 
+ * + * string bigquery_table_path = 3; + * + * @return The bigqueryTablePath. + */ + public java.lang.String getBigqueryTablePath() { + java.lang.Object ref = bigqueryTablePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigqueryTablePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The created BigQuery table to store logs. Customer could do their own query
+     * & analysis. Format:
+     * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+     * 
+ * + * string bigquery_table_path = 3; + * + * @return The bytes for bigqueryTablePath. + */ + public com.google.protobuf.ByteString getBigqueryTablePathBytes() { + java.lang.Object ref = bigqueryTablePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryTablePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The created BigQuery table to store logs. Customer could do their own query
+     * & analysis. Format:
+     * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+     * 
+ * + * string bigquery_table_path = 3; + * + * @param value The bigqueryTablePath to set. + * @return This builder for chaining. + */ + public Builder setBigqueryTablePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bigqueryTablePath_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The created BigQuery table to store logs. Customer could do their own query
+     * & analysis. Format:
+     * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+     * 
+ * + * string bigquery_table_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearBigqueryTablePath() { + + bigqueryTablePath_ = getDefaultInstance().getBigqueryTablePath(); + onChanged(); + return this; + } + /** + * + * + *
+     * The created BigQuery table to store logs. Customer could do their own query
+     * & analysis. Format:
+     * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+     * 
+ * + * string bigquery_table_path = 3; + * + * @param value The bytes for bigqueryTablePath to set. + * @return This builder for chaining. + */ + public Builder setBigqueryTablePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bigqueryTablePath_ = 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.ModelDeploymentMonitoringBigQueryTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + private static final com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelDeploymentMonitoringBigQueryTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelDeploymentMonitoringBigQueryTable(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.ModelDeploymentMonitoringBigQueryTable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTableOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTableOrBuilder.java new file mode 100644 index 000000000..acd04bbb2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTableOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelDeploymentMonitoringBigQueryTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The source of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The enum numeric value on the wire for logSource. + */ + int getLogSourceValue(); + /** + * + * + *
+   * The source of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource log_source = 1; + * + * + * @return The logSource. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + getLogSource(); + + /** + * + * + *
+   * The type of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The enum numeric value on the wire for logType. + */ + int getLogTypeValue(); + /** + * + * + *
+   * The type of log.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType log_type = 2; + * + * + * @return The logType. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType getLogType(); + + /** + * + * + *
+   * The created BigQuery table to store logs. Customer could do their own query
+   * & analysis. Format:
+   * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+   * 
+ * + * string bigquery_table_path = 3; + * + * @return The bigqueryTablePath. + */ + java.lang.String getBigqueryTablePath(); + /** + * + * + *
+   * The created BigQuery table to store logs. Customer could do their own query
+   * & analysis. Format:
+   * `bq://<project_id>.model_deployment_monitoring_<endpoint_id>.<tolower(log_source)>_<tolower(log_type)>`
+   * 
+ * + * string bigquery_table_path = 3; + * + * @return The bytes for bigqueryTablePath. + */ + com.google.protobuf.ByteString getBigqueryTablePathBytes(); +} 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 new file mode 100644 index 000000000..39fc12624 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java @@ -0,0 +1,6484 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents a job that runs periodically to monitor the deployed models in an
+ * endpoint. It will analyze the logged training & prediction data to detect any
+ * abnormal behaviors.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} + */ +public final class ModelDeploymentMonitoringJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + ModelDeploymentMonitoringJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelDeploymentMonitoringJob.newBuilder() to construct. + private ModelDeploymentMonitoringJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelDeploymentMonitoringJob() { + name_ = ""; + displayName_ = ""; + endpoint_ = ""; + state_ = 0; + scheduleState_ = 0; + modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); + predictInstanceSchemaUri_ = ""; + analysisInstanceSchemaUri_ = ""; + bigqueryTables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelDeploymentMonitoringJob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelDeploymentMonitoringJob( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + endpoint_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + scheduleState_ = rawValue; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringObjectiveConfigs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringObjectiveConfig>(); + mutable_bitField0_ |= 0x00000001; + } + modelDeploymentMonitoringObjectiveConfigs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .parser(), + extensionRegistry)); + break; + } + case 58: + { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder + subBuilder = null; + if (modelDeploymentMonitoringScheduleConfig_ != null) { + subBuilder = modelDeploymentMonitoringScheduleConfig_.toBuilder(); + } + modelDeploymentMonitoringScheduleConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelDeploymentMonitoringScheduleConfig_); + modelDeploymentMonitoringScheduleConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder subBuilder = null; + if (loggingSamplingStrategy_ != null) { + subBuilder = loggingSamplingStrategy_.toBuilder(); + } + loggingSamplingStrategy_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loggingSamplingStrategy_); + loggingSamplingStrategy_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + predictInstanceSchemaUri_ = s; + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + bigqueryTables_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringBigQueryTable>(); + mutable_bitField0_ |= 0x00000002; + } + bigqueryTables_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + .parser(), + extensionRegistry)); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 98: + { + 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 106: + { + 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 114: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (nextScheduleTime_ != null) { + subBuilder = nextScheduleTime_.toBuilder(); + } + nextScheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextScheduleTime_); + nextScheduleTime_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder subBuilder = + null; + if (modelMonitoringAlertConfig_ != null) { + subBuilder = modelMonitoringAlertConfig_.toBuilder(); + } + modelMonitoringAlertConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelMonitoringAlertConfig_); + modelMonitoringAlertConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + analysisInstanceSchemaUri_ = s; + break; + } + case 138: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (logTtl_ != null) { + subBuilder = logTtl_.toBuilder(); + } + logTtl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(logTtl_); + logTtl_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (samplePredictInstance_ != null) { + subBuilder = samplePredictInstance_.toBuilder(); + } + samplePredictInstance_ = + input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(samplePredictInstance_); + samplePredictInstance_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder subBuilder = null; + if (statsAnomaliesBaseDirectory_ != null) { + subBuilder = statsAnomaliesBaseDirectory_.toBuilder(); + } + statsAnomaliesBaseDirectory_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(statsAnomaliesBaseDirectory_); + statsAnomaliesBaseDirectory_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringObjectiveConfigs_ = + java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + bigqueryTables_ = java.util.Collections.unmodifiableList(bigqueryTables_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_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.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder.class); + } + + /** + * + * + *
+   * The state to Specify the monitoring pipeline.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} + */ + public enum MonitoringScheduleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0; + */ + MONITORING_SCHEDULE_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The pipeline is picked up and wait to run.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * The pipeline is offline and will be scheduled for next run.
+     * 
+ * + * OFFLINE = 2; + */ + OFFLINE(2), + /** + * + * + *
+     * The pipeline is running.
+     * 
+ * + * RUNNING = 3; + */ + RUNNING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0; + */ + public static final int MONITORING_SCHEDULE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The pipeline is picked up and wait to run.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * The pipeline is offline and will be scheduled for next run.
+     * 
+ * + * OFFLINE = 2; + */ + public static final int OFFLINE_VALUE = 2; + /** + * + * + *
+     * The pipeline is running.
+     * 
+ * + * RUNNING = 3; + */ + public static final int RUNNING_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 MonitoringScheduleState 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 MonitoringScheduleState forNumber(int value) { + switch (value) { + case 0: + return MONITORING_SCHEDULE_STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return OFFLINE; + case 3: + return RUNNING; + 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 MonitoringScheduleState findValueByNumber(int number) { + return MonitoringScheduleState.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.ModelDeploymentMonitoringJob.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MonitoringScheduleState[] VALUES = values(); + + public static MonitoringScheduleState 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 MonitoringScheduleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * 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 a ModelDeploymentMonitoringJob.
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * Display name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * Display name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 ENDPOINT_FIELD_NUMBER = 3; + private volatile java.lang.Object endpoint_; + /** + * + * + *
+   * Required. Endpoint resource name.
+   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Endpoint resource name.
+   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * Output only. The detailed state of the monitoring job.
+   * When the job is still creating, the state will be 'PENDING'.
+   * Once the job is successfully created, the state will be 'RUNNING'.
+   * Pause the job, the state will be 'PAUSED'.
+   * Resume the job, the state will return to 'RUNNING'.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.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 monitoring job.
+   * When the job is still creating, the state will be 'PENDING'.
+   * Once the job is successfully created, the state will be 'RUNNING'.
+   * Pause the job, the state will be 'PAUSED'.
+   * Resume the job, the state will return to 'RUNNING'.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JobState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.JobState result = + com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; + } + + public static final int SCHEDULE_STATE_FIELD_NUMBER = 5; + private int scheduleState_; + /** + * + * + *
+   * Output only. Schedule state when the monitoring job is in Running state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scheduleState. + */ + @java.lang.Override + public int getScheduleStateValue() { + return scheduleState_; + } + /** + * + * + *
+   * Output only. Schedule state when the monitoring job is in Running state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scheduleState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + getScheduleState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .valueOf(scheduleState_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .UNRECOGNIZED + : result; + } + + public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER = 6; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> + modelDeploymentMonitoringObjectiveConfigs_; + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> + getModelDeploymentMonitoringObjectiveConfigsList() { + return modelDeploymentMonitoringObjectiveConfigs_; + } + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder> + getModelDeploymentMonitoringObjectiveConfigsOrBuilderList() { + return modelDeploymentMonitoringObjectiveConfigs_; + } + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getModelDeploymentMonitoringObjectiveConfigsCount() { + return modelDeploymentMonitoringObjectiveConfigs_.size(); + } + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + getModelDeploymentMonitoringObjectiveConfigs(int index) { + return modelDeploymentMonitoringObjectiveConfigs_.get(index); + } + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder + getModelDeploymentMonitoringObjectiveConfigsOrBuilder(int index) { + return modelDeploymentMonitoringObjectiveConfigs_.get(index); + } + + public static final int MODEL_DEPLOYMENT_MONITORING_SCHEDULE_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + modelDeploymentMonitoringScheduleConfig_; + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringScheduleConfig field is set. + */ + @java.lang.Override + public boolean hasModelDeploymentMonitoringScheduleConfig() { + return modelDeploymentMonitoringScheduleConfig_ != null; + } + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringScheduleConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + getModelDeploymentMonitoringScheduleConfig() { + return modelDeploymentMonitoringScheduleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance() + : modelDeploymentMonitoringScheduleConfig_; + } + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder + getModelDeploymentMonitoringScheduleConfigOrBuilder() { + return getModelDeploymentMonitoringScheduleConfig(); + } + + public static final int LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy loggingSamplingStrategy_; + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingSamplingStrategy field is set. + */ + @java.lang.Override + public boolean hasLoggingSamplingStrategy() { + return loggingSamplingStrategy_ != null; + } + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingSamplingStrategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy() { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder() { + return getLoggingSamplingStrategy(); + } + + public static final int MODEL_MONITORING_ALERT_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + modelMonitoringAlertConfig_; + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return Whether the modelMonitoringAlertConfig field is set. + */ + @java.lang.Override + public boolean hasModelMonitoringAlertConfig() { + return modelMonitoringAlertConfig_ != null; + } + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return The modelMonitoringAlertConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + getModelMonitoringAlertConfig() { + return modelMonitoringAlertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : modelMonitoringAlertConfig_; + } + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder + getModelMonitoringAlertConfigOrBuilder() { + return getModelMonitoringAlertConfig(); + } + + public static final int PREDICT_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 9; + private volatile java.lang.Object predictInstanceSchemaUri_; + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance,
+   * which are given to format this Endpoint's prediction (and explanation).
+   * If not set, we will generate predict schema from collected predict
+   * requests.
+   * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The predictInstanceSchemaUri. + */ + @java.lang.Override + public java.lang.String getPredictInstanceSchemaUri() { + java.lang.Object ref = predictInstanceSchemaUri_; + 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(); + predictInstanceSchemaUri_ = s; + return s; + } + } + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance,
+   * which are given to format this Endpoint's prediction (and explanation).
+   * If not set, we will generate predict schema from collected predict
+   * requests.
+   * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The bytes for predictInstanceSchemaUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPredictInstanceSchemaUriBytes() { + java.lang.Object ref = predictInstanceSchemaUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + predictInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_PREDICT_INSTANCE_FIELD_NUMBER = 19; + private com.google.protobuf.Value samplePredictInstance_; + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return Whether the samplePredictInstance field is set. + */ + @java.lang.Override + public boolean hasSamplePredictInstance() { + return samplePredictInstance_ != null; + } + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return The samplePredictInstance. + */ + @java.lang.Override + public com.google.protobuf.Value getSamplePredictInstance() { + return samplePredictInstance_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : samplePredictInstance_; + } + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getSamplePredictInstanceOrBuilder() { + return getSamplePredictInstance(); + } + + public static final int ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 16; + private volatile java.lang.Object analysisInstanceSchemaUri_; + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance that you
+   * want Tensorflow Data Validation (TFDV) to analyze.
+   * If this field is empty, all the feature data types are inferred from
+   * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+   * meaning that TFDV will use the data in the exact format(data type) as
+   * prediction request/response.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The analysisInstanceSchemaUri. + */ + @java.lang.Override + public java.lang.String getAnalysisInstanceSchemaUri() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analysisInstanceSchemaUri_ = s; + return s; + } + } + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance that you
+   * want Tensorflow Data Validation (TFDV) to analyze.
+   * If this field is empty, all the feature data types are inferred from
+   * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+   * meaning that TFDV will use the data in the exact format(data type) as
+   * prediction request/response.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIGQUERY_TABLES_FIELD_NUMBER = 10; + private java.util.List + bigqueryTables_; + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBigqueryTablesList() { + return bigqueryTables_; + } + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder> + getBigqueryTablesOrBuilderList() { + return bigqueryTables_; + } + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBigqueryTablesCount() { + return bigqueryTables_.size(); + } + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + getBigqueryTables(int index) { + return bigqueryTables_.get(index); + } + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder + getBigqueryTablesOrBuilder(int index) { + return bigqueryTables_.get(index); + } + + public static final int LOG_TTL_FIELD_NUMBER = 17; + private com.google.protobuf.Duration logTtl_; + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return Whether the logTtl field is set. + */ + @java.lang.Override + public boolean hasLogTtl() { + return logTtl_ != null; + } + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return The logTtl. + */ + @java.lang.Override + public com.google.protobuf.Duration getLogTtl() { + return logTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : logTtl_; + } + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getLogTtlOrBuilder() { + return getLogTtl(); + } + + 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.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_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
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 CREATE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.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 = 13; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int NEXT_SCHEDULE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp nextScheduleTime_; + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextScheduleTime field is set. + */ + @java.lang.Override + public boolean hasNextScheduleTime() { + return nextScheduleTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextScheduleTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getNextScheduleTime() { + return nextScheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextScheduleTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { + return getNextScheduleTime(); + } + + public static final int STATS_ANOMALIES_BASE_DIRECTORY_FIELD_NUMBER = 20; + private com.google.cloud.aiplatform.v1beta1.GcsDestination statsAnomaliesBaseDirectory_; + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return Whether the statsAnomaliesBaseDirectory field is set. + */ + @java.lang.Override + public boolean hasStatsAnomaliesBaseDirectory() { + return statsAnomaliesBaseDirectory_ != null; + } + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return The statsAnomaliesBaseDirectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestination getStatsAnomaliesBaseDirectory() { + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; + } + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder + getStatsAnomaliesBaseDirectoryOrBuilder() { + return getStatsAnomaliesBaseDirectory(); + } + + 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 (!getEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endpoint_); + } + if (state_ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (scheduleState_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .MONITORING_SCHEDULE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, scheduleState_); + } + for (int i = 0; i < modelDeploymentMonitoringObjectiveConfigs_.size(); i++) { + output.writeMessage(6, modelDeploymentMonitoringObjectiveConfigs_.get(i)); + } + if (modelDeploymentMonitoringScheduleConfig_ != null) { + output.writeMessage(7, getModelDeploymentMonitoringScheduleConfig()); + } + if (loggingSamplingStrategy_ != null) { + output.writeMessage(8, getLoggingSamplingStrategy()); + } + if (!getPredictInstanceSchemaUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, predictInstanceSchemaUri_); + } + for (int i = 0; i < bigqueryTables_.size(); i++) { + output.writeMessage(10, bigqueryTables_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + if (createTime_ != null) { + output.writeMessage(12, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(13, getUpdateTime()); + } + if (nextScheduleTime_ != null) { + output.writeMessage(14, getNextScheduleTime()); + } + if (modelMonitoringAlertConfig_ != null) { + output.writeMessage(15, getModelMonitoringAlertConfig()); + } + if (!getAnalysisInstanceSchemaUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, analysisInstanceSchemaUri_); + } + if (logTtl_ != null) { + output.writeMessage(17, getLogTtl()); + } + if (samplePredictInstance_ != null) { + output.writeMessage(19, getSamplePredictInstance()); + } + if (statsAnomaliesBaseDirectory_ != null) { + output.writeMessage(20, getStatsAnomaliesBaseDirectory()); + } + 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 (!getEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endpoint_); + } + if (state_ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (scheduleState_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .MONITORING_SCHEDULE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, scheduleState_); + } + for (int i = 0; i < modelDeploymentMonitoringObjectiveConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, modelDeploymentMonitoringObjectiveConfigs_.get(i)); + } + if (modelDeploymentMonitoringScheduleConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getModelDeploymentMonitoringScheduleConfig()); + } + if (loggingSamplingStrategy_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingSamplingStrategy()); + } + if (!getPredictInstanceSchemaUriBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(9, predictInstanceSchemaUri_); + } + for (int i = 0; i < bigqueryTables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, bigqueryTables_.get(i)); + } + 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 (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime()); + } + if (nextScheduleTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNextScheduleTime()); + } + if (modelMonitoringAlertConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getModelMonitoringAlertConfig()); + } + if (!getAnalysisInstanceSchemaUriBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(16, analysisInstanceSchemaUri_); + } + if (logTtl_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLogTtl()); + } + if (samplePredictInstance_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSamplePredictInstance()); + } + if (statsAnomaliesBaseDirectory_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, getStatsAnomaliesBaseDirectory()); + } + 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.ModelDeploymentMonitoringJob)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob other = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (state_ != other.state_) return false; + if (scheduleState_ != other.scheduleState_) return false; + if (!getModelDeploymentMonitoringObjectiveConfigsList() + .equals(other.getModelDeploymentMonitoringObjectiveConfigsList())) return false; + if (hasModelDeploymentMonitoringScheduleConfig() + != other.hasModelDeploymentMonitoringScheduleConfig()) return false; + if (hasModelDeploymentMonitoringScheduleConfig()) { + if (!getModelDeploymentMonitoringScheduleConfig() + .equals(other.getModelDeploymentMonitoringScheduleConfig())) return false; + } + if (hasLoggingSamplingStrategy() != other.hasLoggingSamplingStrategy()) return false; + if (hasLoggingSamplingStrategy()) { + if (!getLoggingSamplingStrategy().equals(other.getLoggingSamplingStrategy())) return false; + } + if (hasModelMonitoringAlertConfig() != other.hasModelMonitoringAlertConfig()) return false; + if (hasModelMonitoringAlertConfig()) { + if (!getModelMonitoringAlertConfig().equals(other.getModelMonitoringAlertConfig())) + return false; + } + if (!getPredictInstanceSchemaUri().equals(other.getPredictInstanceSchemaUri())) return false; + if (hasSamplePredictInstance() != other.hasSamplePredictInstance()) return false; + if (hasSamplePredictInstance()) { + if (!getSamplePredictInstance().equals(other.getSamplePredictInstance())) return false; + } + if (!getAnalysisInstanceSchemaUri().equals(other.getAnalysisInstanceSchemaUri())) return false; + if (!getBigqueryTablesList().equals(other.getBigqueryTablesList())) return false; + if (hasLogTtl() != other.hasLogTtl()) return false; + if (hasLogTtl()) { + if (!getLogTtl().equals(other.getLogTtl())) 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 (hasNextScheduleTime() != other.hasNextScheduleTime()) return false; + if (hasNextScheduleTime()) { + if (!getNextScheduleTime().equals(other.getNextScheduleTime())) return false; + } + if (hasStatsAnomaliesBaseDirectory() != other.hasStatsAnomaliesBaseDirectory()) return false; + if (hasStatsAnomaliesBaseDirectory()) { + if (!getStatsAnomaliesBaseDirectory().equals(other.getStatsAnomaliesBaseDirectory())) + 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) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SCHEDULE_STATE_FIELD_NUMBER; + hash = (53 * hash) + scheduleState_; + if (getModelDeploymentMonitoringObjectiveConfigsCount() > 0) { + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringObjectiveConfigsList().hashCode(); + } + if (hasModelDeploymentMonitoringScheduleConfig()) { + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_SCHEDULE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringScheduleConfig().hashCode(); + } + if (hasLoggingSamplingStrategy()) { + hash = (37 * hash) + LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getLoggingSamplingStrategy().hashCode(); + } + if (hasModelMonitoringAlertConfig()) { + hash = (37 * hash) + MODEL_MONITORING_ALERT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelMonitoringAlertConfig().hashCode(); + } + hash = (37 * hash) + PREDICT_INSTANCE_SCHEMA_URI_FIELD_NUMBER; + hash = (53 * hash) + getPredictInstanceSchemaUri().hashCode(); + if (hasSamplePredictInstance()) { + hash = (37 * hash) + SAMPLE_PREDICT_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getSamplePredictInstance().hashCode(); + } + hash = (37 * hash) + ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER; + hash = (53 * hash) + getAnalysisInstanceSchemaUri().hashCode(); + if (getBigqueryTablesCount() > 0) { + hash = (37 * hash) + BIGQUERY_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryTablesList().hashCode(); + } + if (hasLogTtl()) { + hash = (37 * hash) + LOG_TTL_FIELD_NUMBER; + hash = (53 * hash) + getLogTtl().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 (hasNextScheduleTime()) { + hash = (37 * hash) + NEXT_SCHEDULE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextScheduleTime().hashCode(); + } + if (hasStatsAnomaliesBaseDirectory()) { + hash = (37 * hash) + STATS_ANOMALIES_BASE_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getStatsAnomaliesBaseDirectory().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob 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; + } + /** + * + * + *
+   * Represents a job that runs periodically to monitor the deployed models in an
+   * endpoint. It will analyze the logged training & prediction data to detect any
+   * abnormal behaviors.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_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.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getModelDeploymentMonitoringObjectiveConfigsFieldBuilder(); + getBigqueryTablesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + endpoint_ = ""; + + state_ = 0; + + scheduleState_ = 0; + + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); + } + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + modelDeploymentMonitoringScheduleConfig_ = null; + } else { + modelDeploymentMonitoringScheduleConfig_ = null; + modelDeploymentMonitoringScheduleConfigBuilder_ = null; + } + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = null; + } else { + loggingSamplingStrategy_ = null; + loggingSamplingStrategyBuilder_ = null; + } + if (modelMonitoringAlertConfigBuilder_ == null) { + modelMonitoringAlertConfig_ = null; + } else { + modelMonitoringAlertConfig_ = null; + modelMonitoringAlertConfigBuilder_ = null; + } + predictInstanceSchemaUri_ = ""; + + if (samplePredictInstanceBuilder_ == null) { + samplePredictInstance_ = null; + } else { + samplePredictInstance_ = null; + samplePredictInstanceBuilder_ = null; + } + analysisInstanceSchemaUri_ = ""; + + if (bigqueryTablesBuilder_ == null) { + bigqueryTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + bigqueryTablesBuilder_.clear(); + } + if (logTtlBuilder_ == null) { + logTtl_ = null; + } else { + logTtl_ = null; + logTtlBuilder_ = null; + } + internalGetMutableLabels().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (nextScheduleTimeBuilder_ == null) { + nextScheduleTime_ = null; + } else { + nextScheduleTime_ = null; + nextScheduleTimeBuilder_ = null; + } + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + statsAnomaliesBaseDirectory_ = null; + } else { + statsAnomaliesBaseDirectory_ = null; + statsAnomaliesBaseDirectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob build() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob result = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.endpoint_ = endpoint_; + result.state_ = state_; + result.scheduleState_ = scheduleState_; + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringObjectiveConfigs_ = + java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.modelDeploymentMonitoringObjectiveConfigs_ = + modelDeploymentMonitoringObjectiveConfigs_; + } else { + result.modelDeploymentMonitoringObjectiveConfigs_ = + modelDeploymentMonitoringObjectiveConfigsBuilder_.build(); + } + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + result.modelDeploymentMonitoringScheduleConfig_ = modelDeploymentMonitoringScheduleConfig_; + } else { + result.modelDeploymentMonitoringScheduleConfig_ = + modelDeploymentMonitoringScheduleConfigBuilder_.build(); + } + if (loggingSamplingStrategyBuilder_ == null) { + result.loggingSamplingStrategy_ = loggingSamplingStrategy_; + } else { + result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); + } + if (modelMonitoringAlertConfigBuilder_ == null) { + result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfig_; + } else { + result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfigBuilder_.build(); + } + result.predictInstanceSchemaUri_ = predictInstanceSchemaUri_; + if (samplePredictInstanceBuilder_ == null) { + result.samplePredictInstance_ = samplePredictInstance_; + } else { + result.samplePredictInstance_ = samplePredictInstanceBuilder_.build(); + } + result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; + if (bigqueryTablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bigqueryTables_ = java.util.Collections.unmodifiableList(bigqueryTables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bigqueryTables_ = bigqueryTables_; + } else { + result.bigqueryTables_ = bigqueryTablesBuilder_.build(); + } + if (logTtlBuilder_ == null) { + result.logTtl_ = logTtl_; + } else { + result.logTtl_ = logTtlBuilder_.build(); + } + 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 (nextScheduleTimeBuilder_ == null) { + result.nextScheduleTime_ = nextScheduleTime_; + } else { + result.nextScheduleTime_ = nextScheduleTimeBuilder_.build(); + } + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectory_; + } else { + result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectoryBuilder_.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.ModelDeploymentMonitoringJob) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.scheduleState_ != 0) { + setScheduleStateValue(other.getScheduleStateValue()); + } + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + if (!other.modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { + if (modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { + modelDeploymentMonitoringObjectiveConfigs_ = + other.modelDeploymentMonitoringObjectiveConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.addAll( + other.modelDeploymentMonitoringObjectiveConfigs_); + } + onChanged(); + } + } else { + if (!other.modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_.isEmpty()) { + modelDeploymentMonitoringObjectiveConfigsBuilder_.dispose(); + modelDeploymentMonitoringObjectiveConfigsBuilder_ = null; + modelDeploymentMonitoringObjectiveConfigs_ = + other.modelDeploymentMonitoringObjectiveConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + modelDeploymentMonitoringObjectiveConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() + : null; + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addAllMessages( + other.modelDeploymentMonitoringObjectiveConfigs_); + } + } + } + if (other.hasModelDeploymentMonitoringScheduleConfig()) { + mergeModelDeploymentMonitoringScheduleConfig( + other.getModelDeploymentMonitoringScheduleConfig()); + } + if (other.hasLoggingSamplingStrategy()) { + mergeLoggingSamplingStrategy(other.getLoggingSamplingStrategy()); + } + if (other.hasModelMonitoringAlertConfig()) { + mergeModelMonitoringAlertConfig(other.getModelMonitoringAlertConfig()); + } + if (!other.getPredictInstanceSchemaUri().isEmpty()) { + predictInstanceSchemaUri_ = other.predictInstanceSchemaUri_; + onChanged(); + } + if (other.hasSamplePredictInstance()) { + mergeSamplePredictInstance(other.getSamplePredictInstance()); + } + if (!other.getAnalysisInstanceSchemaUri().isEmpty()) { + analysisInstanceSchemaUri_ = other.analysisInstanceSchemaUri_; + onChanged(); + } + if (bigqueryTablesBuilder_ == null) { + if (!other.bigqueryTables_.isEmpty()) { + if (bigqueryTables_.isEmpty()) { + bigqueryTables_ = other.bigqueryTables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBigqueryTablesIsMutable(); + bigqueryTables_.addAll(other.bigqueryTables_); + } + onChanged(); + } + } else { + if (!other.bigqueryTables_.isEmpty()) { + if (bigqueryTablesBuilder_.isEmpty()) { + bigqueryTablesBuilder_.dispose(); + bigqueryTablesBuilder_ = null; + bigqueryTables_ = other.bigqueryTables_; + bitField0_ = (bitField0_ & ~0x00000002); + bigqueryTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBigqueryTablesFieldBuilder() + : null; + } else { + bigqueryTablesBuilder_.addAllMessages(other.bigqueryTables_); + } + } + } + if (other.hasLogTtl()) { + mergeLogTtl(other.getLogTtl()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasNextScheduleTime()) { + mergeNextScheduleTime(other.getNextScheduleTime()); + } + if (other.hasStatsAnomaliesBaseDirectory()) { + mergeStatsAnomaliesBaseDirectory(other.getStatsAnomaliesBaseDirectory()); + } + 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.ModelDeploymentMonitoringJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * 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. Resource name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * 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. Resource name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * 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. Resource name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * 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. Resource name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * Display name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * Display name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * Display name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * Display name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * Display name of a ModelDeploymentMonitoringJob.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 endpoint_ = ""; + /** + * + * + *
+     * Required. Endpoint resource name.
+     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Endpoint resource name.
+     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Endpoint resource name.
+     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Endpoint resource name.
+     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Endpoint resource name.
+     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The detailed state of the monitoring job.
+     * When the job is still creating, the state will be 'PENDING'.
+     * Once the job is successfully created, the state will be 'RUNNING'.
+     * Pause the job, the state will be 'PAUSED'.
+     * Resume the job, the state will return to 'RUNNING'.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.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 monitoring job.
+     * When the job is still creating, the state will be 'PENDING'.
+     * Once the job is successfully created, the state will be 'RUNNING'.
+     * Pause the job, the state will be 'PAUSED'.
+     * Resume the job, the state will return to 'RUNNING'.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.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 monitoring job.
+     * When the job is still creating, the state will be 'PENDING'.
+     * Once the job is successfully created, the state will be 'RUNNING'.
+     * Pause the job, the state will be 'PAUSED'.
+     * Resume the job, the state will return to 'RUNNING'.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JobState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.JobState result = + com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The detailed state of the monitoring job.
+     * When the job is still creating, the state will be 'PENDING'.
+     * Once the job is successfully created, the state will be 'RUNNING'.
+     * Pause the job, the state will be 'PAUSED'.
+     * Resume the job, the state will return to 'RUNNING'.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The detailed state of the monitoring job.
+     * When the job is still creating, the state will be 'PENDING'.
+     * Once the job is successfully created, the state will be 'RUNNING'.
+     * Pause the job, the state will be 'PAUSED'.
+     * Resume the job, the state will return to 'RUNNING'.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int scheduleState_ = 0; + /** + * + * + *
+     * Output only. Schedule state when the monitoring job is in Running state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scheduleState. + */ + @java.lang.Override + public int getScheduleStateValue() { + return scheduleState_; + } + /** + * + * + *
+     * Output only. Schedule state when the monitoring job is in Running state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for scheduleState to set. + * @return This builder for chaining. + */ + public Builder setScheduleStateValue(int value) { + + scheduleState_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Schedule state when the monitoring job is in Running state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scheduleState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + getScheduleState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .MonitoringScheduleState.valueOf(scheduleState_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Schedule state when the monitoring job is in Running state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The scheduleState to set. + * @return This builder for chaining. + */ + public Builder setScheduleState( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + value) { + if (value == null) { + throw new NullPointerException(); + } + + scheduleState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Schedule state when the monitoring job is in Running state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearScheduleState() { + + scheduleState_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> + modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); + + private void ensureModelDeploymentMonitoringObjectiveConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + modelDeploymentMonitoringObjectiveConfigs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig>( + modelDeploymentMonitoringObjectiveConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder> + modelDeploymentMonitoringObjectiveConfigsBuilder_; + + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> + getModelDeploymentMonitoringObjectiveConfigsList() { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); + } else { + return modelDeploymentMonitoringObjectiveConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getModelDeploymentMonitoringObjectiveConfigsCount() { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + return modelDeploymentMonitoringObjectiveConfigs_.size(); + } else { + return modelDeploymentMonitoringObjectiveConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + getModelDeploymentMonitoringObjectiveConfigs(int index) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + return modelDeploymentMonitoringObjectiveConfigs_.get(index); + } else { + return modelDeploymentMonitoringObjectiveConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig value) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.set(index, value); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + builderForValue) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.setMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addModelDeploymentMonitoringObjectiveConfigs( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig value) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.add(value); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addModelDeploymentMonitoringObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig value) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.add(index, value); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addModelDeploymentMonitoringObjectiveConfigs( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + builderForValue) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.add(builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addModelDeploymentMonitoringObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + builderForValue) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllModelDeploymentMonitoringObjectiveConfigs( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> + values) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelDeploymentMonitoringObjectiveConfigs_); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearModelDeploymentMonitoringObjectiveConfigs() { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); + modelDeploymentMonitoringObjectiveConfigs_.remove(index); + onChanged(); + } else { + modelDeploymentMonitoringObjectiveConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + getModelDeploymentMonitoringObjectiveConfigsBuilder(int index) { + return getModelDeploymentMonitoringObjectiveConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder + getModelDeploymentMonitoringObjectiveConfigsOrBuilder(int index) { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + return modelDeploymentMonitoringObjectiveConfigs_.get(index); + } else { + return modelDeploymentMonitoringObjectiveConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringObjectiveConfigOrBuilder> + getModelDeploymentMonitoringObjectiveConfigsOrBuilderList() { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ != null) { + return modelDeploymentMonitoringObjectiveConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); + } + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + addModelDeploymentMonitoringObjectiveConfigsBuilder() { + return getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + addModelDeploymentMonitoringObjectiveConfigsBuilder(int index) { + return getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. The config for monitoring objectives. This is a per DeployedModel config.
+     * Each DeployedModel needs to be configed separately.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder> + getModelDeploymentMonitoringObjectiveConfigsBuilderList() { + return getModelDeploymentMonitoringObjectiveConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder> + getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() { + if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { + modelDeploymentMonitoringObjectiveConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .Builder, + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringObjectiveConfigOrBuilder>( + modelDeploymentMonitoringObjectiveConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + modelDeploymentMonitoringObjectiveConfigs_ = null; + } + return modelDeploymentMonitoringObjectiveConfigsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + modelDeploymentMonitoringScheduleConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder> + modelDeploymentMonitoringScheduleConfigBuilder_; + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringScheduleConfig field is set. + */ + public boolean hasModelDeploymentMonitoringScheduleConfig() { + return modelDeploymentMonitoringScheduleConfigBuilder_ != null + || modelDeploymentMonitoringScheduleConfig_ != null; + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringScheduleConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + getModelDeploymentMonitoringScheduleConfig() { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + return modelDeploymentMonitoringScheduleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance() + : modelDeploymentMonitoringScheduleConfig_; + } else { + return modelDeploymentMonitoringScheduleConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringScheduleConfig( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig value) { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelDeploymentMonitoringScheduleConfig_ = value; + onChanged(); + } else { + modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringScheduleConfig( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder + builderForValue) { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + modelDeploymentMonitoringScheduleConfig_ = builderForValue.build(); + onChanged(); + } else { + modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeModelDeploymentMonitoringScheduleConfig( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig value) { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + if (modelDeploymentMonitoringScheduleConfig_ != null) { + modelDeploymentMonitoringScheduleConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .newBuilder(modelDeploymentMonitoringScheduleConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + modelDeploymentMonitoringScheduleConfig_ = value; + } + onChanged(); + } else { + modelDeploymentMonitoringScheduleConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearModelDeploymentMonitoringScheduleConfig() { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + modelDeploymentMonitoringScheduleConfig_ = null; + onChanged(); + } else { + modelDeploymentMonitoringScheduleConfig_ = null; + modelDeploymentMonitoringScheduleConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder + getModelDeploymentMonitoringScheduleConfigBuilder() { + + onChanged(); + return getModelDeploymentMonitoringScheduleConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder + getModelDeploymentMonitoringScheduleConfigOrBuilder() { + if (modelDeploymentMonitoringScheduleConfigBuilder_ != null) { + return modelDeploymentMonitoringScheduleConfigBuilder_.getMessageOrBuilder(); + } else { + return modelDeploymentMonitoringScheduleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance() + : modelDeploymentMonitoringScheduleConfig_; + } + } + /** + * + * + *
+     * Required. Schedule config for running the monitoring job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder> + getModelDeploymentMonitoringScheduleConfigFieldBuilder() { + if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { + modelDeploymentMonitoringScheduleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder, + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringScheduleConfigOrBuilder>( + getModelDeploymentMonitoringScheduleConfig(), getParentForChildren(), isClean()); + modelDeploymentMonitoringScheduleConfig_ = null; + } + return modelDeploymentMonitoringScheduleConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy loggingSamplingStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder> + loggingSamplingStrategyBuilder_; + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingSamplingStrategy field is set. + */ + public boolean hasLoggingSamplingStrategy() { + return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingSamplingStrategy. + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy() { + if (loggingSamplingStrategyBuilder_ == null) { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } else { + return loggingSamplingStrategyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { + if (loggingSamplingStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingSamplingStrategy_ = value; + onChanged(); + } else { + loggingSamplingStrategyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder builderForValue) { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = builderForValue.build(); + onChanged(); + } else { + loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { + if (loggingSamplingStrategyBuilder_ == null) { + if (loggingSamplingStrategy_ != null) { + loggingSamplingStrategy_ = + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.newBuilder( + loggingSamplingStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingSamplingStrategy_ = value; + } + onChanged(); + } else { + loggingSamplingStrategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLoggingSamplingStrategy() { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = null; + onChanged(); + } else { + loggingSamplingStrategy_ = null; + loggingSamplingStrategyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder + getLoggingSamplingStrategyBuilder() { + + onChanged(); + return getLoggingSamplingStrategyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder() { + if (loggingSamplingStrategyBuilder_ != null) { + return loggingSamplingStrategyBuilder_.getMessageOrBuilder(); + } else { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } + } + /** + * + * + *
+     * Required. Sample Strategy for logging.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder> + getLoggingSamplingStrategyFieldBuilder() { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder>( + getLoggingSamplingStrategy(), getParentForChildren(), isClean()); + loggingSamplingStrategy_ = null; + } + return loggingSamplingStrategyBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + modelMonitoringAlertConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder> + modelMonitoringAlertConfigBuilder_; + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return Whether the modelMonitoringAlertConfig field is set. + */ + public boolean hasModelMonitoringAlertConfig() { + return modelMonitoringAlertConfigBuilder_ != null || modelMonitoringAlertConfig_ != null; + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return The modelMonitoringAlertConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + getModelMonitoringAlertConfig() { + if (modelMonitoringAlertConfigBuilder_ == null) { + return modelMonitoringAlertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : modelMonitoringAlertConfig_; + } else { + return modelMonitoringAlertConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public Builder setModelMonitoringAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { + if (modelMonitoringAlertConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMonitoringAlertConfig_ = value; + onChanged(); + } else { + modelMonitoringAlertConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public Builder setModelMonitoringAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder builderForValue) { + if (modelMonitoringAlertConfigBuilder_ == null) { + modelMonitoringAlertConfig_ = builderForValue.build(); + onChanged(); + } else { + modelMonitoringAlertConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public Builder mergeModelMonitoringAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { + if (modelMonitoringAlertConfigBuilder_ == null) { + if (modelMonitoringAlertConfig_ != null) { + modelMonitoringAlertConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.newBuilder( + modelMonitoringAlertConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMonitoringAlertConfig_ = value; + } + onChanged(); + } else { + modelMonitoringAlertConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public Builder clearModelMonitoringAlertConfig() { + if (modelMonitoringAlertConfigBuilder_ == null) { + modelMonitoringAlertConfig_ = null; + onChanged(); + } else { + modelMonitoringAlertConfig_ = null; + modelMonitoringAlertConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder + getModelMonitoringAlertConfigBuilder() { + + onChanged(); + return getModelMonitoringAlertConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder + getModelMonitoringAlertConfigOrBuilder() { + if (modelMonitoringAlertConfigBuilder_ != null) { + return modelMonitoringAlertConfigBuilder_.getMessageOrBuilder(); + } else { + return modelMonitoringAlertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : modelMonitoringAlertConfig_; + } + } + /** + * + * + *
+     * Alert config for model monitoring.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder> + getModelMonitoringAlertConfigFieldBuilder() { + if (modelMonitoringAlertConfigBuilder_ == null) { + modelMonitoringAlertConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder>( + getModelMonitoringAlertConfig(), getParentForChildren(), isClean()); + modelMonitoringAlertConfig_ = null; + } + return modelMonitoringAlertConfigBuilder_; + } + + private java.lang.Object predictInstanceSchemaUri_ = ""; + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance,
+     * which are given to format this Endpoint's prediction (and explanation).
+     * If not set, we will generate predict schema from collected predict
+     * requests.
+     * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The predictInstanceSchemaUri. + */ + public java.lang.String getPredictInstanceSchemaUri() { + java.lang.Object ref = predictInstanceSchemaUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + predictInstanceSchemaUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance,
+     * which are given to format this Endpoint's prediction (and explanation).
+     * If not set, we will generate predict schema from collected predict
+     * requests.
+     * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The bytes for predictInstanceSchemaUri. + */ + public com.google.protobuf.ByteString getPredictInstanceSchemaUriBytes() { + java.lang.Object ref = predictInstanceSchemaUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + predictInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance,
+     * which are given to format this Endpoint's prediction (and explanation).
+     * If not set, we will generate predict schema from collected predict
+     * requests.
+     * 
+ * + * string predict_instance_schema_uri = 9; + * + * @param value The predictInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setPredictInstanceSchemaUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + predictInstanceSchemaUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance,
+     * which are given to format this Endpoint's prediction (and explanation).
+     * If not set, we will generate predict schema from collected predict
+     * requests.
+     * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearPredictInstanceSchemaUri() { + + predictInstanceSchemaUri_ = getDefaultInstance().getPredictInstanceSchemaUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance,
+     * which are given to format this Endpoint's prediction (and explanation).
+     * If not set, we will generate predict schema from collected predict
+     * requests.
+     * 
+ * + * string predict_instance_schema_uri = 9; + * + * @param value The bytes for predictInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setPredictInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + predictInstanceSchemaUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Value samplePredictInstance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + samplePredictInstanceBuilder_; + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return Whether the samplePredictInstance field is set. + */ + public boolean hasSamplePredictInstance() { + return samplePredictInstanceBuilder_ != null || samplePredictInstance_ != null; + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return The samplePredictInstance. + */ + public com.google.protobuf.Value getSamplePredictInstance() { + if (samplePredictInstanceBuilder_ == null) { + return samplePredictInstance_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : samplePredictInstance_; + } else { + return samplePredictInstanceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public Builder setSamplePredictInstance(com.google.protobuf.Value value) { + if (samplePredictInstanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + samplePredictInstance_ = value; + onChanged(); + } else { + samplePredictInstanceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public Builder setSamplePredictInstance(com.google.protobuf.Value.Builder builderForValue) { + if (samplePredictInstanceBuilder_ == null) { + samplePredictInstance_ = builderForValue.build(); + onChanged(); + } else { + samplePredictInstanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public Builder mergeSamplePredictInstance(com.google.protobuf.Value value) { + if (samplePredictInstanceBuilder_ == null) { + if (samplePredictInstance_ != null) { + samplePredictInstance_ = + com.google.protobuf.Value.newBuilder(samplePredictInstance_) + .mergeFrom(value) + .buildPartial(); + } else { + samplePredictInstance_ = value; + } + onChanged(); + } else { + samplePredictInstanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public Builder clearSamplePredictInstance() { + if (samplePredictInstanceBuilder_ == null) { + samplePredictInstance_ = null; + onChanged(); + } else { + samplePredictInstance_ = null; + samplePredictInstanceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public com.google.protobuf.Value.Builder getSamplePredictInstanceBuilder() { + + onChanged(); + return getSamplePredictInstanceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + public com.google.protobuf.ValueOrBuilder getSamplePredictInstanceOrBuilder() { + if (samplePredictInstanceBuilder_ != null) { + return samplePredictInstanceBuilder_.getMessageOrBuilder(); + } else { + return samplePredictInstance_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : samplePredictInstance_; + } + } + /** + * + * + *
+     * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+     * this can be set as a replacement of
+     * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+     * we will generate predict schema from collected predict requests.
+     * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getSamplePredictInstanceFieldBuilder() { + if (samplePredictInstanceBuilder_ == null) { + samplePredictInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getSamplePredictInstance(), getParentForChildren(), isClean()); + samplePredictInstance_ = null; + } + return samplePredictInstanceBuilder_; + } + + private java.lang.Object analysisInstanceSchemaUri_ = ""; + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance that you
+     * want Tensorflow Data Validation (TFDV) to analyze.
+     * If this field is empty, all the feature data types are inferred from
+     * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+     * meaning that TFDV will use the data in the exact format(data type) as
+     * prediction request/response.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The analysisInstanceSchemaUri. + */ + public java.lang.String getAnalysisInstanceSchemaUri() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analysisInstanceSchemaUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance that you
+     * want Tensorflow Data Validation (TFDV) to analyze.
+     * If this field is empty, all the feature data types are inferred from
+     * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+     * meaning that TFDV will use the data in the exact format(data type) as
+     * prediction request/response.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance that you
+     * want Tensorflow Data Validation (TFDV) to analyze.
+     * If this field is empty, all the feature data types are inferred from
+     * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+     * meaning that TFDV will use the data in the exact format(data type) as
+     * prediction request/response.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @param value The analysisInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + analysisInstanceSchemaUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance that you
+     * want Tensorflow Data Validation (TFDV) to analyze.
+     * If this field is empty, all the feature data types are inferred from
+     * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+     * meaning that TFDV will use the data in the exact format(data type) as
+     * prediction request/response.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return This builder for chaining. + */ + public Builder clearAnalysisInstanceSchemaUri() { + + analysisInstanceSchemaUri_ = getDefaultInstance().getAnalysisInstanceSchemaUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri describing the format of a single instance that you
+     * want Tensorflow Data Validation (TFDV) to analyze.
+     * If this field is empty, all the feature data types are inferred from
+     * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+     * meaning that TFDV will use the data in the exact format(data type) as
+     * prediction request/response.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @param value The bytes for analysisInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + analysisInstanceSchemaUri_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable> + bigqueryTables_ = java.util.Collections.emptyList(); + + private void ensureBigqueryTablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bigqueryTables_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable>( + bigqueryTables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder> + bigqueryTablesBuilder_; + + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable> + getBigqueryTablesList() { + if (bigqueryTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(bigqueryTables_); + } else { + return bigqueryTablesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBigqueryTablesCount() { + if (bigqueryTablesBuilder_ == null) { + return bigqueryTables_.size(); + } else { + return bigqueryTablesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + getBigqueryTables(int index) { + if (bigqueryTablesBuilder_ == null) { + return bigqueryTables_.get(index); + } else { + return bigqueryTablesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBigqueryTables( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable value) { + if (bigqueryTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryTablesIsMutable(); + bigqueryTables_.set(index, value); + onChanged(); + } else { + bigqueryTablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBigqueryTables( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + builderForValue) { + if (bigqueryTablesBuilder_ == null) { + ensureBigqueryTablesIsMutable(); + bigqueryTables_.set(index, builderForValue.build()); + onChanged(); + } else { + bigqueryTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBigqueryTables( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable value) { + if (bigqueryTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryTablesIsMutable(); + bigqueryTables_.add(value); + onChanged(); + } else { + bigqueryTablesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBigqueryTables( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable value) { + if (bigqueryTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryTablesIsMutable(); + bigqueryTables_.add(index, value); + onChanged(); + } else { + bigqueryTablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBigqueryTables( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + builderForValue) { + if (bigqueryTablesBuilder_ == null) { + ensureBigqueryTablesIsMutable(); + bigqueryTables_.add(builderForValue.build()); + onChanged(); + } else { + bigqueryTablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBigqueryTables( + int index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + builderForValue) { + if (bigqueryTablesBuilder_ == null) { + ensureBigqueryTablesIsMutable(); + bigqueryTables_.add(index, builderForValue.build()); + onChanged(); + } else { + bigqueryTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBigqueryTables( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable> + values) { + if (bigqueryTablesBuilder_ == null) { + ensureBigqueryTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryTables_); + onChanged(); + } else { + bigqueryTablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBigqueryTables() { + if (bigqueryTablesBuilder_ == null) { + bigqueryTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bigqueryTablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBigqueryTables(int index) { + if (bigqueryTablesBuilder_ == null) { + ensureBigqueryTablesIsMutable(); + bigqueryTables_.remove(index); + onChanged(); + } else { + bigqueryTablesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + getBigqueryTablesBuilder(int index) { + return getBigqueryTablesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder + getBigqueryTablesOrBuilder(int index) { + if (bigqueryTablesBuilder_ == null) { + return bigqueryTables_.get(index); + } else { + return bigqueryTablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder> + getBigqueryTablesOrBuilderList() { + if (bigqueryTablesBuilder_ != null) { + return bigqueryTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bigqueryTables_); + } + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + addBigqueryTablesBuilder() { + return getBigqueryTablesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder + addBigqueryTablesBuilder(int index) { + return getBigqueryTablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The created bigquery tables for the job under customer project. Customer
+     * could do their own query & analysis. There could be 4 log tables in
+     * maximum:
+     * 1. Training data logging predict request/response
+     * 2. Serving data logging predict request/response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder> + getBigqueryTablesBuilderList() { + return getBigqueryTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder> + getBigqueryTablesFieldBuilder() { + if (bigqueryTablesBuilder_ == null) { + bigqueryTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.Builder, + com.google.cloud.aiplatform.v1beta1 + .ModelDeploymentMonitoringBigQueryTableOrBuilder>( + bigqueryTables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + bigqueryTables_ = null; + } + return bigqueryTablesBuilder_; + } + + private com.google.protobuf.Duration logTtl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + logTtlBuilder_; + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return Whether the logTtl field is set. + */ + public boolean hasLogTtl() { + return logTtlBuilder_ != null || logTtl_ != null; + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return The logTtl. + */ + public com.google.protobuf.Duration getLogTtl() { + if (logTtlBuilder_ == null) { + return logTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : logTtl_; + } else { + return logTtlBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public Builder setLogTtl(com.google.protobuf.Duration value) { + if (logTtlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logTtl_ = value; + onChanged(); + } else { + logTtlBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public Builder setLogTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (logTtlBuilder_ == null) { + logTtl_ = builderForValue.build(); + onChanged(); + } else { + logTtlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public Builder mergeLogTtl(com.google.protobuf.Duration value) { + if (logTtlBuilder_ == null) { + if (logTtl_ != null) { + logTtl_ = + com.google.protobuf.Duration.newBuilder(logTtl_).mergeFrom(value).buildPartial(); + } else { + logTtl_ = value; + } + onChanged(); + } else { + logTtlBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public Builder clearLogTtl() { + if (logTtlBuilder_ == null) { + logTtl_ = null; + onChanged(); + } else { + logTtl_ = null; + logTtlBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public com.google.protobuf.Duration.Builder getLogTtlBuilder() { + + onChanged(); + return getLogTtlFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + public com.google.protobuf.DurationOrBuilder getLogTtlOrBuilder() { + if (logTtlBuilder_ != null) { + return logTtlBuilder_.getMessageOrBuilder(); + } else { + return logTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : logTtl_; + } + } + /** + * + * + *
+     * The TTL of BigQuery tables in user projects which stores logs.
+     * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+     * day). e.g. { second: 3600} indicates ttl = 1 day.
+     * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getLogTtlFieldBuilder() { + if (logTtlBuilder_ == null) { + logTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLogTtl(), getParentForChildren(), isClean()); + logTtl_ = null; + } + return logTtlBuilder_; + } + + 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
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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 your
+     * ModelDeploymentMonitoringJob.
+     * 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.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.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 ModelDeploymentMonitoringJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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 ModelDeploymentMonitoringJob was updated most recently.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.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.Timestamp nextScheduleTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextScheduleTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextScheduleTime field is set. + */ + public boolean hasNextScheduleTime() { + return nextScheduleTimeBuilder_ != null || nextScheduleTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextScheduleTime. + */ + public com.google.protobuf.Timestamp getNextScheduleTime() { + if (nextScheduleTimeBuilder_ == null) { + return nextScheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextScheduleTime_; + } else { + return nextScheduleTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextScheduleTime(com.google.protobuf.Timestamp value) { + if (nextScheduleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextScheduleTime_ = value; + onChanged(); + } else { + nextScheduleTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNextScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (nextScheduleTimeBuilder_ == null) { + nextScheduleTime_ = builderForValue.build(); + onChanged(); + } else { + nextScheduleTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNextScheduleTime(com.google.protobuf.Timestamp value) { + if (nextScheduleTimeBuilder_ == null) { + if (nextScheduleTime_ != null) { + nextScheduleTime_ = + com.google.protobuf.Timestamp.newBuilder(nextScheduleTime_) + .mergeFrom(value) + .buildPartial(); + } else { + nextScheduleTime_ = value; + } + onChanged(); + } else { + nextScheduleTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNextScheduleTime() { + if (nextScheduleTimeBuilder_ == null) { + nextScheduleTime_ = null; + onChanged(); + } else { + nextScheduleTime_ = null; + nextScheduleTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getNextScheduleTimeBuilder() { + + onChanged(); + return getNextScheduleTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { + if (nextScheduleTimeBuilder_ != null) { + return nextScheduleTimeBuilder_.getMessageOrBuilder(); + } else { + return nextScheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextScheduleTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+     * next round.
+     * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getNextScheduleTimeFieldBuilder() { + if (nextScheduleTimeBuilder_ == null) { + nextScheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextScheduleTime(), getParentForChildren(), isClean()); + nextScheduleTime_ = null; + } + return nextScheduleTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.GcsDestination statsAnomaliesBaseDirectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + statsAnomaliesBaseDirectoryBuilder_; + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return Whether the statsAnomaliesBaseDirectory field is set. + */ + public boolean hasStatsAnomaliesBaseDirectory() { + return statsAnomaliesBaseDirectoryBuilder_ != null || statsAnomaliesBaseDirectory_ != null; + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return The statsAnomaliesBaseDirectory. + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination getStatsAnomaliesBaseDirectory() { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; + } else { + return statsAnomaliesBaseDirectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public Builder setStatsAnomaliesBaseDirectory( + com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statsAnomaliesBaseDirectory_ = value; + onChanged(); + } else { + statsAnomaliesBaseDirectoryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public Builder setStatsAnomaliesBaseDirectory( + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + statsAnomaliesBaseDirectory_ = builderForValue.build(); + onChanged(); + } else { + statsAnomaliesBaseDirectoryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public Builder mergeStatsAnomaliesBaseDirectory( + com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + if (statsAnomaliesBaseDirectory_ != null) { + statsAnomaliesBaseDirectory_ = + com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder( + statsAnomaliesBaseDirectory_) + .mergeFrom(value) + .buildPartial(); + } else { + statsAnomaliesBaseDirectory_ = value; + } + onChanged(); + } else { + statsAnomaliesBaseDirectoryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public Builder clearStatsAnomaliesBaseDirectory() { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + statsAnomaliesBaseDirectory_ = null; + onChanged(); + } else { + statsAnomaliesBaseDirectory_ = null; + statsAnomaliesBaseDirectoryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder + getStatsAnomaliesBaseDirectoryBuilder() { + + onChanged(); + return getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder + getStatsAnomaliesBaseDirectoryOrBuilder() { + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + return statsAnomaliesBaseDirectoryBuilder_.getMessageOrBuilder(); + } else { + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; + } + } + /** + * + * + *
+     * Stats anomalies base folder path.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + getStatsAnomaliesBaseDirectoryFieldBuilder() { + if (statsAnomaliesBaseDirectoryBuilder_ == null) { + statsAnomaliesBaseDirectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder>( + getStatsAnomaliesBaseDirectory(), getParentForChildren(), isClean()); + statsAnomaliesBaseDirectory_ = null; + } + return statsAnomaliesBaseDirectoryBuilder_; + } + + @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.ModelDeploymentMonitoringJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + private static final com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelDeploymentMonitoringJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelDeploymentMonitoringJob(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.ModelDeploymentMonitoringJob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java new file mode 100644 index 000000000..ecdbc1fab --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java @@ -0,0 +1,242 @@ +/* + * 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 ModelDeploymentMonitoringJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MODEL_DEPLOYMENT_MONITORING_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String modelDeploymentMonitoringJob; + + @Deprecated + protected ModelDeploymentMonitoringJobName() { + project = null; + location = null; + modelDeploymentMonitoringJob = null; + } + + private ModelDeploymentMonitoringJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + modelDeploymentMonitoringJob = + Preconditions.checkNotNull(builder.getModelDeploymentMonitoringJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ModelDeploymentMonitoringJobName of( + String project, String location, String modelDeploymentMonitoringJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .build(); + } + + public static String format( + String project, String location, String modelDeploymentMonitoringJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setModelDeploymentMonitoringJob(modelDeploymentMonitoringJob) + .build() + .toString(); + } + + public static ModelDeploymentMonitoringJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MODEL_DEPLOYMENT_MONITORING_JOB.validatedMatch( + formattedString, + "ModelDeploymentMonitoringJobName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("model_deployment_monitoring_job")); + } + + 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 (ModelDeploymentMonitoringJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MODEL_DEPLOYMENT_MONITORING_JOB.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 (modelDeploymentMonitoringJob != null) { + fieldMapBuilder.put("model_deployment_monitoring_job", modelDeploymentMonitoringJob); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MODEL_DEPLOYMENT_MONITORING_JOB.instantiate( + "project", + project, + "location", + location, + "model_deployment_monitoring_job", + modelDeploymentMonitoringJob); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ModelDeploymentMonitoringJobName that = ((ModelDeploymentMonitoringJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.modelDeploymentMonitoringJob, that.modelDeploymentMonitoringJob); + } + 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(modelDeploymentMonitoringJob); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}. + */ + public static class Builder { + private String project; + private String location; + private String modelDeploymentMonitoringJob; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setModelDeploymentMonitoringJob(String modelDeploymentMonitoringJob) { + this.modelDeploymentMonitoringJob = modelDeploymentMonitoringJob; + return this; + } + + private Builder(ModelDeploymentMonitoringJobName modelDeploymentMonitoringJobName) { + project = modelDeploymentMonitoringJobName.project; + location = modelDeploymentMonitoringJobName.location; + modelDeploymentMonitoringJob = modelDeploymentMonitoringJobName.modelDeploymentMonitoringJob; + } + + public ModelDeploymentMonitoringJobName build() { + return new ModelDeploymentMonitoringJobName(this); + } + } +} 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 new file mode 100644 index 000000000..d53b87ca0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.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/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelDeploymentMonitoringJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * Display name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The user-defined name of the ModelDeploymentMonitoringJob.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * Display name of a ModelDeploymentMonitoringJob.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. Endpoint resource name.
+   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+   * Required. Endpoint resource name.
+   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * Output only. The detailed state of the monitoring job.
+   * When the job is still creating, the state will be 'PENDING'.
+   * Once the job is successfully created, the state will be 'RUNNING'.
+   * Pause the job, the state will be 'PAUSED'.
+   * Resume the job, the state will return to 'RUNNING'.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.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 monitoring job.
+   * When the job is still creating, the state will be 'PENDING'.
+   * Once the job is successfully created, the state will be 'RUNNING'.
+   * Pause the job, the state will be 'PAUSED'.
+   * Resume the job, the state will return to 'RUNNING'.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.JobState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.JobState getState(); + + /** + * + * + *
+   * Output only. Schedule state when the monitoring job is in Running state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scheduleState. + */ + int getScheduleStateValue(); + /** + * + * + *
+   * Output only. Schedule state when the monitoring job is in Running state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState schedule_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scheduleState. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + getScheduleState(); + + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getModelDeploymentMonitoringObjectiveConfigsList(); + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + getModelDeploymentMonitoringObjectiveConfigs(int index); + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getModelDeploymentMonitoringObjectiveConfigsCount(); + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder> + getModelDeploymentMonitoringObjectiveConfigsOrBuilderList(); + /** + * + * + *
+   * Required. The config for monitoring objectives. This is a per DeployedModel config.
+   * Each DeployedModel needs to be configed separately.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder + getModelDeploymentMonitoringObjectiveConfigsOrBuilder(int index); + + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringScheduleConfig field is set. + */ + boolean hasModelDeploymentMonitoringScheduleConfig(); + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringScheduleConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + getModelDeploymentMonitoringScheduleConfig(); + /** + * + * + *
+   * Required. Schedule config for running the monitoring job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder + getModelDeploymentMonitoringScheduleConfigOrBuilder(); + + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingSamplingStrategy field is set. + */ + boolean hasLoggingSamplingStrategy(); + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingSamplingStrategy. + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy(); + /** + * + * + *
+   * Required. Sample Strategy for logging.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder(); + + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return Whether the modelMonitoringAlertConfig field is set. + */ + boolean hasModelMonitoringAlertConfig(); + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + * + * @return The modelMonitoringAlertConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig getModelMonitoringAlertConfig(); + /** + * + * + *
+   * Alert config for model monitoring.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder + getModelMonitoringAlertConfigOrBuilder(); + + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance,
+   * which are given to format this Endpoint's prediction (and explanation).
+   * If not set, we will generate predict schema from collected predict
+   * requests.
+   * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The predictInstanceSchemaUri. + */ + java.lang.String getPredictInstanceSchemaUri(); + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance,
+   * which are given to format this Endpoint's prediction (and explanation).
+   * If not set, we will generate predict schema from collected predict
+   * requests.
+   * 
+ * + * string predict_instance_schema_uri = 9; + * + * @return The bytes for predictInstanceSchemaUri. + */ + com.google.protobuf.ByteString getPredictInstanceSchemaUriBytes(); + + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return Whether the samplePredictInstance field is set. + */ + boolean hasSamplePredictInstance(); + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + * + * @return The samplePredictInstance. + */ + com.google.protobuf.Value getSamplePredictInstance(); + /** + * + * + *
+   * Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances],
+   * this can be set as a replacement of
+   * [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set,
+   * we will generate predict schema from collected predict requests.
+   * 
+ * + * .google.protobuf.Value sample_predict_instance = 19; + */ + com.google.protobuf.ValueOrBuilder getSamplePredictInstanceOrBuilder(); + + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance that you
+   * want Tensorflow Data Validation (TFDV) to analyze.
+   * If this field is empty, all the feature data types are inferred from
+   * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+   * meaning that TFDV will use the data in the exact format(data type) as
+   * prediction request/response.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The analysisInstanceSchemaUri. + */ + java.lang.String getAnalysisInstanceSchemaUri(); + /** + * + * + *
+   * YAML schema file uri describing the format of a single instance that you
+   * want Tensorflow Data Validation (TFDV) to analyze.
+   * If this field is empty, all the feature data types are inferred from
+   * [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri],
+   * meaning that TFDV will use the data in the exact format(data type) as
+   * prediction request/response.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 16; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes(); + + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBigqueryTablesList(); + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable getBigqueryTables( + int index); + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBigqueryTablesCount(); + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder> + getBigqueryTablesOrBuilderList(); + /** + * + * + *
+   * Output only. The created bigquery tables for the job under customer project. Customer
+   * could do their own query & analysis. There could be 4 log tables in
+   * maximum:
+   * 1. Training data logging predict request/response
+   * 2. Serving data logging predict request/response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTableOrBuilder + getBigqueryTablesOrBuilder(int index); + + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return Whether the logTtl field is set. + */ + boolean hasLogTtl(); + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + * + * @return The logTtl. + */ + com.google.protobuf.Duration getLogTtl(); + /** + * + * + *
+   * The TTL of BigQuery tables in user projects which stores logs.
+   * A day is the basic unit of the TTL and we take the ceil of TTL/86400(a
+   * day). e.g. { second: 3600} indicates ttl = 1 day.
+   * 
+ * + * .google.protobuf.Duration log_ttl = 17; + */ + com.google.protobuf.DurationOrBuilder getLogTtlOrBuilder(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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 your
+   * ModelDeploymentMonitoringJob.
+   * 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); + + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nextScheduleTime field is set. + */ + boolean hasNextScheduleTime(); + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nextScheduleTime. + */ + com.google.protobuf.Timestamp getNextScheduleTime(); + /** + * + * + *
+   * Output only. Timestamp when this monitoring pipeline will be scheduled to run for the
+   * next round.
+   * 
+ * + * + * .google.protobuf.Timestamp next_schedule_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder(); + + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return Whether the statsAnomaliesBaseDirectory field is set. + */ + boolean hasStatsAnomaliesBaseDirectory(); + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + * + * @return The statsAnomaliesBaseDirectory. + */ + com.google.cloud.aiplatform.v1beta1.GcsDestination getStatsAnomaliesBaseDirectory(); + /** + * + * + *
+   * Stats anomalies base folder path.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 20; + * + */ + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder + getStatsAnomaliesBaseDirectoryOrBuilder(); +} 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 new file mode 100644 index 000000000..004b2d87a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java @@ -0,0 +1,278 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class ModelDeploymentMonitoringJobProto { + private ModelDeploymentMonitoringJobProto() {} + + 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_v1beta1_ModelDeploymentMonitoringJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/aiplatform/v1beta1/model_" + + "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" + }; + 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.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Endpoint", + "State", + "ScheduleState", + "ModelDeploymentMonitoringObjectiveConfigs", + "ModelDeploymentMonitoringScheduleConfig", + "LoggingSamplingStrategy", + "ModelMonitoringAlertConfig", + "PredictInstanceSchemaUri", + "SamplePredictInstance", + "AnalysisInstanceSchemaUri", + "BigqueryTables", + "LogTtl", + "Labels", + "CreateTime", + "UpdateTime", + "NextScheduleTime", + "StatsAnomaliesBaseDirectory", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringJob_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringBigQueryTable_descriptor, + new java.lang.String[] { + "LogSource", "LogType", "BigqueryTablePath", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor, + new java.lang.String[] { + "DeployedModelId", "ObjectiveConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor, + new java.lang.String[] { + "MonitorInterval", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor, + new java.lang.String[] { + "Objective", "DeployedModelId", "AnomalyCount", "FeatureStats", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor, + new java.lang.String[] { + "FeatureDisplayName", "Threshold", "TrainingStats", "PredictionStats", + }); + 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.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(); + com.google.protobuf.DurationProto.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java new file mode 100644 index 000000000..3074f444a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java @@ -0,0 +1,966 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * ModelDeploymentMonitoringObjectiveConfig contains the pair of
+ * deployed_model_id to ModelMonitoringObjectiveConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} + */ +public final class ModelDeploymentMonitoringObjectiveConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + ModelDeploymentMonitoringObjectiveConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelDeploymentMonitoringObjectiveConfig.newBuilder() to construct. + private ModelDeploymentMonitoringObjectiveConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelDeploymentMonitoringObjectiveConfig() { + deployedModelId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelDeploymentMonitoringObjectiveConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelDeploymentMonitoringObjectiveConfig( + 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(); + + deployedModelId_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + subBuilder = null; + if (objectiveConfig_ != null) { + subBuilder = objectiveConfig_.toBuilder(); + } + objectiveConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(objectiveConfig_); + objectiveConfig_ = 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.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + .class); + } + + public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object deployedModelId_; + /** + * + * + *
+   * The DeployedModel ID of the objective config.
+   * 
+ * + * string deployed_model_id = 1; + * + * @return The deployedModelId. + */ + @java.lang.Override + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + 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(); + deployedModelId_ = s; + return s; + } + } + /** + * + * + *
+   * The DeployedModel ID of the objective config.
+   * 
+ * + * string deployed_model_id = 1; + * + * @return The bytes for deployedModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECTIVE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objectiveConfig_; + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return Whether the objectiveConfig field is set. + */ + @java.lang.Override + public boolean hasObjectiveConfig() { + return objectiveConfig_ != null; + } + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return The objectiveConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfig() { + return objectiveConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.getDefaultInstance() + : objectiveConfig_; + } + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigOrBuilder() { + return getObjectiveConfig(); + } + + 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 (!getDeployedModelIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deployedModelId_); + } + if (objectiveConfig_ != null) { + output.writeMessage(2, getObjectiveConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDeployedModelIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deployedModelId_); + } + if (objectiveConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectiveConfig()); + } + 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.ModelDeploymentMonitoringObjectiveConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) obj; + + if (!getDeployedModelId().equals(other.getDeployedModelId())) return false; + if (hasObjectiveConfig() != other.hasObjectiveConfig()) return false; + if (hasObjectiveConfig()) { + if (!getObjectiveConfig().equals(other.getObjectiveConfig())) 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) + DEPLOYED_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedModelId().hashCode(); + if (hasObjectiveConfig()) { + hash = (37 * hash) + OBJECTIVE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObjectiveConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig + 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.ModelDeploymentMonitoringObjectiveConfig 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; + } + /** + * + * + *
+   * ModelDeploymentMonitoringObjectiveConfig contains the pair of
+   * deployed_model_id to ModelMonitoringObjectiveConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.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(); + deployedModelId_ = ""; + + if (objectiveConfigBuilder_ == null) { + objectiveConfig_ = null; + } else { + objectiveConfig_ = null; + objectiveConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringObjectiveConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig build() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(this); + result.deployedModelId_ = deployedModelId_; + if (objectiveConfigBuilder_ == null) { + result.objectiveConfig_ = objectiveConfig_; + } else { + result.objectiveConfig_ = objectiveConfigBuilder_.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.ModelDeploymentMonitoringObjectiveConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + .getDefaultInstance()) return this; + if (!other.getDeployedModelId().isEmpty()) { + deployedModelId_ = other.deployedModelId_; + onChanged(); + } + if (other.hasObjectiveConfig()) { + mergeObjectiveConfig(other.getObjectiveConfig()); + } + 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.ModelDeploymentMonitoringObjectiveConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object deployedModelId_ = ""; + /** + * + * + *
+     * The DeployedModel ID of the objective config.
+     * 
+ * + * string deployed_model_id = 1; + * + * @return The deployedModelId. + */ + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployedModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The DeployedModel ID of the objective config.
+     * 
+ * + * string deployed_model_id = 1; + * + * @return The bytes for deployedModelId. + */ + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The DeployedModel ID of the objective config.
+     * 
+ * + * string deployed_model_id = 1; + * + * @param value The deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deployedModelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The DeployedModel ID of the objective config.
+     * 
+ * + * string deployed_model_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDeployedModelId() { + + deployedModelId_ = getDefaultInstance().getDeployedModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The DeployedModel ID of the objective config.
+     * 
+ * + * string deployed_model_id = 1; + * + * @param value The bytes for deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deployedModelId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objectiveConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + objectiveConfigBuilder_; + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return Whether the objectiveConfig field is set. + */ + public boolean hasObjectiveConfig() { + return objectiveConfigBuilder_ != null || objectiveConfig_ != null; + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return The objectiveConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfig() { + if (objectiveConfigBuilder_ == null) { + return objectiveConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance() + : objectiveConfig_; + } else { + return objectiveConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public Builder setObjectiveConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { + if (objectiveConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectiveConfig_ = value; + onChanged(); + } else { + objectiveConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public Builder setObjectiveConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + builderForValue) { + if (objectiveConfigBuilder_ == null) { + objectiveConfig_ = builderForValue.build(); + onChanged(); + } else { + objectiveConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public Builder mergeObjectiveConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { + if (objectiveConfigBuilder_ == null) { + if (objectiveConfig_ != null) { + objectiveConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.newBuilder( + objectiveConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + objectiveConfig_ = value; + } + onChanged(); + } else { + objectiveConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public Builder clearObjectiveConfig() { + if (objectiveConfigBuilder_ == null) { + objectiveConfig_ = null; + onChanged(); + } else { + objectiveConfig_ = null; + objectiveConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + getObjectiveConfigBuilder() { + + onChanged(); + return getObjectiveConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigOrBuilder() { + if (objectiveConfigBuilder_ != null) { + return objectiveConfigBuilder_.getMessageOrBuilder(); + } else { + return objectiveConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance() + : objectiveConfig_; + } + } + /** + * + * + *
+     * The objective config of for the modelmonitoring job of this deployed model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + getObjectiveConfigFieldBuilder() { + if (objectiveConfigBuilder_ == null) { + objectiveConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder>( + getObjectiveConfig(), getParentForChildren(), isClean()); + objectiveConfig_ = null; + } + return objectiveConfigBuilder_; + } + + @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.ModelDeploymentMonitoringObjectiveConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelDeploymentMonitoringObjectiveConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelDeploymentMonitoringObjectiveConfig(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.ModelDeploymentMonitoringObjectiveConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfigOrBuilder.java new file mode 100644 index 000000000..3135f6c9e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfigOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelDeploymentMonitoringObjectiveConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DeployedModel ID of the objective config.
+   * 
+ * + * string deployed_model_id = 1; + * + * @return The deployedModelId. + */ + java.lang.String getDeployedModelId(); + /** + * + * + *
+   * The DeployedModel ID of the objective config.
+   * 
+ * + * string deployed_model_id = 1; + * + * @return The bytes for deployedModelId. + */ + com.google.protobuf.ByteString getDeployedModelIdBytes(); + + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return Whether the objectiveConfig field is set. + */ + boolean hasObjectiveConfig(); + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + * + * @return The objectiveConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfig(); + /** + * + * + *
+   * The objective config of for the modelmonitoring job of this deployed model.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_config = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveType.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveType.java new file mode 100644 index 000000000..75419f0a2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveType.java @@ -0,0 +1,235 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The Model Monitoring Objective types.
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} + */ +public enum ModelDeploymentMonitoringObjectiveType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value, should not be set.
+   * 
+ * + * MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0; + */ + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Raw feature values' stats to detect skew between Training-Prediction
+   * datasets.
+   * 
+ * + * RAW_FEATURE_SKEW = 1; + */ + RAW_FEATURE_SKEW(1), + /** + * + * + *
+   * Raw feature values' stats to detect drift between Serving-Prediction
+   * datasets.
+   * 
+ * + * RAW_FEATURE_DRIFT = 2; + */ + RAW_FEATURE_DRIFT(2), + /** + * + * + *
+   * Feature attribution scores to detect skew between Training-Prediction
+   * datasets.
+   * 
+ * + * FEATURE_ATTRIBUTION_SKEW = 3; + */ + FEATURE_ATTRIBUTION_SKEW(3), + /** + * + * + *
+   * Feature attribution scores to detect skew between Prediction datasets
+   * collected within different time windows.
+   * 
+ * + * FEATURE_ATTRIBUTION_DRIFT = 4; + */ + FEATURE_ATTRIBUTION_DRIFT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value, should not be set.
+   * 
+ * + * MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0; + */ + public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Raw feature values' stats to detect skew between Training-Prediction
+   * datasets.
+   * 
+ * + * RAW_FEATURE_SKEW = 1; + */ + public static final int RAW_FEATURE_SKEW_VALUE = 1; + /** + * + * + *
+   * Raw feature values' stats to detect drift between Serving-Prediction
+   * datasets.
+   * 
+ * + * RAW_FEATURE_DRIFT = 2; + */ + public static final int RAW_FEATURE_DRIFT_VALUE = 2; + /** + * + * + *
+   * Feature attribution scores to detect skew between Training-Prediction
+   * datasets.
+   * 
+ * + * FEATURE_ATTRIBUTION_SKEW = 3; + */ + public static final int FEATURE_ATTRIBUTION_SKEW_VALUE = 3; + /** + * + * + *
+   * Feature attribution scores to detect skew between Prediction datasets
+   * collected within different time windows.
+   * 
+ * + * FEATURE_ATTRIBUTION_DRIFT = 4; + */ + public static final int FEATURE_ATTRIBUTION_DRIFT_VALUE = 4; + + 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 ModelDeploymentMonitoringObjectiveType 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 ModelDeploymentMonitoringObjectiveType forNumber(int value) { + switch (value) { + case 0: + return MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED; + case 1: + return RAW_FEATURE_SKEW; + case 2: + return RAW_FEATURE_DRIFT; + case 3: + return FEATURE_ATTRIBUTION_SKEW; + case 4: + return FEATURE_ATTRIBUTION_DRIFT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + ModelDeploymentMonitoringObjectiveType> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelDeploymentMonitoringObjectiveType findValueByNumber(int number) { + return ModelDeploymentMonitoringObjectiveType.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.ModelDeploymentMonitoringJobProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ModelDeploymentMonitoringObjectiveType[] VALUES = values(); + + public static ModelDeploymentMonitoringObjectiveType 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 ModelDeploymentMonitoringObjectiveType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java new file mode 100644 index 000000000..8deae379d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java @@ -0,0 +1,792 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The config for scheduling monitoring job.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} + */ +public final class ModelDeploymentMonitoringScheduleConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + ModelDeploymentMonitoringScheduleConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelDeploymentMonitoringScheduleConfig.newBuilder() to construct. + private ModelDeploymentMonitoringScheduleConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelDeploymentMonitoringScheduleConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelDeploymentMonitoringScheduleConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelDeploymentMonitoringScheduleConfig( + 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.protobuf.Duration.Builder subBuilder = null; + if (monitorInterval_ != null) { + subBuilder = monitorInterval_.toBuilder(); + } + monitorInterval_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitorInterval_); + monitorInterval_ = 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.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder + .class); + } + + public static final int MONITOR_INTERVAL_FIELD_NUMBER = 1; + private com.google.protobuf.Duration monitorInterval_; + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the monitorInterval field is set. + */ + @java.lang.Override + public boolean hasMonitorInterval() { + return monitorInterval_ != null; + } + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The monitorInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getMonitorInterval() { + return monitorInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorInterval_; + } + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { + return getMonitorInterval(); + } + + 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 (monitorInterval_ != null) { + output.writeMessage(1, getMonitorInterval()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (monitorInterval_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMonitorInterval()); + } + 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.ModelDeploymentMonitoringScheduleConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) obj; + + if (hasMonitorInterval() != other.hasMonitorInterval()) return false; + if (hasMonitorInterval()) { + if (!getMonitorInterval().equals(other.getMonitorInterval())) 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 (hasMonitorInterval()) { + hash = (37 * hash) + MONITOR_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getMonitorInterval().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig + 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.ModelDeploymentMonitoringScheduleConfig 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 scheduling monitoring job.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.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 (monitorIntervalBuilder_ == null) { + monitorInterval_ = null; + } else { + monitorInterval_ = null; + monitorIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig build() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(this); + if (monitorIntervalBuilder_ == null) { + result.monitorInterval_ = monitorInterval_; + } else { + result.monitorInterval_ = monitorIntervalBuilder_.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.ModelDeploymentMonitoringScheduleConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance()) return this; + if (other.hasMonitorInterval()) { + mergeMonitorInterval(other.getMonitorInterval()); + } + 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.ModelDeploymentMonitoringScheduleConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration monitorInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + monitorIntervalBuilder_; + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the monitorInterval field is set. + */ + public boolean hasMonitorInterval() { + return monitorIntervalBuilder_ != null || monitorInterval_ != null; + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The monitorInterval. + */ + public com.google.protobuf.Duration getMonitorInterval() { + if (monitorIntervalBuilder_ == null) { + return monitorInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorInterval_; + } else { + return monitorIntervalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMonitorInterval(com.google.protobuf.Duration value) { + if (monitorIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitorInterval_ = value; + onChanged(); + } else { + monitorIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMonitorInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (monitorIntervalBuilder_ == null) { + monitorInterval_ = builderForValue.build(); + onChanged(); + } else { + monitorIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMonitorInterval(com.google.protobuf.Duration value) { + if (monitorIntervalBuilder_ == null) { + if (monitorInterval_ != null) { + monitorInterval_ = + com.google.protobuf.Duration.newBuilder(monitorInterval_) + .mergeFrom(value) + .buildPartial(); + } else { + monitorInterval_ = value; + } + onChanged(); + } else { + monitorIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMonitorInterval() { + if (monitorIntervalBuilder_ == null) { + monitorInterval_ = null; + onChanged(); + } else { + monitorInterval_ = null; + monitorIntervalBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getMonitorIntervalBuilder() { + + onChanged(); + return getMonitorIntervalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { + if (monitorIntervalBuilder_ != null) { + return monitorIntervalBuilder_.getMessageOrBuilder(); + } else { + return monitorInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorInterval_; + } + } + /** + * + * + *
+     * Required. The model monitoring job running interval. It will be rounded up to next
+     * full hour.
+     * 
+ * + * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMonitorIntervalFieldBuilder() { + if (monitorIntervalBuilder_ == null) { + monitorIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMonitorInterval(), getParentForChildren(), isClean()); + monitorInterval_ = null; + } + return monitorIntervalBuilder_; + } + + @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.ModelDeploymentMonitoringScheduleConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelDeploymentMonitoringScheduleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelDeploymentMonitoringScheduleConfig(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.ModelDeploymentMonitoringScheduleConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java new file mode 100644 index 000000000..5294ac28c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelDeploymentMonitoringScheduleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the monitorInterval field is set. + */ + boolean hasMonitorInterval(); + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The monitorInterval. + */ + com.google.protobuf.Duration getMonitorInterval(); + /** + * + * + *
+   * Required. The model monitoring job running interval. It will be rounded up to next
+   * full hour.
+   * 
+ * + * .google.protobuf.Duration monitor_interval = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java index a18f74929..f33ad3c9f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java @@ -1283,8 +1283,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1309,8 +1309,8 @@ public java.lang.String getMetricsSchemaUri() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2278,8 +2278,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2303,8 +2303,8 @@ public java.lang.String getMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2328,8 +2328,8 @@ public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2352,8 +2352,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2372,8 +2372,8 @@ public Builder clearMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-     * defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java index 894e4e2b4..49c427951 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java index 40c7fdd28..6cadd0ac7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java @@ -54,8 +54,8 @@ public interface ModelEvaluationOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -69,8 +69,8 @@ public interface ModelEvaluationOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
-   * defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java index 4705f5750..ba3d06db3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java @@ -1179,8 +1179,8 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice getSlice() *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1205,8 +1205,8 @@ public java.lang.String getMetricsSchemaUri() { *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2064,8 +2064,8 @@ public Builder clearSlice() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2089,8 +2089,8 @@ public java.lang.String getMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2114,8 +2114,8 @@ public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2138,8 +2138,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2158,8 +2158,8 @@ public Builder clearMetricsSchemaUri() { *
      * Output only. Points to a YAML file stored on Google Cloud Storage describing the
      * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-     * schema is defined as an OpenAPI 3.0.2
-     * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+     * schema is defined as an OpenAPI 3.0.2 [Schema
+     * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
      * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java index 24470b9e0..967db13f7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceOrBuilder.java index 34d4bd62b..cbcf43448 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceOrBuilder.java @@ -95,8 +95,8 @@ public interface ModelEvaluationSliceOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -110,8 +110,8 @@ public interface ModelEvaluationSliceOrBuilder *
    * Output only. Points to a YAML file stored on Google Cloud Storage describing the
    * [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
-   * schema is defined as an OpenAPI 3.0.2
-   * [Schema Object](https://tinyurl.com/y538mdwt#schema-object).
+   * schema is defined as an OpenAPI 3.0.2 [Schema
+   * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
    * 
* * string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java new file mode 100644 index 000000000..b3f9f2427 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java @@ -0,0 +1,1723 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Next ID: 2
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} + */ +public final class ModelMonitoringAlertConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + ModelMonitoringAlertConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelMonitoringAlertConfig.newBuilder() to construct. + private ModelMonitoringAlertConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelMonitoringAlertConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelMonitoringAlertConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelMonitoringAlertConfig( + 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.ModelMonitoringAlertConfig.EmailAlertConfig + .Builder + subBuilder = null; + if (alertCase_ == 1) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfig) + alert_) + .toBuilder(); + } + alert_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfig) + alert_); + alert_ = subBuilder.buildPartial(); + } + alertCase_ = 1; + 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_ModelMonitoringAlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder.class); + } + + public interface EmailAlertConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @return A list containing the userEmails. + */ + java.util.List getUserEmailsList(); + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @return The count of userEmails. + */ + int getUserEmailsCount(); + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the element to return. + * @return The userEmails at the given index. + */ + java.lang.String getUserEmails(int index); + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the value to return. + * @return The bytes of the userEmails at the given index. + */ + com.google.protobuf.ByteString getUserEmailsBytes(int index); + } + /** + * + * + *
+   * The config for email alert.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} + */ + public static final class EmailAlertConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + EmailAlertConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailAlertConfig.newBuilder() to construct. + private EmailAlertConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmailAlertConfig() { + userEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmailAlertConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmailAlertConfig( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userEmails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userEmails_.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)) { + userEmails_ = userEmails_.getUnmodifiableView(); + } + 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_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .Builder.class); + } + + public static final int USER_EMAILS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList userEmails_; + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @return A list containing the userEmails. + */ + public com.google.protobuf.ProtocolStringList getUserEmailsList() { + return userEmails_; + } + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @return The count of userEmails. + */ + public int getUserEmailsCount() { + return userEmails_.size(); + } + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the element to return. + * @return The userEmails at the given index. + */ + public java.lang.String getUserEmails(int index) { + return userEmails_.get(index); + } + /** + * + * + *
+     * The email addresses to send the alert.
+     * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the value to return. + * @return The bytes of the userEmails at the given index. + */ + public com.google.protobuf.ByteString getUserEmailsBytes(int index) { + return userEmails_.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 { + for (int i = 0; i < userEmails_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmails_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < userEmails_.size(); i++) { + dataSize += computeStringSizeNoTag(userEmails_.getRaw(i)); + } + size += dataSize; + size += 1 * getUserEmailsList().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.ModelMonitoringAlertConfig.EmailAlertConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) obj; + + if (!getUserEmailsList().equals(other.getUserEmailsList())) 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 (getUserEmailsCount() > 0) { + hash = (37 * hash) + USER_EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getUserEmailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig + 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.ModelMonitoringAlertConfig.EmailAlertConfig 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 email alert.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.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(); + userEmails_ = 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.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + userEmails_ = userEmails_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userEmails_ = userEmails_; + 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.ModelMonitoringAlertConfig.EmailAlertConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance()) return this; + if (!other.userEmails_.isEmpty()) { + if (userEmails_.isEmpty()) { + userEmails_ = other.userEmails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserEmailsIsMutable(); + userEmails_.addAll(other.userEmails_); + } + 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.ModelMonitoringAlertConfig.EmailAlertConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList userEmails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUserEmailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userEmails_ = new com.google.protobuf.LazyStringArrayList(userEmails_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @return A list containing the userEmails. + */ + public com.google.protobuf.ProtocolStringList getUserEmailsList() { + return userEmails_.getUnmodifiableView(); + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @return The count of userEmails. + */ + public int getUserEmailsCount() { + return userEmails_.size(); + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the element to return. + * @return The userEmails at the given index. + */ + public java.lang.String getUserEmails(int index) { + return userEmails_.get(index); + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param index The index of the value to return. + * @return The bytes of the userEmails at the given index. + */ + public com.google.protobuf.ByteString getUserEmailsBytes(int index) { + return userEmails_.getByteString(index); + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param index The index to set the value at. + * @param value The userEmails to set. + * @return This builder for chaining. + */ + public Builder setUserEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserEmailsIsMutable(); + userEmails_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param value The userEmails to add. + * @return This builder for chaining. + */ + public Builder addUserEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserEmailsIsMutable(); + userEmails_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param values The userEmails to add. + * @return This builder for chaining. + */ + public Builder addAllUserEmails(java.lang.Iterable values) { + ensureUserEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEmails_); + onChanged(); + return this; + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @return This builder for chaining. + */ + public Builder clearUserEmails() { + userEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The email addresses to send the alert.
+       * 
+ * + * repeated string user_emails = 1; + * + * @param value The bytes of the userEmails to add. + * @return This builder for chaining. + */ + public Builder addUserEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUserEmailsIsMutable(); + userEmails_.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.ModelMonitoringAlertConfig.EmailAlertConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailAlertConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailAlertConfig(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.ModelMonitoringAlertConfig.EmailAlertConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int alertCase_ = 0; + private java.lang.Object alert_; + + public enum AlertCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EMAIL_ALERT_CONFIG(1), + ALERT_NOT_SET(0); + private final int value; + + private AlertCase(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 AlertCase valueOf(int value) { + return forNumber(value); + } + + public static AlertCase forNumber(int value) { + switch (value) { + case 1: + return EMAIL_ALERT_CONFIG; + case 0: + return ALERT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AlertCase getAlertCase() { + return AlertCase.forNumber(alertCase_); + } + + public static final int EMAIL_ALERT_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return Whether the emailAlertConfig field is set. + */ + @java.lang.Override + public boolean hasEmailAlertConfig() { + return alertCase_ == 1; + } + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return The emailAlertConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + getEmailAlertConfig() { + if (alertCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_; + } + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder + getEmailAlertConfigOrBuilder() { + if (alertCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_; + } + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .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 (alertCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) alert_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (alertCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_); + } + 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.ModelMonitoringAlertConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) obj; + + if (!getAlertCase().equals(other.getAlertCase())) return false; + switch (alertCase_) { + case 1: + if (!getEmailAlertConfig().equals(other.getEmailAlertConfig())) 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 (alertCase_) { + case 1: + hash = (37 * hash) + EMAIL_ALERT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEmailAlertConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Next ID: 2
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.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(); + alertCase_ = 0; + alert_ = 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_ModelMonitoringAlertConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(this); + if (alertCase_ == 1) { + if (emailAlertConfigBuilder_ == null) { + result.alert_ = alert_; + } else { + result.alert_ = emailAlertConfigBuilder_.build(); + } + } + result.alertCase_ = alertCase_; + 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.ModelMonitoringAlertConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance()) + return this; + switch (other.getAlertCase()) { + case EMAIL_ALERT_CONFIG: + { + mergeEmailAlertConfig(other.getEmailAlertConfig()); + break; + } + case ALERT_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.ModelMonitoringAlertConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int alertCase_ = 0; + private java.lang.Object alert_; + + public AlertCase getAlertCase() { + return AlertCase.forNumber(alertCase_); + } + + public Builder clearAlert() { + alertCase_ = 0; + alert_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfigOrBuilder> + emailAlertConfigBuilder_; + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return Whether the emailAlertConfig field is set. + */ + @java.lang.Override + public boolean hasEmailAlertConfig() { + return alertCase_ == 1; + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return The emailAlertConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + getEmailAlertConfig() { + if (emailAlertConfigBuilder_ == null) { + if (alertCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_; + } + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } else { + if (alertCase_ == 1) { + return emailAlertConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + public Builder setEmailAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig value) { + if (emailAlertConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alert_ = value; + onChanged(); + } else { + emailAlertConfigBuilder_.setMessage(value); + } + alertCase_ = 1; + return this; + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + public Builder setEmailAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder + builderForValue) { + if (emailAlertConfigBuilder_ == null) { + alert_ = builderForValue.build(); + onChanged(); + } else { + emailAlertConfigBuilder_.setMessage(builderForValue.build()); + } + alertCase_ = 1; + return this; + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + public Builder mergeEmailAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig value) { + if (emailAlertConfigBuilder_ == null) { + if (alertCase_ == 1 + && alert_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance()) { + alert_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfig) + alert_) + .mergeFrom(value) + .buildPartial(); + } else { + alert_ = value; + } + onChanged(); + } else { + if (alertCase_ == 1) { + emailAlertConfigBuilder_.mergeFrom(value); + } + emailAlertConfigBuilder_.setMessage(value); + } + alertCase_ = 1; + return this; + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + public Builder clearEmailAlertConfig() { + if (emailAlertConfigBuilder_ == null) { + if (alertCase_ == 1) { + alertCase_ = 0; + alert_ = null; + onChanged(); + } + } else { + if (alertCase_ == 1) { + alertCase_ = 0; + alert_ = null; + } + emailAlertConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder + getEmailAlertConfigBuilder() { + return getEmailAlertConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder + getEmailAlertConfigOrBuilder() { + if ((alertCase_ == 1) && (emailAlertConfigBuilder_ != null)) { + return emailAlertConfigBuilder_.getMessageOrBuilder(); + } else { + if (alertCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_; + } + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Email alert config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfigOrBuilder> + getEmailAlertConfigFieldBuilder() { + if (emailAlertConfigBuilder_ == null) { + if (!(alertCase_ == 1)) { + alert_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .getDefaultInstance(); + } + emailAlertConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .EmailAlertConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + alert_, + getParentForChildren(), + isClean()); + alert_ = null; + } + alertCase_ = 1; + onChanged(); + ; + return emailAlertConfigBuilder_; + } + + @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.ModelMonitoringAlertConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelMonitoringAlertConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelMonitoringAlertConfig(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.ModelMonitoringAlertConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfigOrBuilder.java new file mode 100644 index 000000000..9b15b405c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfigOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelMonitoringAlertConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return Whether the emailAlertConfig field is set. + */ + boolean hasEmailAlertConfig(); + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + * + * @return The emailAlertConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + getEmailAlertConfig(); + /** + * + * + *
+   * Email alert config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder + getEmailAlertConfigOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.AlertCase getAlertCase(); +} 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 new file mode 100644 index 000000000..238844f64 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java @@ -0,0 +1,5935 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Next ID: 6
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} + */ +public final class ModelMonitoringObjectiveConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + ModelMonitoringObjectiveConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelMonitoringObjectiveConfig.newBuilder() to construct. + private ModelMonitoringObjectiveConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelMonitoringObjectiveConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelMonitoringObjectiveConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelMonitoringObjectiveConfig( + 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.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder + subBuilder = null; + if (trainingDataset_ != null) { + subBuilder = trainingDataset_.toBuilder(); + } + trainingDataset_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDataset.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingDataset_); + trainingDataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder + subBuilder = null; + if (trainingPredictionSkewDetectionConfig_ != null) { + subBuilder = trainingPredictionSkewDetectionConfig_.toBuilder(); + } + trainingPredictionSkewDetectionConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingPredictionSkewDetectionConfig_); + trainingPredictionSkewDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder + subBuilder = null; + if (predictionDriftDetectionConfig_ != null) { + subBuilder = predictionDriftDetectionConfig_.toBuilder(); + } + predictionDriftDetectionConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictionDriftDetectionConfig_); + predictionDriftDetectionConfig_ = 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_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_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder.class); + } + + public interface TrainingDatasetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The dataset. + */ + java.lang.String getDataset(); + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); + + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return The bigquerySource. + */ + com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource(); + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * + * + *
+     * Data format of the dataset, only applicable if the input is from
+     * Google Cloud Storage.
+     * The possible formats are:
+     * "tf-record"
+     * The source file is a TFRecord file.
+     * "csv"
+     * The source file is a CSV file.
+     * 
+ * + * string data_format = 2; + * + * @return The dataFormat. + */ + java.lang.String getDataFormat(); + /** + * + * + *
+     * Data format of the dataset, only applicable if the input is from
+     * Google Cloud Storage.
+     * The possible formats are:
+     * "tf-record"
+     * The source file is a TFRecord file.
+     * "csv"
+     * The source file is a CSV file.
+     * 
+ * + * string data_format = 2; + * + * @return The bytes for dataFormat. + */ + com.google.protobuf.ByteString getDataFormatBytes(); + + /** + * + * + *
+     * The target field name the model is to predict.
+     * This field will be excluded when doing Predict and (or) Explain for the
+     * training data.
+     * 
+ * + * string target_field = 6; + * + * @return The targetField. + */ + java.lang.String getTargetField(); + /** + * + * + *
+     * The target field name the model is to predict.
+     * This field will be excluded when doing Predict and (or) Explain for the
+     * training data.
+     * 
+ * + * string target_field = 6; + * + * @return The bytes for targetField. + */ + com.google.protobuf.ByteString getTargetFieldBytes(); + + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * @return Whether the loggingSamplingStrategy field is set. + */ + boolean hasLoggingSamplingStrategy(); + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * @return The loggingSamplingStrategy. + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy(); + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .DataSourceCase + getDataSourceCase(); + } + /** + * + * + *
+   * Training Dataset information.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} + */ + public static final class TrainingDataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + TrainingDatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingDataset.newBuilder() to construct. + private TrainingDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrainingDataset() { + dataFormat_ = ""; + targetField_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrainingDataset(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TrainingDataset( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + dataFormat_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + dataSourceCase_ = 3; + dataSource_ = s; + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder subBuilder = null; + if (dataSourceCase_ == 4) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_).toBuilder(); + } + dataSource_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_); + dataSource_ = subBuilder.buildPartial(); + } + dataSourceCase_ = 4; + break; + } + case 42: + { + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder subBuilder = null; + if (dataSourceCase_ == 5) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_) + .toBuilder(); + } + dataSource_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_); + dataSource_ = subBuilder.buildPartial(); + } + dataSourceCase_ = 5; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetField_ = s; + break; + } + case 58: + { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder subBuilder = null; + if (loggingSamplingStrategy_ != null) { + subBuilder = loggingSamplingStrategy_.toBuilder(); + } + loggingSamplingStrategy_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loggingSamplingStrategy_); + loggingSamplingStrategy_ = 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_TrainingDataset_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_TrainingDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder.class); + } + + private int dataSourceCase_ = 0; + private java.lang.Object dataSource_; + + public enum DataSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATASET(3), + GCS_SOURCE(4), + BIGQUERY_SOURCE(5), + DATASOURCE_NOT_SET(0); + private final int value; + + private DataSourceCase(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 DataSourceCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceCase forNumber(int value) { + switch (value) { + case 3: + return DATASET; + case 4: + return GCS_SOURCE; + case 5: + return BIGQUERY_SOURCE; + case 0: + return DATASOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public static final int DATASET_FIELD_NUMBER = 3; + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return dataSourceCase_ == 3; + } + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = ""; + if (dataSourceCase_ == 3) { + ref = dataSource_; + } + 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 (dataSourceCase_ == 3) { + dataSource_ = s; + } + return s; + } + } + /** + * + * + *
+     * The resource name of the Dataset used to train this Model.
+     * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = ""; + if (dataSourceCase_ == 3) { + ref = dataSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataSourceCase_ == 3) { + dataSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 4; + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } + /** + * + * + *
+     * The Google Cloud Storage uri of the unmanaged Dataset used to train
+     * this Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 5; + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return dataSourceCase_ == 5; + } + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { + if (dataSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
+     * The BigQuery table of the unmanaged Dataset used to train this
+     * Model.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if (dataSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + + public static final int DATA_FORMAT_FIELD_NUMBER = 2; + private volatile java.lang.Object dataFormat_; + /** + * + * + *
+     * Data format of the dataset, only applicable if the input is from
+     * Google Cloud Storage.
+     * The possible formats are:
+     * "tf-record"
+     * The source file is a TFRecord file.
+     * "csv"
+     * The source file is a CSV file.
+     * 
+ * + * string data_format = 2; + * + * @return The dataFormat. + */ + @java.lang.Override + public java.lang.String getDataFormat() { + java.lang.Object ref = dataFormat_; + 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(); + dataFormat_ = s; + return s; + } + } + /** + * + * + *
+     * Data format of the dataset, only applicable if the input is from
+     * Google Cloud Storage.
+     * The possible formats are:
+     * "tf-record"
+     * The source file is a TFRecord file.
+     * "csv"
+     * The source file is a CSV file.
+     * 
+ * + * string data_format = 2; + * + * @return The bytes for dataFormat. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataFormatBytes() { + java.lang.Object ref = dataFormat_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_FIELD_NUMBER = 6; + private volatile java.lang.Object targetField_; + /** + * + * + *
+     * The target field name the model is to predict.
+     * This field will be excluded when doing Predict and (or) Explain for the
+     * training data.
+     * 
+ * + * string target_field = 6; + * + * @return The targetField. + */ + @java.lang.Override + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; + 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(); + targetField_ = s; + return s; + } + } + /** + * + * + *
+     * The target field name the model is to predict.
+     * This field will be excluded when doing Predict and (or) Explain for the
+     * training data.
+     * 
+ * + * string target_field = 6; + * + * @return The bytes for targetField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy loggingSamplingStrategy_; + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * @return Whether the loggingSamplingStrategy field is set. + */ + @java.lang.Override + public boolean hasLoggingSamplingStrategy() { + return loggingSamplingStrategy_ != null; + } + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * @return The loggingSamplingStrategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy() { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } + /** + * + * + *
+     * Strategy to sample data from Training Dataset.
+     * If not set, we process the whole dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder() { + return getLoggingSamplingStrategy(); + } + + 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 (!getDataFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataFormat_); + } + if (dataSourceCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataSource_); + } + if (dataSourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_); + } + if (dataSourceCase_ == 5) { + output.writeMessage(5, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_); + } + if (!getTargetFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, targetField_); + } + if (loggingSamplingStrategy_ != null) { + output.writeMessage(7, getLoggingSamplingStrategy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDataFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataFormat_); + } + if (dataSourceCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataSource_); + } + if (dataSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_); + } + if (dataSourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_); + } + if (!getTargetFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, targetField_); + } + if (loggingSamplingStrategy_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getLoggingSamplingStrategy()); + } + 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.TrainingDataset)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) obj; + + if (!getDataFormat().equals(other.getDataFormat())) return false; + if (!getTargetField().equals(other.getTargetField())) return false; + if (hasLoggingSamplingStrategy() != other.hasLoggingSamplingStrategy()) return false; + if (hasLoggingSamplingStrategy()) { + if (!getLoggingSamplingStrategy().equals(other.getLoggingSamplingStrategy())) return false; + } + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 3: + if (!getDataset().equals(other.getDataset())) return false; + break; + case 4: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 5: + if (!getBigquerySource().equals(other.getBigquerySource())) 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) + DATA_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getDataFormat().hashCode(); + hash = (37 * hash) + TARGET_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getTargetField().hashCode(); + if (hasLoggingSamplingStrategy()) { + hash = (37 * hash) + LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getLoggingSamplingStrategy().hashCode(); + } + switch (dataSourceCase_) { + case 3: + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + break; + case 4: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 5: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + 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.TrainingDataset + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + 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.TrainingDataset + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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.TrainingDataset + 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; + } + /** + * + * + *
+     * Training Dataset information.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_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_TrainingDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.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(); + dataFormat_ = ""; + + targetField_ = ""; + + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = null; + } else { + loggingSamplingStrategy_ = null; + loggingSamplingStrategyBuilder_ = null; + } + dataSourceCase_ = 0; + dataSource_ = 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_TrainingDataset_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset( + this); + if (dataSourceCase_ == 3) { + result.dataSource_ = dataSource_; + } + if (dataSourceCase_ == 4) { + if (gcsSourceBuilder_ == null) { + result.dataSource_ = dataSource_; + } else { + result.dataSource_ = gcsSourceBuilder_.build(); + } + } + if (dataSourceCase_ == 5) { + if (bigquerySourceBuilder_ == null) { + result.dataSource_ = dataSource_; + } else { + result.dataSource_ = bigquerySourceBuilder_.build(); + } + } + result.dataFormat_ = dataFormat_; + result.targetField_ = targetField_; + if (loggingSamplingStrategyBuilder_ == null) { + result.loggingSamplingStrategy_ = loggingSamplingStrategy_; + } else { + result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); + } + result.dataSourceCase_ = dataSourceCase_; + 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.TrainingDataset) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance()) return this; + if (!other.getDataFormat().isEmpty()) { + dataFormat_ = other.dataFormat_; + onChanged(); + } + if (!other.getTargetField().isEmpty()) { + targetField_ = other.targetField_; + onChanged(); + } + if (other.hasLoggingSamplingStrategy()) { + mergeLoggingSamplingStrategy(other.getLoggingSamplingStrategy()); + } + switch (other.getDataSourceCase()) { + case DATASET: + { + dataSourceCase_ = 3; + dataSource_ = other.dataSource_; + onChanged(); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case DATASOURCE_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.TrainingDataset + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int dataSourceCase_ = 0; + private java.lang.Object dataSource_; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public Builder clearDataSource() { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return dataSourceCase_ == 3; + } + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = ""; + if (dataSourceCase_ == 3) { + ref = dataSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataSourceCase_ == 3) { + dataSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = ""; + if (dataSourceCase_ == 3) { + ref = dataSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataSourceCase_ == 3) { + dataSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceCase_ = 3; + dataSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + if (dataSourceCase_ == 3) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The resource name of the Dataset used to train this Model.
+       * 
+ * + * string dataset = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceCase_ = 3; + dataSource_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } else { + if (dataSourceCase_ == 4) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + public Builder setGcsSource( + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (dataSourceCase_ == 4 + && dataSource_ + != com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 4) { + gcsSourceBuilder_.mergeFrom(value); + } + gcsSourceBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((dataSourceCase_ == 4) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * The Google Cloud Storage uri of the unmanaged Dataset used to train
+       * this Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(dataSourceCase_ == 4)) { + dataSource_ = com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.GcsSource) dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 4; + onChanged(); + ; + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return dataSourceCase_ == 5; + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (dataSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } else { + if (dataSourceCase_ == 5) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + public Builder setBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + dataSourceCase_ = 5; + return this; + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + public Builder setBigquerySource( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 5; + return this; + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + public Builder mergeBigquerySource(com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (dataSourceCase_ == 5 + && dataSource_ + != com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.BigQuerySource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 5) { + bigquerySourceBuilder_.mergeFrom(value); + } + bigquerySourceBuilder_.setMessage(value); + } + dataSourceCase_ = 5; + return this; + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (dataSourceCase_ == 5) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 5) { + dataSourceCase_ = 0; + dataSource_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((dataSourceCase_ == 5) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+       * The BigQuery table of the unmanaged Dataset used to train this
+       * Model.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_source = 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> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(dataSourceCase_ == 5)) { + dataSource_ = com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + 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) dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 5; + onChanged(); + ; + return bigquerySourceBuilder_; + } + + private java.lang.Object dataFormat_ = ""; + /** + * + * + *
+       * Data format of the dataset, only applicable if the input is from
+       * Google Cloud Storage.
+       * The possible formats are:
+       * "tf-record"
+       * The source file is a TFRecord file.
+       * "csv"
+       * The source file is a CSV file.
+       * 
+ * + * string data_format = 2; + * + * @return The dataFormat. + */ + public java.lang.String getDataFormat() { + java.lang.Object ref = dataFormat_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataFormat_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Data format of the dataset, only applicable if the input is from
+       * Google Cloud Storage.
+       * The possible formats are:
+       * "tf-record"
+       * The source file is a TFRecord file.
+       * "csv"
+       * The source file is a CSV file.
+       * 
+ * + * string data_format = 2; + * + * @return The bytes for dataFormat. + */ + public com.google.protobuf.ByteString getDataFormatBytes() { + java.lang.Object ref = dataFormat_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Data format of the dataset, only applicable if the input is from
+       * Google Cloud Storage.
+       * The possible formats are:
+       * "tf-record"
+       * The source file is a TFRecord file.
+       * "csv"
+       * The source file is a CSV file.
+       * 
+ * + * string data_format = 2; + * + * @param value The dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataFormat_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Data format of the dataset, only applicable if the input is from
+       * Google Cloud Storage.
+       * The possible formats are:
+       * "tf-record"
+       * The source file is a TFRecord file.
+       * "csv"
+       * The source file is a CSV file.
+       * 
+ * + * string data_format = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataFormat() { + + dataFormat_ = getDefaultInstance().getDataFormat(); + onChanged(); + return this; + } + /** + * + * + *
+       * Data format of the dataset, only applicable if the input is from
+       * Google Cloud Storage.
+       * The possible formats are:
+       * "tf-record"
+       * The source file is a TFRecord file.
+       * "csv"
+       * The source file is a CSV file.
+       * 
+ * + * string data_format = 2; + * + * @param value The bytes for dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataFormat_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetField_ = ""; + /** + * + * + *
+       * The target field name the model is to predict.
+       * This field will be excluded when doing Predict and (or) Explain for the
+       * training data.
+       * 
+ * + * string target_field = 6; + * + * @return The targetField. + */ + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The target field name the model is to predict.
+       * This field will be excluded when doing Predict and (or) Explain for the
+       * training data.
+       * 
+ * + * string target_field = 6; + * + * @return The bytes for targetField. + */ + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The target field name the model is to predict.
+       * This field will be excluded when doing Predict and (or) Explain for the
+       * training data.
+       * 
+ * + * string target_field = 6; + * + * @param value The targetField to set. + * @return This builder for chaining. + */ + public Builder setTargetField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The target field name the model is to predict.
+       * This field will be excluded when doing Predict and (or) Explain for the
+       * training data.
+       * 
+ * + * string target_field = 6; + * + * @return This builder for chaining. + */ + public Builder clearTargetField() { + + targetField_ = getDefaultInstance().getTargetField(); + onChanged(); + return this; + } + /** + * + * + *
+       * The target field name the model is to predict.
+       * This field will be excluded when doing Predict and (or) Explain for the
+       * training data.
+       * 
+ * + * string target_field = 6; + * + * @param value The bytes for targetField to set. + * @return This builder for chaining. + */ + public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetField_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy loggingSamplingStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder> + loggingSamplingStrategyBuilder_; + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * + * @return Whether the loggingSamplingStrategy field is set. + */ + public boolean hasLoggingSamplingStrategy() { + return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + * + * @return The loggingSamplingStrategy. + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingStrategy() { + if (loggingSamplingStrategyBuilder_ == null) { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } else { + return loggingSamplingStrategyBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public Builder setLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { + if (loggingSamplingStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingSamplingStrategy_ = value; + onChanged(); + } else { + loggingSamplingStrategyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public Builder setLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder builderForValue) { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = builderForValue.build(); + onChanged(); + } else { + loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public Builder mergeLoggingSamplingStrategy( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { + if (loggingSamplingStrategyBuilder_ == null) { + if (loggingSamplingStrategy_ != null) { + loggingSamplingStrategy_ = + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.newBuilder( + loggingSamplingStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingSamplingStrategy_ = value; + } + onChanged(); + } else { + loggingSamplingStrategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public Builder clearLoggingSamplingStrategy() { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategy_ = null; + onChanged(); + } else { + loggingSamplingStrategy_ = null; + loggingSamplingStrategyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder + getLoggingSamplingStrategyBuilder() { + + onChanged(); + return getLoggingSamplingStrategyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder + getLoggingSamplingStrategyOrBuilder() { + if (loggingSamplingStrategyBuilder_ != null) { + return loggingSamplingStrategyBuilder_.getMessageOrBuilder(); + } else { + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; + } + } + /** + * + * + *
+       * Strategy to sample data from Training Dataset.
+       * If not set, we process the whole dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy logging_sampling_strategy = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder> + getLoggingSamplingStrategyFieldBuilder() { + if (loggingSamplingStrategyBuilder_ == null) { + loggingSamplingStrategyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder>( + getLoggingSamplingStrategy(), getParentForChildren(), isClean()); + loggingSamplingStrategy_ = null; + } + return loggingSamplingStrategyBuilder_; + } + + @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.TrainingDataset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDataset + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingDataset(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.TrainingDataset + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TrainingPredictionSkewDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + boolean containsSkewThresholds(java.lang.String key); + /** Use {@link #getSkewThresholdsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getSkewThresholds(); + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + java.util.Map + getSkewThresholdsMap(); + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( + java.lang.String key); + } + /** + * + * + *
+   * The config for Training & Prediction data skew detection. It specifies the
+   * training dataset sources and the skew detection parameters.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} + */ + public static final class TrainingPredictionSkewDetectionConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + TrainingPredictionSkewDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingPredictionSkewDetectionConfig.newBuilder() to construct. + private TrainingPredictionSkewDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrainingPredictionSkewDetectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrainingPredictionSkewDetectionConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TrainingPredictionSkewDetectionConfig( + 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)) { + skewThresholds_ = + com.google.protobuf.MapField.newMapField( + SkewThresholdsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + skewThresholds__ = + input.readMessage( + SkewThresholdsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + skewThresholds_ + .getMutableMap() + .put(skewThresholds__.getKey(), skewThresholds__.getValue()); + 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_TrainingPredictionSkewDetectionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSkewThresholds(); + 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_TrainingPredictionSkewDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder.class); + } + + public static final int SKEW_THRESHOLDS_FIELD_NUMBER = 1; + + private static final class SkewThresholdsDefaultEntryHolder { + 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_SkewThresholdsEntry_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> + skewThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetSkewThresholds() { + if (skewThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkewThresholdsDefaultEntryHolder.defaultEntry); + } + return skewThresholds_; + } + + public int getSkewThresholdsCount() { + return internalGetSkewThresholds().getMap().size(); + } + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public boolean containsSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSkewThresholds().getMap().containsKey(key); + } + /** Use {@link #getSkewThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getSkewThresholds() { + return getSkewThresholdsMap(); + } + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public java.util.Map + getSkewThresholdsMap() { + return internalGetSkewThresholds().getMap(); + } + /** + * + * + *
+     * 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
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSkewThresholds().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 skew, a value threshold must be configed for that
+     * feature. The threshold here is against feature distribution distance
+     * between the training and prediction feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSkewThresholds().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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSkewThresholds(), SkewThresholdsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + entry : internalGetSkewThresholds().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + skewThresholds__ = + SkewThresholdsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skewThresholds__); + } + 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 + .TrainingPredictionSkewDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig) + obj; + + if (!internalGetSkewThresholds().equals(other.internalGetSkewThresholds())) 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 (!internalGetSkewThresholds().getMap().isEmpty()) { + hash = (37 * hash) + SKEW_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSkewThresholds().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 + .TrainingPredictionSkewDetectionConfig + 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 Training & Prediction data skew detection. It specifies the
+     * training dataset sources and the skew detection parameters.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSkewThresholds(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableSkewThresholds(); + 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_TrainingPredictionSkewDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.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(); + internalGetMutableSkewThresholds().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_TrainingPredictionSkewDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig(this); + int from_bitField0_ = bitField0_; + result.skewThresholds_ = internalGetSkewThresholds(); + result.skewThresholds_.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 + .TrainingPredictionSkewDetectionConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) return this; + internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); + 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 + .TrainingPredictionSkewDetectionConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig) + 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> + skewThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetSkewThresholds() { + if (skewThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkewThresholdsDefaultEntryHolder.defaultEntry); + } + return skewThresholds_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetMutableSkewThresholds() { + onChanged(); + ; + if (skewThresholds_ == null) { + skewThresholds_ = + com.google.protobuf.MapField.newMapField( + SkewThresholdsDefaultEntryHolder.defaultEntry); + } + if (!skewThresholds_.isMutable()) { + skewThresholds_ = skewThresholds_.copy(); + } + return skewThresholds_; + } + + public int getSkewThresholdsCount() { + return internalGetSkewThresholds().getMap().size(); + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public boolean containsSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSkewThresholds().getMap().containsKey(key); + } + /** Use {@link #getSkewThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getSkewThresholds() { + return getSkewThresholdsMap(); + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public java.util.Map + getSkewThresholdsMap() { + return internalGetSkewThresholds().getMap(); + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSkewThresholds().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 skew, a value threshold must be configed for that
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSkewThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkewThresholds() { + internalGetMutableSkewThresholds().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + public Builder removeSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableSkewThresholds().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableSkewThresholds() { + return internalGetMutableSkewThresholds().getMutableMap(); + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + public Builder putSkewThresholds( + 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(); + } + internalGetMutableSkewThresholds().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * 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
+       * feature. The threshold here is against feature distribution distance
+       * between the training and prediction feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; + * + */ + public Builder putAllSkewThresholds( + java.util.Map + values) { + internalGetMutableSkewThresholds().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
+     * feature. The threshold here is against feature distribution distance
+     * between different time windws.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + 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
+     * feature. The threshold here is against feature distribution distance
+     * between different time windws.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + boolean containsDriftThresholds(java.lang.String key); + /** Use {@link #getDriftThresholdsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getDriftThresholds(); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + java.util.Map + 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.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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 configed 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; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( + java.lang.String key); + } + /** + * + * + *
+   * The config for Prediction data drift detection.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} + */ + public static final class PredictionDriftDetectionConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + PredictionDriftDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PredictionDriftDetectionConfig.newBuilder() to construct. + private PredictionDriftDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PredictionDriftDetectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PredictionDriftDetectionConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PredictionDriftDetectionConfig( + 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)) { + driftThresholds_ = + com.google.protobuf.MapField.newMapField( + DriftThresholdsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + driftThresholds__ = + input.readMessage( + DriftThresholdsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + driftThresholds_ + .getMutableMap() + .put(driftThresholds__.getKey(), driftThresholds__.getValue()); + 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_PredictionDriftDetectionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetDriftThresholds(); + 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); + } + + public static final int DRIFT_THRESHOLDS_FIELD_NUMBER = 1; + + private static final class DriftThresholdsDefaultEntryHolder { + 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_DriftThresholdsEntry_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> + 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_; + } + + 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 configed 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 configed 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 configed 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 configed 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); + } + + 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, internalGetDriftThresholds(), DriftThresholdsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + entry : internalGetDriftThresholds().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + driftThresholds__ = + DriftThresholdsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, driftThresholds__); + } + 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 (!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(); + } + 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(); + 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); + } + } + + @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(); + 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(); + 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()); + 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 configed 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 configed 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 configed 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 configed 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 configed 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 configed 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 configed 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; + } + + @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 static final int TRAINING_DATASET_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + trainingDataset_; + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return Whether the trainingDataset field is set. + */ + @java.lang.Override + public boolean hasTrainingDataset() { + return trainingDataset_ != null; + } + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return The trainingDataset. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + getTrainingDataset() { + return trainingDataset_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance() + : trainingDataset_; + } + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDatasetOrBuilder + getTrainingDatasetOrBuilder() { + return getTrainingDataset(); + } + + public static final int TRAINING_PREDICTION_SKEW_DETECTION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + trainingPredictionSkewDetectionConfig_; + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return Whether the trainingPredictionSkewDetectionConfig field is set. + */ + @java.lang.Override + public boolean hasTrainingPredictionSkewDetectionConfig() { + return trainingPredictionSkewDetectionConfig_ != null; + } + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return The trainingPredictionSkewDetectionConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getTrainingPredictionSkewDetectionConfig() { + return trainingPredictionSkewDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance() + : trainingPredictionSkewDetectionConfig_; + } + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder + getTrainingPredictionSkewDetectionConfigOrBuilder() { + return getTrainingPredictionSkewDetectionConfig(); + } + + public static final int PREDICTION_DRIFT_DETECTION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + predictionDriftDetectionConfig_; + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return Whether the predictionDriftDetectionConfig field is set. + */ + @java.lang.Override + public boolean hasPredictionDriftDetectionConfig() { + return predictionDriftDetectionConfig_ != null; + } + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return The predictionDriftDetectionConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + getPredictionDriftDetectionConfig() { + return predictionDriftDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance() + : predictionDriftDetectionConfig_; + } + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder + getPredictionDriftDetectionConfigOrBuilder() { + return getPredictionDriftDetectionConfig(); + } + + 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 (trainingDataset_ != null) { + output.writeMessage(1, getTrainingDataset()); + } + if (trainingPredictionSkewDetectionConfig_ != null) { + output.writeMessage(2, getTrainingPredictionSkewDetectionConfig()); + } + if (predictionDriftDetectionConfig_ != null) { + output.writeMessage(3, getPredictionDriftDetectionConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trainingDataset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTrainingDataset()); + } + if (trainingPredictionSkewDetectionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getTrainingPredictionSkewDetectionConfig()); + } + if (predictionDriftDetectionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getPredictionDriftDetectionConfig()); + } + 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)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) obj; + + if (hasTrainingDataset() != other.hasTrainingDataset()) return false; + if (hasTrainingDataset()) { + if (!getTrainingDataset().equals(other.getTrainingDataset())) return false; + } + if (hasTrainingPredictionSkewDetectionConfig() + != other.hasTrainingPredictionSkewDetectionConfig()) return false; + if (hasTrainingPredictionSkewDetectionConfig()) { + if (!getTrainingPredictionSkewDetectionConfig() + .equals(other.getTrainingPredictionSkewDetectionConfig())) return false; + } + if (hasPredictionDriftDetectionConfig() != other.hasPredictionDriftDetectionConfig()) + return false; + if (hasPredictionDriftDetectionConfig()) { + if (!getPredictionDriftDetectionConfig().equals(other.getPredictionDriftDetectionConfig())) + 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 (hasTrainingDataset()) { + hash = (37 * hash) + TRAINING_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getTrainingDataset().hashCode(); + } + if (hasTrainingPredictionSkewDetectionConfig()) { + hash = (37 * hash) + TRAINING_PREDICTION_SKEW_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingPredictionSkewDetectionConfig().hashCode(); + } + if (hasPredictionDriftDetectionConfig()) { + hash = (37 * hash) + PREDICTION_DRIFT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPredictionDriftDetectionConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig 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 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig 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 parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig 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 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 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 + 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 + 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 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 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 prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Next ID: 6
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_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_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.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 (trainingDatasetBuilder_ == null) { + trainingDataset_ = null; + } else { + trainingDataset_ = null; + trainingDatasetBuilder_ = null; + } + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + trainingPredictionSkewDetectionConfig_ = null; + } else { + trainingPredictionSkewDetectionConfig_ = null; + trainingPredictionSkewDetectionConfigBuilder_ = null; + } + if (predictionDriftDetectionConfigBuilder_ == null) { + predictionDriftDetectionConfig_ = null; + } else { + predictionDriftDetectionConfig_ = null; + predictionDriftDetectionConfigBuilder_ = 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_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(this); + if (trainingDatasetBuilder_ == null) { + result.trainingDataset_ = trainingDataset_; + } else { + result.trainingDataset_ = trainingDatasetBuilder_.build(); + } + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + result.trainingPredictionSkewDetectionConfig_ = trainingPredictionSkewDetectionConfig_; + } else { + result.trainingPredictionSkewDetectionConfig_ = + trainingPredictionSkewDetectionConfigBuilder_.build(); + } + if (predictionDriftDetectionConfigBuilder_ == null) { + result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfig_; + } else { + result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfigBuilder_.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.ModelMonitoringObjectiveConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance()) return this; + if (other.hasTrainingDataset()) { + mergeTrainingDataset(other.getTrainingDataset()); + } + if (other.hasTrainingPredictionSkewDetectionConfig()) { + mergeTrainingPredictionSkewDetectionConfig( + other.getTrainingPredictionSkewDetectionConfig()); + } + if (other.hasPredictionDriftDetectionConfig()) { + mergePredictionDriftDetectionConfig(other.getPredictionDriftDetectionConfig()); + } + 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 parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + trainingDataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDatasetOrBuilder> + trainingDatasetBuilder_; + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return Whether the trainingDataset field is set. + */ + public boolean hasTrainingDataset() { + return trainingDatasetBuilder_ != null || trainingDataset_ != null; + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return The trainingDataset. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + getTrainingDataset() { + if (trainingDatasetBuilder_ == null) { + return trainingDataset_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance() + : trainingDataset_; + } else { + return trainingDatasetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public Builder setTrainingDataset( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset value) { + if (trainingDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingDataset_ = value; + onChanged(); + } else { + trainingDatasetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public Builder setTrainingDataset( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.Builder + builderForValue) { + if (trainingDatasetBuilder_ == null) { + trainingDataset_ = builderForValue.build(); + onChanged(); + } else { + trainingDatasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public Builder mergeTrainingDataset( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset value) { + if (trainingDatasetBuilder_ == null) { + if (trainingDataset_ != null) { + trainingDataset_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .newBuilder(trainingDataset_) + .mergeFrom(value) + .buildPartial(); + } else { + trainingDataset_ = value; + } + onChanged(); + } else { + trainingDatasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public Builder clearTrainingDataset() { + if (trainingDatasetBuilder_ == null) { + trainingDataset_ = null; + onChanged(); + } else { + trainingDataset_ = null; + trainingDatasetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder + getTrainingDatasetBuilder() { + + onChanged(); + return getTrainingDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDatasetOrBuilder + getTrainingDatasetOrBuilder() { + if (trainingDatasetBuilder_ != null) { + return trainingDatasetBuilder_.getMessageOrBuilder(); + } else { + return trainingDataset_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance() + : trainingDataset_; + } + } + /** + * + * + *
+     * Training dataset for models. This field has to be set only if
+     * TrainingPredictionSkewDetectionConfig is specified.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDatasetOrBuilder> + getTrainingDatasetFieldBuilder() { + if (trainingDatasetBuilder_ == null) { + trainingDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDatasetOrBuilder>( + getTrainingDataset(), getParentForChildren(), isClean()); + trainingDataset_ = null; + } + return trainingDatasetBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + trainingPredictionSkewDetectionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder> + trainingPredictionSkewDetectionConfigBuilder_; + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return Whether the trainingPredictionSkewDetectionConfig field is set. + */ + public boolean hasTrainingPredictionSkewDetectionConfig() { + return trainingPredictionSkewDetectionConfigBuilder_ != null + || trainingPredictionSkewDetectionConfig_ != null; + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return The trainingPredictionSkewDetectionConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getTrainingPredictionSkewDetectionConfig() { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + return trainingPredictionSkewDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance() + : trainingPredictionSkewDetectionConfig_; + } else { + return trainingPredictionSkewDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public Builder setTrainingPredictionSkewDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + value) { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingPredictionSkewDetectionConfig_ = value; + onChanged(); + } else { + trainingPredictionSkewDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public Builder setTrainingPredictionSkewDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder + builderForValue) { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + trainingPredictionSkewDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + trainingPredictionSkewDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public Builder mergeTrainingPredictionSkewDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + value) { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + if (trainingPredictionSkewDetectionConfig_ != null) { + trainingPredictionSkewDetectionConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.newBuilder( + trainingPredictionSkewDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + trainingPredictionSkewDetectionConfig_ = value; + } + onChanged(); + } else { + trainingPredictionSkewDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public Builder clearTrainingPredictionSkewDetectionConfig() { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + trainingPredictionSkewDetectionConfig_ = null; + onChanged(); + } else { + trainingPredictionSkewDetectionConfig_ = null; + trainingPredictionSkewDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder + getTrainingPredictionSkewDetectionConfigBuilder() { + + onChanged(); + return getTrainingPredictionSkewDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder + getTrainingPredictionSkewDetectionConfigOrBuilder() { + if (trainingPredictionSkewDetectionConfigBuilder_ != null) { + return trainingPredictionSkewDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return trainingPredictionSkewDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance() + : trainingPredictionSkewDetectionConfig_; + } + } + /** + * + * + *
+     * The config for skew between training data and prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder> + getTrainingPredictionSkewDetectionConfigFieldBuilder() { + if (trainingPredictionSkewDetectionConfigBuilder_ == null) { + trainingPredictionSkewDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder>( + getTrainingPredictionSkewDetectionConfig(), getParentForChildren(), isClean()); + trainingPredictionSkewDetectionConfig_ = null; + } + return trainingPredictionSkewDetectionConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + predictionDriftDetectionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder> + predictionDriftDetectionConfigBuilder_; + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return Whether the predictionDriftDetectionConfig field is set. + */ + public boolean hasPredictionDriftDetectionConfig() { + return predictionDriftDetectionConfigBuilder_ != null + || predictionDriftDetectionConfig_ != null; + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return The predictionDriftDetectionConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + getPredictionDriftDetectionConfig() { + if (predictionDriftDetectionConfigBuilder_ == null) { + return predictionDriftDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance() + : predictionDriftDetectionConfig_; + } else { + return predictionDriftDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public Builder setPredictionDriftDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + value) { + if (predictionDriftDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictionDriftDetectionConfig_ = value; + onChanged(); + } else { + predictionDriftDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public Builder setPredictionDriftDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder + builderForValue) { + if (predictionDriftDetectionConfigBuilder_ == null) { + predictionDriftDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + predictionDriftDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public Builder mergePredictionDriftDetectionConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + value) { + if (predictionDriftDetectionConfigBuilder_ == null) { + if (predictionDriftDetectionConfig_ != null) { + predictionDriftDetectionConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.newBuilder(predictionDriftDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + predictionDriftDetectionConfig_ = value; + } + onChanged(); + } else { + predictionDriftDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public Builder clearPredictionDriftDetectionConfig() { + if (predictionDriftDetectionConfigBuilder_ == null) { + predictionDriftDetectionConfig_ = null; + onChanged(); + } else { + predictionDriftDetectionConfig_ = null; + predictionDriftDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder + getPredictionDriftDetectionConfigBuilder() { + + onChanged(); + return getPredictionDriftDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder + getPredictionDriftDetectionConfigOrBuilder() { + if (predictionDriftDetectionConfigBuilder_ != null) { + return predictionDriftDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return predictionDriftDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance() + : predictionDriftDetectionConfig_; + } + } + /** + * + * + *
+     * The config for drift of prediction data.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder> + getPredictionDriftDetectionConfigFieldBuilder() { + if (predictionDriftDetectionConfigBuilder_ == null) { + predictionDriftDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder>( + getPredictionDriftDetectionConfig(), getParentForChildren(), isClean()); + predictionDriftDetectionConfig_ = null; + } + return predictionDriftDetectionConfigBuilder_; + } + + @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) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelMonitoringObjectiveConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelMonitoringObjectiveConfig(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 + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..fd183a88f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelMonitoringObjectiveConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return Whether the trainingDataset field is set. + */ + boolean hasTrainingDataset(); + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + * + * @return The trainingDataset. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + getTrainingDataset(); + /** + * + * + *
+   * Training dataset for models. This field has to be set only if
+   * TrainingPredictionSkewDetectionConfig is specified.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset training_dataset = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDatasetOrBuilder + getTrainingDatasetOrBuilder(); + + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return Whether the trainingPredictionSkewDetectionConfig field is set. + */ + boolean hasTrainingPredictionSkewDetectionConfig(); + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + * + * @return The trainingPredictionSkewDetectionConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getTrainingPredictionSkewDetectionConfig(); + /** + * + * + *
+   * The config for skew between training data and prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfigOrBuilder + getTrainingPredictionSkewDetectionConfigOrBuilder(); + + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return Whether the predictionDriftDetectionConfig field is set. + */ + boolean hasPredictionDriftDetectionConfig(); + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + * + * @return The predictionDriftDetectionConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + getPredictionDriftDetectionConfig(); + /** + * + * + *
+   * The config for drift of prediction data.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder + getPredictionDriftDetectionConfigOrBuilder(); +} 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 new file mode 100644 index 000000000..220be8fe3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java @@ -0,0 +1,266 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class ModelMonitoringProto { + private ModelMonitoringProto() {} + + 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_v1beta1_ModelMonitoringObjectiveConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_PredictionDriftDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_ModelMonitoringAlertConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/aiplatform/v1beta1/model_" + + "monitoring.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\031google/api/resource.proto\032(go" + + "ogle/cloud/aiplatform/v1beta1/io.proto\032\034" + + "google/api/annotations.proto\"\344\n\n\036ModelMo" + + "nitoringObjectiveConfig\022i\n\020training_data" + + "set\030\001 \001(\0132O.google.cloud.aiplatform.v1be" + + "ta1.ModelMonitoringObjectiveConfig.Train" + + "ingDataset\022\230\001\n)training_prediction_skew_" + + "detection_config\030\002 \001(\0132e.google.cloud.ai" + + "platform.v1beta1.ModelMonitoringObjectiv" + + "eConfig.TrainingPredictionSkewDetectionC" + + "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" + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor, + new java.lang.String[] { + "TrainingDataset", + "TrainingPredictionSkewDetectionConfig", + "PredictionDriftDetectionConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_descriptor, + new java.lang.String[] { + "Dataset", + "GcsSource", + "BigquerySource", + "DataFormat", + "TargetField", + "LoggingSamplingStrategy", + "DataSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor, + new java.lang.String[] { + "SkewThresholds", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_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() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor, + new java.lang.String[] { + "DriftThresholds", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor, + new java.lang.String[] { + "EmailAlertConfig", "Alert", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor, + new java.lang.String[] { + "UserEmails", + }); + internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor, + new java.lang.String[] { + "Value", "Threshold", + }); + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor, + new java.lang.String[] { + "RandomSampleConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_descriptor, + new java.lang.String[] { + "SampleRate", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java new file mode 100644 index 000000000..98c52d1da --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java @@ -0,0 +1,3512 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Statistics and anomalies generated by Model Monitoring.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} + */ +public final class ModelMonitoringStatsAnomalies extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + ModelMonitoringStatsAnomaliesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelMonitoringStatsAnomalies.newBuilder() to construct. + private ModelMonitoringStatsAnomalies(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelMonitoringStatsAnomalies() { + objective_ = 0; + deployedModelId_ = ""; + featureStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelMonitoringStatsAnomalies(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelMonitoringStatsAnomalies( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + objective_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployedModelId_ = s; + break; + } + case 24: + { + anomalyCount_ = input.readInt32(); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + featureStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies>(); + mutable_bitField0_ |= 0x00000001; + } + featureStats_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.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)) { + featureStats_ = java.util.Collections.unmodifiableList(featureStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder.class); + } + + public interface FeatureHistoricStatsAnomaliesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Display Name of the Feature.
+     * 
+ * + * string feature_display_name = 1; + * + * @return The featureDisplayName. + */ + java.lang.String getFeatureDisplayName(); + /** + * + * + *
+     * Display Name of the Feature.
+     * 
+ * + * string feature_display_name = 1; + * + * @return The bytes for featureDisplayName. + */ + com.google.protobuf.ByteString getFeatureDisplayNameBytes(); + + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return Whether the threshold field is set. + */ + boolean hasThreshold(); + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return The threshold. + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getThreshold(); + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getThresholdOrBuilder(); + + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return Whether the trainingStats field is set. + */ + boolean hasTrainingStats(); + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return The trainingStats. + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getTrainingStats(); + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getTrainingStatsOrBuilder(); + + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + java.util.List + getPredictionStatsList(); + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getPredictionStats(int index); + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + int getPredictionStatsCount(); + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + java.util.List + getPredictionStatsOrBuilderList(); + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getPredictionStatsOrBuilder( + int index); + } + /** + * + * + *
+   * Historical Stats (and Anomalies) for a specific Feature.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} + */ + public static final class FeatureHistoricStatsAnomalies + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + FeatureHistoricStatsAnomaliesOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureHistoricStatsAnomalies.newBuilder() to construct. + private FeatureHistoricStatsAnomalies( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureHistoricStatsAnomalies() { + featureDisplayName_ = ""; + predictionStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureHistoricStatsAnomalies(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureHistoricStatsAnomalies( + 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(); + + featureDisplayName_ = s; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder subBuilder = null; + if (threshold_ != null) { + subBuilder = threshold_.toBuilder(); + } + threshold_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(threshold_); + threshold_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder subBuilder = null; + if (trainingStats_ != null) { + subBuilder = trainingStats_.toBuilder(); + } + trainingStats_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingStats_); + trainingStats_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + predictionStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly>(); + mutable_bitField0_ |= 0x00000001; + } + predictionStats_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.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)) { + predictionStats_ = java.util.Collections.unmodifiableList(predictionStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder.class); + } + + public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object featureDisplayName_; + /** + * + * + *
+     * Display Name of the Feature.
+     * 
+ * + * string feature_display_name = 1; + * + * @return The featureDisplayName. + */ + @java.lang.Override + public java.lang.String getFeatureDisplayName() { + java.lang.Object ref = featureDisplayName_; + 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(); + featureDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * Display Name of the Feature.
+     * 
+ * + * string feature_display_name = 1; + * + * @return The bytes for featureDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { + java.lang.Object ref = featureDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THRESHOLD_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig threshold_; + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return Whether the threshold field is set. + */ + @java.lang.Override + public boolean hasThreshold() { + return threshold_ != null; + } + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getThreshold() { + return threshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : threshold_; + } + /** + * + * + *
+     * Threshold for anomaly detection.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getThresholdOrBuilder() { + return getThreshold(); + } + + public static final int TRAINING_STATS_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly trainingStats_; + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return Whether the trainingStats field is set. + */ + @java.lang.Override + public boolean hasTrainingStats() { + return trainingStats_ != null; + } + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return The trainingStats. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getTrainingStats() { + return trainingStats_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance() + : trainingStats_; + } + /** + * + * + *
+     * Stats calculated for the Training Dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getTrainingStatsOrBuilder() { + return getTrainingStats(); + } + + public static final int PREDICTION_STATS_FIELD_NUMBER = 5; + private java.util.List + predictionStats_; + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + @java.lang.Override + public java.util.List + getPredictionStatsList() { + return predictionStats_; + } + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getPredictionStatsOrBuilderList() { + return predictionStats_; + } + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + @java.lang.Override + public int getPredictionStatsCount() { + return predictionStats_.size(); + } + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getPredictionStats(int index) { + return predictionStats_.get(index); + } + /** + * + * + *
+     * A list of historical stats generated by different time window's
+     * Prediction Dataset.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getPredictionStatsOrBuilder(int index) { + return predictionStats_.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 (!getFeatureDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, featureDisplayName_); + } + if (threshold_ != null) { + output.writeMessage(3, getThreshold()); + } + if (trainingStats_ != null) { + output.writeMessage(4, getTrainingStats()); + } + for (int i = 0; i < predictionStats_.size(); i++) { + output.writeMessage(5, predictionStats_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFeatureDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featureDisplayName_); + } + if (threshold_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getThreshold()); + } + if (trainingStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTrainingStats()); + } + for (int i = 0; i < predictionStats_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, predictionStats_.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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies) + obj; + + if (!getFeatureDisplayName().equals(other.getFeatureDisplayName())) return false; + if (hasThreshold() != other.hasThreshold()) return false; + if (hasThreshold()) { + if (!getThreshold().equals(other.getThreshold())) return false; + } + if (hasTrainingStats() != other.hasTrainingStats()) return false; + if (hasTrainingStats()) { + if (!getTrainingStats().equals(other.getTrainingStats())) return false; + } + if (!getPredictionStatsList().equals(other.getPredictionStatsList())) 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) + FEATURE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFeatureDisplayName().hashCode(); + if (hasThreshold()) { + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getThreshold().hashCode(); + } + if (hasTrainingStats()) { + hash = (37 * hash) + TRAINING_STATS_FIELD_NUMBER; + hash = (53 * hash) + getTrainingStats().hashCode(); + } + if (getPredictionStatsCount() > 0) { + hash = (37 * hash) + PREDICTION_STATS_FIELD_NUMBER; + hash = (53 * hash) + getPredictionStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + 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; + } + /** + * + * + *
+     * Historical Stats (and Anomalies) for a specific Feature.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictionStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + featureDisplayName_ = ""; + + if (thresholdBuilder_ == null) { + threshold_ = null; + } else { + threshold_ = null; + thresholdBuilder_ = null; + } + if (trainingStatsBuilder_ == null) { + trainingStats_ = null; + } else { + trainingStats_ = null; + trainingStatsBuilder_ = null; + } + if (predictionStatsBuilder_ == null) { + predictionStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + predictionStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_FeatureHistoricStatsAnomalies_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies(this); + int from_bitField0_ = bitField0_; + result.featureDisplayName_ = featureDisplayName_; + if (thresholdBuilder_ == null) { + result.threshold_ = threshold_; + } else { + result.threshold_ = thresholdBuilder_.build(); + } + if (trainingStatsBuilder_ == null) { + result.trainingStats_ = trainingStats_; + } else { + result.trainingStats_ = trainingStatsBuilder_.build(); + } + if (predictionStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + predictionStats_ = java.util.Collections.unmodifiableList(predictionStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.predictionStats_ = predictionStats_; + } else { + result.predictionStats_ = predictionStatsBuilder_.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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.getDefaultInstance()) return this; + if (!other.getFeatureDisplayName().isEmpty()) { + featureDisplayName_ = other.featureDisplayName_; + onChanged(); + } + if (other.hasThreshold()) { + mergeThreshold(other.getThreshold()); + } + if (other.hasTrainingStats()) { + mergeTrainingStats(other.getTrainingStats()); + } + if (predictionStatsBuilder_ == null) { + if (!other.predictionStats_.isEmpty()) { + if (predictionStats_.isEmpty()) { + predictionStats_ = other.predictionStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePredictionStatsIsMutable(); + predictionStats_.addAll(other.predictionStats_); + } + onChanged(); + } + } else { + if (!other.predictionStats_.isEmpty()) { + if (predictionStatsBuilder_.isEmpty()) { + predictionStatsBuilder_.dispose(); + predictionStatsBuilder_ = null; + predictionStats_ = other.predictionStats_; + bitField0_ = (bitField0_ & ~0x00000001); + predictionStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPredictionStatsFieldBuilder() + : null; + } else { + predictionStatsBuilder_.addAllMessages(other.predictionStats_); + } + } + } + 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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object featureDisplayName_ = ""; + /** + * + * + *
+       * Display Name of the Feature.
+       * 
+ * + * string feature_display_name = 1; + * + * @return The featureDisplayName. + */ + public java.lang.String getFeatureDisplayName() { + java.lang.Object ref = featureDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featureDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Display Name of the Feature.
+       * 
+ * + * string feature_display_name = 1; + * + * @return The bytes for featureDisplayName. + */ + public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { + java.lang.Object ref = featureDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Display Name of the Feature.
+       * 
+ * + * string feature_display_name = 1; + * + * @param value The featureDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFeatureDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + featureDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Display Name of the Feature.
+       * 
+ * + * string feature_display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFeatureDisplayName() { + + featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Display Name of the Feature.
+       * 
+ * + * string feature_display_name = 1; + * + * @param value The bytes for featureDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + featureDisplayName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig threshold_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + thresholdBuilder_; + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return Whether the threshold field is set. + */ + public boolean hasThreshold() { + return thresholdBuilder_ != null || threshold_ != null; + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + * + * @return The threshold. + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getThreshold() { + if (thresholdBuilder_ == null) { + return threshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : threshold_; + } else { + return thresholdBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public Builder setThreshold(com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (thresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + threshold_ = value; + onChanged(); + } else { + thresholdBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public Builder setThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { + if (thresholdBuilder_ == null) { + threshold_ = builderForValue.build(); + onChanged(); + } else { + thresholdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public Builder mergeThreshold(com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (thresholdBuilder_ == null) { + if (threshold_ != null) { + threshold_ = + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder(threshold_) + .mergeFrom(value) + .buildPartial(); + } else { + threshold_ = value; + } + onChanged(); + } else { + thresholdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public Builder clearThreshold() { + if (thresholdBuilder_ == null) { + threshold_ = null; + onChanged(); + } else { + threshold_ = null; + thresholdBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder getThresholdBuilder() { + + onChanged(); + return getThresholdFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getThresholdOrBuilder() { + if (thresholdBuilder_ != null) { + return thresholdBuilder_.getMessageOrBuilder(); + } else { + return threshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : threshold_; + } + } + /** + * + * + *
+       * Threshold for anomaly detection.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + getThresholdFieldBuilder() { + if (thresholdBuilder_ == null) { + thresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder>( + getThreshold(), getParentForChildren(), isClean()); + threshold_ = null; + } + return thresholdBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly trainingStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + trainingStatsBuilder_; + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return Whether the trainingStats field is set. + */ + public boolean hasTrainingStats() { + return trainingStatsBuilder_ != null || trainingStats_ != null; + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + * + * @return The trainingStats. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getTrainingStats() { + if (trainingStatsBuilder_ == null) { + return trainingStats_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance() + : trainingStats_; + } else { + return trainingStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public Builder setTrainingStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (trainingStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingStats_ = value; + onChanged(); + } else { + trainingStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public Builder setTrainingStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (trainingStatsBuilder_ == null) { + trainingStats_ = builderForValue.build(); + onChanged(); + } else { + trainingStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public Builder mergeTrainingStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (trainingStatsBuilder_ == null) { + if (trainingStats_ != null) { + trainingStats_ = + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.newBuilder(trainingStats_) + .mergeFrom(value) + .buildPartial(); + } else { + trainingStats_ = value; + } + onChanged(); + } else { + trainingStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public Builder clearTrainingStats() { + if (trainingStatsBuilder_ == null) { + trainingStats_ = null; + onChanged(); + } else { + trainingStats_ = null; + trainingStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + getTrainingStatsBuilder() { + + onChanged(); + return getTrainingStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getTrainingStatsOrBuilder() { + if (trainingStatsBuilder_ != null) { + return trainingStatsBuilder_.getMessageOrBuilder(); + } else { + return trainingStats_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance() + : trainingStats_; + } + } + /** + * + * + *
+       * Stats calculated for the Training Dataset.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getTrainingStatsFieldBuilder() { + if (trainingStatsBuilder_ == null) { + trainingStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder>( + getTrainingStats(), getParentForChildren(), isClean()); + trainingStats_ = null; + } + return trainingStatsBuilder_; + } + + private java.util.List + predictionStats_ = java.util.Collections.emptyList(); + + private void ensurePredictionStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + predictionStats_ = + new java.util.ArrayList( + predictionStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + predictionStatsBuilder_; + + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public java.util.List + getPredictionStatsList() { + if (predictionStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(predictionStats_); + } else { + return predictionStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public int getPredictionStatsCount() { + if (predictionStatsBuilder_ == null) { + return predictionStats_.size(); + } else { + return predictionStatsBuilder_.getCount(); + } + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getPredictionStats(int index) { + if (predictionStatsBuilder_ == null) { + return predictionStats_.get(index); + } else { + return predictionStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder setPredictionStats( + int index, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (predictionStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredictionStatsIsMutable(); + predictionStats_.set(index, value); + onChanged(); + } else { + predictionStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder setPredictionStats( + int index, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (predictionStatsBuilder_ == null) { + ensurePredictionStatsIsMutable(); + predictionStats_.set(index, builderForValue.build()); + onChanged(); + } else { + predictionStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder addPredictionStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (predictionStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredictionStatsIsMutable(); + predictionStats_.add(value); + onChanged(); + } else { + predictionStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder addPredictionStats( + int index, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { + if (predictionStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredictionStatsIsMutable(); + predictionStats_.add(index, value); + onChanged(); + } else { + predictionStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder addPredictionStats( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (predictionStatsBuilder_ == null) { + ensurePredictionStatsIsMutable(); + predictionStats_.add(builderForValue.build()); + onChanged(); + } else { + predictionStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder addPredictionStats( + int index, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { + if (predictionStatsBuilder_ == null) { + ensurePredictionStatsIsMutable(); + predictionStats_.add(index, builderForValue.build()); + onChanged(); + } else { + predictionStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder addAllPredictionStats( + java.lang.Iterable + values) { + if (predictionStatsBuilder_ == null) { + ensurePredictionStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, predictionStats_); + onChanged(); + } else { + predictionStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder clearPredictionStats() { + if (predictionStatsBuilder_ == null) { + predictionStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + predictionStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public Builder removePredictionStats(int index) { + if (predictionStatsBuilder_ == null) { + ensurePredictionStatsIsMutable(); + predictionStats_.remove(index); + onChanged(); + } else { + predictionStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + getPredictionStatsBuilder(int index) { + return getPredictionStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder + getPredictionStatsOrBuilder(int index) { + if (predictionStatsBuilder_ == null) { + return predictionStats_.get(index); + } else { + return predictionStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getPredictionStatsOrBuilderList() { + if (predictionStatsBuilder_ != null) { + return predictionStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(predictionStats_); + } + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + addPredictionStatsBuilder() { + return getPredictionStatsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()); + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder + addPredictionStatsBuilder(int index) { + return getPredictionStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()); + } + /** + * + * + *
+       * A list of historical stats generated by different time window's
+       * Prediction Dataset.
+       * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly prediction_stats = 5; + * + */ + public java.util.List + getPredictionStatsBuilderList() { + return getPredictionStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder> + getPredictionStatsFieldBuilder() { + if (predictionStatsBuilder_ == null) { + predictionStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder>( + predictionStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + predictionStats_ = null; + } + return predictionStatsBuilder_; + } + + @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureHistoricStatsAnomalies parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureHistoricStatsAnomalies(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.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OBJECTIVE_FIELD_NUMBER = 1; + private int objective_; + /** + * + * + *
+   * Model Monitoring Objective those stats and anomalies belonging to.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The enum numeric value on the wire for objective. + */ + @java.lang.Override + public int getObjectiveValue() { + return objective_; + } + /** + * + * + *
+   * Model Monitoring Objective those stats and anomalies belonging to.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The objective. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getObjective() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + objective_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED + : result; + } + + public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object deployedModelId_; + /** + * + * + *
+   * Deployed Model ID.
+   * 
+ * + * string deployed_model_id = 2; + * + * @return The deployedModelId. + */ + @java.lang.Override + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + 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(); + deployedModelId_ = s; + return s; + } + } + /** + * + * + *
+   * Deployed Model ID.
+   * 
+ * + * string deployed_model_id = 2; + * + * @return The bytes for deployedModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANOMALY_COUNT_FIELD_NUMBER = 3; + private int anomalyCount_; + /** + * + * + *
+   * Number of anomalies within all stats.
+   * 
+ * + * int32 anomaly_count = 3; + * + * @return The anomalyCount. + */ + @java.lang.Override + public int getAnomalyCount() { + return anomalyCount_; + } + + public static final int FEATURE_STATS_FIELD_NUMBER = 4; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + featureStats_; + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + getFeatureStatsList() { + return featureStats_; + } + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder> + getFeatureStatsOrBuilderList() { + return featureStats_; + } + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + @java.lang.Override + public int getFeatureStatsCount() { + return featureStats_.size(); + } + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + getFeatureStats(int index) { + return featureStats_.get(index); + } + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder + getFeatureStatsOrBuilder(int index) { + return featureStats_.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 (objective_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + .MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, objective_); + } + if (!getDeployedModelIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedModelId_); + } + if (anomalyCount_ != 0) { + output.writeInt32(3, anomalyCount_); + } + for (int i = 0; i < featureStats_.size(); i++) { + output.writeMessage(4, featureStats_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (objective_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + .MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, objective_); + } + if (!getDeployedModelIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedModelId_); + } + if (anomalyCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, anomalyCount_); + } + for (int i = 0; i < featureStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, featureStats_.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.ModelMonitoringStatsAnomalies)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) obj; + + if (objective_ != other.objective_) return false; + if (!getDeployedModelId().equals(other.getDeployedModelId())) return false; + if (getAnomalyCount() != other.getAnomalyCount()) return false; + if (!getFeatureStatsList().equals(other.getFeatureStatsList())) 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) + OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + objective_; + hash = (37 * hash) + DEPLOYED_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedModelId().hashCode(); + hash = (37 * hash) + ANOMALY_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAnomalyCount(); + if (getFeatureStatsCount() > 0) { + hash = (37 * hash) + FEATURE_STATS_FIELD_NUMBER; + hash = (53 * hash) + getFeatureStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + 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.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies 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.ModelMonitoringStatsAnomalies 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; + } + /** + * + * + *
+   * Statistics and anomalies generated by Model Monitoring.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeatureStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + objective_ = 0; + + deployedModelId_ = ""; + + anomalyCount_ = 0; + + if (featureStatsBuilder_ == null) { + featureStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featureStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(this); + int from_bitField0_ = bitField0_; + result.objective_ = objective_; + result.deployedModelId_ = deployedModelId_; + result.anomalyCount_ = anomalyCount_; + if (featureStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + featureStats_ = java.util.Collections.unmodifiableList(featureStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.featureStats_ = featureStats_; + } else { + result.featureStats_ = featureStatsBuilder_.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.ModelMonitoringStatsAnomalies) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.getDefaultInstance()) + return this; + if (other.objective_ != 0) { + setObjectiveValue(other.getObjectiveValue()); + } + if (!other.getDeployedModelId().isEmpty()) { + deployedModelId_ = other.deployedModelId_; + onChanged(); + } + if (other.getAnomalyCount() != 0) { + setAnomalyCount(other.getAnomalyCount()); + } + if (featureStatsBuilder_ == null) { + if (!other.featureStats_.isEmpty()) { + if (featureStats_.isEmpty()) { + featureStats_ = other.featureStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeatureStatsIsMutable(); + featureStats_.addAll(other.featureStats_); + } + onChanged(); + } + } else { + if (!other.featureStats_.isEmpty()) { + if (featureStatsBuilder_.isEmpty()) { + featureStatsBuilder_.dispose(); + featureStatsBuilder_ = null; + featureStats_ = other.featureStats_; + bitField0_ = (bitField0_ & ~0x00000001); + featureStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeatureStatsFieldBuilder() + : null; + } else { + featureStatsBuilder_.addAllMessages(other.featureStats_); + } + } + } + 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.ModelMonitoringStatsAnomalies parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int objective_ = 0; + /** + * + * + *
+     * Model Monitoring Objective those stats and anomalies belonging to.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The enum numeric value on the wire for objective. + */ + @java.lang.Override + public int getObjectiveValue() { + return objective_; + } + /** + * + * + *
+     * Model Monitoring Objective those stats and anomalies belonging to.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @param value The enum numeric value on the wire for objective to set. + * @return This builder for chaining. + */ + public Builder setObjectiveValue(int value) { + + objective_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Model Monitoring Objective those stats and anomalies belonging to.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The objective. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + getObjective() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + objective_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Model Monitoring Objective those stats and anomalies belonging to.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @param value The objective to set. + * @return This builder for chaining. + */ + public Builder setObjective( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + objective_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Model Monitoring Objective those stats and anomalies belonging to.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearObjective() { + + objective_ = 0; + onChanged(); + return this; + } + + private java.lang.Object deployedModelId_ = ""; + /** + * + * + *
+     * Deployed Model ID.
+     * 
+ * + * string deployed_model_id = 2; + * + * @return The deployedModelId. + */ + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployedModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Deployed Model ID.
+     * 
+ * + * string deployed_model_id = 2; + * + * @return The bytes for deployedModelId. + */ + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Deployed Model ID.
+     * 
+ * + * string deployed_model_id = 2; + * + * @param value The deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deployedModelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deployed Model ID.
+     * 
+ * + * string deployed_model_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearDeployedModelId() { + + deployedModelId_ = getDefaultInstance().getDeployedModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deployed Model ID.
+     * 
+ * + * string deployed_model_id = 2; + * + * @param value The bytes for deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deployedModelId_ = value; + onChanged(); + return this; + } + + private int anomalyCount_; + /** + * + * + *
+     * Number of anomalies within all stats.
+     * 
+ * + * int32 anomaly_count = 3; + * + * @return The anomalyCount. + */ + @java.lang.Override + public int getAnomalyCount() { + return anomalyCount_; + } + /** + * + * + *
+     * Number of anomalies within all stats.
+     * 
+ * + * int32 anomaly_count = 3; + * + * @param value The anomalyCount to set. + * @return This builder for chaining. + */ + public Builder setAnomalyCount(int value) { + + anomalyCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of anomalies within all stats.
+     * 
+ * + * int32 anomaly_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearAnomalyCount() { + + anomalyCount_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + featureStats_ = java.util.Collections.emptyList(); + + private void ensureFeatureStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + featureStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies>(featureStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder> + featureStatsBuilder_; + + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + getFeatureStatsList() { + if (featureStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(featureStats_); + } else { + return featureStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public int getFeatureStatsCount() { + if (featureStatsBuilder_ == null) { + return featureStats_.size(); + } else { + return featureStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + getFeatureStats(int index) { + if (featureStatsBuilder_ == null) { + return featureStats_.get(index); + } else { + return featureStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder setFeatureStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + value) { + if (featureStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureStatsIsMutable(); + featureStats_.set(index, value); + onChanged(); + } else { + featureStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder setFeatureStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + builderForValue) { + if (featureStatsBuilder_ == null) { + ensureFeatureStatsIsMutable(); + featureStats_.set(index, builderForValue.build()); + onChanged(); + } else { + featureStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder addFeatureStats( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + value) { + if (featureStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureStatsIsMutable(); + featureStats_.add(value); + onChanged(); + } else { + featureStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder addFeatureStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + value) { + if (featureStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureStatsIsMutable(); + featureStats_.add(index, value); + onChanged(); + } else { + featureStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder addFeatureStats( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + builderForValue) { + if (featureStatsBuilder_ == null) { + ensureFeatureStatsIsMutable(); + featureStats_.add(builderForValue.build()); + onChanged(); + } else { + featureStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder addFeatureStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + builderForValue) { + if (featureStatsBuilder_ == null) { + ensureFeatureStatsIsMutable(); + featureStats_.add(index, builderForValue.build()); + onChanged(); + } else { + featureStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder addAllFeatureStats( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + values) { + if (featureStatsBuilder_ == null) { + ensureFeatureStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featureStats_); + onChanged(); + } else { + featureStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder clearFeatureStats() { + if (featureStatsBuilder_ == null) { + featureStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featureStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public Builder removeFeatureStats(int index) { + if (featureStatsBuilder_ == null) { + ensureFeatureStatsIsMutable(); + featureStats_.remove(index); + onChanged(); + } else { + featureStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + getFeatureStatsBuilder(int index) { + return getFeatureStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder + getFeatureStatsOrBuilder(int index) { + if (featureStatsBuilder_ == null) { + return featureStats_.get(index); + } else { + return featureStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder> + getFeatureStatsOrBuilderList() { + if (featureStatsBuilder_ != null) { + return featureStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(featureStats_); + } + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + addFeatureStatsBuilder() { + return getFeatureStatsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.getDefaultInstance()); + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder + addFeatureStatsBuilder(int index) { + return getFeatureStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.getDefaultInstance()); + } + /** + * + * + *
+     * A list of historical Stats and Anomalies generated for all Features.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder> + getFeatureStatsBuilderList() { + return getFeatureStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder> + getFeatureStatsFieldBuilder() { + if (featureStatsBuilder_ == null) { + featureStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder>( + featureStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureStats_ = null; + } + return featureStatsBuilder_; + } + + @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.ModelMonitoringStatsAnomalies) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelMonitoringStatsAnomalies parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelMonitoringStatsAnomalies(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.ModelMonitoringStatsAnomalies + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomaliesOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomaliesOrBuilder.java new file mode 100644 index 000000000..85ac7e276 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomaliesOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelMonitoringStatsAnomaliesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Model Monitoring Objective those stats and anomalies belonging to.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The enum numeric value on the wire for objective. + */ + int getObjectiveValue(); + /** + * + * + *
+   * Model Monitoring Objective those stats and anomalies belonging to.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType objective = 1; + * + * + * @return The objective. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getObjective(); + + /** + * + * + *
+   * Deployed Model ID.
+   * 
+ * + * string deployed_model_id = 2; + * + * @return The deployedModelId. + */ + java.lang.String getDeployedModelId(); + /** + * + * + *
+   * Deployed Model ID.
+   * 
+ * + * string deployed_model_id = 2; + * + * @return The bytes for deployedModelId. + */ + com.google.protobuf.ByteString getDeployedModelIdBytes(); + + /** + * + * + *
+   * Number of anomalies within all stats.
+   * 
+ * + * int32 anomaly_count = 3; + * + * @return The anomalyCount. + */ + int getAnomalyCount(); + + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies> + getFeatureStatsList(); + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + getFeatureStats(int index); + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + int getFeatureStatsCount(); + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder> + getFeatureStatsOrBuilderList(); + /** + * + * + *
+   * A list of historical Stats and Anomalies generated for all Features.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies feature_stats = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomaliesOrBuilder + getFeatureStatsOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java index 1e9582a23..c15c55f2b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java index 226bd2b21..154d3f0ea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java @@ -150,10 +150,10 @@ public interface ModelOrBuilder * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -171,10 +171,10 @@ public interface ModelOrBuilder * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional * information about the Model, that is specific to it. Unset if the Model * does not have any additional information. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * additional metadata is needed this field is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * additional metadata is needed, this field is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -332,7 +332,7 @@ public interface ModelOrBuilder * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -350,7 +350,7 @@ public interface ModelOrBuilder * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -368,7 +368,7 @@ public interface ModelOrBuilder * Input only. The specification of the container that is to be used when deploying * this Model. The specification is ingested upon * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - * and stored internally by AI Platform. + * and stored internally by Vertex AI. * Not present for AutoML Models. * * @@ -868,7 +868,7 @@ public interface ModelOrBuilder * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -881,7 +881,7 @@ public interface ModelOrBuilder * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -894,7 +894,7 @@ public interface ModelOrBuilder * * *
-   * Output only. Timestamp when this Model was uploaded into AI Platform.
+   * Output only. Timestamp when this Model was uploaded into Vertex AI.
    * 
* * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1015,14 +1015,22 @@ com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsO * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. * * * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -1037,14 +1045,22 @@ com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsO * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. * * * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; @@ -1059,14 +1075,22 @@ com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsO * The default explanation specification for this Model. * The Model can be used for [requesting * explanation][PredictionService.Explain] after being - * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. * The Model can be used for [batch - * explanation][BatchPredictionJob.generate_explanation] iff it is populated. + * explanation][BatchPredictionJob.generate_explanation] if it is populated. * All fields of the explanation_spec can be overridden by * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + * If the default explanation specification is not set for this Model, this + * Model can still be used for [requesting + * explanation][PredictionService.Explain] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + * explanation][BatchPredictionJob.generate_explanation] by setting + * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. * * * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java new file mode 100644 index 000000000..c668c2100 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java @@ -0,0 +1,4670 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation metadata with regard to Matching Engine Index.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} + */ +public final class NearestNeighborSearchOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + NearestNeighborSearchOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearestNeighborSearchOperationMetadata.newBuilder() to construct. + private NearestNeighborSearchOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NearestNeighborSearchOperationMetadata() { + contentValidationStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NearestNeighborSearchOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NearestNeighborSearchOperationMetadata( + 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)) { + contentValidationStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats>(); + mutable_bitField0_ |= 0x00000001; + } + contentValidationStats_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.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)) { + contentValidationStats_ = java.util.Collections.unmodifiableList(contentValidationStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + .class); + } + + public interface RecordErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The error type of this record.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The enum numeric value on the wire for errorType. + */ + int getErrorTypeValue(); + /** + * + * + *
+     * The error type of this record.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The errorType. + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + getErrorType(); + + /** + * + * + *
+     * A human-readable message that is shown to the user to help them fix the
+     * error. Note that this message may change from time to time, your code
+     * should check against error_type as the source of truth.
+     * 
+ * + * string error_message = 2; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+     * A human-readable message that is shown to the user to help them fix the
+     * error. Note that this message may change from time to time, your code
+     * should check against error_type as the source of truth.
+     * 
+ * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 3; + * + * @return The sourceGcsUri. + */ + java.lang.String getSourceGcsUri(); + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 3; + * + * @return The bytes for sourceGcsUri. + */ + com.google.protobuf.ByteString getSourceGcsUriBytes(); + + /** + * + * + *
+     * Empty if the embedding id is failed to parse.
+     * 
+ * + * string embedding_id = 4; + * + * @return The embeddingId. + */ + java.lang.String getEmbeddingId(); + /** + * + * + *
+     * Empty if the embedding id is failed to parse.
+     * 
+ * + * string embedding_id = 4; + * + * @return The bytes for embeddingId. + */ + com.google.protobuf.ByteString getEmbeddingIdBytes(); + + /** + * + * + *
+     * The original content of this record.
+     * 
+ * + * string raw_record = 5; + * + * @return The rawRecord. + */ + java.lang.String getRawRecord(); + /** + * + * + *
+     * The original content of this record.
+     * 
+ * + * string raw_record = 5; + * + * @return The bytes for rawRecord. + */ + com.google.protobuf.ByteString getRawRecordBytes(); + } + /** + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} + */ + public static final class RecordError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + RecordErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecordError.newBuilder() to construct. + private RecordError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecordError() { + errorType_ = 0; + errorMessage_ = ""; + sourceGcsUri_ = ""; + embeddingId_ = ""; + rawRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RecordError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecordError( + 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(); + + errorType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + errorMessage_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + sourceGcsUri_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + embeddingId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + rawRecord_ = 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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder.class); + } + + /** + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} + */ + public enum RecordErrorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default, shall not be used.
+       * 
+ * + * ERROR_TYPE_UNSPECIFIED = 0; + */ + ERROR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The record is empty.
+       * 
+ * + * EMPTY_LINE = 1; + */ + EMPTY_LINE(1), + /** + * + * + *
+       * Invalid json format.
+       * 
+ * + * INVALID_JSON_SYNTAX = 2; + */ + INVALID_JSON_SYNTAX(2), + /** + * + * + *
+       * Invalid csv format.
+       * 
+ * + * INVALID_CSV_SYNTAX = 3; + */ + INVALID_CSV_SYNTAX(3), + /** + * + * + *
+       * Invalid avro format.
+       * 
+ * + * INVALID_AVRO_SYNTAX = 4; + */ + INVALID_AVRO_SYNTAX(4), + /** + * + * + *
+       * The embedding id is not valid.
+       * 
+ * + * INVALID_EMBEDDING_ID = 5; + */ + INVALID_EMBEDDING_ID(5), + /** + * + * + *
+       * The size of the embedding vectors does not match with the specified
+       * dimension.
+       * 
+ * + * EMBEDDING_SIZE_MISMATCH = 6; + */ + EMBEDDING_SIZE_MISMATCH(6), + /** + * + * + *
+       * The `namespace` field is missing.
+       * 
+ * + * NAMESPACE_MISSING = 7; + */ + NAMESPACE_MISSING(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default, shall not be used.
+       * 
+ * + * ERROR_TYPE_UNSPECIFIED = 0; + */ + public static final int ERROR_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The record is empty.
+       * 
+ * + * EMPTY_LINE = 1; + */ + public static final int EMPTY_LINE_VALUE = 1; + /** + * + * + *
+       * Invalid json format.
+       * 
+ * + * INVALID_JSON_SYNTAX = 2; + */ + public static final int INVALID_JSON_SYNTAX_VALUE = 2; + /** + * + * + *
+       * Invalid csv format.
+       * 
+ * + * INVALID_CSV_SYNTAX = 3; + */ + public static final int INVALID_CSV_SYNTAX_VALUE = 3; + /** + * + * + *
+       * Invalid avro format.
+       * 
+ * + * INVALID_AVRO_SYNTAX = 4; + */ + public static final int INVALID_AVRO_SYNTAX_VALUE = 4; + /** + * + * + *
+       * The embedding id is not valid.
+       * 
+ * + * INVALID_EMBEDDING_ID = 5; + */ + public static final int INVALID_EMBEDDING_ID_VALUE = 5; + /** + * + * + *
+       * The size of the embedding vectors does not match with the specified
+       * dimension.
+       * 
+ * + * EMBEDDING_SIZE_MISMATCH = 6; + */ + public static final int EMBEDDING_SIZE_MISMATCH_VALUE = 6; + /** + * + * + *
+       * The `namespace` field is missing.
+       * 
+ * + * NAMESPACE_MISSING = 7; + */ + public static final int NAMESPACE_MISSING_VALUE = 7; + + 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 RecordErrorType 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 RecordErrorType forNumber(int value) { + switch (value) { + case 0: + return ERROR_TYPE_UNSPECIFIED; + case 1: + return EMPTY_LINE; + case 2: + return INVALID_JSON_SYNTAX; + case 3: + return INVALID_CSV_SYNTAX; + case 4: + return INVALID_AVRO_SYNTAX; + case 5: + return INVALID_EMBEDDING_ID; + case 6: + return EMBEDDING_SIZE_MISMATCH; + case 7: + return NAMESPACE_MISSING; + 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 RecordErrorType findValueByNumber(int number) { + return RecordErrorType.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.NearestNeighborSearchOperationMetadata + .RecordError.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RecordErrorType[] VALUES = values(); + + public static RecordErrorType 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 RecordErrorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType) + } + + public static final int ERROR_TYPE_FIELD_NUMBER = 1; + private int errorType_; + /** + * + * + *
+     * The error type of this record.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The enum numeric value on the wire for errorType. + */ + @java.lang.Override + public int getErrorTypeValue() { + return errorType_; + } + /** + * + * + *
+     * The error type of this record.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The errorType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + getErrorType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + result = + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType.valueOf(errorType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object errorMessage_; + /** + * + * + *
+     * A human-readable message that is shown to the user to help them fix the
+     * error. Note that this message may change from time to time, your code
+     * should check against error_type as the source of truth.
+     * 
+ * + * string error_message = 2; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+     * A human-readable message that is shown to the user to help them fix the
+     * error. Note that this message may change from time to time, your code
+     * should check against error_type as the source of truth.
+     * 
+ * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_GCS_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object sourceGcsUri_; + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 3; + * + * @return The sourceGcsUri. + */ + @java.lang.Override + public java.lang.String getSourceGcsUri() { + java.lang.Object ref = sourceGcsUri_; + 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(); + sourceGcsUri_ = s; + return s; + } + } + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 3; + * + * @return The bytes for sourceGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceGcsUriBytes() { + java.lang.Object ref = sourceGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMBEDDING_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object embeddingId_; + /** + * + * + *
+     * Empty if the embedding id is failed to parse.
+     * 
+ * + * string embedding_id = 4; + * + * @return The embeddingId. + */ + @java.lang.Override + public java.lang.String getEmbeddingId() { + java.lang.Object ref = embeddingId_; + 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(); + embeddingId_ = s; + return s; + } + } + /** + * + * + *
+     * Empty if the embedding id is failed to parse.
+     * 
+ * + * string embedding_id = 4; + * + * @return The bytes for embeddingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmbeddingIdBytes() { + java.lang.Object ref = embeddingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + embeddingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAW_RECORD_FIELD_NUMBER = 5; + private volatile java.lang.Object rawRecord_; + /** + * + * + *
+     * The original content of this record.
+     * 
+ * + * string raw_record = 5; + * + * @return The rawRecord. + */ + @java.lang.Override + public java.lang.String getRawRecord() { + java.lang.Object ref = rawRecord_; + 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(); + rawRecord_ = s; + return s; + } + } + /** + * + * + *
+     * The original content of this record.
+     * 
+ * + * string raw_record = 5; + * + * @return The bytes for rawRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawRecordBytes() { + java.lang.Object ref = rawRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawRecord_ = 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 (errorType_ + != com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType.ERROR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, errorType_); + } + if (!getErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + if (!getSourceGcsUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceGcsUri_); + } + if (!getEmbeddingIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, embeddingId_); + } + if (!getRawRecordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rawRecord_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (errorType_ + != com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType.ERROR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorType_); + } + if (!getErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + if (!getSourceGcsUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceGcsUri_); + } + if (!getEmbeddingIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, embeddingId_); + } + if (!getRawRecordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rawRecord_); + } + 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.NearestNeighborSearchOperationMetadata.RecordError)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError other = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + obj; + + if (errorType_ != other.errorType_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getSourceGcsUri().equals(other.getSourceGcsUri())) return false; + if (!getEmbeddingId().equals(other.getEmbeddingId())) return false; + if (!getRawRecord().equals(other.getRawRecord())) 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) + ERROR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + errorType_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (37 * hash) + SOURCE_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getSourceGcsUri().hashCode(); + hash = (37 * hash) + EMBEDDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingId().hashCode(); + hash = (37 * hash) + RAW_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getRawRecord().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata + .RecordError + 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.NearestNeighborSearchOperationMetadata.RecordError + 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; + } + /** + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.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(); + errorType_ = 0; + + errorMessage_ = ""; + + sourceGcsUri_ = ""; + + embeddingId_ = ""; + + rawRecord_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_RecordError_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError(this); + result.errorType_ = errorType_; + result.errorMessage_ = errorMessage_; + result.sourceGcsUri_ = sourceGcsUri_; + result.embeddingId_ = embeddingId_; + result.rawRecord_ = rawRecord_; + 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.NearestNeighborSearchOperationMetadata + .RecordError) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.getDefaultInstance()) return this; + if (other.errorType_ != 0) { + setErrorTypeValue(other.getErrorTypeValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + onChanged(); + } + if (!other.getSourceGcsUri().isEmpty()) { + sourceGcsUri_ = other.sourceGcsUri_; + onChanged(); + } + if (!other.getEmbeddingId().isEmpty()) { + embeddingId_ = other.embeddingId_; + onChanged(); + } + if (!other.getRawRecord().isEmpty()) { + rawRecord_ = other.rawRecord_; + 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.NearestNeighborSearchOperationMetadata.RecordError + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int errorType_ = 0; + /** + * + * + *
+       * The error type of this record.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The enum numeric value on the wire for errorType. + */ + @java.lang.Override + public int getErrorTypeValue() { + return errorType_; + } + /** + * + * + *
+       * The error type of this record.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @param value The enum numeric value on the wire for errorType to set. + * @return This builder for chaining. + */ + public Builder setErrorTypeValue(int value) { + + errorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The error type of this record.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return The errorType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + getErrorType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + result = + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.RecordErrorType.valueOf(errorType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The error type of this record.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @param value The errorType to set. + * @return This builder for chaining. + */ + public Builder setErrorType( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .RecordErrorType + value) { + if (value == null) { + throw new NullPointerException(); + } + + errorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The error type of this record.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType error_type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorType() { + + errorType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+       * A human-readable message that is shown to the user to help them fix the
+       * error. Note that this message may change from time to time, your code
+       * should check against error_type as the source of truth.
+       * 
+ * + * string error_message = 2; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A human-readable message that is shown to the user to help them fix the
+       * error. Note that this message may change from time to time, your code
+       * should check against error_type as the source of truth.
+       * 
+ * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A human-readable message that is shown to the user to help them fix the
+       * error. Note that this message may change from time to time, your code
+       * should check against error_type as the source of truth.
+       * 
+ * + * string error_message = 2; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A human-readable message that is shown to the user to help them fix the
+       * error. Note that this message may change from time to time, your code
+       * should check against error_type as the source of truth.
+       * 
+ * + * string error_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + onChanged(); + return this; + } + /** + * + * + *
+       * A human-readable message that is shown to the user to help them fix the
+       * error. Note that this message may change from time to time, your code
+       * should check against error_type as the source of truth.
+       * 
+ * + * string error_message = 2; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object sourceGcsUri_ = ""; + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 3; + * + * @return The sourceGcsUri. + */ + public java.lang.String getSourceGcsUri() { + java.lang.Object ref = sourceGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 3; + * + * @return The bytes for sourceGcsUri. + */ + public com.google.protobuf.ByteString getSourceGcsUriBytes() { + java.lang.Object ref = sourceGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 3; + * + * @param value The sourceGcsUri to set. + * @return This builder for chaining. + */ + public Builder setSourceGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceGcsUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearSourceGcsUri() { + + sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 3; + * + * @param value The bytes for sourceGcsUri to set. + * @return This builder for chaining. + */ + public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceGcsUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object embeddingId_ = ""; + /** + * + * + *
+       * Empty if the embedding id is failed to parse.
+       * 
+ * + * string embedding_id = 4; + * + * @return The embeddingId. + */ + public java.lang.String getEmbeddingId() { + java.lang.Object ref = embeddingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + embeddingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Empty if the embedding id is failed to parse.
+       * 
+ * + * string embedding_id = 4; + * + * @return The bytes for embeddingId. + */ + public com.google.protobuf.ByteString getEmbeddingIdBytes() { + java.lang.Object ref = embeddingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + embeddingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Empty if the embedding id is failed to parse.
+       * 
+ * + * string embedding_id = 4; + * + * @param value The embeddingId to set. + * @return This builder for chaining. + */ + public Builder setEmbeddingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + embeddingId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Empty if the embedding id is failed to parse.
+       * 
+ * + * string embedding_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearEmbeddingId() { + + embeddingId_ = getDefaultInstance().getEmbeddingId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Empty if the embedding id is failed to parse.
+       * 
+ * + * string embedding_id = 4; + * + * @param value The bytes for embeddingId to set. + * @return This builder for chaining. + */ + public Builder setEmbeddingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + embeddingId_ = value; + onChanged(); + return this; + } + + private java.lang.Object rawRecord_ = ""; + /** + * + * + *
+       * The original content of this record.
+       * 
+ * + * string raw_record = 5; + * + * @return The rawRecord. + */ + public java.lang.String getRawRecord() { + java.lang.Object ref = rawRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The original content of this record.
+       * 
+ * + * string raw_record = 5; + * + * @return The bytes for rawRecord. + */ + public com.google.protobuf.ByteString getRawRecordBytes() { + java.lang.Object ref = rawRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The original content of this record.
+       * 
+ * + * string raw_record = 5; + * + * @param value The rawRecord to set. + * @return This builder for chaining. + */ + public Builder setRawRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rawRecord_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The original content of this record.
+       * 
+ * + * string raw_record = 5; + * + * @return This builder for chaining. + */ + public Builder clearRawRecord() { + + rawRecord_ = getDefaultInstance().getRawRecord(); + onChanged(); + return this; + } + /** + * + * + *
+       * The original content of this record.
+       * 
+ * + * string raw_record = 5; + * + * @param value The bytes for rawRecord to set. + * @return This builder for chaining. + */ + public Builder setRawRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rawRecord_ = 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.NearestNeighborSearchOperationMetadata.RecordError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError(); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecordError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecordError(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.NearestNeighborSearchOperationMetadata.RecordError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ContentValidationStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 1; + * + * @return The sourceGcsUri. + */ + java.lang.String getSourceGcsUri(); + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 1; + * + * @return The bytes for sourceGcsUri. + */ + com.google.protobuf.ByteString getSourceGcsUriBytes(); + + /** + * + * + *
+     * Number of records in this file that were successfully processed.
+     * 
+ * + * int64 valid_record_count = 2; + * + * @return The validRecordCount. + */ + long getValidRecordCount(); + + /** + * + * + *
+     * Number of records in this file we skipped due to validate errors.
+     * 
+ * + * int64 invalid_record_count = 3; + * + * @return The invalidRecordCount. + */ + long getInvalidRecordCount(); + + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError> + getPartialErrorsList(); + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + getPartialErrors(int index); + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + int getPartialErrorsCount(); + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder> + getPartialErrorsOrBuilderList(); + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordErrorOrBuilder + getPartialErrorsOrBuilder(int index); + } + /** + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} + */ + public static final class ContentValidationStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + ContentValidationStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContentValidationStats.newBuilder() to construct. + private ContentValidationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentValidationStats() { + sourceGcsUri_ = ""; + partialErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentValidationStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ContentValidationStats( + 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(); + + sourceGcsUri_ = s; + break; + } + case 16: + { + validRecordCount_ = input.readInt64(); + break; + } + case 24: + { + invalidRecordCount_ = input.readInt64(); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialErrors_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError>(); + mutable_bitField0_ |= 0x00000001; + } + partialErrors_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.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)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder.class); + } + + public static final int SOURCE_GCS_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object sourceGcsUri_; + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 1; + * + * @return The sourceGcsUri. + */ + @java.lang.Override + public java.lang.String getSourceGcsUri() { + java.lang.Object ref = sourceGcsUri_; + 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(); + sourceGcsUri_ = s; + return s; + } + } + /** + * + * + *
+     * Cloud Storage URI pointing to the original file in user's bucket.
+     * 
+ * + * string source_gcs_uri = 1; + * + * @return The bytes for sourceGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceGcsUriBytes() { + java.lang.Object ref = sourceGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_RECORD_COUNT_FIELD_NUMBER = 2; + private long validRecordCount_; + /** + * + * + *
+     * Number of records in this file that were successfully processed.
+     * 
+ * + * int64 valid_record_count = 2; + * + * @return The validRecordCount. + */ + @java.lang.Override + public long getValidRecordCount() { + return validRecordCount_; + } + + public static final int INVALID_RECORD_COUNT_FIELD_NUMBER = 3; + private long invalidRecordCount_; + /** + * + * + *
+     * Number of records in this file we skipped due to validate errors.
+     * 
+ * + * int64 invalid_record_count = 3; + * + * @return The invalidRecordCount. + */ + @java.lang.Override + public long getInvalidRecordCount() { + return invalidRecordCount_; + } + + public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError> + partialErrors_; + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError> + getPartialErrorsList() { + return partialErrors_; + } + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder> + getPartialErrorsOrBuilderList() { + return partialErrors_; + } + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + @java.lang.Override + public int getPartialErrorsCount() { + return partialErrors_.size(); + } + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + getPartialErrors(int index) { + return partialErrors_.get(index); + } + /** + * + * + *
+     * The detail information of the partial failures encountered for those
+     * invalid records that couldn't be parsed.
+     * Up to 50 partial errors will be reported.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder + getPartialErrorsOrBuilder(int index) { + return partialErrors_.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 (!getSourceGcsUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceGcsUri_); + } + if (validRecordCount_ != 0L) { + output.writeInt64(2, validRecordCount_); + } + if (invalidRecordCount_ != 0L) { + output.writeInt64(3, invalidRecordCount_); + } + for (int i = 0; i < partialErrors_.size(); i++) { + output.writeMessage(4, partialErrors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSourceGcsUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceGcsUri_); + } + if (validRecordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, validRecordCount_); + } + if (invalidRecordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, invalidRecordCount_); + } + for (int i = 0; i < partialErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, partialErrors_.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.NearestNeighborSearchOperationMetadata + .ContentValidationStats)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + other = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats) + obj; + + if (!getSourceGcsUri().equals(other.getSourceGcsUri())) return false; + if (getValidRecordCount() != other.getValidRecordCount()) return false; + if (getInvalidRecordCount() != other.getInvalidRecordCount()) return false; + if (!getPartialErrorsList().equals(other.getPartialErrorsList())) 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) + SOURCE_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getSourceGcsUri().hashCode(); + hash = (37 * hash) + VALID_RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidRecordCount()); + hash = (37 * hash) + INVALID_RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInvalidRecordCount()); + if (getPartialErrorsCount() > 0) { + hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getPartialErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + 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; + } + /** + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPartialErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sourceGcsUri_ = ""; + + validRecordCount_ = 0L; + + invalidRecordCount_ = 0L; + + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_ContentValidationStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats(this); + int from_bitField0_ = bitField0_; + result.sourceGcsUri_ = sourceGcsUri_; + result.validRecordCount_ = validRecordCount_; + result.invalidRecordCount_ = invalidRecordCount_; + if (partialErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partialErrors_ = partialErrors_; + } else { + result.partialErrors_ = partialErrorsBuilder_.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.NearestNeighborSearchOperationMetadata + .ContentValidationStats) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.getDefaultInstance()) return this; + if (!other.getSourceGcsUri().isEmpty()) { + sourceGcsUri_ = other.sourceGcsUri_; + onChanged(); + } + if (other.getValidRecordCount() != 0L) { + setValidRecordCount(other.getValidRecordCount()); + } + if (other.getInvalidRecordCount() != 0L) { + setInvalidRecordCount(other.getInvalidRecordCount()); + } + if (partialErrorsBuilder_ == null) { + if (!other.partialErrors_.isEmpty()) { + if (partialErrors_.isEmpty()) { + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePartialErrorsIsMutable(); + partialErrors_.addAll(other.partialErrors_); + } + onChanged(); + } + } else { + if (!other.partialErrors_.isEmpty()) { + if (partialErrorsBuilder_.isEmpty()) { + partialErrorsBuilder_.dispose(); + partialErrorsBuilder_ = null; + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialErrorsFieldBuilder() + : null; + } else { + partialErrorsBuilder_.addAllMessages(other.partialErrors_); + } + } + } + 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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object sourceGcsUri_ = ""; + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 1; + * + * @return The sourceGcsUri. + */ + public java.lang.String getSourceGcsUri() { + java.lang.Object ref = sourceGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 1; + * + * @return The bytes for sourceGcsUri. + */ + public com.google.protobuf.ByteString getSourceGcsUriBytes() { + java.lang.Object ref = sourceGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 1; + * + * @param value The sourceGcsUri to set. + * @return This builder for chaining. + */ + public Builder setSourceGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceGcsUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceGcsUri() { + + sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * Cloud Storage URI pointing to the original file in user's bucket.
+       * 
+ * + * string source_gcs_uri = 1; + * + * @param value The bytes for sourceGcsUri to set. + * @return This builder for chaining. + */ + public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceGcsUri_ = value; + onChanged(); + return this; + } + + private long validRecordCount_; + /** + * + * + *
+       * Number of records in this file that were successfully processed.
+       * 
+ * + * int64 valid_record_count = 2; + * + * @return The validRecordCount. + */ + @java.lang.Override + public long getValidRecordCount() { + return validRecordCount_; + } + /** + * + * + *
+       * Number of records in this file that were successfully processed.
+       * 
+ * + * int64 valid_record_count = 2; + * + * @param value The validRecordCount to set. + * @return This builder for chaining. + */ + public Builder setValidRecordCount(long value) { + + validRecordCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of records in this file that were successfully processed.
+       * 
+ * + * int64 valid_record_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearValidRecordCount() { + + validRecordCount_ = 0L; + onChanged(); + return this; + } + + private long invalidRecordCount_; + /** + * + * + *
+       * Number of records in this file we skipped due to validate errors.
+       * 
+ * + * int64 invalid_record_count = 3; + * + * @return The invalidRecordCount. + */ + @java.lang.Override + public long getInvalidRecordCount() { + return invalidRecordCount_; + } + /** + * + * + *
+       * Number of records in this file we skipped due to validate errors.
+       * 
+ * + * int64 invalid_record_count = 3; + * + * @param value The invalidRecordCount to set. + * @return This builder for chaining. + */ + public Builder setInvalidRecordCount(long value) { + + invalidRecordCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of records in this file we skipped due to validate errors.
+       * 
+ * + * int64 invalid_record_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearInvalidRecordCount() { + + invalidRecordCount_ = 0L; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError> + partialErrors_ = java.util.Collections.emptyList(); + + private void ensurePartialErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partialErrors_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError>(partialErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder> + partialErrorsBuilder_; + + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError> + getPartialErrorsList() { + if (partialErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partialErrors_); + } else { + return partialErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public int getPartialErrorsCount() { + if (partialErrorsBuilder_ == null) { + return partialErrors_.size(); + } else { + return partialErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + getPartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder setPartialErrors( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, value); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder setPartialErrors( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder addPartialErrors( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder addPartialErrors( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder addPartialErrors( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder addPartialErrors( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder addAllPartialErrors( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError> + values) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_); + onChanged(); + } else { + partialErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder clearPartialErrors() { + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public Builder removePartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.remove(index); + onChanged(); + } else { + partialErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + getPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder + getPartialErrorsOrBuilder(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder> + getPartialErrorsOrBuilderList() { + if (partialErrorsBuilder_ != null) { + return partialErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialErrors_); + } + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + addPartialErrorsBuilder() { + return getPartialErrorsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.getDefaultInstance()); + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder + addPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.getDefaultInstance()); + } + /** + * + * + *
+       * The detail information of the partial failures encountered for those
+       * invalid records that couldn't be parsed.
+       * Up to 50 partial errors will be reported.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError partial_errors = 4; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder> + getPartialErrorsBuilderList() { + return getPartialErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + .Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder> + getPartialErrorsFieldBuilder() { + if (partialErrorsBuilder_ == null) { + partialErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordError.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .RecordErrorOrBuilder>( + partialErrors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + partialErrors_ = null; + } + return partialErrorsBuilder_; + } + + @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.NearestNeighborSearchOperationMetadata.ContentValidationStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats(); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentValidationStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContentValidationStats(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.NearestNeighborSearchOperationMetadata + .ContentValidationStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CONTENT_VALIDATION_STATS_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + contentValidationStats_; + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + getContentValidationStatsList() { + return contentValidationStats_; + } + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder> + getContentValidationStatsOrBuilderList() { + return contentValidationStats_; + } + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + @java.lang.Override + public int getContentValidationStatsCount() { + return contentValidationStats_.size(); + } + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + getContentValidationStats(int index) { + return contentValidationStats_.get(index); + } + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder + getContentValidationStatsOrBuilder(int index) { + return contentValidationStats_.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 < contentValidationStats_.size(); i++) { + output.writeMessage(1, contentValidationStats_.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 < contentValidationStats_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, contentValidationStats_.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.NearestNeighborSearchOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) obj; + + if (!getContentValidationStatsList().equals(other.getContentValidationStatsList())) + 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 (getContentValidationStatsCount() > 0) { + hash = (37 * hash) + CONTENT_VALIDATION_STATS_FIELD_NUMBER; + hash = (53 * hash) + getContentValidationStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata + 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.NearestNeighborSearchOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation metadata with regard to Matching Engine Index.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentValidationStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (contentValidationStatsBuilder_ == null) { + contentValidationStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + contentValidationStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborSearchOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(this); + int from_bitField0_ = bitField0_; + if (contentValidationStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contentValidationStats_ = java.util.Collections.unmodifiableList(contentValidationStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contentValidationStats_ = contentValidationStats_; + } else { + result.contentValidationStats_ = contentValidationStatsBuilder_.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.NearestNeighborSearchOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance()) return this; + if (contentValidationStatsBuilder_ == null) { + if (!other.contentValidationStats_.isEmpty()) { + if (contentValidationStats_.isEmpty()) { + contentValidationStats_ = other.contentValidationStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentValidationStatsIsMutable(); + contentValidationStats_.addAll(other.contentValidationStats_); + } + onChanged(); + } + } else { + if (!other.contentValidationStats_.isEmpty()) { + if (contentValidationStatsBuilder_.isEmpty()) { + contentValidationStatsBuilder_.dispose(); + contentValidationStatsBuilder_ = null; + contentValidationStats_ = other.contentValidationStats_; + bitField0_ = (bitField0_ & ~0x00000001); + contentValidationStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentValidationStatsFieldBuilder() + : null; + } else { + contentValidationStatsBuilder_.addAllMessages(other.contentValidationStats_); + } + } + } + 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.NearestNeighborSearchOperationMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + contentValidationStats_ = java.util.Collections.emptyList(); + + private void ensureContentValidationStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contentValidationStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats>(contentValidationStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder> + contentValidationStatsBuilder_; + + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + getContentValidationStatsList() { + if (contentValidationStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentValidationStats_); + } else { + return contentValidationStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public int getContentValidationStatsCount() { + if (contentValidationStatsBuilder_ == null) { + return contentValidationStats_.size(); + } else { + return contentValidationStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + getContentValidationStats(int index) { + if (contentValidationStatsBuilder_ == null) { + return contentValidationStats_.get(index); + } else { + return contentValidationStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder setContentValidationStats( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + value) { + if (contentValidationStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentValidationStatsIsMutable(); + contentValidationStats_.set(index, value); + onChanged(); + } else { + contentValidationStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder setContentValidationStats( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + builderForValue) { + if (contentValidationStatsBuilder_ == null) { + ensureContentValidationStatsIsMutable(); + contentValidationStats_.set(index, builderForValue.build()); + onChanged(); + } else { + contentValidationStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder addContentValidationStats( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + value) { + if (contentValidationStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentValidationStatsIsMutable(); + contentValidationStats_.add(value); + onChanged(); + } else { + contentValidationStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder addContentValidationStats( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + value) { + if (contentValidationStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentValidationStatsIsMutable(); + contentValidationStats_.add(index, value); + onChanged(); + } else { + contentValidationStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder addContentValidationStats( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + builderForValue) { + if (contentValidationStatsBuilder_ == null) { + ensureContentValidationStatsIsMutable(); + contentValidationStats_.add(builderForValue.build()); + onChanged(); + } else { + contentValidationStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder addContentValidationStats( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + builderForValue) { + if (contentValidationStatsBuilder_ == null) { + ensureContentValidationStatsIsMutable(); + contentValidationStats_.add(index, builderForValue.build()); + onChanged(); + } else { + contentValidationStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder addAllContentValidationStats( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + values) { + if (contentValidationStatsBuilder_ == null) { + ensureContentValidationStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentValidationStats_); + onChanged(); + } else { + contentValidationStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder clearContentValidationStats() { + if (contentValidationStatsBuilder_ == null) { + contentValidationStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentValidationStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public Builder removeContentValidationStats(int index) { + if (contentValidationStatsBuilder_ == null) { + ensureContentValidationStatsIsMutable(); + contentValidationStats_.remove(index); + onChanged(); + } else { + contentValidationStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + getContentValidationStatsBuilder(int index) { + return getContentValidationStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder + getContentValidationStatsOrBuilder(int index) { + if (contentValidationStatsBuilder_ == null) { + return contentValidationStats_.get(index); + } else { + return contentValidationStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder> + getContentValidationStatsOrBuilderList() { + if (contentValidationStatsBuilder_ != null) { + return contentValidationStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentValidationStats_); + } + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + addContentValidationStatsBuilder() { + return getContentValidationStatsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.getDefaultInstance()); + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder + addContentValidationStatsBuilder(int index) { + return getContentValidationStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.getDefaultInstance()); + } + /** + * + * + *
+     * The validation stats of the content (per file) to be inserted or
+     * updated on the Matching Engine Index resource. Populated if
+     * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+     * that, currently for those files that are broken or has unsupported file
+     * format, we will not have the stats for those files.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder> + getContentValidationStatsBuilderList() { + return getContentValidationStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder> + getContentValidationStatsFieldBuilder() { + if (contentValidationStatsBuilder_ == null) { + contentValidationStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder>( + contentValidationStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + contentValidationStats_ = null; + } + return contentValidationStatsBuilder_; + } + + @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.NearestNeighborSearchOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearestNeighborSearchOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NearestNeighborSearchOperationMetadata(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.NearestNeighborSearchOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadataOrBuilder.java new file mode 100644 index 000000000..c21201569 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadataOrBuilder.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface NearestNeighborSearchOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats> + getContentValidationStatsList(); + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + getContentValidationStats(int index); + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + int getContentValidationStatsCount(); + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder> + getContentValidationStatsOrBuilderList(); + /** + * + * + *
+   * The validation stats of the content (per file) to be inserted or
+   * updated on the Matching Engine Index resource. Populated if
+   * contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note
+   * that, currently for those files that are broken or has unsupported file
+   * format, we will not have the stats for those files.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats content_validation_stats = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStatsOrBuilder + getContentValidationStatsOrBuilder(int index); +} 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 new file mode 100644 index 000000000..95203fa89 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NetworkName.java @@ -0,0 +1,192 @@ +/* + * 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) { + project = networkName.project; + 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/PauseModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..7bdc3f715 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,693 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.PauseModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} + */ +public final class PauseModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + PauseModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PauseModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private PauseModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PauseModelDeploymentMonitoringJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PauseModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PauseModelDeploymentMonitoringJobRequest( + 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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob to pause.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to pause.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.PauseModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) 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.v1beta1.PauseModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest + 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.PauseModelDeploymentMonitoringJobRequest 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
+   * [JobService.PauseModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PauseModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(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.v1beta1.PauseModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + .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.v1beta1.PauseModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the ModelDeploymentMonitoringJob to pause.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to pause.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to pause.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to pause.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to pause.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.PauseModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PauseModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PauseModelDeploymentMonitoringJobRequest(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.PauseModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..845cc75ff --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PauseModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob to pause.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
+   * 
+ * + * + * 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 ModelDeploymentMonitoringJob to pause.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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-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 new file mode 100644 index 000000000..69fbc86a7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -0,0 +1,364 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public 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_v1beta1_PipelineJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_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 = { + "\n2google/cloud/aiplatform/v1beta1/pipeli" + + "ne_job.proto\022\037google.cloud.aiplatform.v1" + + "beta1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032.google/cloud/" + + "aiplatform/v1beta1/artifact.proto\032-googl" + + "e/cloud/aiplatform/v1beta1/context.proto" + + "\0325google/cloud/aiplatform/v1beta1/encryp" + + "tion_spec.proto\032/google/cloud/aiplatform" + + "/v1beta1/execution.proto\0324google/cloud/a" + + "iplatform/v1beta1/pipeline_state.proto\032+" + + "google/cloud/aiplatform/v1beta1/value.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\027google/rpc/s" + + "tatus.proto\032\034google/api/annotations.prot" + + "o\"\277\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\022B\n\005state\030\010 \001(\0162..google.cloud.aiplat" + + "form.v1beta1.PipelineStateB\003\340A\003\022K\n\njob_d" + + "etail\030\t \001(\01322.google.cloud.aiplatform.v1" + + "beta1.PipelineJobDetailB\003\340A\003\022&\n\005error\030\n " + + "\001(\0132\022.google.rpc.StatusB\003\340A\003\022H\n\006labels\030\013" + + " \003(\01328.google.cloud.aiplatform.v1beta1.P" + + "ipelineJob.LabelsEntry\022R\n\016runtime_config" + + "\030\014 \001(\0132:.google.cloud.aiplatform.v1beta1" + + ".PipelineJob.RuntimeConfig\022H\n\017encryption" + + "_spec\030\020 \001(\0132/.google.cloud.aiplatform.v1" + + "beta1.EncryptionSpec\022\027\n\017service_account\030" + + "\021 \001(\t\0224\n\007network\030\022 \001(\tB#\372A \n\036compute.goo" + + "gleapis.com/Network\032\355\001\n\rRuntimeConfig\022^\n" + + "\nparameters\030\001 \003(\0132J.google.cloud.aiplatf" + + "orm.v1beta1.PipelineJob.RuntimeConfig.Pa" + + "rametersEntry\022!\n\024gcs_output_directory\030\002 " + + "\001(\tB\003\340A\002\032Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t" + + "\0225\n\005value\030\002 \001(\0132&.google.cloud.aiplatfor" + + "m.v1beta1.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatf" + + "orm.googleapis.com/PipelineJob\022Cprojects" + + "/{project}/locations/{location}/pipeline" + + "Jobs/{pipeline_job}\"\371\001\n\021PipelineJobDetai" + + "l\022G\n\020pipeline_context\030\001 \001(\0132(.google.clo" + + "ud.aiplatform.v1beta1.ContextB\003\340A\003\022K\n\024pi" + + "peline_run_context\030\002 \001(\0132(.google.cloud." + + "aiplatform.v1beta1.ContextB\003\340A\003\022N\n\014task_" + + "details\030\003 \003(\01323.google.cloud.aiplatform." + + "v1beta1.PipelineTaskDetailB\003\340A\003\"\240\t\n\022Pipe" + + "lineTaskDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016" + + "parent_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002" + + " \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" + + "end_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022Y\n\017executor_detail\030\006 \001(\0132;.googl" + + "e.cloud.aiplatform.v1beta1.PipelineTaskE" + + "xecutorDetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.goog" + + "le.cloud.aiplatform.v1beta1.PipelineTask" + + "Detail.StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.g" + + "oogle.cloud.aiplatform.v1beta1.Execution" + + "B\003\340A\003\022&\n\005error\030\t \001(\0132\022.google.rpc.Status" + + "B\003\340A\003\022T\n\006inputs\030\n \003(\0132?.google.cloud.aip" + + "latform.v1beta1.PipelineTaskDetail.Input" + + "sEntryB\003\340A\003\022V\n\007outputs\030\013 \003(\0132@.google.cl" + + "oud.aiplatform.v1beta1.PipelineTaskDetai" + + "l.OutputsEntryB\003\340A\003\032Q\n\014ArtifactList\022A\n\ta" + + "rtifacts\030\001 \003(\0132).google.cloud.aiplatform" + + ".v1beta1.ArtifactB\003\340A\003\032o\n\013InputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskDetail.A" + + "rtifactList:\0028\001\032p\n\014OutputsEntry\022\013\n\003key\030\001" + + " \001(\t\022O\n\005value\030\002 \001(\0132@.google.cloud.aipla" + + "tform.v1beta1.PipelineTaskDetail.Artifac" + + "tList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDE" + + "D\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022" + + "\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022" + + "\021\n\rNOT_TRIGGERED\020\t\"\366\003\n\032PipelineTaskExecu" + + "torDetail\022l\n\020container_detail\030\001 \001(\0132K.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineTa" + + "skExecutorDetail.ContainerDetailB\003\340A\003H\000\022" + + "o\n\021custom_job_detail\030\002 \001(\0132K.google.clou" + + "d.aiplatform.v1beta1.PipelineTaskExecuto" + + "rDetail.CustomJobDetailB\005\030\001\340A\003H\000\032\234\001\n\017Con" + + "tainerDetail\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#" + + "aiplatform.googleapis.com/CustomJob\022J\n\025p" + + "re_caching_check_job\030\002 \001(\tB+\340A\003\372A%\n#aipl" + + "atform.googleapis.com/CustomJob\032O\n\017Custo" + + "mJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatf" + + "orm.googleapis.com/CustomJob:\002\030\001B\t\n\007deta" + + "ilsB\315\001\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" + }; + 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.v1beta1.ArtifactProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.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_v1beta1_PipelineJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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_v1beta1_PipelineJob_RuntimeConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor, + new java.lang.String[] { + "Parameters", "GcsOutputDirectory", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor, + new java.lang.String[] { + "PipelineContext", "PipelineRunContext", "TaskDetails", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor, + new java.lang.String[] { + "TaskId", + "ParentTaskId", + "TaskName", + "CreateTime", + "StartTime", + "EndTime", + "ExecutorDetail", + "State", + "Execution", + "Error", + "Inputs", + "Outputs", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor, + new java.lang.String[] { + "Artifacts", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor, + new java.lang.String[] { + "ContainerDetail", "CustomJobDetail", "Details", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor, + new java.lang.String[] { + "MainJob", "PreCachingCheckJob", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.ArtifactProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java new file mode 100644 index 000000000..9cf8b8920 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -0,0 +1,5591 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * An instance of a machine learning PipelineJob.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineJob} + */ +public final class PipelineJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail.Builder subBuilder = null; + if (jobDetail_ != null) { + subBuilder = jobDetail_.toBuilder(); + } + jobDetail_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig.Builder subBuilder = + null; + if (runtimeConfig_ != null) { + subBuilder = runtimeConfig_.toBuilder(); + } + runtimeConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtimeConfig_); + runtimeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder subBuilder = null; + if (encryptionSpec_ != null) { + subBuilder = encryptionSpec_.toBuilder(); + } + encryptionSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder.class); + } + + public interface RuntimeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + int getParametersCount(); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig} + */ + public static final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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< + java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> + 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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> + parameters_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> + 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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig build() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + 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.Value> + parameters_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> + 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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineState result = + com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED : result; + } + + public static final int JOB_DETAIL_FIELD_NUMBER = 9; + private com.google.cloud.aiplatform.v1beta1.PipelineJobDetail jobDetail_; + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getJobDetail() { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.PipelineJob.RuntimeConfig runtimeConfig_; + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig getRuntimeConfig() { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder + getRuntimeConfigOrBuilder() { + return getRuntimeConfig(); + } + + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineJob other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob) + com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob build() { + com.google.cloud.aiplatform.v1beta1.PipelineJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineJob result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineState result = + com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJobDetail jobDetail_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder> + jobDetailBuilder_; + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getJobDetail() { + if (jobDetailBuilder_ == null) { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } else { + return jobDetailBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setJobDetail(com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setJobDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeJobDetail(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail value) { + if (jobDetailBuilder_ == null) { + if (jobDetail_ != null) { + jobDetail_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder getJobDetailBuilder() { + + onChanged(); + return getJobDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder getJobDetailOrBuilder() { + if (jobDetailBuilder_ != null) { + return jobDetailBuilder_.getMessageOrBuilder(); + } else { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder> + getJobDetailFieldBuilder() { + if (jobDetailBuilder_ == null) { + jobDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtimeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder> + runtimeConfigBuilder_; + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig getRuntimeConfig() { + if (runtimeConfigBuilder_ == null) { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } else { + return runtimeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder setRuntimeConfig( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder setRuntimeConfig( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder mergeRuntimeConfig( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig value) { + if (runtimeConfigBuilder_ == null) { + if (runtimeConfig_ != null) { + runtimeConfig_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder + getRuntimeConfigBuilder() { + + onChanged(); + return getRuntimeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder + getRuntimeConfigOrBuilder() { + if (runtimeConfigBuilder_ != null) { + return runtimeConfigBuilder_.getMessageOrBuilder(); + } else { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder> + getRuntimeConfigFieldBuilder() { + if (runtimeConfigBuilder_ == null) { + runtimeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder>( + getRuntimeConfig(), getParentForChildren(), isClean()); + runtimeConfig_ = null; + } + return runtimeConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (encryptionSpec_ != null) { + encryptionSpec_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder + getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob) + private static final com.google.cloud.aiplatform.v1beta1.PipelineJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineJob(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java new file mode 100644 index 000000000..dc32004c7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java @@ -0,0 +1,1616 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The runtime detail of PipelineJob.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineJobDetail} + */ +public final class PipelineJobDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.Context.Builder subBuilder = null; + if (pipelineContext_ != null) { + subBuilder = pipelineContext_.toBuilder(); + } + pipelineContext_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pipelineContext_); + pipelineContext_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.Context.Builder subBuilder = null; + if (pipelineRunContext_ != null) { + subBuilder = pipelineRunContext_.toBuilder(); + } + pipelineRunContext_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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< + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail>(); + mutable_bitField0_ |= 0x00000001; + } + taskDetails_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder.class); + } + + public static final int PIPELINE_CONTEXT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Context pipelineContext_; + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getPipelineContext() { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineContext_; + } + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder() { + return getPipelineContext(); + } + + public static final int PIPELINE_RUN_CONTEXT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Context pipelineRunContext_; + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext() { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineRunContext_; + } + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail getTaskDetails(int index) { + return taskDetails_.get(index); + } + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineJobDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJobDetail) + com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail build() { + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineJobDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PipelineJobDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Context pipelineContext_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + pipelineContextBuilder_; + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + public com.google.cloud.aiplatform.v1beta1.Context getPipelineContext() { + if (pipelineContextBuilder_ == null) { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineContext_; + } else { + return pipelineContextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineContext(com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineContext( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePipelineContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (pipelineContextBuilder_ == null) { + if (pipelineContext_ != null) { + pipelineContext_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineContextBuilder() { + + onChanged(); + return getPipelineContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder() { + if (pipelineContextBuilder_ != null) { + return pipelineContextBuilder_.getMessageOrBuilder(); + } else { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineContext_; + } + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + getPipelineContextFieldBuilder() { + if (pipelineContextBuilder_ == null) { + pipelineContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>( + getPipelineContext(), getParentForChildren(), isClean()); + pipelineContext_ = null; + } + return pipelineContextBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Context pipelineRunContext_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + pipelineRunContextBuilder_; + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + public com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext() { + if (pipelineRunContextBuilder_ == null) { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineRunContext_; + } else { + return pipelineRunContextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineRunContext(com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineRunContext( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (pipelineRunContextBuilder_ == null) { + if (pipelineRunContext_ != null) { + pipelineRunContext_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineRunContextBuilder() { + + onChanged(); + return getPipelineRunContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContextOrBuilder() { + if (pipelineRunContextBuilder_ != null) { + return pipelineRunContextBuilder_.getMessageOrBuilder(); + } else { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineRunContext_; + } + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + getPipelineRunContextFieldBuilder() { + if (pipelineRunContextBuilder_ == null) { + pipelineRunContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder> + taskDetailsBuilder_; + + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskDetails( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskDetails( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails(com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder getTaskDetailsBuilder( + int index) { + return getTaskDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder addTaskDetailsBuilder() { + return getTaskDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder addTaskDetailsBuilder( + int index) { + return getTaskDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder> + getTaskDetailsFieldBuilder() { + if (taskDetailsBuilder_ == null) { + taskDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJobDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineJobDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetailOrBuilder.java new file mode 100644 index 000000000..12e7a4b29 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetailOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PipelineJobDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJobDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + com.google.cloud.aiplatform.v1beta1.Context getPipelineContext(); + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder(); + + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext(); + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContextOrBuilder(); + + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail getTaskDetails(int index); + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder( + int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java new file mode 100644 index 000000000..95f1b4a9d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java @@ -0,0 +1,227 @@ +/* + * 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 PipelineJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PIPELINE_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String pipelineJob; + + @Deprecated + protected PipelineJobName() { + project = null; + location = null; + pipelineJob = null; + } + + private PipelineJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + pipelineJob = Preconditions.checkNotNull(builder.getPipelineJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPipelineJob() { + return pipelineJob; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PipelineJobName of(String project, String location, String pipelineJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPipelineJob(pipelineJob) + .build(); + } + + public static String format(String project, String location, String pipelineJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPipelineJob(pipelineJob) + .build() + .toString(); + } + + public static PipelineJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + 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()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PipelineJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PIPELINE_JOB.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 (pipelineJob != null) { + fieldMapBuilder.put("pipeline_job", pipelineJob); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PIPELINE_JOB.instantiate( + "project", project, "location", location, "pipeline_job", pipelineJob); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PipelineJobName that = ((PipelineJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.pipelineJob, that.pipelineJob); + } + 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(pipelineJob); + return h; + } + + /** Builder for projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}. */ + public static class Builder { + private String project; + private String location; + private String pipelineJob; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPipelineJob() { + return pipelineJob; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPipelineJob(String pipelineJob) { + this.pipelineJob = pipelineJob; + return this; + } + + private Builder(PipelineJobName pipelineJobName) { + project = pipelineJobName.project; + location = pipelineJobName.location; + pipelineJob = pipelineJobName.pipelineJob; + } + + public PipelineJobName build() { + return new PipelineJobName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java new file mode 100644 index 000000000..721039989 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -0,0 +1,611 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PipelineJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.PipelineState getState(); + + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getJobDetail(); + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return Whether the runtimeConfig field is set. + */ + boolean hasRuntimeConfig(); + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig getRuntimeConfig(); + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.EncryptionSpec encryption_spec = 16; + */ + com.google.cloud.aiplatform.v1beta1.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-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 c5bc27ffb..4123bdf82 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 @@ -51,6 +51,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_CancelTrainingPipelineRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_CancelTrainingPipelineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreatePipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetPipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListPipelineJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeletePipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CancelPipelineJobRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -65,65 +89,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m.v1beta1\032\034google/api/annotations.proto\032" + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\0327google/cloud/aiplatform/v1beta1/tr" - + "aining_pipeline.proto\032#google/longrunnin" - + "g/operations.proto\032\033google/protobuf/empt" - + "y.proto\032 google/protobuf/field_mask.prot" - + "o\"\255\001\n\035CreateTrainingPipelineRequest\0229\n\006p" + + "roto\0322google/cloud/aiplatform/v1beta1/pi" + + "peline_job.proto\0327google/cloud/aiplatfor" + + "m/v1beta1/training_pipeline.proto\032#googl" + + "e/longrunning/operations.proto\032\033google/p" + + "rotobuf/empty.proto\032 google/protobuf/fie" + + "ld_mask.proto\"\255\001\n\035CreateTrainingPipeline" + + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022Q\n\021training_p" + + "ipeline\030\002 \001(\01321.google.cloud.aiplatform." + + "v1beta1.TrainingPipelineB\003\340A\002\"^\n\032GetTrai" + + "ningPipelineRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A" + + ",\n*aiplatform.googleapis.com/TrainingPip" + + "eline\"\277\001\n\034ListTrainingPipelinesRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" + + "apis.com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpag" + + "e_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread" + + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"" + + "\207\001\n\035ListTrainingPipelinesResponse\022M\n\022tra" + + "ining_pipelines\030\001 \003(\01321.google.cloud.aip" + + "latform.v1beta1.TrainingPipeline\022\027\n\017next" + + "_page_token\030\002 \001(\t\"a\n\035DeleteTrainingPipel" + + "ineRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplat" + + "form.googleapis.com/TrainingPipeline\"a\n\035" + + "CancelTrainingPipelineRequest\022@\n\004name\030\001 " + + "\001(\tB2\340A\002\372A,\n*aiplatform.googleapis.com/T" + + "rainingPipeline\"\267\001\n\030CreatePipelineJobReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022G\n\014pipeline_job\030" + + "\002 \001(\0132,.google.cloud.aiplatform.v1beta1." + + "PipelineJobB\003\340A\002\022\027\n\017pipeline_job_id\030\003 \001(" + + "\t\"T\n\025GetPipelineJobRequest\022;\n\004name\030\001 \001(\t" + + "B-\340A\002\372A\'\n%aiplatform.googleapis.com/Pipe" + + "lineJob\"\213\001\n\027ListPipelineJobsRequest\0229\n\006p" + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" - + "s.com/Location\022Q\n\021training_pipeline\030\002 \001(" - + "\01321.google.cloud.aiplatform.v1beta1.Trai" - + "ningPipelineB\003\340A\002\"^\n\032GetTrainingPipeline" - + "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatfor" - + "m.googleapis.com/TrainingPipeline\"\277\001\n\034Li" - + "stTrainingPipelinesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132" - + "\032.google.protobuf.FieldMask\"\207\001\n\035ListTrai" - + "ningPipelinesResponse\022M\n\022training_pipeli" - + "nes\030\001 \003(\01321.google.cloud.aiplatform.v1be" - + "ta1.TrainingPipeline\022\027\n\017next_page_token\030" - + "\002 \001(\t\"a\n\035DeleteTrainingPipelineRequest\022@" - + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatform.googlea" - + "pis.com/TrainingPipeline\"a\n\035CancelTraini" - + "ngPipelineRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*aiplatform.googleapis.com/TrainingPipel" - + "ine2\331\t\n\017PipelineService\022\375\001\n\026CreateTraini" - + "ngPipeline\022>.google.cloud.aiplatform.v1b" - + "eta1.CreateTrainingPipelineRequest\0321.goo" - + "gle.cloud.aiplatform.v1beta1.TrainingPip" - + "eline\"p\202\323\344\223\002O\":/v1beta1/{parent=projects" - + "/*/locations/*}/trainingPipelines:\021train" - + "ing_pipeline\332A\030parent,training_pipeline\022" - + "\320\001\n\023GetTrainingPipeline\022;.google.cloud.a" - + "iplatform.v1beta1.GetTrainingPipelineReq" - + "uest\0321.google.cloud.aiplatform.v1beta1.T" - + "rainingPipeline\"I\202\323\344\223\002<\022:/v1beta1/{name=" - + "projects/*/locations/*/trainingPipelines" - + "/*}\332A\004name\022\343\001\n\025ListTrainingPipelines\022=.g" - + "oogle.cloud.aiplatform.v1beta1.ListTrain" - + "ingPipelinesRequest\032>.google.cloud.aipla" - + "tform.v1beta1.ListTrainingPipelinesRespo" - + "nse\"K\202\323\344\223\002<\022:/v1beta1/{parent=projects/*" - + "/locations/*}/trainingPipelines\332A\006parent" - + "\022\365\001\n\026DeleteTrainingPipeline\022>.google.clo" - + "ud.aiplatform.v1beta1.DeleteTrainingPipe" - + "lineRequest\032\035.google.longrunning.Operati" - + "on\"|\202\323\344\223\002<*:/v1beta1/{name=projects/*/lo" - + "cations/*/trainingPipelines/*}\332A\004name\312A0" - + "\n\025google.protobuf.Empty\022\027DeleteOperation" - + "Metadata\022\305\001\n\026CancelTrainingPipeline\022>.go" - + "ogle.cloud.aiplatform.v1beta1.CancelTrai" - + "ningPipelineRequest\032\026.google.protobuf.Em" - + "pty\"S\202\323\344\223\002F\"A/v1beta1/{name=projects/*/l" - + "ocations/*/trainingPipelines/*}:cancel:\001" - + "*\332A\004name\032M\312A\031aiplatform.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\210\001\n#com.google.cloud.aiplatform." - + "v1beta1B\024PipelineServiceProtoP\001ZIgoogle." - + "golang.org/genproto/googleapis/cloud/aip" - + "latform/v1beta1;aiplatformb\006proto3" + + "s.com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"x\n\030ListPip" + + "elineJobsResponse\022C\n\rpipeline_jobs\030\001 \003(\013" + + "2,.google.cloud.aiplatform.v1beta1.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\376\021\n\017PipelineService\022\375\001\n\026Create" + + "TrainingPipeline\022>.google.cloud.aiplatfo" + + "rm.v1beta1.CreateTrainingPipelineRequest" + + "\0321.google.cloud.aiplatform.v1beta1.Train" + + "ingPipeline\"p\202\323\344\223\002O\":/v1beta1/{parent=pr" + + "ojects/*/locations/*}/trainingPipelines:" + + "\021training_pipeline\332A\030parent,training_pip" + + "eline\022\320\001\n\023GetTrainingPipeline\022;.google.c" + + "loud.aiplatform.v1beta1.GetTrainingPipel" + + "ineRequest\0321.google.cloud.aiplatform.v1b" + + "eta1.TrainingPipeline\"I\202\323\344\223\002<\022:/v1beta1/" + + "{name=projects/*/locations/*/trainingPip" + + "elines/*}\332A\004name\022\343\001\n\025ListTrainingPipelin" + + "es\022=.google.cloud.aiplatform.v1beta1.Lis" + + "tTrainingPipelinesRequest\032>.google.cloud" + + ".aiplatform.v1beta1.ListTrainingPipeline" + + "sResponse\"K\202\323\344\223\002<\022:/v1beta1/{parent=proj" + + "ects/*/locations/*}/trainingPipelines\332A\006" + + "parent\022\365\001\n\026DeleteTrainingPipeline\022>.goog" + + "le.cloud.aiplatform.v1beta1.DeleteTraini" + + "ngPipelineRequest\032\035.google.longrunning.O" + + "peration\"|\202\323\344\223\002<*:/v1beta1/{name=project" + + "s/*/locations/*/trainingPipelines/*}\332A\004n" + + "ame\312A0\n\025google.protobuf.Empty\022\027DeleteOpe" + + "rationMetadata\022\305\001\n\026CancelTrainingPipelin" + + "e\022>.google.cloud.aiplatform.v1beta1.Canc" + + "elTrainingPipelineRequest\032\026.google.proto" + + "buf.Empty\"S\202\323\344\223\002F\"A/v1beta1/{name=projec" + + "ts/*/locations/*/trainingPipelines/*}:ca" + + "ncel:\001*\332A\004name\022\357\001\n\021CreatePipelineJob\0229.g" + + "oogle.cloud.aiplatform.v1beta1.CreatePip" + + "elineJobRequest\032,.google.cloud.aiplatfor" + + "m.v1beta1.PipelineJob\"q\202\323\344\223\002E\"5/v1beta1/" + + "{parent=projects/*/locations/*}/pipeline" + + "Jobs:\014pipeline_job\332A#parent,pipeline_job" + + ",pipeline_job_id\022\274\001\n\016GetPipelineJob\0226.go" + + "ogle.cloud.aiplatform.v1beta1.GetPipelin" + + "eJobRequest\032,.google.cloud.aiplatform.v1" + + "beta1.PipelineJob\"D\202\323\344\223\0027\0225/v1beta1/{nam" + + "e=projects/*/locations/*/pipelineJobs/*}" + + "\332A\004name\022\317\001\n\020ListPipelineJobs\0228.google.cl" + + "oud.aiplatform.v1beta1.ListPipelineJobsR" + + "equest\0329.google.cloud.aiplatform.v1beta1" + + ".ListPipelineJobsResponse\"F\202\323\344\223\0027\0225/v1be" + + "ta1/{parent=projects/*/locations/*}/pipe" + + "lineJobs\332A\006parent\022\346\001\n\021DeletePipelineJob\022" + + "9.google.cloud.aiplatform.v1beta1.Delete" + + "PipelineJobRequest\032\035.google.longrunning." + + "Operation\"w\202\323\344\223\0027*5/v1beta1/{name=projec" + + "ts/*/locations/*/pipelineJobs/*}\332A\004name\312" + + "A0\n\025google.protobuf.Empty\022\027DeleteOperati" + + "onMetadata\022\266\001\n\021CancelPipelineJob\0229.googl" + + "e.cloud.aiplatform.v1beta1.CancelPipelin" + + "eJobRequest\032\026.google.protobuf.Empty\"N\202\323\344" + + "\223\002A\" - * The pipeline has been just created or resumed and processing has not yet + * The pipeline has been created or resumed, and processing has not yet * begun. * * @@ -93,7 +93,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline is being cancelled. From this state the pipeline may only go
+   * The pipeline is being cancelled. From this state, the pipeline may only go
    * to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or
    * PIPELINE_STATE_CANCELLED.
    * 
@@ -138,7 +138,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline has been just created or resumed and processing has not yet
+   * The pipeline has been created or resumed, and processing has not yet
    * begun.
    * 
* @@ -189,7 +189,7 @@ public enum PipelineState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The pipeline is being cancelled. From this state the pipeline may only go
+   * The pipeline is being cancelled. From this state, the pipeline may only go
    * to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or
    * PIPELINE_STATE_CANCELLED.
    * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java new file mode 100644 index 000000000..a2b82e0a7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java @@ -0,0 +1,4885 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The runtime detail of a task execution.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineTaskDetail} + */ +public final class PipelineTaskDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.Builder subBuilder = + null; + if (executorDetail_ != null) { + subBuilder = executorDetail_.toBuilder(); + } + executorDetail_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution.Builder subBuilder = null; + if (execution_ != null) { + subBuilder = execution_.toBuilder(); + } + execution_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder.class); + } + + /** + * + * + *
+   * Specifies state of TaskExecution
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.State) + } + + public interface ArtifactListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getArtifactsList(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getArtifactsCount(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getArtifactsOrBuilderList(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuilder(int index); + } + /** + * + * + *
+   * A list of artifact metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} + */ + public static final class ArtifactList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList build() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts(int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactsBuilder(int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder addArtifactsBuilder(int index) { + return getArtifactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executorDetail_; + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail getExecutorDetail() { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder + getExecutorDetailOrBuilder() { + return getExecutorDetail(); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_; + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED + : result; + } + + public static final int EXECUTION_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1beta1.Execution execution_; + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_InputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + inputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getInputs() { + return getInputsMap(); + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getInputsMap() { + return internalGetInputs().getMap(); + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + 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.v1beta1.PipelineTaskDetail.ArtifactList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_OutputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + outputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputs() { + return getOutputsMap(); + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + 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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + entry : internalGetInputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + entry : internalGetOutputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTaskDetail) + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail build() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executorDetail_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder> + executorDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail getExecutorDetail() { + if (executorDetailBuilder_ == null) { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } else { + return executorDetailBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutorDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutorDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExecutorDetail( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail value) { + if (executorDetailBuilder_ == null) { + if (executorDetail_ != null) { + executorDetail_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder + getExecutorDetailBuilder() { + + onChanged(); + return getExecutorDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder + getExecutorDetailOrBuilder() { + if (executorDetailBuilder_ != null) { + return executorDetailBuilder_.getMessageOrBuilder(); + } else { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder> + getExecutorDetailFieldBuilder() { + if (executorDetailBuilder_ == null) { + executorDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder>( + getExecutorDetail(), getParentForChildren(), isClean()); + executorDetail_ = null; + } + return executorDetailBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + executionBuilder_; + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + if (executionBuilder_ == null) { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } else { + return executionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecution(com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecution( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionBuilder_ == null) { + if (execution_ != null) { + execution_ = + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { + + onChanged(); + return getExecutionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { + if (executionBuilder_ != null) { + return executionBuilder_.getMessageOrBuilder(); + } else { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + getExecutionFieldBuilder() { + if (executionBuilder_ == null) { + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + inputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getInputs() { + return getInputsMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getInputsMap() { + return internalGetInputs().getMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getMutableInputs() { + return internalGetMutableInputs().getMutableMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInputs( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInputs( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + values) { + internalGetMutableInputs().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + outputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputs() { + return getOutputsMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> + getMutableOutputs() { + return internalGetMutableOutputs().getMutableMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putOutputs( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllOutputs( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTaskDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java new file mode 100644 index 000000000..b5d888592 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java @@ -0,0 +1,485 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PipelineTaskDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail getExecutorDetail(); + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder + getExecutorDetailOrBuilder(); + + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState(); + + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + com.google.cloud.aiplatform.v1beta1.Execution getExecution(); + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getInputs(); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getInputsMap(); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrThrow( + java.lang.String key); + + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.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.v1beta1.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< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputs(); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> + getOutputsMap(); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( + java.lang.String key); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java new file mode 100644 index 000000000..77bde8063 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java @@ -0,0 +1,2951 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The runtime detail of a pipeline executor.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} + */ +public final class PipelineTaskExecutorDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.Builder + subBuilder = null; + if (detailsCase_ == 1) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .ContainerDetail) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 1; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + subBuilder = null; + if (detailsCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .CustomJobDetail) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder.class); + } + + public interface ContainerDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} + */ + public static final class ContainerDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + build() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .ContainerDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface CustomJobDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} + */ + @java.lang.Deprecated + public static final class CustomJobDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + build() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .CustomJobDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + getContainerDetail() { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder() { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + getCustomJobDetail() { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder() { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_); + } + if (detailsCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_); + } + if (detailsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail build() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder> + containerDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + getContainerDetail() { + if (containerDetailBuilder_ == null) { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } else { + if (detailsCase_ == 1) { + return containerDetailBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContainerDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContainerDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeContainerDetail( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail value) { + if (containerDetailBuilder_ == null) { + if (detailsCase_ == 1 + && details_ + != com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance()) { + details_ = + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.Builder + getContainerDetailBuilder() { + return getContainerDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder() { + if ((detailsCase_ == 1) && (containerDetailBuilder_ != null)) { + return containerDetailBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder> + getContainerDetailFieldBuilder() { + if (containerDetailBuilder_ == null) { + if (!(detailsCase_ == 1)) { + details_ = + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + containerDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + .Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .ContainerDetailOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 1; + onChanged(); + ; + return containerDetailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder> + customJobDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + getCustomJobDetail() { + if (customJobDetailBuilder_ == null) { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return customJobDetailBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setCustomJobDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setCustomJobDetail( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder mergeCustomJobDetail( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail value) { + if (customJobDetailBuilder_ == null) { + if (detailsCase_ == 2 + && details_ + != com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance()) { + details_ = + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + getCustomJobDetailBuilder() { + return getCustomJobDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder() { + if ((detailsCase_ == 2) && (customJobDetailBuilder_ != null)) { + return customJobDetailBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder> + getCustomJobDetailFieldBuilder() { + if (customJobDetailBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + customJobDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + .Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .CustomJobDetailOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java new file mode 100644 index 000000000..60bcec3ad --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PipelineTaskExecutorDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + getContainerDetail(); + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder(); + + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customJobDetail. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + getCustomJobDetail(); + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.DetailsCase + getDetailsCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java index 35794b0ff..3fa85f224 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java @@ -139,9 +139,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -171,9 +171,9 @@ public java.lang.String getInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -206,10 +206,10 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -239,10 +239,10 @@ public java.lang.String getParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -275,9 +275,9 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -307,9 +307,9 @@ public java.lang.String getPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -693,9 +693,9 @@ public Builder mergeFrom( * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -724,9 +724,9 @@ public java.lang.String getInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -755,9 +755,9 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -785,9 +785,9 @@ public Builder setInstanceSchemaUri(java.lang.String value) { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -811,9 +811,9 @@ public Builder clearInstanceSchemaUri() { * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -844,10 +844,10 @@ public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -876,10 +876,10 @@ public java.lang.String getParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -908,10 +908,10 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -939,10 +939,10 @@ public Builder setParametersSchemaUri(java.lang.String value) { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -966,10 +966,10 @@ public Builder clearParametersSchemaUri() { * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1000,9 +1000,9 @@ public Builder setParametersSchemaUriBytes(com.google.protobuf.ByteString value) * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1031,9 +1031,9 @@ public java.lang.String getPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1062,9 +1062,9 @@ public com.google.protobuf.ByteString getPredictionSchemaUriBytes() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1092,9 +1092,9 @@ public Builder setPredictionSchemaUri(java.lang.String value) { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -1118,9 +1118,9 @@ public Builder clearPredictionSchemaUri() { * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemataOrBuilder.java index a7d90abe2..4c0a52938 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemataOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemataOrBuilder.java @@ -31,9 +31,9 @@ public interface PredictSchemataOrBuilder * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -52,9 +52,9 @@ public interface PredictSchemataOrBuilder * of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], * [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -74,10 +74,10 @@ public interface PredictSchemataOrBuilder * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -96,10 +96,10 @@ public interface PredictSchemataOrBuilder * parameters of prediction and explanation via * [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform, if no - * parameters are supported it is set to an empty string. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI, if no + * parameters are supported, then it is set to an empty string. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -119,9 +119,9 @@ public interface PredictSchemataOrBuilder * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. @@ -140,9 +140,9 @@ public interface PredictSchemataOrBuilder * of a single prediction produced by this Model, which are returned via * [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - * The schema is defined as an OpenAPI 3.0.2 - * [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - * AutoML Models always have this field populated by AI Platform. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML Models always have this field populated by Vertex AI. * Note: The URI given on output will be immutable and probably different, * including the URI scheme, than the one given on input. The output URI will * point to a location where the user only has a read access. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java index a8d3eeb7b..2173010fc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java @@ -154,10 +154,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -180,10 +182,12 @@ public java.lang.String getExecutorImageUri() { * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -791,10 +795,12 @@ public Builder mergeFrom( * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -816,10 +822,12 @@ public java.lang.String getExecutorImageUri() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -841,10 +849,12 @@ public com.google.protobuf.ByteString getExecutorImageUriBytes() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -865,10 +875,12 @@ public Builder setExecutorImageUri(java.lang.String value) { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -885,10 +897,12 @@ public Builder clearExecutorImageUri() { * * *
-     * Required. The URI of a container image in the Container Registry that will run the
-     * provided python package. AI Platform provides wide range of executor images
-     * with pre-installed packages to meet users' various use cases. Only one of
-     * the provided images can be set here.
+     * Required. The URI of a container image in Artifact Registry that will run the
+     * provided Python package. Vertex AI provides a wide range of executor
+     * images with pre-installed packages to meet users' various use cases. See
+     * the list of [pre-built containers for
+     * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * You must use an image from this list.
      * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java index ceb6d3472..ed5025ca4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java @@ -27,10 +27,12 @@ public interface PythonPackageSpecOrBuilder * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,10 +44,12 @@ public interface PythonPackageSpecOrBuilder * * *
-   * Required. The URI of a container image in the Container Registry that will run the
-   * provided python package. AI Platform provides wide range of executor images
-   * with pre-installed packages to meet users' various use cases. Only one of
-   * the provided images can be set here.
+   * Required. The URI of a container image in Artifact Registry that will run the
+   * provided Python package. Vertex AI provides a wide range of executor
+   * images with pre-installed packages to meet users' various use cases. See
+   * the list of [pre-built containers for
+   * training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * You must use an image from this list.
    * 
* * string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java new file mode 100644 index 000000000..e4db21c74 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java @@ -0,0 +1,1114 @@ +/* + * 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.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} + */ +public final class QueryArtifactLineageSubgraphRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + QueryArtifactLineageSubgraphRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryArtifactLineageSubgraphRequest.newBuilder() to construct. + private QueryArtifactLineageSubgraphRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryArtifactLineageSubgraphRequest() { + artifact_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryArtifactLineageSubgraphRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryArtifactLineageSubgraphRequest( + 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(); + + artifact_ = s; + break; + } + case 16: + { + maxHops_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = 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_QueryArtifactLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private volatile java.lang.Object artifact_; + /** + * + * + *
+   * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+   * LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + @java.lang.Override + public java.lang.String getArtifact() { + java.lang.Object ref = artifact_; + 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(); + artifact_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+   * LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactBytes() { + java.lang.Object ref = artifact_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_HOPS_FIELD_NUMBER = 2; + private int maxHops_; + /** + * + * + *
+   * Specifies the size of the lineage graph in terms of number of hops from the
+   * specified artifact.
+   * Negative Value: INVALID_ARGUMENT error is returned
+   * 0: Only input artifact is returned.
+   * No value: Transitive closure is performed to return the complete graph.
+   * 
+ * + * int32 max_hops = 2; + * + * @return The maxHops. + */ + @java.lang.Override + public int getMaxHops() { + return maxHops_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the Lineage Subgraph.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`
+   *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the Lineage Subgraph.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`
+   *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 3; + * + * @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; + } + } + + 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 (!getArtifactBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifact_); + } + if (maxHops_ != 0) { + output.writeInt32(2, maxHops_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getArtifactBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifact_); + } + if (maxHops_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxHops_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + 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.QueryArtifactLineageSubgraphRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest other = + (com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) obj; + + if (!getArtifact().equals(other.getArtifact())) return false; + if (getMaxHops() != other.getMaxHops()) return false; + if (!getFilter().equals(other.getFilter())) 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) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + hash = (37 * hash) + MAX_HOPS_FIELD_NUMBER; + hash = (53 * hash) + getMaxHops(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + 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.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraphRequest 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.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.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(); + artifact_ = ""; + + maxHops_ = 0; + + filter_ = ""; + + 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_QueryArtifactLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest build() { + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest result = + new com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(this); + result.artifact_ = artifact_; + result.maxHops_ = maxHops_; + result.filter_ = filter_; + 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.QueryArtifactLineageSubgraphRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + .getDefaultInstance()) return this; + if (!other.getArtifact().isEmpty()) { + artifact_ = other.artifact_; + onChanged(); + } + if (other.getMaxHops() != 0) { + setMaxHops(other.getMaxHops()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.QueryArtifactLineageSubgraphRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object artifact_ = ""; + /** + * + * + *
+     * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+     * LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + public java.lang.String getArtifact() { + java.lang.Object ref = artifact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifact_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+     * LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + public com.google.protobuf.ByteString getArtifactBytes() { + java.lang.Object ref = artifact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+     * LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The artifact to set. + * @return This builder for chaining. + */ + public Builder setArtifact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifact_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+     * LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearArtifact() { + + artifact_ = getDefaultInstance().getArtifact(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+     * LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for artifact to set. + * @return This builder for chaining. + */ + public Builder setArtifactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifact_ = value; + onChanged(); + return this; + } + + private int maxHops_; + /** + * + * + *
+     * Specifies the size of the lineage graph in terms of number of hops from the
+     * specified artifact.
+     * Negative Value: INVALID_ARGUMENT error is returned
+     * 0: Only input artifact is returned.
+     * No value: Transitive closure is performed to return the complete graph.
+     * 
+ * + * int32 max_hops = 2; + * + * @return The maxHops. + */ + @java.lang.Override + public int getMaxHops() { + return maxHops_; + } + /** + * + * + *
+     * Specifies the size of the lineage graph in terms of number of hops from the
+     * specified artifact.
+     * Negative Value: INVALID_ARGUMENT error is returned
+     * 0: Only input artifact is returned.
+     * No value: Transitive closure is performed to return the complete graph.
+     * 
+ * + * int32 max_hops = 2; + * + * @param value The maxHops to set. + * @return This builder for chaining. + */ + public Builder setMaxHops(int value) { + + maxHops_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the size of the lineage graph in terms of number of hops from the
+     * specified artifact.
+     * Negative Value: INVALID_ARGUMENT error is returned
+     * 0: Only input artifact is returned.
+     * No value: Transitive closure is performed to return the complete graph.
+     * 
+ * + * int32 max_hops = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxHops() { + + maxHops_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the Lineage Subgraph.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`
+     *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the Lineage Subgraph.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`
+     *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the Lineage Subgraph.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`
+     *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 3; + * + * @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; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the Lineage Subgraph.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`
+     *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter specifying the boolean condition for the Artifacts to satisfy in
+     * order to be part of the Lineage Subgraph.
+     * The syntax to define filter query is based on https://google.aip.dev/160.
+     * The supported set of filters include the following:
+     * *  **Attribute filtering**:
+     *    For example: `display_name = "test"`
+     *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+     *    `schema_title`, `create_time`, and `update_time`.
+     *    Time fields, such as `create_time` and `update_time`, require values
+     *    specified in RFC-3339 format.
+     *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+     * *  **Metadata field**:
+     *    To filter on metadata fields use traversal operation as follows:
+     *    `metadata.<field_name>.<type_value>`.
+     *    For example: `metadata.field_1.number_value = 10.0`
+     * Each of the above supported filter types can be combined together using
+     * logical operators (`AND` & `OR`).
+     * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+     * 
+ * + * string filter = 3; + * + * @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; + } + + @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.QueryArtifactLineageSubgraphRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + private static final com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryArtifactLineageSubgraphRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryArtifactLineageSubgraphRequest(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.QueryArtifactLineageSubgraphRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequestOrBuilder.java new file mode 100644 index 000000000..ca1a84877 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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 QueryArtifactLineageSubgraphRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+   * LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The artifact. + */ + java.lang.String getArtifact(); + /** + * + * + *
+   * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
+   * LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for artifact. + */ + com.google.protobuf.ByteString getArtifactBytes(); + + /** + * + * + *
+   * Specifies the size of the lineage graph in terms of number of hops from the
+   * specified artifact.
+   * Negative Value: INVALID_ARGUMENT error is returned
+   * 0: Only input artifact is returned.
+   * No value: Transitive closure is performed to return the complete graph.
+   * 
+ * + * int32 max_hops = 2; + * + * @return The maxHops. + */ + int getMaxHops(); + + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the Lineage Subgraph.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`
+   *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 3; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter specifying the boolean condition for the Artifacts to satisfy in
+   * order to be part of the Lineage Subgraph.
+   * The syntax to define filter query is based on https://google.aip.dev/160.
+   * The supported set of filters include the following:
+   * *  **Attribute filtering**:
+   *    For example: `display_name = "test"`
+   *    Supported fields include: `name`, `display_name`, `uri`, `state`,
+   *    `schema_title`, `create_time`, and `update_time`.
+   *    Time fields, such as `create_time` and `update_time`, require values
+   *    specified in RFC-3339 format.
+   *    For example: `create_time = "2020-11-19T11:30:00-04:00"`
+   * *  **Metadata field**:
+   *    To filter on metadata fields use traversal operation as follows:
+   *    `metadata.<field_name>.<type_value>`.
+   *    For example: `metadata.field_1.number_value = 10.0`
+   * Each of the above supported filter types can be combined together using
+   * logical operators (`AND` & `OR`).
+   * For example: `display_name = "test" AND metadata.field1.bool_value = true`.
+   * 
+ * + * string filter = 3; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java new file mode 100644 index 000000000..9dc91aa13 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java @@ -0,0 +1,706 @@ +/* + * 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.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} + */ +public final class QueryContextLineageSubgraphRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + QueryContextLineageSubgraphRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryContextLineageSubgraphRequest.newBuilder() to construct. + private QueryContextLineageSubgraphRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryContextLineageSubgraphRequest() { + context_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryContextLineageSubgraphRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryContextLineageSubgraphRequest( + 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(); + + context_ = 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_QueryContextLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object context_; + /** + * + * + *
+   * Required. The resource name of the Context whose Artifacts and Executions
+   * should be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The context. + */ + @java.lang.Override + public java.lang.String getContext() { + java.lang.Object ref = context_; + 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(); + context_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Context whose Artifacts and Executions
+   * should be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for context. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = 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 (!getContextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, context_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getContextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_); + } + 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.QueryContextLineageSubgraphRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest other = + (com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) obj; + + if (!getContext().equals(other.getContext())) 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) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + 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.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraphRequest 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.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.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(); + context_ = ""; + + 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_QueryContextLineageSubgraphRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest build() { + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest result = + new com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(this); + result.context_ = context_; + 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.QueryContextLineageSubgraphRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + .getDefaultInstance()) return this; + if (!other.getContext().isEmpty()) { + context_ = other.context_; + 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.QueryContextLineageSubgraphRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object context_ = ""; + /** + * + * + *
+     * Required. The resource name of the Context whose Artifacts and Executions
+     * should be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The context. + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Context whose Artifacts and Executions
+     * should be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for context. + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Context whose Artifacts and Executions
+     * should be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The context to set. + * @return This builder for chaining. + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + context_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Context whose Artifacts and Executions
+     * should be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearContext() { + + context_ = getDefaultInstance().getContext(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Context whose Artifacts and Executions
+     * should be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+     * the number of Executions, or the number of Events that would be returned
+     * for the Context exceeds 1000.
+     * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for context to set. + * @return This builder for chaining. + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + context_ = 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.QueryContextLineageSubgraphRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + private static final com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryContextLineageSubgraphRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryContextLineageSubgraphRequest(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.QueryContextLineageSubgraphRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequestOrBuilder.java new file mode 100644 index 000000000..04a28f0ab --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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 QueryContextLineageSubgraphRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Context whose Artifacts and Executions
+   * should be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The context. + */ + java.lang.String getContext(); + /** + * + * + *
+   * Required. The resource name of the Context whose Artifacts and Executions
+   * should be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * The request may error with FAILED_PRECONDITION if the number of Artifacts,
+   * the number of Executions, or the number of Events that would be returned
+   * for the Context exceeds 1000.
+   * 
+ * + * + * string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for context. + */ + com.google.protobuf.ByteString getContextBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java new file mode 100644 index 000000000..b3c448dae --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java @@ -0,0 +1,693 @@ +/* + * 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.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} + */ +public final class QueryExecutionInputsAndOutputsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + QueryExecutionInputsAndOutputsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryExecutionInputsAndOutputsRequest.newBuilder() to construct. + private QueryExecutionInputsAndOutputsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryExecutionInputsAndOutputsRequest() { + execution_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryExecutionInputsAndOutputsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryExecutionInputsAndOutputsRequest( + 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(); + + execution_ = 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_QueryExecutionInputsAndOutputsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.Builder + .class); + } + + public static final int EXECUTION_FIELD_NUMBER = 1; + private volatile java.lang.Object execution_; + /** + * + * + *
+   * Required. The resource name of the Execution whose input and output Artifacts should
+   * be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + @java.lang.Override + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + 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(); + execution_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Execution whose input and output Artifacts should
+   * be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execution_ = 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 (!getExecutionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, execution_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getExecutionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, execution_); + } + 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.QueryExecutionInputsAndOutputsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest other = + (com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) obj; + + if (!getExecution().equals(other.getExecution())) 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) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + 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.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputsRequest 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.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.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(); + execution_ = ""; + + 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_QueryExecutionInputsAndOutputsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest build() { + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest result = + new com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(this); + result.execution_ = execution_; + 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.QueryExecutionInputsAndOutputsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + .getDefaultInstance()) return this; + if (!other.getExecution().isEmpty()) { + execution_ = other.execution_; + 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.QueryExecutionInputsAndOutputsRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object execution_ = ""; + /** + * + * + *
+     * Required. The resource name of the Execution whose input and output Artifacts should
+     * be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Execution whose input and output Artifacts should
+     * be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + public com.google.protobuf.ByteString getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + execution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Execution whose input and output Artifacts should
+     * be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The execution to set. + * @return This builder for chaining. + */ + public Builder setExecution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Execution whose input and output Artifacts should
+     * be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExecution() { + + execution_ = getDefaultInstance().getExecution(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Execution whose input and output Artifacts should
+     * be retrieved as a LineageSubgraph.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for execution to set. + * @return This builder for chaining. + */ + public Builder setExecutionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execution_ = 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.QueryExecutionInputsAndOutputsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + private static final com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExecutionInputsAndOutputsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryExecutionInputsAndOutputsRequest(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.QueryExecutionInputsAndOutputsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequestOrBuilder.java new file mode 100644 index 000000000..2c5617db0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 QueryExecutionInputsAndOutputsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Execution whose input and output Artifacts should
+   * be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The execution. + */ + java.lang.String getExecution(); + /** + * + * + *
+   * Required. The resource name of the Execution whose input and output Artifacts should
+   * be retrieved as a LineageSubgraph.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for execution. + */ + com.google.protobuf.ByteString getExecutionBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java new file mode 100644 index 000000000..fd205a064 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java @@ -0,0 +1,1180 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} + */ +public final class ReadFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + ReadFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadFeatureValuesRequest.newBuilder() to construct. + private ReadFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadFeatureValuesRequest() { + entityType_ = ""; + entityId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadFeatureValuesRequest( + 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(); + + entityType_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityId_ = s; + break; + } + case 26: + { + 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; + } + 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.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the EntityType for the entity being read.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the EntityType for the entity being read.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object entityId_; + /** + * + * + *
+   * Required. ID for a specific entity. For example,
+   * for a machine learning model predicting user clicks on a website, an entity
+   * ID could be "user_123".
+   * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + 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(); + entityId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. ID for a specific entity. For example,
+   * for a machine learning model predicting user clicks on a website, an entity
+   * ID could be "user_123".
+   * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_SELECTOR_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + @java.lang.Override + public boolean hasFeatureSelector() { + return featureSelector_ != null; + } + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder + getFeatureSelectorOrBuilder() { + return getFeatureSelector(); + } + + 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 (!getEntityTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + if (!getEntityIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityId_); + } + if (featureSelector_ != null) { + output.writeMessage(3, getFeatureSelector()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + if (!getEntityIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityId_); + } + if (featureSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeatureSelector()); + } + 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.ReadFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getEntityId().equals(other.getEntityId())) return false; + if (hasFeatureSelector() != other.hasFeatureSelector()) return false; + if (hasFeatureSelector()) { + if (!getFeatureSelector().equals(other.getFeatureSelector())) 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_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + if (hasFeatureSelector()) { + hash = (37 * hash) + FEATURE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getFeatureSelector().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest 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.ReadFeatureValuesRequest 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 [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.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(); + entityType_ = ""; + + entityId_ = ""; + + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(this); + result.entityType_ = entityType_; + result.entityId_ = entityId_; + if (featureSelectorBuilder_ == null) { + result.featureSelector_ = featureSelector_; + } else { + result.featureSelector_ = featureSelectorBuilder_.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.ReadFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + onChanged(); + } + if (other.hasFeatureSelector()) { + mergeFeatureSelector(other.getFeatureSelector()); + } + 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.ReadFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType for the entity being read.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType for the entity being read.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType for the entity being read.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType for the entity being read.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType for the entity being read.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = value; + onChanged(); + return this; + } + + private java.lang.Object entityId_ = ""; + /** + * + * + *
+     * Required. ID for a specific entity. For example,
+     * for a machine learning model predicting user clicks on a website, an entity
+     * ID could be "user_123".
+     * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. ID for a specific entity. For example,
+     * for a machine learning model predicting user clicks on a website, an entity
+     * ID could be "user_123".
+     * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. ID for a specific entity. For example,
+     * for a machine learning model predicting user clicks on a website, an entity
+     * ID could be "user_123".
+     * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID for a specific entity. For example,
+     * for a machine learning model predicting user clicks on a website, an entity
+     * ID could be "user_123".
+     * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = getDefaultInstance().getEntityId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID for a specific entity. For example,
+     * for a machine learning model predicting user clicks on a website, an entity
+     * ID could be "user_123".
+     * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityId_ = 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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + public boolean hasFeatureSelector() { + return featureSelectorBuilder_ != null || featureSelector_ != null; + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureSelector() { + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + onChanged(); + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { + + onChanged(); + return getFeatureSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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_; + } + + @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.ReadFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadFeatureValuesRequest(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.ReadFeatureValuesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequestOrBuilder.java new file mode 100644 index 000000000..0c8740c3d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the EntityType for the entity being read.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+   * Required. The resource name of the EntityType for the entity being read.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *
+   * Required. ID for a specific entity. For example,
+   * for a machine learning model predicting user clicks on a website, an entity
+   * ID could be "user_123".
+   * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + java.lang.String getEntityId(); + /** + * + * + *
+   * Required. ID for a specific entity. For example,
+   * for a machine learning model predicting user clicks on a website, an entity
+   * ID could be "user_123".
+   * 
+ * + * string entity_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + boolean hasFeatureSelector(); + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector(); + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java new file mode 100644 index 000000000..3ca0ce29c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java @@ -0,0 +1,5907 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} + */ +public final class ReadFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + ReadFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadFeatureValuesResponse.newBuilder() to construct. + private ReadFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadFeatureValuesResponse( + 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.ReadFeatureValuesResponse.Header.Builder + subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder + subBuilder = null; + if (entityView_ != null) { + subBuilder = entityView_.toBuilder(); + } + entityView_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityView_); + entityView_ = 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.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Builder.class); + } + + public interface FeatureDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Feature ID.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+     * Feature ID.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + } + /** + * + * + *
+   * Metadata for requested Features.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} + */ + public static final class FeatureDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + FeatureDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeatureDescriptor.newBuilder() to construct. + private FeatureDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FeatureDescriptor() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeatureDescriptor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FeatureDescriptor( + 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(); + + id_ = 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.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+     * Feature ID.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+     * Feature ID.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.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; + } + } + + 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + 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.ReadFeatureValuesResponse.FeatureDescriptor)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) obj; + + if (!getId().equals(other.getId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor + 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.ReadFeatureValuesResponse.FeatureDescriptor 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; + } + /** + * + * + *
+     * Metadata for requested Features.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.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(); + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_FeatureDescriptor_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor( + this); + result.id_ = id_; + 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.ReadFeatureValuesResponse.FeatureDescriptor) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + 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.ReadFeatureValuesResponse.FeatureDescriptor + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+       * Feature ID.
+       * 
+ * + * string id = 1; + * + * @return The id. + */ + 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; + } + } + /** + * + * + *
+       * Feature ID.
+       * 
+ * + * string id = 1; + * + * @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; + } + } + /** + * + * + *
+       * Feature ID.
+       * 
+ * + * string id = 1; + * + * @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; + } + /** + * + * + *
+       * Feature ID.
+       * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Feature ID.
+       * 
+ * + * string id = 1; + * + * @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; + } + + @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.ReadFeatureValuesResponse.FeatureDescriptor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptor + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureDescriptor(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.ReadFeatureValuesResponse.FeatureDescriptor + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface HeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The resource name of the EntityType from the
+     * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+     * `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`.
+     * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+     * The resource name of the EntityType from the
+     * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+     * `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`.
+     * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + java.util.List + getFeatureDescriptorsList(); + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + getFeatureDescriptors(int index); + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + int getFeatureDescriptorsCount(); + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder> + getFeatureDescriptorsOrBuilderList(); + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptorOrBuilder + getFeatureDescriptorsOrBuilder(int index); + } + /** + * + * + *
+   * Response header with metadata for the requested
+   * [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.entity_type] and Features.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} + */ + public static final class Header extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + HeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use Header.newBuilder() to construct. + private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Header() { + entityType_ = ""; + featureDescriptors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Header(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Header( + 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(); + + entityType_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + featureDescriptors_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptor>(); + mutable_bitField0_ |= 0x00000001; + } + featureDescriptors_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptor.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)) { + featureDescriptors_ = java.util.Collections.unmodifiableList(featureDescriptors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+     * The resource name of the EntityType from the
+     * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+     * `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`.
+     * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+     * The resource name of the EntityType from the
+     * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+     * `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`.
+     * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_DESCRIPTORS_FIELD_NUMBER = 2; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor> + featureDescriptors_; + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor> + getFeatureDescriptorsList() { + return featureDescriptors_; + } + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder> + getFeatureDescriptorsOrBuilderList() { + return featureDescriptors_; + } + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + @java.lang.Override + public int getFeatureDescriptorsCount() { + return featureDescriptors_.size(); + } + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + getFeatureDescriptors(int index) { + return featureDescriptors_.get(index); + } + /** + * + * + *
+     * List of Feature metadata corresponding to each piece of
+     * [ReadFeatureValuesResponse.data][].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptorOrBuilder + getFeatureDescriptorsOrBuilder(int index) { + return featureDescriptors_.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 (!getEntityTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + for (int i = 0; i < featureDescriptors_.size(); i++) { + output.writeMessage(2, featureDescriptors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + for (int i = 0; i < featureDescriptors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, featureDescriptors_.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.ReadFeatureValuesResponse.Header)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getFeatureDescriptorsList().equals(other.getFeatureDescriptorsList())) 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_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + if (getFeatureDescriptorsCount() > 0) { + hash = (37 * hash) + FEATURE_DESCRIPTORS_FIELD_NUMBER; + hash = (53 * hash) + getFeatureDescriptorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + 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.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header 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.ReadFeatureValuesResponse.Header 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 header with metadata for the requested
+     * [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.entity_type] and Features.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeatureDescriptorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityType_ = ""; + + if (featureDescriptorsBuilder_ == null) { + featureDescriptors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featureDescriptorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_Header_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(this); + int from_bitField0_ = bitField0_; + result.entityType_ = entityType_; + if (featureDescriptorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + featureDescriptors_ = java.util.Collections.unmodifiableList(featureDescriptors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.featureDescriptors_ = featureDescriptors_; + } else { + result.featureDescriptors_ = featureDescriptorsBuilder_.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.ReadFeatureValuesResponse.Header) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + .getDefaultInstance()) return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (featureDescriptorsBuilder_ == null) { + if (!other.featureDescriptors_.isEmpty()) { + if (featureDescriptors_.isEmpty()) { + featureDescriptors_ = other.featureDescriptors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.addAll(other.featureDescriptors_); + } + onChanged(); + } + } else { + if (!other.featureDescriptors_.isEmpty()) { + if (featureDescriptorsBuilder_.isEmpty()) { + featureDescriptorsBuilder_.dispose(); + featureDescriptorsBuilder_ = null; + featureDescriptors_ = other.featureDescriptors_; + bitField0_ = (bitField0_ & ~0x00000001); + featureDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeatureDescriptorsFieldBuilder() + : null; + } else { + featureDescriptorsBuilder_.addAllMessages(other.featureDescriptors_); + } + } + } + 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.ReadFeatureValuesResponse.Header parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+       * The resource name of the EntityType from the
+       * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+       * `projects/{project}/locations/{location}/featurestores/
+       * {featurestore}/entityTypes/{entityType}`.
+       * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name of the EntityType from the
+       * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+       * `projects/{project}/locations/{location}/featurestores/
+       * {featurestore}/entityTypes/{entityType}`.
+       * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name of the EntityType from the
+       * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+       * `projects/{project}/locations/{location}/featurestores/
+       * {featurestore}/entityTypes/{entityType}`.
+       * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the EntityType from the
+       * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+       * `projects/{project}/locations/{location}/featurestores/
+       * {featurestore}/entityTypes/{entityType}`.
+       * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the EntityType from the
+       * [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format:
+       * `projects/{project}/locations/{location}/featurestores/
+       * {featurestore}/entityTypes/{entityType}`.
+       * 
+ * + * string entity_type = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor> + featureDescriptors_ = java.util.Collections.emptyList(); + + private void ensureFeatureDescriptorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + featureDescriptors_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor>( + featureDescriptors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder> + featureDescriptorsBuilder_; + + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor> + getFeatureDescriptorsList() { + if (featureDescriptorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(featureDescriptors_); + } else { + return featureDescriptorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public int getFeatureDescriptorsCount() { + if (featureDescriptorsBuilder_ == null) { + return featureDescriptors_.size(); + } else { + return featureDescriptorsBuilder_.getCount(); + } + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + getFeatureDescriptors(int index) { + if (featureDescriptorsBuilder_ == null) { + return featureDescriptors_.get(index); + } else { + return featureDescriptorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder setFeatureDescriptors( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor value) { + if (featureDescriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.set(index, value); + onChanged(); + } else { + featureDescriptorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder setFeatureDescriptors( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + builderForValue) { + if (featureDescriptorsBuilder_ == null) { + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.set(index, builderForValue.build()); + onChanged(); + } else { + featureDescriptorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder addFeatureDescriptors( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor value) { + if (featureDescriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.add(value); + onChanged(); + } else { + featureDescriptorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder addFeatureDescriptors( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor value) { + if (featureDescriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.add(index, value); + onChanged(); + } else { + featureDescriptorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder addFeatureDescriptors( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + builderForValue) { + if (featureDescriptorsBuilder_ == null) { + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.add(builderForValue.build()); + onChanged(); + } else { + featureDescriptorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder addFeatureDescriptors( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + builderForValue) { + if (featureDescriptorsBuilder_ == null) { + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.add(index, builderForValue.build()); + onChanged(); + } else { + featureDescriptorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder addAllFeatureDescriptors( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptor> + values) { + if (featureDescriptorsBuilder_ == null) { + ensureFeatureDescriptorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featureDescriptors_); + onChanged(); + } else { + featureDescriptorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder clearFeatureDescriptors() { + if (featureDescriptorsBuilder_ == null) { + featureDescriptors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featureDescriptorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public Builder removeFeatureDescriptors(int index) { + if (featureDescriptorsBuilder_ == null) { + ensureFeatureDescriptorsIsMutable(); + featureDescriptors_.remove(index); + onChanged(); + } else { + featureDescriptorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + getFeatureDescriptorsBuilder(int index) { + return getFeatureDescriptorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder + getFeatureDescriptorsOrBuilder(int index) { + if (featureDescriptorsBuilder_ == null) { + return featureDescriptors_.get(index); + } else { + return featureDescriptorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder> + getFeatureDescriptorsOrBuilderList() { + if (featureDescriptorsBuilder_ != null) { + return featureDescriptorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(featureDescriptors_); + } + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + addFeatureDescriptorsBuilder() { + return getFeatureDescriptorsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .getDefaultInstance()); + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.Builder + addFeatureDescriptorsBuilder(int index) { + return getFeatureDescriptorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .getDefaultInstance()); + } + /** + * + * + *
+       * List of Feature metadata corresponding to each piece of
+       * [ReadFeatureValuesResponse.data][].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor feature_descriptors = 2; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder> + getFeatureDescriptorsBuilderList() { + return getFeatureDescriptorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder> + getFeatureDescriptorsFieldBuilder() { + if (featureDescriptorsBuilder_ == null) { + featureDescriptorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + .Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + .FeatureDescriptorOrBuilder>( + featureDescriptors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + featureDescriptors_ = null; + } + return featureDescriptorsBuilder_; + } + + @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.ReadFeatureValuesResponse.Header) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(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.ReadFeatureValuesResponse.Header + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EntityViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * ID of the requested entity.
+     * 
+ * + * string entity_id = 1; + * + * @return The entityId. + */ + java.lang.String getEntityId(); + /** + * + * + *
+     * ID of the requested entity.
+     * 
+ * + * string entity_id = 1; + * + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + java.util.List + getDataList(); + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data getData( + int index); + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + int getDataCount(); + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder> + getDataOrBuilderList(); + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.DataOrBuilder + getDataOrBuilder(int index); + } + /** + * + * + *
+   * Entity view with Feature values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} + */ + public static final class EntityView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + EntityViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityView.newBuilder() to construct. + private EntityView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityView() { + entityId_ = ""; + data_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EntityView( + 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(); + + entityId_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + data_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .Data>(); + mutable_bitField0_ |= 0x00000001; + } + data_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .Data.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)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder + .class); + } + + public interface DataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return The value. + */ + com.google.cloud.aiplatform.v1beta1.FeatureValue getValue(); + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValueOrBuilder(); + + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return Whether the values field is set. + */ + boolean hasValues(); + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return The values. + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueList getValues(); + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder getValuesOrBuilder(); + + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.DataCase + getDataCase(); + } + /** + * + * + *
+     * Container to hold value(s), successive in time, for one Feature from the
+     * request.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} + */ + public static final class Data extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + DataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Data.newBuilder() to construct. + private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Data() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Data(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Data( + 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.FeatureValue.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.FeatureValue) data_).toBuilder(); + } + data_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValue.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureValue) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder subBuilder = null; + if (dataCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_).toBuilder(); + } + data_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureValueList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 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.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(1), + VALUES(2), + DATA_NOT_SET(0); + private final int value; + + private DataCase(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 DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return VALUE; + case 2: + return VALUES; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return dataCase_ == 1; + } + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return The value. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue getValue() { + if (dataCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + /** + * + * + *
+       * Feature value if a single value is requested.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValueOrBuilder() { + if (dataCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + + public static final int VALUES_FIELD_NUMBER = 2; + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return Whether the values field is set. + */ + @java.lang.Override + public boolean hasValues() { + return dataCase_ == 2; + } + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return The values. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueList getValues() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } + /** + * + * + *
+       * Feature values list if values, successive in time, are requested.
+       * If the requested number of values is greater than the number of
+       * existing Feature values, nonexistent values are omitted instead of
+       * being returned as empty.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder getValuesOrBuilder() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.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 (dataCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_); + } + if (dataCase_ == 2) { + output.writeMessage(2, (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_); + } + if (dataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_); + } + 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.ReadFeatureValuesResponse.EntityView.Data)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getValue().equals(other.getValue())) return false; + break; + case 2: + if (!getValues().equals(other.getValues())) 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 (dataCase_) { + case 1: + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + break; + case 2: + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValues().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data + 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.ReadFeatureValuesResponse.EntityView.Data 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; + } + /** + * + * + *
+       * Container to hold value(s), successive in time, for one Feature from the
+       * request.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.DataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.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(); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_Data_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data( + this); + if (dataCase_ == 1) { + if (valueBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valueBuilder_.build(); + } + } + if (dataCase_ == 2) { + if (valuesBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valuesBuilder_.build(); + } + } + result.dataCase_ = dataCase_; + 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.ReadFeatureValuesResponse.EntityView.Data) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .getDefaultInstance()) return this; + switch (other.getDataCase()) { + case VALUE: + { + mergeValue(other.getValue()); + break; + } + case VALUES: + { + mergeValues(other.getValues()); + break; + } + case DATA_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.ReadFeatureValuesResponse.EntityView.Data + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder> + valueBuilder_; + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return dataCase_ == 1; + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + * + * @return The value. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValue getValue() { + if (valueBuilder_ == null) { + if (dataCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return valueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + public Builder setValue(com.google.cloud.aiplatform.v1beta1.FeatureValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + public Builder setValue( + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder builderForValue) { + if (valueBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + public Builder mergeValue(com.google.cloud.aiplatform.v1beta1.FeatureValue value) { + if (valueBuilder_ == null) { + if (dataCase_ == 1 + && data_ != com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1beta1.FeatureValue.newBuilder( + (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + valueBuilder_.mergeFrom(value); + } + valueBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + valueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder getValueBuilder() { + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValueOrBuilder() { + if ((dataCase_ == 1) && (valueBuilder_ != null)) { + return valueBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + } + /** + * + * + *
+         * Feature value if a single value is requested.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValue value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance(); + } + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValue, + com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.FeatureValue) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged(); + ; + return valueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValueList, + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder> + valuesBuilder_; + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return Whether the values field is set. + */ + @java.lang.Override + public boolean hasValues() { + return dataCase_ == 2; + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + * + * @return The values. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueList getValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } else { + if (dataCase_ == 2) { + return valuesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + public Builder setValues(com.google.cloud.aiplatform.v1beta1.FeatureValueList value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valuesBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + public Builder setValues( + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder builderForValue) { + if (valuesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valuesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 2; + return this; + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + public Builder mergeValues(com.google.cloud.aiplatform.v1beta1.FeatureValueList value) { + if (valuesBuilder_ == null) { + if (dataCase_ == 2 + && data_ + != com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1beta1.FeatureValueList.newBuilder( + (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 2) { + valuesBuilder_.mergeFrom(value); + } + valuesBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + } + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder getValuesBuilder() { + return getValuesFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder getValuesOrBuilder() { + if ((dataCase_ == 2) && (valuesBuilder_ != null)) { + return valuesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_; + } + return com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } + } + /** + * + * + *
+         * Feature values list if values, successive in time, are requested.
+         * If the requested number of values is greater than the number of
+         * existing Feature values, nonexistent values are omitted instead of
+         * being returned as empty.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.FeatureValueList values = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValueList, + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + if (!(dataCase_ == 2)) { + data_ = com.google.cloud.aiplatform.v1beta1.FeatureValueList.getDefaultInstance(); + } + valuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureValueList, + com.google.cloud.aiplatform.v1beta1.FeatureValueList.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.FeatureValueList) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 2; + onChanged(); + ; + return valuesBuilder_; + } + + @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.ReadFeatureValuesResponse.EntityView.Data) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .Data + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Data parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Data(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.ReadFeatureValuesResponse.EntityView.Data + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + * + * + *
+     * ID of the requested entity.
+     * 
+ * + * string entity_id = 1; + * + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + 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(); + entityId_ = s; + return s; + } + } + /** + * + * + *
+     * ID of the requested entity.
+     * 
+ * + * string entity_id = 1; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> + data_; + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> + getDataList() { + return data_; + } + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder> + getDataOrBuilderList() { + return data_; + } + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + @java.lang.Override + public int getDataCount() { + return data_.size(); + } + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data getData( + int index) { + return data_.get(index); + } + /** + * + * + *
+     * Each piece of data holds the k
+     * requested values for one requested Feature. If no values
+     * for the requested Feature exist, the corresponding cell will be empty.
+     * This has the same size and is in the same order as the features from the
+     * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.DataOrBuilder + getDataOrBuilder(int index) { + return data_.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 (!getEntityIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); + } + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(2, data_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data_.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.ReadFeatureValuesResponse.EntityView)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) obj; + + if (!getEntityId().equals(other.getEntityId())) return false; + if (!getDataList().equals(other.getDataList())) 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_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView + 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.ReadFeatureValuesResponse.EntityView 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; + } + /** + * + * + *
+     * Entity view with Feature values.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityId_ = ""; + + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dataBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_EntityView_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(this); + int from_bitField0_ = bitField0_; + result.entityId_ = entityId_; + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.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.ReadFeatureValuesResponse.EntityView) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance()) return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + onChanged(); + } + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataFieldBuilder() + : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + 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.ReadFeatureValuesResponse.EntityView parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object entityId_ = ""; + /** + * + * + *
+       * ID of the requested entity.
+       * 
+ * + * string entity_id = 1; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * ID of the requested entity.
+       * 
+ * + * string entity_id = 1; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * ID of the requested entity.
+       * 
+ * + * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * ID of the requested entity.
+       * 
+ * + * string entity_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = getDefaultInstance().getEntityId(); + onChanged(); + return this; + } + /** + * + * + *
+       * ID of the requested entity.
+       * 
+ * + * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityId_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> + data_ = java.util.Collections.emptyList(); + + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + data_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data>( + data_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder> + dataBuilder_; + + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> + getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data getData( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder setData( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder setData( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder addData( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder addData( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder addData( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder addData( + int index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder addAllData( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> + values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + getDataBuilder(int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.DataOrBuilder + getDataOrBuilder(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder> + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + addDataBuilder() { + return getDataFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .getDefaultInstance()); + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder + addDataBuilder(int index) { + return getDataFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .getDefaultInstance()); + } + /** + * + * + *
+       * Each piece of data holds the k
+       * requested values for one requested Feature. If no values
+       * for the requested Feature exist, the corresponding cell will be empty.
+       * This has the same size and is in the same order as the features from the
+       * header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header].
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data data = 2; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder> + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + .Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .DataOrBuilder>( + data_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + data_ = null; + } + return dataBuilder_; + } + + @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.ReadFeatureValuesResponse.EntityView) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityView(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.ReadFeatureValuesResponse.EntityView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int HEADER_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header_; + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return The header. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header getHeader() { + return header_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.getDefaultInstance() + : header_; + } + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder + getHeaderOrBuilder() { + return getHeader(); + } + + public static final int ENTITY_VIEW_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entityView_; + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return Whether the entityView field is set. + */ + @java.lang.Override + public boolean hasEntityView() { + return entityView_ != null; + } + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return The entityView. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView getEntityView() { + return entityView_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance() + : entityView_; + } + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder + getEntityViewOrBuilder() { + return getEntityView(); + } + + 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 (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (entityView_ != null) { + output.writeMessage(2, getEntityView()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeader()); + } + if (entityView_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityView()); + } + 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.ReadFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader().equals(other.getHeader())) return false; + } + if (hasEntityView() != other.hasEntityView()) return false; + if (hasEntityView()) { + if (!getEntityView().equals(other.getEntityView())) 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 (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasEntityView()) { + hash = (37 * hash) + ENTITY_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getEntityView().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse 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.ReadFeatureValuesResponse 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 [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.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 (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (entityViewBuilder_ == null) { + entityView_ = null; + } else { + entityView_ = null; + entityViewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (entityViewBuilder_ == null) { + result.entityView_ = entityView_; + } else { + result.entityView_ = entityViewBuilder_.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.ReadFeatureValuesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.getDefaultInstance()) + return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasEntityView()) { + mergeEntityView(other.getEntityView()); + } + 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.ReadFeatureValuesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder> + headerBuilder_; + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return The header. + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + .getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public Builder setHeader( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public Builder setHeader( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder + builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public Builder mergeHeader( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.newBuilder( + header_) + .mergeFrom(value) + .buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder + getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder + getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + .getDefaultInstance() + : header_; + } + } + /** + * + * + *
+     * Response header.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder>( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entityView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder> + entityViewBuilder_; + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return Whether the entityView field is set. + */ + public boolean hasEntityView() { + return entityViewBuilder_ != null || entityView_ != null; + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return The entityView. + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + getEntityView() { + if (entityViewBuilder_ == null) { + return entityView_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance() + : entityView_; + } else { + return entityViewBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public Builder setEntityView( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView value) { + if (entityViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityView_ = value; + onChanged(); + } else { + entityViewBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public Builder setEntityView( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder + builderForValue) { + if (entityViewBuilder_ == null) { + entityView_ = builderForValue.build(); + onChanged(); + } else { + entityViewBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public Builder mergeEntityView( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView value) { + if (entityViewBuilder_ == null) { + if (entityView_ != null) { + entityView_ = + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.newBuilder( + entityView_) + .mergeFrom(value) + .buildPartial(); + } else { + entityView_ = value; + } + onChanged(); + } else { + entityViewBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public Builder clearEntityView() { + if (entityViewBuilder_ == null) { + entityView_ = null; + onChanged(); + } else { + entityView_ = null; + entityViewBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder + getEntityViewBuilder() { + + onChanged(); + return getEntityViewFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder + getEntityViewOrBuilder() { + if (entityViewBuilder_ != null) { + return entityViewBuilder_.getMessageOrBuilder(); + } else { + return entityView_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance() + : entityView_; + } + } + /** + * + * + *
+     * Entity view with Feature values. This may be the entity in the
+     * Featurestore if values for all Features were requested, or a projection
+     * of the entity in the Featurestore if values for only some Features were
+     * requested.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder> + getEntityViewFieldBuilder() { + if (entityViewBuilder_ == null) { + entityViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder, + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder>( + getEntityView(), getParentForChildren(), isClean()); + entityView_ = null; + } + return entityViewBuilder_; + } + + @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.ReadFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadFeatureValuesResponse(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.ReadFeatureValuesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000..8bc570bc7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + * + * @return The header. + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header getHeader(); + /** + * + * + *
+   * Response header.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder + getHeaderOrBuilder(); + + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return Whether the entityView field is set. + */ + boolean hasEntityView(); + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + * + * @return The entityView. + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView getEntityView(); + /** + * + * + *
+   * Entity view with Feature values. This may be the entity in the
+   * Featurestore if values for all Features were requested, or a projection
+   * of the entity in the Featurestore if values for only some Features were
+   * requested.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView entity_view = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder + getEntityViewOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java new file mode 100644 index 000000000..5a134d00a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java @@ -0,0 +1,957 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest} + */ +public final class ReadTensorboardBlobDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) + ReadTensorboardBlobDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardBlobDataRequest.newBuilder() to construct. + private ReadTensorboardBlobDataRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardBlobDataRequest() { + timeSeries_ = ""; + blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardBlobDataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadTensorboardBlobDataRequest( + 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(); + + timeSeries_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + blobIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blobIds_.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)) { + blobIds_ = blobIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.Builder.class); + } + + public static final int TIME_SERIES_FIELD_NUMBER = 1; + private volatile java.lang.Object timeSeries_; + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+   * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The timeSeries. + */ + @java.lang.Override + public java.lang.String getTimeSeries() { + java.lang.Object ref = timeSeries_; + 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(); + timeSeries_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+   * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for timeSeries. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeSeriesBytes() { + java.lang.Object ref = timeSeries_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOB_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList blobIds_; + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @return A list containing the blobIds. + */ + public com.google.protobuf.ProtocolStringList getBlobIdsList() { + return blobIds_; + } + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @return The count of blobIds. + */ + public int getBlobIdsCount() { + return blobIds_.size(); + } + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the element to return. + * @return The blobIds at the given index. + */ + public java.lang.String getBlobIds(int index) { + return blobIds_.get(index); + } + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the blobIds at the given index. + */ + public com.google.protobuf.ByteString getBlobIdsBytes(int index) { + return blobIds_.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 (!getTimeSeriesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeSeries_); + } + for (int i = 0; i < blobIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blobIds_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTimeSeriesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeSeries_); + } + { + int dataSize = 0; + for (int i = 0; i < blobIds_.size(); i++) { + dataSize += computeStringSizeNoTag(blobIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getBlobIdsList().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.ReadTensorboardBlobDataRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest other = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) obj; + + if (!getTimeSeries().equals(other.getTimeSeries())) return false; + if (!getBlobIdsList().equals(other.getBlobIdsList())) 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) + TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeries().hashCode(); + if (getBlobIdsCount() > 0) { + hash = (37 * hash) + BLOB_IDS_FIELD_NUMBER; + hash = (53 * hash) + getBlobIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + 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.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest 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.ReadTensorboardBlobDataRequest 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 [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest.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(); + timeSeries_ = ""; + + blobIds_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest build() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest result = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest(this); + int from_bitField0_ = bitField0_; + result.timeSeries_ = timeSeries_; + if (((bitField0_ & 0x00000001) != 0)) { + blobIds_ = blobIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blobIds_ = blobIds_; + 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.ReadTensorboardBlobDataRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + .getDefaultInstance()) return this; + if (!other.getTimeSeries().isEmpty()) { + timeSeries_ = other.timeSeries_; + onChanged(); + } + if (!other.blobIds_.isEmpty()) { + if (blobIds_.isEmpty()) { + blobIds_ = other.blobIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlobIdsIsMutable(); + blobIds_.addAll(other.blobIds_); + } + 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.ReadTensorboardBlobDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object timeSeries_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+     * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The timeSeries. + */ + public java.lang.String getTimeSeries() { + java.lang.Object ref = timeSeries_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeSeries_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+     * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for timeSeries. + */ + public com.google.protobuf.ByteString getTimeSeriesBytes() { + java.lang.Object ref = timeSeries_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+     * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The timeSeries to set. + * @return This builder for chaining. + */ + public Builder setTimeSeries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timeSeries_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+     * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTimeSeries() { + + timeSeries_ = getDefaultInstance().getTimeSeries(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+     * Format:
+     * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+     * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for timeSeries to set. + * @return This builder for chaining. + */ + public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timeSeries_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList blobIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureBlobIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blobIds_ = new com.google.protobuf.LazyStringArrayList(blobIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @return A list containing the blobIds. + */ + public com.google.protobuf.ProtocolStringList getBlobIdsList() { + return blobIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @return The count of blobIds. + */ + public int getBlobIdsCount() { + return blobIds_.size(); + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the element to return. + * @return The blobIds at the given index. + */ + public java.lang.String getBlobIds(int index) { + return blobIds_.get(index); + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the blobIds at the given index. + */ + public com.google.protobuf.ByteString getBlobIdsBytes(int index) { + return blobIds_.getByteString(index); + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index to set the value at. + * @param value The blobIds to set. + * @return This builder for chaining. + */ + public Builder setBlobIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobIdsIsMutable(); + blobIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param value The blobIds to add. + * @return This builder for chaining. + */ + public Builder addBlobIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobIdsIsMutable(); + blobIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param values The blobIds to add. + * @return This builder for chaining. + */ + public Builder addAllBlobIds(java.lang.Iterable values) { + ensureBlobIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @return This builder for chaining. + */ + public Builder clearBlobIds() { + blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * IDs of the blobs to read.
+     * 
+ * + * repeated string blob_ids = 2; + * + * @param value The bytes of the blobIds to add. + * @return This builder for chaining. + */ + public Builder addBlobIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBlobIdsIsMutable(); + blobIds_.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.ReadTensorboardBlobDataRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) + private static final com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardBlobDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadTensorboardBlobDataRequest(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.ReadTensorboardBlobDataRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequestOrBuilder.java new file mode 100644 index 000000000..5f17bad1a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadTensorboardBlobDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+   * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The timeSeries. + */ + java.lang.String getTimeSeries(); + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to list Blobs.
+   * Format:
+   * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}'
+   * 
+ * + * + * string time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for timeSeries. + */ + com.google.protobuf.ByteString getTimeSeriesBytes(); + + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @return A list containing the blobIds. + */ + java.util.List getBlobIdsList(); + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @return The count of blobIds. + */ + int getBlobIdsCount(); + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the element to return. + * @return The blobIds at the given index. + */ + java.lang.String getBlobIds(int index); + /** + * + * + *
+   * IDs of the blobs to read.
+   * 
+ * + * repeated string blob_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the blobIds at the given index. + */ + com.google.protobuf.ByteString getBlobIdsBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java new file mode 100644 index 000000000..3d8e1406f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java @@ -0,0 +1,968 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse} + */ +public final class ReadTensorboardBlobDataResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) + ReadTensorboardBlobDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardBlobDataResponse.newBuilder() to construct. + private ReadTensorboardBlobDataResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardBlobDataResponse() { + blobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardBlobDataResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadTensorboardBlobDataResponse( + 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)) { + blobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blobs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.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)) { + blobs_ = java.util.Collections.unmodifiableList(blobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.Builder.class); + } + + public static final int BLOBS_FIELD_NUMBER = 1; + private java.util.List blobs_; + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + @java.lang.Override + public java.util.List getBlobsList() { + return blobs_; + } + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + @java.lang.Override + public java.util.List + getBlobsOrBuilderList() { + return blobs_; + } + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + @java.lang.Override + public int getBlobsCount() { + return blobs_.size(); + } + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob getBlobs(int index) { + return blobs_.get(index); + } + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getBlobsOrBuilder(int index) { + return blobs_.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 < blobs_.size(); i++) { + output.writeMessage(1, blobs_.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 < blobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blobs_.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.ReadTensorboardBlobDataResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse other = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) obj; + + if (!getBlobsList().equals(other.getBlobsList())) 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 (getBlobsCount() > 0) { + hash = (37 * hash) + BLOBS_FIELD_NUMBER; + hash = (53 * hash) + getBlobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + 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.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse 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.ReadTensorboardBlobDataResponse 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 [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blobsBuilder_ == null) { + blobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blobsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse build() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse result = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse(this); + int from_bitField0_ = bitField0_; + if (blobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blobs_ = java.util.Collections.unmodifiableList(blobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blobs_ = blobs_; + } else { + result.blobs_ = blobsBuilder_.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.ReadTensorboardBlobDataResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + .getDefaultInstance()) return this; + if (blobsBuilder_ == null) { + if (!other.blobs_.isEmpty()) { + if (blobs_.isEmpty()) { + blobs_ = other.blobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlobsIsMutable(); + blobs_.addAll(other.blobs_); + } + onChanged(); + } + } else { + if (!other.blobs_.isEmpty()) { + if (blobsBuilder_.isEmpty()) { + blobsBuilder_.dispose(); + blobsBuilder_ = null; + blobs_ = other.blobs_; + bitField0_ = (bitField0_ & ~0x00000001); + blobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlobsFieldBuilder() + : null; + } else { + blobsBuilder_.addAllMessages(other.blobs_); + } + } + } + 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.ReadTensorboardBlobDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List blobs_ = + java.util.Collections.emptyList(); + + private void ensureBlobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blobs_ = + new java.util.ArrayList(blobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder> + blobsBuilder_; + + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public java.util.List getBlobsList() { + if (blobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blobs_); + } else { + return blobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public int getBlobsCount() { + if (blobsBuilder_ == null) { + return blobs_.size(); + } else { + return blobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob getBlobs(int index) { + if (blobsBuilder_ == null) { + return blobs_.get(index); + } else { + return blobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder setBlobs(int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (blobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobsIsMutable(); + blobs_.set(index, value); + onChanged(); + } else { + blobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder setBlobs( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (blobsBuilder_ == null) { + ensureBlobsIsMutable(); + blobs_.set(index, builderForValue.build()); + onChanged(); + } else { + blobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder addBlobs(com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (blobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobsIsMutable(); + blobs_.add(value); + onChanged(); + } else { + blobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder addBlobs(int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (blobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobsIsMutable(); + blobs_.add(index, value); + onChanged(); + } else { + blobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder addBlobs( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (blobsBuilder_ == null) { + ensureBlobsIsMutable(); + blobs_.add(builderForValue.build()); + onChanged(); + } else { + blobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder addBlobs( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (blobsBuilder_ == null) { + ensureBlobsIsMutable(); + blobs_.add(index, builderForValue.build()); + onChanged(); + } else { + blobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder addAllBlobs( + java.lang.Iterable values) { + if (blobsBuilder_ == null) { + ensureBlobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobs_); + onChanged(); + } else { + blobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder clearBlobs() { + if (blobsBuilder_ == null) { + blobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public Builder removeBlobs(int index) { + if (blobsBuilder_ == null) { + ensureBlobsIsMutable(); + blobs_.remove(index); + onChanged(); + } else { + blobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder getBlobsBuilder(int index) { + return getBlobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getBlobsOrBuilder( + int index) { + if (blobsBuilder_ == null) { + return blobs_.get(index); + } else { + return blobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public java.util.List + getBlobsOrBuilderList() { + if (blobsBuilder_ != null) { + return blobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blobs_); + } + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder addBlobsBuilder() { + return getBlobsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance()); + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder addBlobsBuilder(int index) { + return getBlobsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance()); + } + /** + * + * + *
+     * Blob messages containing blob bytes.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + public java.util.List + getBlobsBuilderList() { + return getBlobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder> + getBlobsFieldBuilder() { + if (blobsBuilder_ == null) { + blobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder>( + blobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blobs_ = null; + } + return blobsBuilder_; + } + + @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.ReadTensorboardBlobDataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) + private static final com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardBlobDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadTensorboardBlobDataResponse(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.ReadTensorboardBlobDataResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponseOrBuilder.java new file mode 100644 index 000000000..985356396 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadTensorboardBlobDataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + java.util.List getBlobsList(); + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlob getBlobs(int index); + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + int getBlobsCount(); + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + java.util.List + getBlobsOrBuilderList(); + /** + * + * + *
+   * Blob messages containing blob bytes.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob blobs = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getBlobsOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java new file mode 100644 index 000000000..d69289bc9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java @@ -0,0 +1,960 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest} + */ +public final class ReadTensorboardTimeSeriesDataRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) + ReadTensorboardTimeSeriesDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardTimeSeriesDataRequest.newBuilder() to construct. + private ReadTensorboardTimeSeriesDataRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardTimeSeriesDataRequest() { + tensorboardTimeSeries_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardTimeSeriesDataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadTensorboardTimeSeriesDataRequest( + 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(); + + tensorboardTimeSeries_ = s; + break; + } + case 16: + { + maxDataPoints_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.Builder.class); + } + + public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + private volatile java.lang.Object tensorboardTimeSeries_; + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to read data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + @java.lang.Override + public java.lang.String getTensorboardTimeSeries() { + java.lang.Object ref = tensorboardTimeSeries_; + 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(); + tensorboardTimeSeries_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to read data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { + java.lang.Object ref = tensorboardTimeSeries_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_DATA_POINTS_FIELD_NUMBER = 2; + private int maxDataPoints_; + /** + * + * + *
+   * The maximum number of TensorboardTimeSeries' data to return.
+   * This value should be a positive integer.
+   * This value can be set to -1 to return all data.
+   * 
+ * + * int32 max_data_points = 2; + * + * @return The maxDataPoints. + */ + @java.lang.Override + public int getMaxDataPoints() { + return maxDataPoints_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Reads the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+   * Reads the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 3; + * + * @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; + } + } + + 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 (!getTensorboardTimeSeriesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorboardTimeSeries_); + } + if (maxDataPoints_ != 0) { + output.writeInt32(2, maxDataPoints_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTensorboardTimeSeriesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorboardTimeSeries_); + } + if (maxDataPoints_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDataPoints_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + 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.ReadTensorboardTimeSeriesDataRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest other = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) obj; + + if (!getTensorboardTimeSeries().equals(other.getTensorboardTimeSeries())) return false; + if (getMaxDataPoints() != other.getMaxDataPoints()) return false; + if (!getFilter().equals(other.getFilter())) 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) + TENSORBOARD_TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeries().hashCode(); + hash = (37 * hash) + MAX_DATA_POINTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxDataPoints(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + 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.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest 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.ReadTensorboardTimeSeriesDataRequest 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 [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest.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(); + tensorboardTimeSeries_ = ""; + + maxDataPoints_ = 0; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest build() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest result = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest(this); + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + result.maxDataPoints_ = maxDataPoints_; + result.filter_ = filter_; + 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.ReadTensorboardTimeSeriesDataRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + .getDefaultInstance()) return this; + if (!other.getTensorboardTimeSeries().isEmpty()) { + tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + onChanged(); + } + if (other.getMaxDataPoints() != 0) { + setMaxDataPoints(other.getMaxDataPoints()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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.ReadTensorboardTimeSeriesDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tensorboardTimeSeries_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to read data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + public java.lang.String getTensorboardTimeSeries() { + java.lang.Object ref = tensorboardTimeSeries_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardTimeSeries_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to read data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { + java.lang.Object ref = tensorboardTimeSeries_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to read data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tensorboardTimeSeries to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardTimeSeries_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to read data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTensorboardTimeSeries() { + + tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardTimeSeries to read data from.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tensorboardTimeSeries to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardTimeSeries_ = value; + onChanged(); + return this; + } + + private int maxDataPoints_; + /** + * + * + *
+     * The maximum number of TensorboardTimeSeries' data to return.
+     * This value should be a positive integer.
+     * This value can be set to -1 to return all data.
+     * 
+ * + * int32 max_data_points = 2; + * + * @return The maxDataPoints. + */ + @java.lang.Override + public int getMaxDataPoints() { + return maxDataPoints_; + } + /** + * + * + *
+     * The maximum number of TensorboardTimeSeries' data to return.
+     * This value should be a positive integer.
+     * This value can be set to -1 to return all data.
+     * 
+ * + * int32 max_data_points = 2; + * + * @param value The maxDataPoints to set. + * @return This builder for chaining. + */ + public Builder setMaxDataPoints(int value) { + + maxDataPoints_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of TensorboardTimeSeries' data to return.
+     * This value should be a positive integer.
+     * This value can be set to -1 to return all data.
+     * 
+ * + * int32 max_data_points = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxDataPoints() { + + maxDataPoints_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Reads the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+     * Reads the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 3; + * + * @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; + } + } + /** + * + * + *
+     * Reads the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 3; + * + * @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; + } + /** + * + * + *
+     * Reads the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Reads the TensorboardTimeSeries' data that match the filter expression.
+     * 
+ * + * string filter = 3; + * + * @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; + } + + @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.ReadTensorboardTimeSeriesDataRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) + private static final com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardTimeSeriesDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadTensorboardTimeSeriesDataRequest(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.ReadTensorboardTimeSeriesDataRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequestOrBuilder.java new file mode 100644 index 000000000..4e64e1992 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequestOrBuilder.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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadTensorboardTimeSeriesDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to read data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardTimeSeries. + */ + java.lang.String getTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The resource name of the TensorboardTimeSeries to read data from.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardTimeSeries. + */ + com.google.protobuf.ByteString getTensorboardTimeSeriesBytes(); + + /** + * + * + *
+   * The maximum number of TensorboardTimeSeries' data to return.
+   * This value should be a positive integer.
+   * This value can be set to -1 to return all data.
+   * 
+ * + * int32 max_data_points = 2; + * + * @return The maxDataPoints. + */ + int getMaxDataPoints(); + + /** + * + * + *
+   * Reads the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 3; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Reads the TensorboardTimeSeries' data that match the filter expression.
+   * 
+ * + * string filter = 3; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java new file mode 100644 index 000000000..de523cf3f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java @@ -0,0 +1,758 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse} + */ +public final class ReadTensorboardTimeSeriesDataResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) + ReadTensorboardTimeSeriesDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardTimeSeriesDataResponse.newBuilder() to construct. + private ReadTensorboardTimeSeriesDataResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardTimeSeriesDataResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardTimeSeriesDataResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadTensorboardTimeSeriesDataResponse( + 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.TimeSeriesData.Builder subBuilder = null; + if (timeSeriesData_ != null) { + subBuilder = timeSeriesData_.toBuilder(); + } + timeSeriesData_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSeriesData_); + timeSeriesData_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.Builder + .class); + } + + public static final int TIME_SERIES_DATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TimeSeriesData timeSeriesData_; + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return Whether the timeSeriesData field is set. + */ + @java.lang.Override + public boolean hasTimeSeriesData() { + return timeSeriesData_ != null; + } + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return The timeSeriesData. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData() { + return timeSeriesData_ == null + ? com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance() + : timeSeriesData_; + } + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder() { + return getTimeSeriesData(); + } + + 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 (timeSeriesData_ != null) { + output.writeMessage(1, getTimeSeriesData()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeSeriesData_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSeriesData()); + } + 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.ReadTensorboardTimeSeriesDataResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse other = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) obj; + + if (hasTimeSeriesData() != other.hasTimeSeriesData()) return false; + if (hasTimeSeriesData()) { + if (!getTimeSeriesData().equals(other.getTimeSeriesData())) 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 (hasTimeSeriesData()) { + hash = (37 * hash) + TIME_SERIES_DATA_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesData().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + 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.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse 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.ReadTensorboardTimeSeriesDataResponse 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 [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.class, + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.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 (timeSeriesDataBuilder_ == null) { + timeSeriesData_ = null; + } else { + timeSeriesData_ = null; + timeSeriesDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse build() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse result = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse(this); + if (timeSeriesDataBuilder_ == null) { + result.timeSeriesData_ = timeSeriesData_; + } else { + result.timeSeriesData_ = timeSeriesDataBuilder_.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.ReadTensorboardTimeSeriesDataResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + .getDefaultInstance()) return this; + if (other.hasTimeSeriesData()) { + mergeTimeSeriesData(other.getTimeSeriesData()); + } + 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.ReadTensorboardTimeSeriesDataResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.TimeSeriesData timeSeriesData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder> + timeSeriesDataBuilder_; + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return Whether the timeSeriesData field is set. + */ + public boolean hasTimeSeriesData() { + return timeSeriesDataBuilder_ != null || timeSeriesData_ != null; + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return The timeSeriesData. + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData() { + if (timeSeriesDataBuilder_ == null) { + return timeSeriesData_ == null + ? com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance() + : timeSeriesData_; + } else { + return timeSeriesDataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public Builder setTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { + if (timeSeriesDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeSeriesData_ = value; + onChanged(); + } else { + timeSeriesDataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public Builder setTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder builderForValue) { + if (timeSeriesDataBuilder_ == null) { + timeSeriesData_ = builderForValue.build(); + onChanged(); + } else { + timeSeriesDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public Builder mergeTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { + if (timeSeriesDataBuilder_ == null) { + if (timeSeriesData_ != null) { + timeSeriesData_ = + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.newBuilder(timeSeriesData_) + .mergeFrom(value) + .buildPartial(); + } else { + timeSeriesData_ = value; + } + onChanged(); + } else { + timeSeriesDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public Builder clearTimeSeriesData() { + if (timeSeriesDataBuilder_ == null) { + timeSeriesData_ = null; + onChanged(); + } else { + timeSeriesData_ = null; + timeSeriesDataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder getTimeSeriesDataBuilder() { + + onChanged(); + return getTimeSeriesDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder + getTimeSeriesDataOrBuilder() { + if (timeSeriesDataBuilder_ != null) { + return timeSeriesDataBuilder_.getMessageOrBuilder(); + } else { + return timeSeriesData_ == null + ? com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance() + : timeSeriesData_; + } + } + /** + * + * + *
+     * The returned time series data.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder> + getTimeSeriesDataFieldBuilder() { + if (timeSeriesDataBuilder_ == null) { + timeSeriesDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder>( + getTimeSeriesData(), getParentForChildren(), isClean()); + timeSeriesData_ = null; + } + return timeSeriesDataBuilder_; + } + + @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.ReadTensorboardTimeSeriesDataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) + private static final com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardTimeSeriesDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadTensorboardTimeSeriesDataResponse(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.ReadTensorboardTimeSeriesDataResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponseOrBuilder.java new file mode 100644 index 000000000..16afe2e5a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponseOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ReadTensorboardTimeSeriesDataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return Whether the timeSeriesData field is set. + */ + boolean hasTimeSeriesData(); + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + * + * @return The timeSeriesData. + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData(); + /** + * + * + *
+   * The returned time series data.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..3bb190c2b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,695 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.ResumeModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} + */ +public final class ResumeModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + ResumeModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private ResumeModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResumeModelDeploymentMonitoringJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResumeModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResumeModelDeploymentMonitoringJobRequest( + 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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob to resume.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to resume.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.ResumeModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) 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.v1beta1.ResumeModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest + 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.ResumeModelDeploymentMonitoringJobRequest 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
+   * [JobService.ResumeModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ResumeModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(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.v1beta1.ResumeModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + .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.v1beta1.ResumeModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the ModelDeploymentMonitoringJob to resume.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to resume.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to resume.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to resume.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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 resource name of the ModelDeploymentMonitoringJob to resume.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeModelDeploymentMonitoringJobRequest(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.ResumeModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..e1554556f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ResumeModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ModelDeploymentMonitoringJob to resume.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
+   * 
+ * + * + * 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 ModelDeploymentMonitoringJob to resume.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java index 86506a756..6b9d09c4d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java @@ -349,6 +349,21 @@ public FollowingBatchSampleSizeCase getFollowingBatchSampleSizeCase() { } public static final int INITIAL_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER = 1; + /** + * + * + *
+   * The percentage of data needed to be labeled in the first batch.
+   * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + @java.lang.Override + public boolean hasInitialBatchSamplePercentage() { + return initialBatchSampleSizeCase_ == 1; + } /** * * @@ -369,6 +384,22 @@ public int getInitialBatchSamplePercentage() { } public static final int FOLLOWING_BATCH_SAMPLE_PERCENTAGE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The percentage of data needed to be labeled in each following batch
+   * (except the first batch).
+   * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + @java.lang.Override + public boolean hasFollowingBatchSamplePercentage() { + return followingBatchSampleSizeCase_ == 3; + } /** * * @@ -395,7 +426,7 @@ public int getFollowingBatchSamplePercentage() { * * *
-   * Field to chose sampling strategy. Sampling strategy will decide which data
+   * Field to choose sampling strategy. Sampling strategy will decide which data
    * should be selected for human labeling in every batch.
    * 
* @@ -411,7 +442,7 @@ public int getSampleStrategyValue() { * * *
-   * Field to chose sampling strategy. Sampling strategy will decide which data
+   * Field to choose sampling strategy. Sampling strategy will decide which data
    * should be selected for human labeling in every batch.
    * 
* @@ -866,6 +897,20 @@ public Builder clearFollowingBatchSampleSize() { return this; } + /** + * + * + *
+     * The percentage of data needed to be labeled in the first batch.
+     * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + public boolean hasInitialBatchSamplePercentage() { + return initialBatchSampleSizeCase_ == 1; + } /** * * @@ -921,6 +966,21 @@ public Builder clearInitialBatchSamplePercentage() { return this; } + /** + * + * + *
+     * The percentage of data needed to be labeled in each following batch
+     * (except the first batch).
+     * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + public boolean hasFollowingBatchSamplePercentage() { + return followingBatchSampleSizeCase_ == 3; + } /** * * @@ -984,7 +1044,7 @@ public Builder clearFollowingBatchSamplePercentage() { * * *
-     * Field to chose sampling strategy. Sampling strategy will decide which data
+     * Field to choose sampling strategy. Sampling strategy will decide which data
      * should be selected for human labeling in every batch.
      * 
* @@ -1001,7 +1061,7 @@ public int getSampleStrategyValue() { * * *
-     * Field to chose sampling strategy. Sampling strategy will decide which data
+     * Field to choose sampling strategy. Sampling strategy will decide which data
      * should be selected for human labeling in every batch.
      * 
* @@ -1021,7 +1081,7 @@ public Builder setSampleStrategyValue(int value) { * * *
-     * Field to chose sampling strategy. Sampling strategy will decide which data
+     * Field to choose sampling strategy. Sampling strategy will decide which data
      * should be selected for human labeling in every batch.
      * 
* @@ -1043,7 +1103,7 @@ public com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy getSample * * *
-     * Field to chose sampling strategy. Sampling strategy will decide which data
+     * Field to choose sampling strategy. Sampling strategy will decide which data
      * should be selected for human labeling in every batch.
      * 
* @@ -1067,7 +1127,7 @@ public Builder setSampleStrategy( * * *
-     * Field to chose sampling strategy. Sampling strategy will decide which data
+     * Field to choose sampling strategy. Sampling strategy will decide which data
      * should be selected for human labeling in every batch.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfigOrBuilder.java index 0049a306e..cb6725f56 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfigOrBuilder.java @@ -23,6 +23,18 @@ public interface SampleConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SampleConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The percentage of data needed to be labeled in the first batch.
+   * 
+ * + * int32 initial_batch_sample_percentage = 1; + * + * @return Whether the initialBatchSamplePercentage field is set. + */ + boolean hasInitialBatchSamplePercentage(); /** * * @@ -36,6 +48,19 @@ public interface SampleConfigOrBuilder */ int getInitialBatchSamplePercentage(); + /** + * + * + *
+   * The percentage of data needed to be labeled in each following batch
+   * (except the first batch).
+   * 
+ * + * int32 following_batch_sample_percentage = 3; + * + * @return Whether the followingBatchSamplePercentage field is set. + */ + boolean hasFollowingBatchSamplePercentage(); /** * * @@ -54,7 +79,7 @@ public interface SampleConfigOrBuilder * * *
-   * Field to chose sampling strategy. Sampling strategy will decide which data
+   * Field to choose sampling strategy. Sampling strategy will decide which data
    * should be selected for human labeling in every batch.
    * 
* @@ -67,7 +92,7 @@ public interface SampleConfigOrBuilder * * *
-   * Field to chose sampling strategy. Sampling strategy will decide which data
+   * Field to choose sampling strategy. Sampling strategy will decide which data
    * should be selected for human labeling in every batch.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java new file mode 100644 index 000000000..ccddd4b95 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java @@ -0,0 +1,1353 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Sampling Strategy for logging, can be for both training and prediction
+ * dataset.
+ * Next ID: 2
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SamplingStrategy} + */ +public final class SamplingStrategy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SamplingStrategy) + SamplingStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use SamplingStrategy.newBuilder() to construct. + private SamplingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SamplingStrategy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SamplingStrategy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SamplingStrategy( + 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.SamplingStrategy.RandomSampleConfig.Builder + subBuilder = null; + if (randomSampleConfig_ != null) { + subBuilder = randomSampleConfig_.toBuilder(); + } + randomSampleConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(randomSampleConfig_); + randomSampleConfig_ = 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_SamplingStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.class, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder.class); + } + + public interface RandomSampleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Sample rate (0, 1]
+     * 
+ * + * double sample_rate = 1; + * + * @return The sampleRate. + */ + double getSampleRate(); + } + /** + * + * + *
+   * Requests are randomly selected.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} + */ + public static final class RandomSampleConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + RandomSampleConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RandomSampleConfig.newBuilder() to construct. + private RandomSampleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RandomSampleConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RandomSampleConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RandomSampleConfig( + 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 9: + { + sampleRate_ = input.readDouble(); + 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_SamplingStrategy_RandomSampleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.class, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder + .class); + } + + public static final int SAMPLE_RATE_FIELD_NUMBER = 1; + private double sampleRate_; + /** + * + * + *
+     * Sample rate (0, 1]
+     * 
+ * + * double sample_rate = 1; + * + * @return The sampleRate. + */ + @java.lang.Override + public double getSampleRate() { + return sampleRate_; + } + + 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 (sampleRate_ != 0D) { + output.writeDouble(1, sampleRate_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sampleRate_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, sampleRate_); + } + 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.SamplingStrategy.RandomSampleConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig other = + (com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) obj; + + if (java.lang.Double.doubleToLongBits(getSampleRate()) + != java.lang.Double.doubleToLongBits(other.getSampleRate())) 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) + SAMPLE_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSampleRate())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + 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.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig 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.SamplingStrategy.RandomSampleConfig 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; + } + /** + * + * + *
+     * Requests are randomly selected.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_RandomSampleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.class, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.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(); + sampleRate_ = 0D; + + 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_SamplingStrategy_RandomSampleConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig build() { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig result = + new com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(this); + result.sampleRate_ = sampleRate_; + 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.SamplingStrategy.RandomSampleConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance()) return this; + if (other.getSampleRate() != 0D) { + setSampleRate(other.getSampleRate()); + } + 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.SamplingStrategy.RandomSampleConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double sampleRate_; + /** + * + * + *
+       * Sample rate (0, 1]
+       * 
+ * + * double sample_rate = 1; + * + * @return The sampleRate. + */ + @java.lang.Override + public double getSampleRate() { + return sampleRate_; + } + /** + * + * + *
+       * Sample rate (0, 1]
+       * 
+ * + * double sample_rate = 1; + * + * @param value The sampleRate to set. + * @return This builder for chaining. + */ + public Builder setSampleRate(double value) { + + sampleRate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Sample rate (0, 1]
+       * 
+ * + * double sample_rate = 1; + * + * @return This builder for chaining. + */ + public Builder clearSampleRate() { + + sampleRate_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + private static final com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RandomSampleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RandomSampleConfig(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.SamplingStrategy.RandomSampleConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RANDOM_SAMPLE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + randomSampleConfig_; + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return Whether the randomSampleConfig field is set. + */ + @java.lang.Override + public boolean hasRandomSampleConfig() { + return randomSampleConfig_ != null; + } + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return The randomSampleConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + getRandomSampleConfig() { + return randomSampleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance() + : randomSampleConfig_; + } + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder + getRandomSampleConfigOrBuilder() { + return getRandomSampleConfig(); + } + + 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 (randomSampleConfig_ != null) { + output.writeMessage(1, getRandomSampleConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (randomSampleConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRandomSampleConfig()); + } + 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.SamplingStrategy)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SamplingStrategy other = + (com.google.cloud.aiplatform.v1beta1.SamplingStrategy) obj; + + if (hasRandomSampleConfig() != other.hasRandomSampleConfig()) return false; + if (hasRandomSampleConfig()) { + if (!getRandomSampleConfig().equals(other.getRandomSampleConfig())) 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 (hasRandomSampleConfig()) { + hash = (37 * hash) + RANDOM_SAMPLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRandomSampleConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy 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.SamplingStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy 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.SamplingStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy 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.SamplingStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy 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.SamplingStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy 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.SamplingStrategy 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.SamplingStrategy 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.SamplingStrategy 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; + } + /** + * + * + *
+   * Sampling Strategy for logging, can be for both training and prediction
+   * dataset.
+   * Next ID: 2
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SamplingStrategy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SamplingStrategy) + com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.class, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SamplingStrategy.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 (randomSampleConfigBuilder_ == null) { + randomSampleConfig_ = null; + } else { + randomSampleConfig_ = null; + randomSampleConfigBuilder_ = 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_SamplingStrategy_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy build() { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy buildPartial() { + com.google.cloud.aiplatform.v1beta1.SamplingStrategy result = + new com.google.cloud.aiplatform.v1beta1.SamplingStrategy(this); + if (randomSampleConfigBuilder_ == null) { + result.randomSampleConfig_ = randomSampleConfig_; + } else { + result.randomSampleConfig_ = randomSampleConfigBuilder_.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.SamplingStrategy) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SamplingStrategy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SamplingStrategy other) { + if (other == com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance()) + return this; + if (other.hasRandomSampleConfig()) { + mergeRandomSampleConfig(other.getRandomSampleConfig()); + } + 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.SamplingStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SamplingStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + randomSampleConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder> + randomSampleConfigBuilder_; + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return Whether the randomSampleConfig field is set. + */ + public boolean hasRandomSampleConfig() { + return randomSampleConfigBuilder_ != null || randomSampleConfig_ != null; + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return The randomSampleConfig. + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + getRandomSampleConfig() { + if (randomSampleConfigBuilder_ == null) { + return randomSampleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance() + : randomSampleConfig_; + } else { + return randomSampleConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public Builder setRandomSampleConfig( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig value) { + if (randomSampleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + randomSampleConfig_ = value; + onChanged(); + } else { + randomSampleConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public Builder setRandomSampleConfig( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder + builderForValue) { + if (randomSampleConfigBuilder_ == null) { + randomSampleConfig_ = builderForValue.build(); + onChanged(); + } else { + randomSampleConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public Builder mergeRandomSampleConfig( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig value) { + if (randomSampleConfigBuilder_ == null) { + if (randomSampleConfig_ != null) { + randomSampleConfig_ = + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.newBuilder( + randomSampleConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + randomSampleConfig_ = value; + } + onChanged(); + } else { + randomSampleConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public Builder clearRandomSampleConfig() { + if (randomSampleConfigBuilder_ == null) { + randomSampleConfig_ = null; + onChanged(); + } else { + randomSampleConfig_ = null; + randomSampleConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder + getRandomSampleConfigBuilder() { + + onChanged(); + return getRandomSampleConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder + getRandomSampleConfigOrBuilder() { + if (randomSampleConfigBuilder_ != null) { + return randomSampleConfigBuilder_.getMessageOrBuilder(); + } else { + return randomSampleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance() + : randomSampleConfig_; + } + } + /** + * + * + *
+     * Random sample config. Will support more sampling strategies later.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder> + getRandomSampleConfigFieldBuilder() { + if (randomSampleConfigBuilder_ == null) { + randomSampleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder>( + getRandomSampleConfig(), getParentForChildren(), isClean()); + randomSampleConfig_ = null; + } + return randomSampleConfigBuilder_; + } + + @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.SamplingStrategy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SamplingStrategy) + private static final com.google.cloud.aiplatform.v1beta1.SamplingStrategy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SamplingStrategy(); + } + + public static com.google.cloud.aiplatform.v1beta1.SamplingStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SamplingStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SamplingStrategy(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.SamplingStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategyOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategyOrBuilder.java new file mode 100644 index 000000000..d8aa2277d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategyOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SamplingStrategyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SamplingStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return Whether the randomSampleConfig field is set. + */ + boolean hasRandomSampleConfig(); + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + * + * @return The randomSampleConfig. + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig getRandomSampleConfig(); + /** + * + * + *
+   * Random sample config. Will support more sampling strategies later.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig random_sample_config = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder + getRandomSampleConfigOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java new file mode 100644 index 000000000..1ba5d9bff --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java @@ -0,0 +1,547 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * One point viewable on a scalar metric plot.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Scalar} + */ +public final class Scalar extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Scalar) + ScalarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scalar.newBuilder() to construct. + private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Scalar() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Scalar(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Scalar( + 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 9: + { + value_ = input.readDouble(); + 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.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Scalar.class, + com.google.cloud.aiplatform.v1beta1.Scalar.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private double value_; + /** + * + * + *
+   * Value of the point at this step / timestamp.
+   * 
+ * + * double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + 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 (value_ != 0D) { + output.writeDouble(1, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, 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.v1beta1.Scalar)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Scalar other = + (com.google.cloud.aiplatform.v1beta1.Scalar) obj; + + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) 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) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar 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.Scalar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar 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.Scalar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar 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.Scalar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar 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.Scalar parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar 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.Scalar 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.Scalar 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.Scalar 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; + } + /** + * + * + *
+   * One point viewable on a scalar metric plot.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Scalar} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Scalar) + com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Scalar.class, + com.google.cloud.aiplatform.v1beta1.Scalar.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Scalar.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(); + value_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scalar getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scalar build() { + com.google.cloud.aiplatform.v1beta1.Scalar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scalar buildPartial() { + com.google.cloud.aiplatform.v1beta1.Scalar result = + new com.google.cloud.aiplatform.v1beta1.Scalar(this); + result.value_ = value_; + 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.Scalar) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Scalar) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Scalar other) { + if (other == com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance()) return this; + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + 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.Scalar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Scalar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double value_; + /** + * + * + *
+     * Value of the point at this step / timestamp.
+     * 
+ * + * double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + * + * + *
+     * Value of the point at this step / timestamp.
+     * 
+ * + * double value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Value of the point at this step / timestamp.
+     * 
+ * + * double value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Scalar) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Scalar) + private static final com.google.cloud.aiplatform.v1beta1.Scalar DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Scalar(); + } + + public static com.google.cloud.aiplatform.v1beta1.Scalar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scalar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scalar(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.Scalar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScalarOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScalarOrBuilder.java new file mode 100644 index 000000000..fe05b5a02 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScalarOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ScalarOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Scalar) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Value of the point at this step / timestamp.
+   * 
+ * + * double value = 1; + * + * @return The value. + */ + double getValue(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java new file mode 100644 index 000000000..8e555ea0b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java @@ -0,0 +1,1489 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} + */ +public final class SearchFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + SearchFeaturesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchFeaturesRequest.newBuilder() to construct. + private SearchFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchFeaturesRequest() { + location_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchFeaturesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchFeaturesRequest( + 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(); + + location_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + 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.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object location_; + /** + * + * + *
+   * Required. The resource name of the Location to search Features.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Location to search Features.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Query string that is a conjunction of field-restricted queries and/or
+   * field-restricted filters.  Field-restricted queries and filters can be
+   * combined using `AND` to form a conjunction.
+   * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+   * exists as a substring within Feature's FIELD. The QUERY
+   * and the FIELD are converted to a sequence of words (i.e. tokens) for
+   * comparison. This is done by:
+   *   * Removing leading/trailing whitespace and tokenizing the search value.
+   *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+   *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+   *   wildcard that matches characters within a token.
+   *   * Ignoring case.
+   *   * Prepending an asterisk to the first and appending an asterisk to the
+   *   last token in QUERY.
+   * A QUERY must be either a singular token or a phrase. A phrase is one or
+   * multiple words enclosed in double quotation marks ("). With phrases, the
+   * order of the words is important. Words in the phrase must be matching in
+   * order and consecutively.
+   * Supported FIELDs for field-restricted queries:
+   * * `feature_id`
+   * * `description`
+   * * `entity_type_id`
+   * Examples:
+   * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+   * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+   * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+   * substring `foo*feature` (eg. `foobarfeature`).
+   * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+   * containing the substring `foo` and description containing the substring
+   * `bar`.
+   * Besides field queries, the following exact-match filters are
+   * supported. The exact-match filters do not support wildcards. Unlike
+   * field-restricted queries, exact-match filters are case-sensitive.
+   * * `feature_id`: Supports = comparisons.
+   * * `description`: Supports = comparisons. Multi-token filters should be
+   * enclosed in quotes.
+   * * `entity_type_id`: Supports = comparisons.
+   * * `value_type`: Supports = and != comparisons.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * * `featurestore_id`: Supports = comparisons.
+   * Examples:
+   * * `description = "foo bar"` --> Any Feature with description exactly equal
+   * to `foo bar`
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with `env` as the
+   *   key.
+   * 
+ * + * string query = 3; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Query string that is a conjunction of field-restricted queries and/or
+   * field-restricted filters.  Field-restricted queries and filters can be
+   * combined using `AND` to form a conjunction.
+   * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+   * exists as a substring within Feature's FIELD. The QUERY
+   * and the FIELD are converted to a sequence of words (i.e. tokens) for
+   * comparison. This is done by:
+   *   * Removing leading/trailing whitespace and tokenizing the search value.
+   *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+   *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+   *   wildcard that matches characters within a token.
+   *   * Ignoring case.
+   *   * Prepending an asterisk to the first and appending an asterisk to the
+   *   last token in QUERY.
+   * A QUERY must be either a singular token or a phrase. A phrase is one or
+   * multiple words enclosed in double quotation marks ("). With phrases, the
+   * order of the words is important. Words in the phrase must be matching in
+   * order and consecutively.
+   * Supported FIELDs for field-restricted queries:
+   * * `feature_id`
+   * * `description`
+   * * `entity_type_id`
+   * Examples:
+   * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+   * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+   * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+   * substring `foo*feature` (eg. `foobarfeature`).
+   * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+   * containing the substring `foo` and description containing the substring
+   * `bar`.
+   * Besides field queries, the following exact-match filters are
+   * supported. The exact-match filters do not support wildcards. Unlike
+   * field-restricted queries, exact-match filters are case-sensitive.
+   * * `feature_id`: Supports = comparisons.
+   * * `description`: Supports = comparisons. Multi-token filters should be
+   * enclosed in quotes.
+   * * `entity_type_id`: Supports = comparisons.
+   * * `value_type`: Supports = and != comparisons.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * * `featurestore_id`: Supports = comparisons.
+   * Examples:
+   * * `description = "foo bar"` --> Any Feature with description exactly equal
+   * to `foo bar`
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with `env` as the
+   *   key.
+   * 
+ * + * string query = 3; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * The maximum number of Features to return. The service may return fewer
+   * than this value. If unspecified, at most 100 Features will be returned.
+   * The maximum value is 100; any value greater than 100 will be coerced to
+   * 100.
+   * 
+ * + * int32 page_size = 4; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 5; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 5; + * + * @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 (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.v1beta1.SearchFeaturesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest other = + (com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getQuery().equals(other.getQuery())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().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.v1beta1.SearchFeaturesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest 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.SearchFeaturesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest 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.SearchFeaturesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest 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.SearchFeaturesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest 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.SearchFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest 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.SearchFeaturesRequest 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.SearchFeaturesRequest 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.SearchFeaturesRequest 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.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.class, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.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(); + location_ = ""; + + query_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + 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_SearchFeaturesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest build() { + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest result = + new com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(this); + result.location_ = location_; + result.query_ = query_; + 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.v1beta1.SearchFeaturesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + 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.v1beta1.SearchFeaturesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to search Features.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to search Features.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to search Features.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to search Features.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to search Features.
+     * Format:
+     * `projects/{project}/locations/{location}`
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Query string that is a conjunction of field-restricted queries and/or
+     * field-restricted filters.  Field-restricted queries and filters can be
+     * combined using `AND` to form a conjunction.
+     * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+     * exists as a substring within Feature's FIELD. The QUERY
+     * and the FIELD are converted to a sequence of words (i.e. tokens) for
+     * comparison. This is done by:
+     *   * Removing leading/trailing whitespace and tokenizing the search value.
+     *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+     *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+     *   wildcard that matches characters within a token.
+     *   * Ignoring case.
+     *   * Prepending an asterisk to the first and appending an asterisk to the
+     *   last token in QUERY.
+     * A QUERY must be either a singular token or a phrase. A phrase is one or
+     * multiple words enclosed in double quotation marks ("). With phrases, the
+     * order of the words is important. Words in the phrase must be matching in
+     * order and consecutively.
+     * Supported FIELDs for field-restricted queries:
+     * * `feature_id`
+     * * `description`
+     * * `entity_type_id`
+     * Examples:
+     * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+     * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+     * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+     * substring `foo*feature` (eg. `foobarfeature`).
+     * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+     * containing the substring `foo` and description containing the substring
+     * `bar`.
+     * Besides field queries, the following exact-match filters are
+     * supported. The exact-match filters do not support wildcards. Unlike
+     * field-restricted queries, exact-match filters are case-sensitive.
+     * * `feature_id`: Supports = comparisons.
+     * * `description`: Supports = comparisons. Multi-token filters should be
+     * enclosed in quotes.
+     * * `entity_type_id`: Supports = comparisons.
+     * * `value_type`: Supports = and != comparisons.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * * `featurestore_id`: Supports = comparisons.
+     * Examples:
+     * * `description = "foo bar"` --> Any Feature with description exactly equal
+     * to `foo bar`
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with `env` as the
+     *   key.
+     * 
+ * + * string query = 3; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Query string that is a conjunction of field-restricted queries and/or
+     * field-restricted filters.  Field-restricted queries and filters can be
+     * combined using `AND` to form a conjunction.
+     * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+     * exists as a substring within Feature's FIELD. The QUERY
+     * and the FIELD are converted to a sequence of words (i.e. tokens) for
+     * comparison. This is done by:
+     *   * Removing leading/trailing whitespace and tokenizing the search value.
+     *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+     *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+     *   wildcard that matches characters within a token.
+     *   * Ignoring case.
+     *   * Prepending an asterisk to the first and appending an asterisk to the
+     *   last token in QUERY.
+     * A QUERY must be either a singular token or a phrase. A phrase is one or
+     * multiple words enclosed in double quotation marks ("). With phrases, the
+     * order of the words is important. Words in the phrase must be matching in
+     * order and consecutively.
+     * Supported FIELDs for field-restricted queries:
+     * * `feature_id`
+     * * `description`
+     * * `entity_type_id`
+     * Examples:
+     * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+     * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+     * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+     * substring `foo*feature` (eg. `foobarfeature`).
+     * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+     * containing the substring `foo` and description containing the substring
+     * `bar`.
+     * Besides field queries, the following exact-match filters are
+     * supported. The exact-match filters do not support wildcards. Unlike
+     * field-restricted queries, exact-match filters are case-sensitive.
+     * * `feature_id`: Supports = comparisons.
+     * * `description`: Supports = comparisons. Multi-token filters should be
+     * enclosed in quotes.
+     * * `entity_type_id`: Supports = comparisons.
+     * * `value_type`: Supports = and != comparisons.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * * `featurestore_id`: Supports = comparisons.
+     * Examples:
+     * * `description = "foo bar"` --> Any Feature with description exactly equal
+     * to `foo bar`
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with `env` as the
+     *   key.
+     * 
+ * + * string query = 3; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Query string that is a conjunction of field-restricted queries and/or
+     * field-restricted filters.  Field-restricted queries and filters can be
+     * combined using `AND` to form a conjunction.
+     * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+     * exists as a substring within Feature's FIELD. The QUERY
+     * and the FIELD are converted to a sequence of words (i.e. tokens) for
+     * comparison. This is done by:
+     *   * Removing leading/trailing whitespace and tokenizing the search value.
+     *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+     *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+     *   wildcard that matches characters within a token.
+     *   * Ignoring case.
+     *   * Prepending an asterisk to the first and appending an asterisk to the
+     *   last token in QUERY.
+     * A QUERY must be either a singular token or a phrase. A phrase is one or
+     * multiple words enclosed in double quotation marks ("). With phrases, the
+     * order of the words is important. Words in the phrase must be matching in
+     * order and consecutively.
+     * Supported FIELDs for field-restricted queries:
+     * * `feature_id`
+     * * `description`
+     * * `entity_type_id`
+     * Examples:
+     * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+     * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+     * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+     * substring `foo*feature` (eg. `foobarfeature`).
+     * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+     * containing the substring `foo` and description containing the substring
+     * `bar`.
+     * Besides field queries, the following exact-match filters are
+     * supported. The exact-match filters do not support wildcards. Unlike
+     * field-restricted queries, exact-match filters are case-sensitive.
+     * * `feature_id`: Supports = comparisons.
+     * * `description`: Supports = comparisons. Multi-token filters should be
+     * enclosed in quotes.
+     * * `entity_type_id`: Supports = comparisons.
+     * * `value_type`: Supports = and != comparisons.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * * `featurestore_id`: Supports = comparisons.
+     * Examples:
+     * * `description = "foo bar"` --> Any Feature with description exactly equal
+     * to `foo bar`
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with `env` as the
+     *   key.
+     * 
+ * + * string query = 3; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Query string that is a conjunction of field-restricted queries and/or
+     * field-restricted filters.  Field-restricted queries and filters can be
+     * combined using `AND` to form a conjunction.
+     * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+     * exists as a substring within Feature's FIELD. The QUERY
+     * and the FIELD are converted to a sequence of words (i.e. tokens) for
+     * comparison. This is done by:
+     *   * Removing leading/trailing whitespace and tokenizing the search value.
+     *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+     *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+     *   wildcard that matches characters within a token.
+     *   * Ignoring case.
+     *   * Prepending an asterisk to the first and appending an asterisk to the
+     *   last token in QUERY.
+     * A QUERY must be either a singular token or a phrase. A phrase is one or
+     * multiple words enclosed in double quotation marks ("). With phrases, the
+     * order of the words is important. Words in the phrase must be matching in
+     * order and consecutively.
+     * Supported FIELDs for field-restricted queries:
+     * * `feature_id`
+     * * `description`
+     * * `entity_type_id`
+     * Examples:
+     * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+     * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+     * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+     * substring `foo*feature` (eg. `foobarfeature`).
+     * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+     * containing the substring `foo` and description containing the substring
+     * `bar`.
+     * Besides field queries, the following exact-match filters are
+     * supported. The exact-match filters do not support wildcards. Unlike
+     * field-restricted queries, exact-match filters are case-sensitive.
+     * * `feature_id`: Supports = comparisons.
+     * * `description`: Supports = comparisons. Multi-token filters should be
+     * enclosed in quotes.
+     * * `entity_type_id`: Supports = comparisons.
+     * * `value_type`: Supports = and != comparisons.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * * `featurestore_id`: Supports = comparisons.
+     * Examples:
+     * * `description = "foo bar"` --> Any Feature with description exactly equal
+     * to `foo bar`
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with `env` as the
+     *   key.
+     * 
+ * + * string query = 3; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Query string that is a conjunction of field-restricted queries and/or
+     * field-restricted filters.  Field-restricted queries and filters can be
+     * combined using `AND` to form a conjunction.
+     * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+     * exists as a substring within Feature's FIELD. The QUERY
+     * and the FIELD are converted to a sequence of words (i.e. tokens) for
+     * comparison. This is done by:
+     *   * Removing leading/trailing whitespace and tokenizing the search value.
+     *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+     *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+     *   wildcard that matches characters within a token.
+     *   * Ignoring case.
+     *   * Prepending an asterisk to the first and appending an asterisk to the
+     *   last token in QUERY.
+     * A QUERY must be either a singular token or a phrase. A phrase is one or
+     * multiple words enclosed in double quotation marks ("). With phrases, the
+     * order of the words is important. Words in the phrase must be matching in
+     * order and consecutively.
+     * Supported FIELDs for field-restricted queries:
+     * * `feature_id`
+     * * `description`
+     * * `entity_type_id`
+     * Examples:
+     * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+     * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+     * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+     * substring `foo*feature` (eg. `foobarfeature`).
+     * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+     * containing the substring `foo` and description containing the substring
+     * `bar`.
+     * Besides field queries, the following exact-match filters are
+     * supported. The exact-match filters do not support wildcards. Unlike
+     * field-restricted queries, exact-match filters are case-sensitive.
+     * * `feature_id`: Supports = comparisons.
+     * * `description`: Supports = comparisons. Multi-token filters should be
+     * enclosed in quotes.
+     * * `entity_type_id`: Supports = comparisons.
+     * * `value_type`: Supports = and != comparisons.
+     * * `labels`: Supports key-value equality as well as key presence.
+     * * `featurestore_id`: Supports = comparisons.
+     * Examples:
+     * * `description = "foo bar"` --> Any Feature with description exactly equal
+     * to `foo bar`
+     * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+     * * `labels.active = yes AND labels.env = prod` --> Features having both
+     *     (active: yes) and (env: prod) labels.
+     * * `labels.env: *` --> Any Feature which has a label with `env` as the
+     *   key.
+     * 
+ * + * string query = 3; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Features will be returned.
+     * The maximum value is 100; any value greater than 100 will be coerced to
+     * 100.
+     * 
+ * + * int32 page_size = 4; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Features will be returned.
+     * The maximum value is 100; any value greater than 100 will be coerced to
+     * 100.
+     * 
+ * + * int32 page_size = 4; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of Features to return. The service may return fewer
+     * than this value. If unspecified, at most 100 Features will be returned.
+     * The maximum value is 100; any value greater than 100 will be coerced to
+     * 100.
+     * 
+ * + * int32 page_size = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 5; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 5; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 5; + * + * @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; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 5; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 5; + * + * @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.v1beta1.SearchFeaturesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + private static final com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchFeaturesRequest(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.SearchFeaturesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequestOrBuilder.java new file mode 100644 index 000000000..235197998 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequestOrBuilder.java @@ -0,0 +1,228 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchFeaturesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to search Features.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. The resource name of the Location to search Features.
+   * Format:
+   * `projects/{project}/locations/{location}`
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Query string that is a conjunction of field-restricted queries and/or
+   * field-restricted filters.  Field-restricted queries and filters can be
+   * combined using `AND` to form a conjunction.
+   * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+   * exists as a substring within Feature's FIELD. The QUERY
+   * and the FIELD are converted to a sequence of words (i.e. tokens) for
+   * comparison. This is done by:
+   *   * Removing leading/trailing whitespace and tokenizing the search value.
+   *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+   *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+   *   wildcard that matches characters within a token.
+   *   * Ignoring case.
+   *   * Prepending an asterisk to the first and appending an asterisk to the
+   *   last token in QUERY.
+   * A QUERY must be either a singular token or a phrase. A phrase is one or
+   * multiple words enclosed in double quotation marks ("). With phrases, the
+   * order of the words is important. Words in the phrase must be matching in
+   * order and consecutively.
+   * Supported FIELDs for field-restricted queries:
+   * * `feature_id`
+   * * `description`
+   * * `entity_type_id`
+   * Examples:
+   * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+   * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+   * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+   * substring `foo*feature` (eg. `foobarfeature`).
+   * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+   * containing the substring `foo` and description containing the substring
+   * `bar`.
+   * Besides field queries, the following exact-match filters are
+   * supported. The exact-match filters do not support wildcards. Unlike
+   * field-restricted queries, exact-match filters are case-sensitive.
+   * * `feature_id`: Supports = comparisons.
+   * * `description`: Supports = comparisons. Multi-token filters should be
+   * enclosed in quotes.
+   * * `entity_type_id`: Supports = comparisons.
+   * * `value_type`: Supports = and != comparisons.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * * `featurestore_id`: Supports = comparisons.
+   * Examples:
+   * * `description = "foo bar"` --> Any Feature with description exactly equal
+   * to `foo bar`
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with `env` as the
+   *   key.
+   * 
+ * + * string query = 3; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Query string that is a conjunction of field-restricted queries and/or
+   * field-restricted filters.  Field-restricted queries and filters can be
+   * combined using `AND` to form a conjunction.
+   * A field query is in the form FIELD:QUERY. This implicitly checks if QUERY
+   * exists as a substring within Feature's FIELD. The QUERY
+   * and the FIELD are converted to a sequence of words (i.e. tokens) for
+   * comparison. This is done by:
+   *   * Removing leading/trailing whitespace and tokenizing the search value.
+   *   Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_],
+   *   or asterisk [*] are treated as delimiters for tokens. (*) is treated as a
+   *   wildcard that matches characters within a token.
+   *   * Ignoring case.
+   *   * Prepending an asterisk to the first and appending an asterisk to the
+   *   last token in QUERY.
+   * A QUERY must be either a singular token or a phrase. A phrase is one or
+   * multiple words enclosed in double quotation marks ("). With phrases, the
+   * order of the words is important. Words in the phrase must be matching in
+   * order and consecutively.
+   * Supported FIELDs for field-restricted queries:
+   * * `feature_id`
+   * * `description`
+   * * `entity_type_id`
+   * Examples:
+   * * `feature_id: foo` --> Matches a Feature with ID containing the substring
+   * `foo` (eg. `foo`, `foofeature`, `barfoo`).
+   * * `feature_id: foo*feature` --> Matches a Feature with ID containing the
+   * substring `foo*feature` (eg. `foobarfeature`).
+   * * `feature_id: foo AND description: bar` --> Matches a Feature with ID
+   * containing the substring `foo` and description containing the substring
+   * `bar`.
+   * Besides field queries, the following exact-match filters are
+   * supported. The exact-match filters do not support wildcards. Unlike
+   * field-restricted queries, exact-match filters are case-sensitive.
+   * * `feature_id`: Supports = comparisons.
+   * * `description`: Supports = comparisons. Multi-token filters should be
+   * enclosed in quotes.
+   * * `entity_type_id`: Supports = comparisons.
+   * * `value_type`: Supports = and != comparisons.
+   * * `labels`: Supports key-value equality as well as key presence.
+   * * `featurestore_id`: Supports = comparisons.
+   * Examples:
+   * * `description = "foo bar"` --> Any Feature with description exactly equal
+   * to `foo bar`
+   * * `value_type = DOUBLE` --> Features whose type is DOUBLE.
+   * * `labels.active = yes AND labels.env = prod` --> Features having both
+   *     (active: yes) and (env: prod) labels.
+   * * `labels.env: *` --> Any Feature which has a label with `env` as the
+   *   key.
+   * 
+ * + * string query = 3; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * The maximum number of Features to return. The service may return fewer
+   * than this value. If unspecified, at most 100 Features will be returned.
+   * The maximum value is 100; any value greater than 100 will be coerced to
+   * 100.
+   * 
+ * + * int32 page_size = 4; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 5; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 5; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java new file mode 100644 index 000000000..a01ec6926 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java @@ -0,0 +1,1282 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} + */ +public final class SearchFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + SearchFeaturesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchFeaturesResponse.newBuilder() to construct. + private SearchFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchFeaturesResponse() { + features_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchFeaturesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchFeaturesResponse( + 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)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + features_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Feature.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)) { + features_ = java.util.Collections.unmodifiableList(features_); + } + 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_SearchFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.Builder.class); + } + + public static final int FEATURES_FIELD_NUMBER = 1; + private java.util.List features_; + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List getFeaturesList() { + return features_; + } + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public java.util.List + getFeaturesOrBuilderList() { + return features_; + } + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public int getFeaturesCount() { + return features_.size(); + } + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + return features_.get(index); + } + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + return features_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < features_.size(); i++) { + output.writeMessage(1, features_.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 < features_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, features_.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.v1beta1.SearchFeaturesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse other = + (com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) obj; + + if (!getFeaturesList().equals(other.getFeaturesList())) 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 (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeaturesList().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.v1beta1.SearchFeaturesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse 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.SearchFeaturesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse 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.SearchFeaturesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse 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.SearchFeaturesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse 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.SearchFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse 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.SearchFeaturesResponse 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.SearchFeaturesResponse 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.SearchFeaturesResponse 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 [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchFeaturesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.class, + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeaturesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + featuresBuilder_.clear(); + } + nextPageToken_ = ""; + + 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_SearchFeaturesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse build() { + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse result = + new com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(this); + int from_bitField0_ = bitField0_; + if (featuresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.features_ = features_; + } else { + result.features_ = featuresBuilder_.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.v1beta1.SearchFeaturesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.getDefaultInstance()) + return this; + if (featuresBuilder_ == null) { + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + } else { + if (!other.features_.isEmpty()) { + if (featuresBuilder_.isEmpty()) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000001); + featuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeaturesFieldBuilder() + : null; + } else { + featuresBuilder_.addAllMessages(other.features_); + } + } + } + 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.v1beta1.SearchFeaturesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List features_ = + java.util.Collections.emptyList(); + + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + featuresBuilder_; + + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List getFeaturesList() { + if (featuresBuilder_ == null) { + return java.util.Collections.unmodifiableList(features_); + } else { + return featuresBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public int getFeaturesCount() { + if (featuresBuilder_ == null) { + return features_.size(); + } else { + return featuresBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + } else { + featuresBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder setFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.set(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + } else { + featuresBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures(int index, com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(index, value); + onChanged(); + } else { + featuresBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addFeatures( + int index, com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + onChanged(); + } else { + featuresBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder clearFeatures() { + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featuresBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public Builder removeFeatures(int index) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.remove(index); + onChanged(); + } else { + featuresBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeaturesBuilder(int index) { + return getFeaturesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesOrBuilderList() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(features_); + } + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder() { + return getFeaturesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder addFeaturesBuilder(int index) { + return getFeaturesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()); + } + /** + * + * + *
+     * The Features matching the request.
+     * Fields returned:
+     *  * `name`
+     *  * `description`
+     *  * `labels`
+     *  * `create_time`
+     *  * `update_time`
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + public java.util.List + getFeaturesBuilderList() { + return getFeaturesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder>( + features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + features_ = null; + } + return featuresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+     * retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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.v1beta1.SearchFeaturesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + private static final com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchFeaturesResponse(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.SearchFeaturesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponseOrBuilder.java new file mode 100644 index 000000000..adeeef851 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponseOrBuilder.java @@ -0,0 +1,136 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchFeaturesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List getFeaturesList(); + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.Feature getFeatures(int index); + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + int getFeaturesCount(); + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + java.util.List + getFeaturesOrBuilderList(); + /** + * + * + *
+   * The Features matching the request.
+   * Fields returned:
+   *  * `name`
+   *  * `description`
+   *  * `labels`
+   *  * `create_time`
+   *  * `update_time`
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Feature features = 1; + */ + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to
+   * retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java index 281e54cbc..64e8aefde 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java @@ -140,7 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -169,7 +169,7 @@ public java.lang.String getParent() {
    *
    * 
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -268,15 +268,17 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    *
    * 
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -299,15 +301,17 @@ public java.lang.String getFilter() { * * *
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -707,7 +711,7 @@ public Builder mergeFrom( * *
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -735,7 +739,7 @@ public java.lang.String getParent() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -763,7 +767,7 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -790,7 +794,7 @@ public Builder setParent(java.lang.String value) {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -813,7 +817,7 @@ public Builder clearParent() {
      *
      * 
      * Required. The location that the migratable resources should be searched from.
-     * It's the AI Platform location that the resources can be migrated to, not
+     * It's the Vertex AI location that the resources can be migrated to, not
      * the resources' original location.
      * Format:
      * `projects/{project}/locations/{location}`
@@ -1003,15 +1007,17 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1033,15 +1039,17 @@ public java.lang.String getFilter() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1063,15 +1071,17 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1092,15 +1102,17 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; @@ -1117,15 +1129,17 @@ public Builder clearFilter() { * * *
-     * Supported filters are:
-     * * Resource type: For a specific type of MigratableResource.
-     *   * `ml_engine_model_version:*`
-     *   * `automl_model:*`,
-     *   * `automl_dataset:*`
-     *   * `data_labeling_dataset:*`.
-     * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-     *   * `last_migrate_time:*` will filter migrated resources.
-     *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+     * A filter for your search. You can use the following types of filters:
+     * *   Resource type filters. The following strings filter for a specific type
+     *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+     *     *   `ml_engine_model_version:*`
+     *     *   `automl_model:*`
+     *     *   `automl_dataset:*`
+     *     *   `data_labeling_dataset:*`
+     * *   "Migrated or not" filters. The following strings filter for resources
+     *     that either have or have not already been migrated:
+     *     *   `last_migrate_time:*` filters for migrated resources.
+     *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
      * 
* * string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequestOrBuilder.java index a7fe855c4..1dce30d62 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface SearchMigratableResourcesRequestOrBuilder * *
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -46,7 +46,7 @@ public interface SearchMigratableResourcesRequestOrBuilder
    *
    * 
    * Required. The location that the migratable resources should be searched from.
-   * It's the AI Platform location that the resources can be migrated to, not
+   * It's the Vertex AI location that the resources can be migrated to, not
    * the resources' original location.
    * Format:
    * `projects/{project}/locations/{location}`
@@ -103,15 +103,17 @@ public interface SearchMigratableResourcesRequestOrBuilder
    *
    *
    * 
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; @@ -123,15 +125,17 @@ public interface SearchMigratableResourcesRequestOrBuilder * * *
-   * Supported filters are:
-   * * Resource type: For a specific type of MigratableResource.
-   *   * `ml_engine_model_version:*`
-   *   * `automl_model:*`,
-   *   * `automl_dataset:*`
-   *   * `data_labeling_dataset:*`.
-   * * Migrated or not: Filter migrated resource or not by last_migrate_time.
-   *   * `last_migrate_time:*` will filter migrated resources.
-   *   * `NOT last_migrate_time:*` will filter not yet migrated resource.
+   * A filter for your search. You can use the following types of filters:
+   * *   Resource type filters. The following strings filter for a specific type
+   *     of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]:
+   *     *   `ml_engine_model_version:*`
+   *     *   `automl_model:*`
+   *     *   `automl_dataset:*`
+   *     *   `data_labeling_dataset:*`
+   * *   "Migrated or not" filters. The following strings filter for resources
+   *     that either have or have not already been migrated:
+   *     *   `last_migrate_time:*` filters for migrated resources.
+   *     *   `NOT last_migrate_time:*` filters for not yet migrated resources.
    * 
* * string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java new file mode 100644 index 000000000..3f8ef0f1c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -0,0 +1,3387 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
+ * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} + */ +public final class SearchModelDeploymentMonitoringStatsAnomaliesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() to construct. + private SearchModelDeploymentMonitoringStatsAnomaliesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchModelDeploymentMonitoringStatsAnomaliesRequest() { + modelDeploymentMonitoringJob_ = ""; + deployedModelId_ = ""; + featureDisplayName_ = ""; + objectives_ = java.util.Collections.emptyList(); + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchModelDeploymentMonitoringStatsAnomaliesRequest( + 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(); + + modelDeploymentMonitoringJob_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployedModelId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + featureDisplayName_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + objectives_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective>(); + mutable_bitField0_ |= 0x00000001; + } + objectives_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.parser(), + extensionRegistry)); + break; + } + case 40: + { + pageSize_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 58: + { + 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 66: + { + 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; + } + 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)) { + objectives_ = java.util.Collections.unmodifiableList(objectives_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .class, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .Builder.class); + } + + public interface StatsAnomaliesObjectiveOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The type. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getType(); + + /** + * + * + *
+     * If set, all attribution scores between
+     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and
+     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are
+     * fetched, and page token doesn't take affect in this case.
+     * Only used to retrieve attribution score for the top Features which has
+     * the highest attribution score in the latest monitoring run.
+     * 
+ * + * int32 top_feature_count = 4; + * + * @return The topFeatureCount. + */ + int getTopFeatureCount(); + } + /** + * + * + *
+   * Stats requested for specific objective.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} + */ + public static final class StatsAnomaliesObjective extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + StatsAnomaliesObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use StatsAnomaliesObjective.newBuilder() to construct. + private StatsAnomaliesObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StatsAnomaliesObjective() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatsAnomaliesObjective(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StatsAnomaliesObjective( + 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(); + + type_ = rawValue; + break; + } + case 32: + { + topFeatureCount_ = 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.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .class, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf(type_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED + : result; + } + + public static final int TOP_FEATURE_COUNT_FIELD_NUMBER = 4; + private int topFeatureCount_; + /** + * + * + *
+     * If set, all attribution scores between
+     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and
+     * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are
+     * fetched, and page token doesn't take affect in this case.
+     * Only used to retrieve attribution score for the top Features which has
+     * the highest attribution score in the latest monitoring run.
+     * 
+ * + * int32 top_feature_count = 4; + * + * @return The topFeatureCount. + */ + @java.lang.Override + public int getTopFeatureCount() { + return topFeatureCount_; + } + + 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 (type_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + .MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (topFeatureCount_ != 0) { + output.writeInt32(4, topFeatureCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + .MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (topFeatureCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, topFeatureCount_); + } + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + other = + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + obj; + + if (type_ != other.type_) return false; + if (getTopFeatureCount() != other.getTopFeatureCount()) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + TOP_FEATURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTopFeatureCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + 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; + } + /** + * + * + *
+     * Stats requested for specific objective.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .class, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.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(); + type_ = 0; + + topFeatureCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjective_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + build() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + result = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective( + this); + result.type_ = type_; + result.topFeatureCount_ = topFeatureCount_; + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + other) { + if (other + == com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getTopFeatureCount() != 0) { + setTopFeatureCount(other.getTopFeatureCount()); + } + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + type_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + .UNRECOGNIZED + : result; + } + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int topFeatureCount_; + /** + * + * + *
+       * If set, all attribution scores between
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are
+       * fetched, and page token doesn't take affect in this case.
+       * Only used to retrieve attribution score for the top Features which has
+       * the highest attribution score in the latest monitoring run.
+       * 
+ * + * int32 top_feature_count = 4; + * + * @return The topFeatureCount. + */ + @java.lang.Override + public int getTopFeatureCount() { + return topFeatureCount_; + } + /** + * + * + *
+       * If set, all attribution scores between
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are
+       * fetched, and page token doesn't take affect in this case.
+       * Only used to retrieve attribution score for the top Features which has
+       * the highest attribution score in the latest monitoring run.
+       * 
+ * + * int32 top_feature_count = 4; + * + * @param value The topFeatureCount to set. + * @return This builder for chaining. + */ + public Builder setTopFeatureCount(int value) { + + topFeatureCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * If set, all attribution scores between
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and
+       * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are
+       * fetched, and page token doesn't take affect in this case.
+       * Only used to retrieve attribution score for the top Features which has
+       * the highest attribution score in the latest monitoring run.
+       * 
+ * + * int32 top_feature_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearTopFeatureCount() { + + topFeatureCount_ = 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + private static final com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatsAnomaliesObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatsAnomaliesObjective(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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 1; + private volatile java.lang.Object modelDeploymentMonitoringJob_; + /** + * + * + *
+   * Required. ModelDeploymentMonitoring Job resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+   * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The modelDeploymentMonitoringJob. + */ + @java.lang.Override + public java.lang.String getModelDeploymentMonitoringJob() { + java.lang.Object ref = modelDeploymentMonitoringJob_; + 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(); + modelDeploymentMonitoringJob_ = s; + return s; + } + } + /** + * + * + *
+   * Required. ModelDeploymentMonitoring Job resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+   * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for modelDeploymentMonitoringJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { + java.lang.Object ref = modelDeploymentMonitoringJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelDeploymentMonitoringJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object deployedModelId_; + /** + * + * + *
+   * Required. The DeployedModel ID of the
+   * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+   * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployedModelId. + */ + @java.lang.Override + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + 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(); + deployedModelId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The DeployedModel ID of the
+   * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+   * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployedModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object featureDisplayName_; + /** + * + * + *
+   * The feature display name. If specified, only return the stats belonging to
+   * this feature. Format:
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+   * example: "user_destination".
+   * 
+ * + * string feature_display_name = 3; + * + * @return The featureDisplayName. + */ + @java.lang.Override + public java.lang.String getFeatureDisplayName() { + java.lang.Object ref = featureDisplayName_; + 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(); + featureDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * The feature display name. If specified, only return the stats belonging to
+   * this feature. Format:
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+   * example: "user_destination".
+   * 
+ * + * string feature_display_name = 3; + * + * @return The bytes for featureDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { + java.lang.Object ref = featureDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECTIVES_FIELD_NUMBER = 4; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + objectives_; + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + getObjectivesList() { + return objectives_; + } + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder> + getObjectivesOrBuilderList() { + return objectives_; + } + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getObjectivesCount() { + return objectives_.size(); + } + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + getObjectives(int index) { + return objectives_.get(index); + } + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder + getObjectivesOrBuilder(int index) { + return objectives_.get(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 5; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 5; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token received from a previous
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string page_token = 6; + * + * @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; + } + } + /** + * + * + *
+   * A page token received from a previous
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string page_token = 6; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (!getModelDeploymentMonitoringJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelDeploymentMonitoringJob_); + } + if (!getDeployedModelIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedModelId_); + } + if (!getFeatureDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, featureDisplayName_); + } + for (int i = 0; i < objectives_.size(); i++) { + output.writeMessage(4, objectives_.get(i)); + } + if (pageSize_ != 0) { + output.writeInt32(5, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); + } + if (startTime_ != null) { + output.writeMessage(7, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(8, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelDeploymentMonitoringJobBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, modelDeploymentMonitoringJob_); + } + if (!getDeployedModelIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedModelId_); + } + if (!getFeatureDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, featureDisplayName_); + } + for (int i = 0; i < objectives_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, objectives_.get(i)); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + } + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest other = + (com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + obj; + + if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) + return false; + if (!getDeployedModelId().equals(other.getDeployedModelId())) return false; + if (!getFeatureDisplayName().equals(other.getFeatureDisplayName())) return false; + if (!getObjectivesList().equals(other.getObjectivesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); + hash = (37 * hash) + DEPLOYED_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedModelId().hashCode(); + hash = (37 * hash) + FEATURE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFeatureDisplayName().hashCode(); + if (getObjectivesCount() > 0) { + hash = (37 * hash) + OBJECTIVES_FIELD_NUMBER; + hash = (53 * hash) + getObjectivesList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + 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
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.class, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getObjectivesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + modelDeploymentMonitoringJob_ = ""; + + deployedModelId_ = ""; + + featureDisplayName_ = ""; + + if (objectivesBuilder_ == null) { + objectives_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + objectivesBuilder_.clear(); + } + pageSize_ = 0; + + pageToken_ = ""; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + build() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest(this); + int from_bitField0_ = bitField0_; + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + result.deployedModelId_ = deployedModelId_; + result.featureDisplayName_ = featureDisplayName_; + if (objectivesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + objectives_ = java.util.Collections.unmodifiableList(objectives_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.objectives_ = objectives_; + } else { + result.objectives_ = objectivesBuilder_.build(); + } + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.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 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + other) { + if (other + == com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.getDefaultInstance()) + return this; + if (!other.getModelDeploymentMonitoringJob().isEmpty()) { + modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; + onChanged(); + } + if (!other.getDeployedModelId().isEmpty()) { + deployedModelId_ = other.deployedModelId_; + onChanged(); + } + if (!other.getFeatureDisplayName().isEmpty()) { + featureDisplayName_ = other.featureDisplayName_; + onChanged(); + } + if (objectivesBuilder_ == null) { + if (!other.objectives_.isEmpty()) { + if (objectives_.isEmpty()) { + objectives_ = other.objectives_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureObjectivesIsMutable(); + objectives_.addAll(other.objectives_); + } + onChanged(); + } + } else { + if (!other.objectives_.isEmpty()) { + if (objectivesBuilder_.isEmpty()) { + objectivesBuilder_.dispose(); + objectivesBuilder_ = null; + objectives_ = other.objectives_; + bitField0_ = (bitField0_ & ~0x00000001); + objectivesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectivesFieldBuilder() + : null; + } else { + objectivesBuilder_.addAllMessages(other.objectives_); + } + } + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object modelDeploymentMonitoringJob_ = ""; + /** + * + * + *
+     * Required. ModelDeploymentMonitoring Job resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+     * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The modelDeploymentMonitoringJob. + */ + public java.lang.String getModelDeploymentMonitoringJob() { + java.lang.Object ref = modelDeploymentMonitoringJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelDeploymentMonitoringJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. ModelDeploymentMonitoring Job resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+     * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for modelDeploymentMonitoringJob. + */ + public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { + java.lang.Object ref = modelDeploymentMonitoringJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelDeploymentMonitoringJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. ModelDeploymentMonitoring Job resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+     * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The modelDeploymentMonitoringJob to set. + * @return This builder for chaining. + */ + public Builder setModelDeploymentMonitoringJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelDeploymentMonitoringJob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ModelDeploymentMonitoring Job resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+     * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearModelDeploymentMonitoringJob() { + + modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ModelDeploymentMonitoring Job resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+     * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for modelDeploymentMonitoringJob to set. + * @return This builder for chaining. + */ + public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelDeploymentMonitoringJob_ = value; + onChanged(); + return this; + } + + private java.lang.Object deployedModelId_ = ""; + /** + * + * + *
+     * Required. The DeployedModel ID of the
+     * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+     * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployedModelId. + */ + public java.lang.String getDeployedModelId() { + java.lang.Object ref = deployedModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployedModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The DeployedModel ID of the
+     * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+     * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployedModelId. + */ + public com.google.protobuf.ByteString getDeployedModelIdBytes() { + java.lang.Object ref = deployedModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The DeployedModel ID of the
+     * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+     * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deployedModelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DeployedModel ID of the
+     * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+     * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeployedModelId() { + + deployedModelId_ = getDefaultInstance().getDeployedModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DeployedModel ID of the
+     * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+     * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deployedModelId to set. + * @return This builder for chaining. + */ + public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deployedModelId_ = value; + onChanged(); + return this; + } + + private java.lang.Object featureDisplayName_ = ""; + /** + * + * + *
+     * The feature display name. If specified, only return the stats belonging to
+     * this feature. Format:
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+     * example: "user_destination".
+     * 
+ * + * string feature_display_name = 3; + * + * @return The featureDisplayName. + */ + public java.lang.String getFeatureDisplayName() { + java.lang.Object ref = featureDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featureDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The feature display name. If specified, only return the stats belonging to
+     * this feature. Format:
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+     * example: "user_destination".
+     * 
+ * + * string feature_display_name = 3; + * + * @return The bytes for featureDisplayName. + */ + public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { + java.lang.Object ref = featureDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featureDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The feature display name. If specified, only return the stats belonging to
+     * this feature. Format:
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+     * example: "user_destination".
+     * 
+ * + * string feature_display_name = 3; + * + * @param value The featureDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFeatureDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + featureDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The feature display name. If specified, only return the stats belonging to
+     * this feature. Format:
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+     * example: "user_destination".
+     * 
+ * + * string feature_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearFeatureDisplayName() { + + featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The feature display name. If specified, only return the stats belonging to
+     * this feature. Format:
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+     * example: "user_destination".
+     * 
+ * + * string feature_display_name = 3; + * + * @param value The bytes for featureDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + featureDisplayName_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + objectives_ = java.util.Collections.emptyList(); + + private void ensureObjectivesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + objectives_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective>( + objectives_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder> + objectivesBuilder_; + + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + getObjectivesList() { + if (objectivesBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectives_); + } else { + return objectivesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getObjectivesCount() { + if (objectivesBuilder_ == null) { + return objectives_.size(); + } else { + return objectivesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + getObjectives(int index) { + if (objectivesBuilder_ == null) { + return objectives_.get(index); + } else { + return objectivesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setObjectives( + int index, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + value) { + if (objectivesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectivesIsMutable(); + objectives_.set(index, value); + onChanged(); + } else { + objectivesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setObjectives( + int index, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + builderForValue) { + if (objectivesBuilder_ == null) { + ensureObjectivesIsMutable(); + objectives_.set(index, builderForValue.build()); + onChanged(); + } else { + objectivesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addObjectives( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + value) { + if (objectivesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectivesIsMutable(); + objectives_.add(value); + onChanged(); + } else { + objectivesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addObjectives( + int index, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + value) { + if (objectivesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectivesIsMutable(); + objectives_.add(index, value); + onChanged(); + } else { + objectivesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addObjectives( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + builderForValue) { + if (objectivesBuilder_ == null) { + ensureObjectivesIsMutable(); + objectives_.add(builderForValue.build()); + onChanged(); + } else { + objectivesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addObjectives( + int index, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + builderForValue) { + if (objectivesBuilder_ == null) { + ensureObjectivesIsMutable(); + objectives_.add(index, builderForValue.build()); + onChanged(); + } else { + objectivesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllObjectives( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + values) { + if (objectivesBuilder_ == null) { + ensureObjectivesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectives_); + onChanged(); + } else { + objectivesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearObjectives() { + if (objectivesBuilder_ == null) { + objectives_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + objectivesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeObjectives(int index) { + if (objectivesBuilder_ == null) { + ensureObjectivesIsMutable(); + objectives_.remove(index); + onChanged(); + } else { + objectivesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + getObjectivesBuilder(int index) { + return getObjectivesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder + getObjectivesOrBuilder(int index) { + if (objectivesBuilder_ == null) { + return objectives_.get(index); + } else { + return objectivesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder> + getObjectivesOrBuilderList() { + if (objectivesBuilder_ != null) { + return objectivesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectives_); + } + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + addObjectivesBuilder() { + return getObjectivesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder + addObjectivesBuilder(int index) { + return getObjectivesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Objectives of the stats to retrieve.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder> + getObjectivesBuilderList() { + return getObjectivesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective.Builder, + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder> + getObjectivesFieldBuilder() { + if (objectivesBuilder_ == null) { + objectivesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + .Builder, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder>( + objectives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objectives_ = null; + } + return objectivesBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 5; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 5; + * + * @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 = 5; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token received from a previous
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string page_token = 6; + * + * @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; + } + } + /** + * + * + *
+     * A page token received from a previous
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string page_token = 6; + * + * @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; + } + } + /** + * + * + *
+     * A page token received from a previous
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string page_token = 6; + * + * @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; + } + /** + * + * + *
+     * A page token received from a previous
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string page_token = 6; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token received from a previous
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string page_token = 6; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @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(); + } + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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; + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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; + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The earliest timestamp of stats being generated.
+     * If not set, indicates fetching stats till the earliest possible one.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + 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_; + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @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(); + } + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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; + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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; + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The latest timestamp of stats being generated.
+     * If not set, indicates feching stats till the latest possible one.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + 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_; + } + + @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + private static final com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + SearchModelDeploymentMonitoringStatsAnomaliesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + SearchModelDeploymentMonitoringStatsAnomaliesRequest>() { + @java.lang.Override + public SearchModelDeploymentMonitoringStatsAnomaliesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest( + 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder.java new file mode 100644 index 000000000..04ee72597 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder.java @@ -0,0 +1,307 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. ModelDeploymentMonitoring Job resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+   * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The modelDeploymentMonitoringJob. + */ + java.lang.String getModelDeploymentMonitoringJob(); + /** + * + * + *
+   * Required. ModelDeploymentMonitoring Job resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
+   * 
+ * + * + * string model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for modelDeploymentMonitoringJob. + */ + com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes(); + + /** + * + * + *
+   * Required. The DeployedModel ID of the
+   * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+   * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployedModelId. + */ + java.lang.String getDeployedModelId(); + /** + * + * + *
+   * Required. The DeployedModel ID of the
+   * [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
+   * 
+ * + * string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployedModelId. + */ + com.google.protobuf.ByteString getDeployedModelIdBytes(); + + /** + * + * + *
+   * The feature display name. If specified, only return the stats belonging to
+   * this feature. Format:
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+   * example: "user_destination".
+   * 
+ * + * string feature_display_name = 3; + * + * @return The featureDisplayName. + */ + java.lang.String getFeatureDisplayName(); + /** + * + * + *
+   * The feature display name. If specified, only return the stats belonging to
+   * this feature. Format:
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name],
+   * example: "user_destination".
+   * 
+ * + * string feature_display_name = 3; + * + * @return The bytes for featureDisplayName. + */ + com.google.protobuf.ByteString getFeatureDisplayNameBytes(); + + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective> + getObjectivesList(); + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + getObjectives(int index); + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getObjectivesCount(); + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder> + getObjectivesOrBuilderList(); + /** + * + * + *
+   * Required. Objectives of the stats to retrieve.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective objectives = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjectiveOrBuilder + getObjectivesOrBuilder(int index); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 5; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token received from a previous
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string page_token = 6; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token received from a previous
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string page_token = 6; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The earliest timestamp of stats being generated.
+   * If not set, indicates fetching stats till the earliest possible one.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The latest timestamp of stats being generated.
+   * If not set, indicates feching stats till the latest possible one.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java new file mode 100644 index 000000000..d37472d34 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java @@ -0,0 +1,1362 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
+ * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} + */ +public final class SearchModelDeploymentMonitoringStatsAnomaliesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchModelDeploymentMonitoringStatsAnomaliesResponse.newBuilder() to construct. + private SearchModelDeploymentMonitoringStatsAnomaliesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchModelDeploymentMonitoringStatsAnomaliesResponse() { + monitoringStats_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchModelDeploymentMonitoringStatsAnomaliesResponse( + 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)) { + monitoringStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies>(); + mutable_bitField0_ |= 0x00000001; + } + monitoringStats_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.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)) { + monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.class, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.Builder.class); + } + + public static final int MONITORING_STATS_FIELD_NUMBER = 1; + private java.util.List + monitoringStats_; + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + @java.lang.Override + public java.util.List + getMonitoringStatsList() { + return monitoringStats_; + } + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder> + getMonitoringStatsOrBuilderList() { + return monitoringStats_; + } + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + @java.lang.Override + public int getMonitoringStatsCount() { + return monitoringStats_.size(); + } + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies getMonitoringStats( + int index) { + return monitoringStats_.get(index); + } + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder + getMonitoringStatsOrBuilder(int index) { + return monitoringStats_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The page token that can be used by the next
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * The page token that can be used by the next
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * 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 < monitoringStats_.size(); i++) { + output.writeMessage(1, monitoringStats_.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 < monitoringStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, monitoringStats_.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.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + other = + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse) + obj; + + if (!getMonitoringStatsList().equals(other.getMonitoringStatsList())) 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 (getMonitoringStatsCount() > 0) { + hash = (37 * hash) + MONITORING_STATS_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringStatsList().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.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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.SearchModelDeploymentMonitoringStatsAnomaliesResponse + 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
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies].
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.class, + com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMonitoringStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (monitoringStatsBuilder_ == null) { + monitoringStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + monitoringStatsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchModelDeploymentMonitoringStatsAnomaliesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + build() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse(this); + int from_bitField0_ = bitField0_; + if (monitoringStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.monitoringStats_ = monitoringStats_; + } else { + result.monitoringStats_ = monitoringStatsBuilder_.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.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + other) { + if (other + == com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse.getDefaultInstance()) + return this; + if (monitoringStatsBuilder_ == null) { + if (!other.monitoringStats_.isEmpty()) { + if (monitoringStats_.isEmpty()) { + monitoringStats_ = other.monitoringStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMonitoringStatsIsMutable(); + monitoringStats_.addAll(other.monitoringStats_); + } + onChanged(); + } + } else { + if (!other.monitoringStats_.isEmpty()) { + if (monitoringStatsBuilder_.isEmpty()) { + monitoringStatsBuilder_.dispose(); + monitoringStatsBuilder_ = null; + monitoringStats_ = other.monitoringStats_; + bitField0_ = (bitField0_ & ~0x00000001); + monitoringStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMonitoringStatsFieldBuilder() + : null; + } else { + monitoringStatsBuilder_.addAllMessages(other.monitoringStats_); + } + } + } + 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.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + monitoringStats_ = java.util.Collections.emptyList(); + + private void ensureMonitoringStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + monitoringStats_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies>( + monitoringStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder> + monitoringStatsBuilder_; + + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public java.util.List + getMonitoringStatsList() { + if (monitoringStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(monitoringStats_); + } else { + return monitoringStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public int getMonitoringStatsCount() { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.size(); + } else { + return monitoringStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies getMonitoringStats( + int index) { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.get(index); + } else { + return monitoringStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder setMonitoringStats( + int index, com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.set(index, value); + onChanged(); + } else { + monitoringStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder setMonitoringStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.set(index, builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder addMonitoringStats( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(value); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder addMonitoringStats( + int index, com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies value) { + if (monitoringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(index, value); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder addMonitoringStats( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder addMonitoringStats( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder builderForValue) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.add(index, builderForValue.build()); + onChanged(); + } else { + monitoringStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder addAllMonitoringStats( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies> + values) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoringStats_); + onChanged(); + } else { + monitoringStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder clearMonitoringStats() { + if (monitoringStatsBuilder_ == null) { + monitoringStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + monitoringStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public Builder removeMonitoringStats(int index) { + if (monitoringStatsBuilder_ == null) { + ensureMonitoringStatsIsMutable(); + monitoringStats_.remove(index); + onChanged(); + } else { + monitoringStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder + getMonitoringStatsBuilder(int index) { + return getMonitoringStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder + getMonitoringStatsOrBuilder(int index) { + if (monitoringStatsBuilder_ == null) { + return monitoringStats_.get(index); + } else { + return monitoringStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder> + getMonitoringStatsOrBuilderList() { + if (monitoringStatsBuilder_ != null) { + return monitoringStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(monitoringStats_); + } + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder + addMonitoringStatsBuilder() { + return getMonitoringStatsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .getDefaultInstance()); + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder + addMonitoringStatsBuilder(int index) { + return getMonitoringStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .getDefaultInstance()); + } + /** + * + * + *
+     * Stats retrieved for requested objectives.
+     * There are at most 1000
+     * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+     * in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + public java.util.List + getMonitoringStatsBuilderList() { + return getMonitoringStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder> + getMonitoringStatsFieldBuilder() { + if (monitoringStatsBuilder_ == null) { + monitoringStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder>( + monitoringStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + monitoringStats_ = null; + } + return monitoringStatsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The page token that can be used by the next
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The page token that can be used by the next
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The page token that can be used by the next
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * The page token that can be used by the next
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The page token that can be used by the next
+     * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+     * call.
+     * 
+ * + * 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.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + private static final com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1 + .SearchModelDeploymentMonitoringStatsAnomaliesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + SearchModelDeploymentMonitoringStatsAnomaliesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + SearchModelDeploymentMonitoringStatsAnomaliesResponse>() { + @java.lang.Override + public SearchModelDeploymentMonitoringStatsAnomaliesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse( + 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.SearchModelDeploymentMonitoringStatsAnomaliesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder.java new file mode 100644 index 000000000..d8961f024 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder.java @@ -0,0 +1,134 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchModelDeploymentMonitoringStatsAnomaliesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + java.util.List + getMonitoringStatsList(); + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies getMonitoringStats(int index); + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + int getMonitoringStatsCount(); + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder> + getMonitoringStatsOrBuilderList(); + /** + * + * + *
+   * Stats retrieved for requested objectives.
+   * There are at most 1000
+   * [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats]
+   * in the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies monitoring_stats = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder + getMonitoringStatsOrBuilder(int index); + + /** + * + * + *
+   * The page token that can be used by the next
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The page token that can be used by the next
+   * [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]
+   * call.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java index 3948ee145..a131f4a8c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java @@ -192,9 +192,33 @@ public GradientNoiseSigmaCase getGradientNoiseSigmaCase() { * This is a single float value and will be used to add noise to all the * features. Use this field when all features are normalized to have the * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where - * features are normalized to have 0-mean and 1-variance. For more details - * about normalization: - * https://tinyurl.com/dgc-normalization. + * features are normalized to have 0-mean and 1-variance. Learn more about + * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). + * For best results the recommended value is about 10% - 20% of the standard + * deviation of the input feature. Refer to section 3.2 of the SmoothGrad + * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. + * If the distribution is different per feature, set + * [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead + * for each feature. + *
+ * + * float noise_sigma = 1; + * + * @return Whether the noiseSigma field is set. + */ + @java.lang.Override + public boolean hasNoiseSigma() { + return gradientNoiseSigmaCase_ == 1; + } + /** + * + * + *
+   * This is a single float value and will be used to add noise to all the
+   * features. Use this field when all features are normalized to have the
+   * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
+   * features are normalized to have 0-mean and 1-variance. Learn more about
+   * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
    * For best results the recommended value is about 10% - 20% of the standard
    * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
    * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
@@ -715,9 +739,32 @@ public Builder clearGradientNoiseSigma() {
      * This is a single float value and will be used to add noise to all the
      * features. Use this field when all features are normalized to have the
      * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
-     * features are normalized to have 0-mean and 1-variance. For more details
-     * about normalization:
-     * https://tinyurl.com/dgc-normalization.
+     * features are normalized to have 0-mean and 1-variance. Learn more about
+     * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
+     * For best results the recommended value is about 10% - 20% of the standard
+     * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
+     * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
+     * If the distribution is different per feature, set
+     * [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead
+     * for each feature.
+     * 
+ * + * float noise_sigma = 1; + * + * @return Whether the noiseSigma field is set. + */ + public boolean hasNoiseSigma() { + return gradientNoiseSigmaCase_ == 1; + } + /** + * + * + *
+     * This is a single float value and will be used to add noise to all the
+     * features. Use this field when all features are normalized to have the
+     * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
+     * features are normalized to have 0-mean and 1-variance. Learn more about
+     * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
      * For best results the recommended value is about 10% - 20% of the standard
      * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
      * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
@@ -743,9 +790,8 @@ public float getNoiseSigma() {
      * This is a single float value and will be used to add noise to all the
      * features. Use this field when all features are normalized to have the
      * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
-     * features are normalized to have 0-mean and 1-variance. For more details
-     * about normalization:
-     * https://tinyurl.com/dgc-normalization.
+     * features are normalized to have 0-mean and 1-variance. Learn more about
+     * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
      * For best results the recommended value is about 10% - 20% of the standard
      * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
      * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
@@ -772,9 +818,8 @@ public Builder setNoiseSigma(float value) {
      * This is a single float value and will be used to add noise to all the
      * features. Use this field when all features are normalized to have the
      * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
-     * features are normalized to have 0-mean and 1-variance. For more details
-     * about normalization:
-     * https://tinyurl.com/dgc-normalization.
+     * features are normalized to have 0-mean and 1-variance. Learn more about
+     * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
      * For best results the recommended value is about 10% - 20% of the standard
      * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
      * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfigOrBuilder.java
index fd7bd2dfe..d05b529bb 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfigOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfigOrBuilder.java
@@ -30,9 +30,30 @@ public interface SmoothGradConfigOrBuilder
    * This is a single float value and will be used to add noise to all the
    * features. Use this field when all features are normalized to have the
    * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
-   * features are normalized to have 0-mean and 1-variance. For more details
-   * about normalization:
-   * https://tinyurl.com/dgc-normalization.
+   * features are normalized to have 0-mean and 1-variance. Learn more about
+   * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
+   * For best results the recommended value is about 10% - 20% of the standard
+   * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
+   * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
+   * If the distribution is different per feature, set
+   * [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead
+   * for each feature.
+   * 
+ * + * float noise_sigma = 1; + * + * @return Whether the noiseSigma field is set. + */ + boolean hasNoiseSigma(); + /** + * + * + *
+   * This is a single float value and will be used to add noise to all the
+   * features. Use this field when all features are normalized to have the
+   * same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where
+   * features are normalized to have 0-mean and 1-variance. Learn more about
+   * [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization).
    * For best results the recommended value is about 10% - 20% of the standard
    * deviation of the input feature. Refer to section 3.2 of the SmoothGrad
    * paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java
index beabbcd17..8e0ca1d21 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java
@@ -1,5 +1,5 @@
 /*
- * 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/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java
new file mode 100644
index 000000000..2b388fb24
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.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/v1beta1/vizier_service.proto
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * Request message for [VizierService.StopTrial][google.cloud.aiplatform.v1beta1.VizierService.StopTrial].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StopTrialRequest} + */ +public final class StopTrialRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StopTrialRequest) + StopTrialRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopTrialRequest.newBuilder() to construct. + private StopTrialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StopTrialRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopTrialRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StopTrialRequest( + 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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.StopTrialRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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 Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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.v1beta1.StopTrialRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StopTrialRequest other = + (com.google.cloud.aiplatform.v1beta1.StopTrialRequest) 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.v1beta1.StopTrialRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest 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.StopTrialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest 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.StopTrialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest 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.StopTrialRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest 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.StopTrialRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest 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.StopTrialRequest 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.StopTrialRequest 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.StopTrialRequest 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 [VizierService.StopTrial][google.cloud.aiplatform.v1beta1.VizierService.StopTrial].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StopTrialRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StopTrialRequest) + com.google.cloud.aiplatform.v1beta1.StopTrialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest.class, + com.google.cloud.aiplatform.v1beta1.StopTrialRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.StopTrialRequest.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.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StopTrialRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StopTrialRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StopTrialRequest build() { + com.google.cloud.aiplatform.v1beta1.StopTrialRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StopTrialRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.StopTrialRequest result = + new com.google.cloud.aiplatform.v1beta1.StopTrialRequest(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.v1beta1.StopTrialRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.StopTrialRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StopTrialRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.StopTrialRequest.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.v1beta1.StopTrialRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StopTrialRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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 Trial's name.
+     * Format:
+     * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+     * 
+ * + * + * 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.v1beta1.StopTrialRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StopTrialRequest) + private static final com.google.cloud.aiplatform.v1beta1.StopTrialRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StopTrialRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.StopTrialRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopTrialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopTrialRequest(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.StopTrialRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequestOrBuilder.java new file mode 100644 index 000000000..5b382f401 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface StopTrialRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StopTrialRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Trial's name.
+   * Format:
+   * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
+   * 
+ * + * + * 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-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 new file mode 100644 index 000000000..b69731610 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java @@ -0,0 +1,1304 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [FeaturestoreOnlineServingService.StreamingFeatureValuesRead][].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} + */ +public final class StreamingReadFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + StreamingReadFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingReadFeatureValuesRequest.newBuilder() to construct. + private StreamingReadFeatureValuesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingReadFeatureValuesRequest() { + entityType_ = ""; + entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingReadFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingReadFeatureValuesRequest( + 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(); + + entityType_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entityIds_.add(s); + break; + } + case 26: + { + 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; + } + 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)) { + entityIds_ = entityIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the entities' type.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the entities' type.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList entityIds_; + /** + * + * + *
+   * 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the entityIds. + */ + public com.google.protobuf.ProtocolStringList getEntityIdsList() { + return entityIds_; + } + /** + * + * + *
+   * 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of entityIds. + */ + public int getEntityIdsCount() { + return entityIds_.size(); + } + /** + * + * + *
+   * 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The entityIds at the given index. + */ + public java.lang.String getEntityIds(int index) { + return entityIds_.get(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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the entityIds at the given index. + */ + public com.google.protobuf.ByteString getEntityIdsBytes(int index) { + return entityIds_.getByteString(index); + } + + public static final int FEATURE_SELECTOR_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + @java.lang.Override + public boolean hasFeatureSelector() { + return featureSelector_ != null; + } + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder + getFeatureSelectorOrBuilder() { + return getFeatureSelector(); + } + + 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 (!getEntityTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + for (int i = 0; i < entityIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityIds_.getRaw(i)); + } + if (featureSelector_ != null) { + output.writeMessage(3, getFeatureSelector()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + { + int dataSize = 0; + for (int i = 0; i < entityIds_.size(); i++) { + dataSize += computeStringSizeNoTag(entityIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getEntityIdsList().size(); + } + if (featureSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeatureSelector()); + } + 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.StreamingReadFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getEntityIdsList().equals(other.getEntityIdsList())) return false; + if (hasFeatureSelector() != other.hasFeatureSelector()) return false; + if (hasFeatureSelector()) { + if (!getFeatureSelector().equals(other.getFeatureSelector())) 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_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + if (getEntityIdsCount() > 0) { + hash = (37 * hash) + ENTITY_IDS_FIELD_NUMBER; + hash = (53 * hash) + getEntityIdsList().hashCode(); + } + if (hasFeatureSelector()) { + hash = (37 * hash) + FEATURE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getFeatureSelector().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + 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.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest 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
+   * [FeaturestoreOnlineServingService.StreamingFeatureValuesRead][].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.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(); + entityType_ = ""; + + entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamingReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(this); + int from_bitField0_ = bitField0_; + result.entityType_ = entityType_; + if (((bitField0_ & 0x00000001) != 0)) { + entityIds_ = entityIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entityIds_ = entityIds_; + if (featureSelectorBuilder_ == null) { + result.featureSelector_ = featureSelector_; + } else { + result.featureSelector_ = featureSelectorBuilder_.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.StreamingReadFeatureValuesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + .getDefaultInstance()) return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (!other.entityIds_.isEmpty()) { + if (entityIds_.isEmpty()) { + entityIds_ = other.entityIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntityIdsIsMutable(); + entityIds_.addAll(other.entityIds_); + } + onChanged(); + } + if (other.hasFeatureSelector()) { + mergeFeatureSelector(other.getFeatureSelector()); + } + 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.StreamingReadFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the entities' type.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the entities' type.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the entities' type.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the entities' type.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the entities' type.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be "user".
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList entityIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEntityIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entityIds_ = new com.google.protobuf.LazyStringArrayList(entityIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the entityIds. + */ + public com.google.protobuf.ProtocolStringList getEntityIdsList() { + return entityIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of entityIds. + */ + public int getEntityIdsCount() { + return entityIds_.size(); + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The entityIds at the given index. + */ + public java.lang.String getEntityIds(int index) { + return entityIds_.get(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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the entityIds at the given index. + */ + public com.google.protobuf.ByteString getEntityIdsBytes(int index) { + return entityIds_.getByteString(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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The entityIds to set. + * @return This builder for chaining. + */ + public Builder setEntityIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityIdsIsMutable(); + entityIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityIds to add. + * @return This builder for chaining. + */ + public Builder addEntityIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityIdsIsMutable(); + entityIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The entityIds to add. + * @return This builder for chaining. + */ + public Builder addAllEntityIds(java.lang.Iterable values) { + ensureEntityIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityIds() { + entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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".
+     * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the entityIds to add. + * @return This builder for chaining. + */ + public Builder addEntityIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEntityIdsIsMutable(); + entityIds_.add(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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + public boolean hasFeatureSelector() { + return featureSelectorBuilder_ != null || featureSelector_ != null; + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureSelector() { + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + onChanged(); + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { + + onChanged(); + return getFeatureSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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. Selector choosing Features of the target EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.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_; + } + + @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.StreamingReadFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingReadFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingReadFeatureValuesRequest(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.StreamingReadFeatureValuesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..bef92b329 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface StreamingReadFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the entities' type.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+   * Required. The resource name of the entities' type.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be "user".
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the entityIds. + */ + java.util.List 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of entityIds. + */ + 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The entityIds at the given index. + */ + 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".
+   * 
+ * + * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the entityIds at the given index. + */ + com.google.protobuf.ByteString getEntityIdsBytes(int index); + + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + boolean hasFeatureSelector(); + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector(); + /** + * + * + *
+   * Required. Selector choosing Features of the target EntityType.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java new file mode 100644 index 000000000..ed5672a7d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java @@ -0,0 +1,736 @@ +/* + * 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/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A list of string values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StringArray} + */ +public final class StringArray extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StringArray) + StringArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringArray.newBuilder() to construct. + private StringArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringArray() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringArray(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StringArray( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.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)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_StringArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StringArray.class, + com.google.cloud.aiplatform.v1beta1.StringArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.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 { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().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.StringArray)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StringArray other = + (com.google.cloud.aiplatform.v1beta1.StringArray) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray 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.StringArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray 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.StringArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray 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.StringArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray 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.StringArray parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray 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.StringArray 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.StringArray 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.StringArray 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 string values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StringArray} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StringArray) + com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_StringArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StringArray.class, + com.google.cloud.aiplatform.v1beta1.StringArray.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.StringArray.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(); + values_ = 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.TypesProto + .internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArray getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArray build() { + com.google.cloud.aiplatform.v1beta1.StringArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StringArray buildPartial() { + com.google.cloud.aiplatform.v1beta1.StringArray result = + new com.google.cloud.aiplatform.v1beta1.StringArray(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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.StringArray) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.StringArray) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StringArray other) { + if (other == com.google.cloud.aiplatform.v1beta1.StringArray.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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.StringArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.StringArray) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.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.StringArray) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StringArray) + private static final com.google.cloud.aiplatform.v1beta1.StringArray DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StringArray(); + } + + public static com.google.cloud.aiplatform.v1beta1.StringArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringArray(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.StringArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArrayOrBuilder.java new file mode 100644 index 000000000..d5fade4b8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArrayOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface StringArrayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StringArray) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * A list of string values.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java new file mode 100644 index 000000000..3a470c81c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java @@ -0,0 +1,1946 @@ +/* + * 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/study.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A message representing a Study.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Study} + */ +public final class Study extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Study) + StudyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Study.newBuilder() to construct. + private Study(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Study() { + name_ = ""; + displayName_ = ""; + state_ = 0; + inactiveReason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Study(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Study( + 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(); + + displayName_ = s; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.StudySpec.Builder subBuilder = null; + if (studySpec_ != null) { + subBuilder = studySpec_.toBuilder(); + } + studySpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StudySpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(studySpec_); + studySpec_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + 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 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + inactiveReason_ = 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.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Study.class, + com.google.cloud.aiplatform.v1beta1.Study.Builder.class); + } + + /** + * + * + *
+   * Describes the Study state.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Study.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The study state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The study is active.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The study is stopped due to an internal error.
+     * 
+ * + * INACTIVE = 2; + */ + INACTIVE(2), + /** + * + * + *
+     * The study is done when the service exhausts the parameter search space
+     * or max_trial_count is reached.
+     * 
+ * + * COMPLETED = 3; + */ + COMPLETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The study state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The study is active.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The study is stopped due to an internal error.
+     * 
+ * + * INACTIVE = 2; + */ + public static final int INACTIVE_VALUE = 2; + /** + * + * + *
+     * The study is done when the service exhausts the parameter search space
+     * or max_trial_count is reached.
+     * 
+ * + * COMPLETED = 3; + */ + public static final int COMPLETED_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 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 ACTIVE; + case 2: + return INACTIVE; + case 3: + return COMPLETED; + 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.v1beta1.Study.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.v1beta1.Study.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The name of a study. The study's globally unique identifier.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * 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 name of a study. The study's globally unique identifier.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. Describes the Study, default value is empty string.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. Describes the Study, default value is empty string.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 STUDY_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.StudySpec studySpec_; + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the studySpec field is set. + */ + @java.lang.Override + public boolean hasStudySpec() { + return studySpec_ != null; + } + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The studySpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() { + return studySpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance() + : studySpec_; + } + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() { + return getStudySpec(); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * Output only. The detailed state of a Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.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 a Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Study.State result = + com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int INACTIVE_REASON_FIELD_NUMBER = 6; + private volatile java.lang.Object inactiveReason_; + /** + * + * + *
+   * Output only. A human readable reason why the Study is inactive.
+   * This should be empty if a study is ACTIVE or COMPLETED.
+   * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inactiveReason. + */ + @java.lang.Override + public java.lang.String getInactiveReason() { + java.lang.Object ref = inactiveReason_; + 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(); + inactiveReason_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A human readable reason why the Study is inactive.
+   * This should be empty if a study is ACTIVE or COMPLETED.
+   * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inactiveReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInactiveReasonBytes() { + java.lang.Object ref = inactiveReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inactiveReason_ = 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 (studySpec_ != null) { + output.writeMessage(3, getStudySpec()); + } + if (state_ != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (createTime_ != null) { + output.writeMessage(5, getCreateTime()); + } + if (!getInactiveReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, inactiveReason_); + } + 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 (studySpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStudySpec()); + } + if (state_ != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (!getInactiveReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, inactiveReason_); + } + 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.Study)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Study other = + (com.google.cloud.aiplatform.v1beta1.Study) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasStudySpec() != other.hasStudySpec()) return false; + if (hasStudySpec()) { + if (!getStudySpec().equals(other.getStudySpec())) return false; + } + if (state_ != other.state_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getInactiveReason().equals(other.getInactiveReason())) 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 (hasStudySpec()) { + hash = (37 * hash) + STUDY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getStudySpec().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + INACTIVE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getInactiveReason().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Study 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.Study parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Study 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.Study parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Study 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.Study parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Study 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.Study parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Study 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.Study 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.Study 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.Study 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 message representing a Study.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Study} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Study) + com.google.cloud.aiplatform.v1beta1.StudyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Study.class, + com.google.cloud.aiplatform.v1beta1.Study.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Study.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 (studySpecBuilder_ == null) { + studySpec_ = null; + } else { + studySpec_ = null; + studySpecBuilder_ = null; + } + state_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + inactiveReason_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study build() { + com.google.cloud.aiplatform.v1beta1.Study result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study buildPartial() { + com.google.cloud.aiplatform.v1beta1.Study result = + new com.google.cloud.aiplatform.v1beta1.Study(this); + result.name_ = name_; + result.displayName_ = displayName_; + if (studySpecBuilder_ == null) { + result.studySpec_ = studySpec_; + } else { + result.studySpec_ = studySpecBuilder_.build(); + } + result.state_ = state_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.inactiveReason_ = inactiveReason_; + 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.Study) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Study) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Study other) { + if (other == com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasStudySpec()) { + mergeStudySpec(other.getStudySpec()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getInactiveReason().isEmpty()) { + inactiveReason_ = other.inactiveReason_; + 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.Study parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Study) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The name of a study. The study's globally unique identifier.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * 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 name of a study. The study's globally unique identifier.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * 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 name of a study. The study's globally unique identifier.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * 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 name of a study. The study's globally unique identifier.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * 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 name of a study. The study's globally unique identifier.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. Describes the Study, default value is empty string.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Describes the Study, default value is empty string.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Describes the Study, default value is empty string.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. Describes the Study, default value is empty string.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Describes the Study, default value is empty string.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.cloud.aiplatform.v1beta1.StudySpec studySpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder> + studySpecBuilder_; + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the studySpec field is set. + */ + public boolean hasStudySpec() { + return studySpecBuilder_ != null || studySpec_ != null; + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The studySpec. + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() { + if (studySpecBuilder_ == null) { + return studySpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance() + : studySpec_; + } else { + return studySpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) { + if (studySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + studySpec_ = value; + onChanged(); + } else { + studySpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStudySpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue) { + if (studySpecBuilder_ == null) { + studySpec_ = builderForValue.build(); + onChanged(); + } else { + studySpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) { + if (studySpecBuilder_ == null) { + if (studySpec_ != null) { + studySpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.newBuilder(studySpec_) + .mergeFrom(value) + .buildPartial(); + } else { + studySpec_ = value; + } + onChanged(); + } else { + studySpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStudySpec() { + if (studySpecBuilder_ == null) { + studySpec_ = null; + onChanged(); + } else { + studySpec_ = null; + studySpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec.Builder getStudySpecBuilder() { + + onChanged(); + return getStudySpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() { + if (studySpecBuilder_ != null) { + return studySpecBuilder_.getMessageOrBuilder(); + } else { + return studySpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance() + : studySpec_; + } + } + /** + * + * + *
+     * Required. Configuration of the Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder> + getStudySpecFieldBuilder() { + if (studySpecBuilder_ == null) { + studySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>( + getStudySpec(), getParentForChildren(), isClean()); + studySpec_ = null; + } + return studySpecBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The detailed state of a Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.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 a Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.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 a Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Study.State result = + com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The detailed state of a Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1beta1.Study.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The detailed state of a Study.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + 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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Time at which the study was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 java.lang.Object inactiveReason_ = ""; + /** + * + * + *
+     * Output only. A human readable reason why the Study is inactive.
+     * This should be empty if a study is ACTIVE or COMPLETED.
+     * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inactiveReason. + */ + public java.lang.String getInactiveReason() { + java.lang.Object ref = inactiveReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inactiveReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A human readable reason why the Study is inactive.
+     * This should be empty if a study is ACTIVE or COMPLETED.
+     * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inactiveReason. + */ + public com.google.protobuf.ByteString getInactiveReasonBytes() { + java.lang.Object ref = inactiveReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inactiveReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A human readable reason why the Study is inactive.
+     * This should be empty if a study is ACTIVE or COMPLETED.
+     * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The inactiveReason to set. + * @return This builder for chaining. + */ + public Builder setInactiveReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inactiveReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A human readable reason why the Study is inactive.
+     * This should be empty if a study is ACTIVE or COMPLETED.
+     * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInactiveReason() { + + inactiveReason_ = getDefaultInstance().getInactiveReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A human readable reason why the Study is inactive.
+     * This should be empty if a study is ACTIVE or COMPLETED.
+     * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for inactiveReason to set. + * @return This builder for chaining. + */ + public Builder setInactiveReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inactiveReason_ = 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.Study) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Study) + private static final com.google.cloud.aiplatform.v1beta1.Study DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Study(); + } + + public static com.google.cloud.aiplatform.v1beta1.Study getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Study parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Study(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.Study getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java new file mode 100644 index 000000000..0fe54be7c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java @@ -0,0 +1,223 @@ +/* + * 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 StudyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_STUDY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/studies/{study}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String study; + + @Deprecated + protected StudyName() { + project = null; + location = null; + study = null; + } + + private StudyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + study = Preconditions.checkNotNull(builder.getStudy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStudy() { + return study; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StudyName of(String project, String location, String study) { + return newBuilder().setProject(project).setLocation(location).setStudy(study).build(); + } + + public static String format(String project, String location, String study) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setStudy(study) + .build() + .toString(); + } + + public static StudyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_STUDY.validatedMatch( + formattedString, "StudyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("study")); + } + + 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 (StudyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_STUDY.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 (study != null) { + fieldMapBuilder.put("study", study); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_STUDY.instantiate( + "project", project, "location", location, "study", study); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StudyName that = ((StudyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.study, that.study); + } + 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(study); + return h; + } + + /** Builder for projects/{project}/locations/{location}/studies/{study}. */ + public static class Builder { + private String project; + private String location; + private String study; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStudy() { + return study; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setStudy(String study) { + this.study = study; + return this; + } + + private Builder(StudyName studyName) { + project = studyName.project; + location = studyName.location; + study = studyName.study; + } + + public StudyName build() { + return new StudyName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyOrBuilder.java new file mode 100644 index 000000000..cc90ebe2a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyOrBuilder.java @@ -0,0 +1,212 @@ +/* + * 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/study.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface StudyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Study) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of a study. The study's globally unique identifier.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The name of a study. The study's globally unique identifier.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Describes the Study, default value is empty string.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Describes the Study, default value is empty string.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the studySpec field is set. + */ + boolean hasStudySpec(); + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The studySpec. + */ + com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec(); + /** + * + * + *
+   * Required. Configuration of the Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder(); + + /** + * + * + *
+   * Output only. The detailed state of a Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The detailed state of a Study.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.Study.State getState(); + + /** + * + * + *
+   * Output only. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time at which the study was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. A human readable reason why the Study is inactive.
+   * This should be empty if a study is ACTIVE or COMPLETED.
+   * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inactiveReason. + */ + java.lang.String getInactiveReason(); + /** + * + * + *
+   * Output only. A human readable reason why the Study is inactive.
+   * This should be empty if a study is ACTIVE or COMPLETED.
+   * 
+ * + * string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inactiveReason. + */ + com.google.protobuf.ByteString getInactiveReasonBytes(); +} 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 d769cfb2d..0ff2b1300 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 @@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -79,6 +83,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_ConditionalParameterSpec_CategoricalValueCondition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_ConditionalParameterSpec_CategoricalValueCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_Measurement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,98 +119,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion.proto\032\034google/protobuf/struct.proto" + "\032\037google/protobuf/timestamp.proto\032\036googl" + "e/protobuf/wrappers.proto\032\034google/api/an" - + "notations.proto\"\306\005\n\005Trial\022\017\n\002id\030\002 \001(\tB\003\340" - + "A\003\022@\n\005state\030\003 \001(\0162,.google.cloud.aiplatf" - + "orm.v1beta1.Trial.StateB\003\340A\003\022I\n\nparamete" - + "rs\030\004 \003(\01320.google.cloud.aiplatform.v1bet" - + "a1.Trial.ParameterB\003\340A\003\022L\n\021final_measure" - + "ment\030\005 \001(\0132,.google.cloud.aiplatform.v1b" - + "eta1.MeasurementB\003\340A\003\0223\n\nstart_time\030\007 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010en" - + "d_time\030\010 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022?\n\ncustom_job\030\013 \001(\tB+\340A\003\372A%\n#aipla" - + "tform.googleapis.com/CustomJob\032R\n\tParame" - + "ter\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\003\022*\n\005value\030" - + "\002 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"f\n\005St" - + "ate\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\037aiplatform.goog" - + "leapis.com/Trial\022Fprojects/{project}/loc" - + "ations/{location}/studies/{study}/trials" - + "/{trial}\"\307\024\n\tStudySpec\022K\n\007metrics\030\001 \003(\0132" - + "5.google.cloud.aiplatform.v1beta1.StudyS" - + "pec.MetricSpecB\003\340A\002\022Q\n\nparameters\030\002 \003(\0132" - + "8.google.cloud.aiplatform.v1beta1.StudyS" - + "pec.ParameterSpecB\003\340A\002\022G\n\talgorithm\030\003 \001(" - + "\01624.google.cloud.aiplatform.v1beta1.Stud" - + "ySpec.Algorithm\022V\n\021observation_noise\030\006 \001" - + "(\0162;.google.cloud.aiplatform.v1beta1.Stu" - + "dySpec.ObservationNoise\022g\n\032measurement_s" - + "election_type\030\007 \001(\0162C.google.cloud.aipla" - + "tform.v1beta1.StudySpec.MeasurementSelec" - + "tionType\032\272\001\n\nMetricSpec\022\026\n\tmetric_id\030\001 \001" - + "(\tB\003\340A\002\022Q\n\004goal\030\002 \001(\0162>.google.cloud.aip" - + "latform.v1beta1.StudySpec.MetricSpec.Goa" - + "lTypeB\003\340A\002\"A\n\010GoalType\022\031\n\025GOAL_TYPE_UNSP" - + "ECIFIED\020\000\022\014\n\010MAXIMIZE\020\001\022\014\n\010MINIMIZE\020\002\032\310\r" - + "\n\rParameterSpec\022e\n\021double_value_spec\030\002 \001" - + "(\0132H.google.cloud.aiplatform.v1beta1.Stu" - + "dySpec.ParameterSpec.DoubleValueSpecH\000\022g" - + "\n\022integer_value_spec\030\003 \001(\0132I.google.clou" + + "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.IntegerValueSpecH\000\022o\n\026categorical_v" - + "alue_spec\030\004 \001(\0132M.google.cloud.aiplatfor" - + "m.v1beta1.StudySpec.ParameterSpec.Catego" - + "ricalValueSpecH\000\022i\n\023discrete_value_spec\030" - + "\005 \001(\0132J.google.cloud.aiplatform.v1beta1." - + "StudySpec.ParameterSpec.DiscreteValueSpe" - + "cH\000\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\002\022V\n\nscale_" - + "type\030\006 \001(\0162B.google.cloud.aiplatform.v1b" - + "eta1.StudySpec.ParameterSpec.ScaleType\022v" - + "\n\033conditional_parameter_specs\030\n \003(\0132Q.go" - + "ogle.cloud.aiplatform.v1beta1.StudySpec." - + "ParameterSpec.ConditionalParameterSpec\032A" - + "\n\017DoubleValueSpec\022\026\n\tmin_value\030\001 \001(\001B\003\340A" - + "\002\022\026\n\tmax_value\030\002 \001(\001B\003\340A\002\032B\n\020IntegerValu" - + "eSpec\022\026\n\tmin_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_val" - + "ue\030\002 \001(\003B\003\340A\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\030ConditionalPara" - + "meterSpec\022\212\001\n\026parent_discrete_values\030\002 \001" - + "(\0132h.google.cloud.aiplatform.v1beta1.Stu" - + "dySpec.ParameterSpec.ConditionalParamete" - + "rSpec.DiscreteValueConditionH\000\022\200\001\n\021paren" - + "t_int_values\030\003 \001(\0132c.google.cloud.aiplat" - + "form.v1beta1.StudySpec.ParameterSpec.Con" - + "ditionalParameterSpec.IntValueConditionH" - + "\000\022\220\001\n\031parent_categorical_values\030\004 \001(\0132k." - + "google.cloud.aiplatform.v1beta1.StudySpe" - + "c.ParameterSpec.ConditionalParameterSpec" - + ".CategoricalValueConditionH\000\022U\n\016paramete" - + "r_spec\030\001 \001(\01328.google.cloud.aiplatform.v" - + "1beta1.StudySpec.ParameterSpecB\003\340A\002\032-\n\026D" - + "iscreteValueCondition\022\023\n\006values\030\001 \003(\001B\003\340" - + "A\002\032(\n\021IntValueCondition\022\023\n\006values\030\001 \003(\003B" - + "\003\340A\002\0320\n\031CategoricalValueCondition\022\023\n\006val" - + "ues\030\001 \003(\tB\003\340A\002B\030\n\026parent_value_condition" - + "\"n\n\tScaleType\022\032\n\026SCALE_TYPE_UNSPECIFIED\020" - + "\000\022\025\n\021UNIT_LINEAR_SCALE\020\001\022\022\n\016UNIT_LOG_SCA" - + "LE\020\002\022\032\n\026UNIT_REVERSE_LOG_SCALE\020\003B\026\n\024para" - + "meter_value_spec\"J\n\tAlgorithm\022\031\n\025ALGORIT" - + "HM_UNSPECIFIED\020\000\022\017\n\013GRID_SEARCH\020\002\022\021\n\rRAN" - + "DOM_SEARCH\020\003\"H\n\020ObservationNoise\022!\n\035OBSE" - + "RVATION_NOISE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004" - + "HIGH\020\002\"r\n\030MeasurementSelectionType\022*\n&ME" - + "ASUREMENT_SELECTION_TYPE_UNSPECIFIED\020\000\022\024" - + "\n\020LAST_MEASUREMENT\020\001\022\024\n\020BEST_MEASUREMENT" - + "\020\002\"\247\001\n\013Measurement\022\027\n\nstep_count\030\002 \001(\003B\003" - + "\340A\003\022I\n\007metrics\030\003 \003(\01323.google.cloud.aipl" - + "atform.v1beta1.Measurement.MetricB\003\340A\003\0324" - + "\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005valu" - + "e\030\002 \001(\001B\003\340A\003B~\n#com.google.cloud.aiplatf" - + "orm.v1beta1B\nStudyProtoP\001ZIgoogle.golang" - + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1beta1;aiplatformb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -208,13 +256,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.WrappersProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }); - internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "StudySpec", "State", "CreateTime", "InactiveReason", + }); + internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_Trial_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_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_v1beta1_Trial_Parameter_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor.getNestedTypes().get(0); @@ -225,12 +291,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ParameterId", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor, new java.lang.String[] { - "Metrics", "Parameters", "Algorithm", "ObservationNoise", "MeasurementSelectionType", + "DecayCurveStoppingSpec", + "MedianAutomatedStoppingSpec", + "ConvexStopConfig", + "Metrics", + "Parameters", + "Algorithm", + "ObservationNoise", + "MeasurementSelectionType", + "AutomatedStoppingSpec", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MetricSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor @@ -343,13 +417,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Values", }); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor, + new java.lang.String[] { + "UseElapsedDuration", + }); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor, + new java.lang.String[] { + "UseElapsedDuration", + }); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor, + new java.lang.String[] { + "MaxNumSteps", + "MinNumSteps", + "AutoregressiveOrder", + "LearningRateParameterName", + "UseSeconds", + }); internal_static_google_cloud_aiplatform_v1beta1_Measurement_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1beta1_Measurement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Measurement_descriptor, new java.lang.String[] { - "StepCount", "Metrics", + "ElapsedDuration", "StepCount", "Metrics", }); internal_static_google_cloud_aiplatform_v1beta1_Measurement_Metric_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Measurement_descriptor 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 4b8c8ce8b..5b0380a16 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 @@ -110,6 +110,54 @@ private StudySpec( algorithm_ = rawValue; break; } + case 34: + { + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder + subBuilder = null; + if (automatedStoppingSpecCase_ == 4) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_) + .toBuilder(); + } + automatedStoppingSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_); + automatedStoppingSpec_ = subBuilder.buildPartial(); + } + automatedStoppingSpecCase_ = 4; + break; + } + case 42: + { + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder + subBuilder = null; + if (automatedStoppingSpecCase_ == 5) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_) + .toBuilder(); + } + automatedStoppingSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_); + automatedStoppingSpec_ = subBuilder.buildPartial(); + } + automatedStoppingSpecCase_ = 5; + break; + } case 48: { int rawValue = input.readEnum(); @@ -124,6 +172,29 @@ private StudySpec( measurementSelectionType_ = rawValue; break; } + case 66: + { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder subBuilder = + null; + if (automatedStoppingSpecCase_ == 8) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_) + .toBuilder(); + } + automatedStoppingSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_); + automatedStoppingSpec_ = subBuilder.buildPartial(); + } + automatedStoppingSpecCase_ = 8; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -178,7 +249,9 @@ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The default algorithm used by AI Platform Optimization service.
+     * The default algorithm used by Vertex AI for [hyperparameter
+     * tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview)
+     * and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier).
      * 
* * ALGORITHM_UNSPECIFIED = 0; @@ -212,7 +285,9 @@ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The default algorithm used by AI Platform Optimization service.
+     * The default algorithm used by Vertex AI for [hyperparameter
+     * tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview)
+     * and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier).
      * 
* * ALGORITHM_UNSPECIFIED = 0; @@ -339,7 +414,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * The default noise level chosen by the AI Platform service.
+     * The default noise level chosen by Vertex AI.
      * 
* * OBSERVATION_NOISE_UNSPECIFIED = 0; @@ -349,7 +424,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier assumes that the objective function is (nearly)
+     * Vertex AI assumes that the objective function is (nearly)
      * perfectly reproducible, and will never repeat the same Trial
      * parameters.
      * 
@@ -361,7 +436,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier will estimate the amount of noise in metric
+     * Vertex AI will estimate the amount of noise in metric
      * evaluations, it may repeat the same Trial parameters more than once.
      * 
* @@ -375,7 +450,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * The default noise level chosen by the AI Platform service.
+     * The default noise level chosen by Vertex AI.
      * 
* * OBSERVATION_NOISE_UNSPECIFIED = 0; @@ -385,7 +460,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier assumes that the objective function is (nearly)
+     * Vertex AI assumes that the objective function is (nearly)
      * perfectly reproducible, and will never repeat the same Trial
      * parameters.
      * 
@@ -397,7 +472,7 @@ public enum ObservationNoise implements com.google.protobuf.ProtocolMessageEnum * * *
-     * AI Platform Vizier will estimate the amount of noise in metric
+     * Vertex AI will estimate the amount of noise in metric
      * evaluations, it may repeat the same Trial parameters more than once.
      * 
* @@ -13134,241 +13209,2854 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec getDefaultIns } } - public static final int METRICS_FIELD_NUMBER = 1; - private java.util.List metrics_; - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * Required. Metric specs for the Study.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpecOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } + public interface DecayCurveAutomatedStoppingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + com.google.protobuf.MessageOrBuilder { - public static final int PARAMETERS_FIELD_NUMBER = 2; - private java.util.List parameters_; - /** - * - * - *
-   * Required. The set of parameters to tune.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getParametersList() { - return parameters_; - } - /** - * - * - *
-   * Required. The set of parameters to tune.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder> - getParametersOrBuilderList() { - return parameters_; - } - /** - * - * - *
-   * Required. The set of parameters to tune.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getParametersCount() { - return parameters_.size(); - } - /** - * - * - *
-   * Required. The set of parameters to tune.
-   * 
- * - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec getParameters(int index) { - return parameters_.get(index); + /** + * + * + *
+     * True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each
+     * Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used
+     * as the x-axis.
+     * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + boolean getUseElapsedDuration(); } /** * * *
-   * Required. The set of parameters to tune.
+   * The decay curve automated stopping rule builds a Gaussian Process
+   * Regressor to predict the final objective value of a Trial based on the
+   * already completed Trials and the intermediate measurements of the current
+   * Trial. Early stopping is requested for the current Trial if there is very
+   * low probability to exceed the optimal value found so far.
    * 
* - * - * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder - getParametersOrBuilder(int index) { - return parameters_.get(index); - } + public static final class DecayCurveAutomatedStoppingSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + DecayCurveAutomatedStoppingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DecayCurveAutomatedStoppingSpec.newBuilder() to construct. + private DecayCurveAutomatedStoppingSpec( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int ALGORITHM_FIELD_NUMBER = 3; - private int algorithm_; - /** - * - * - *
-   * The search algorithm specified for the Study.
-   * 
- * - * .google.cloud.aiplatform.v1beta1.StudySpec.Algorithm algorithm = 3; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-   * The search algorithm specified for the Study.
-   * 
- * - * .google.cloud.aiplatform.v1beta1.StudySpec.Algorithm algorithm = 3; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm result = - com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.UNRECOGNIZED - : result; - } + private DecayCurveAutomatedStoppingSpec() {} - public static final int OBSERVATION_NOISE_FIELD_NUMBER = 6; - private int observationNoise_; - /** - * - * - *
-   * The observation noise level of the study.
-   * Currently only supported by the Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
-   * 
- * - * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; - * - * @return The enum numeric value on the wire for observationNoise. - */ - @java.lang.Override - public int getObservationNoiseValue() { - return observationNoise_; - } - /** - * - * - *
-   * The observation noise level of the study.
-   * Currently only supported by the Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
-   * 
- * - * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; - * - * @return The observationNoise. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise getObservationNoise() { - @SuppressWarnings("deprecation") + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DecayCurveAutomatedStoppingSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DecayCurveAutomatedStoppingSpec( + 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: + { + useElapsedDuration_ = 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.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder + .class); + } + + public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; + private boolean useElapsedDuration_; + /** + * + * + *
+     * True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each
+     * Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used
+     * as the x-axis.
+     * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + + 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 (useElapsedDuration_ != false) { + output.writeBool(1, useElapsedDuration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useElapsedDuration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useElapsedDuration_); + } + 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.StudySpec.DecayCurveAutomatedStoppingSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec other = + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) obj; + + if (getUseElapsedDuration() != other.getUseElapsedDuration()) 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) + USE_ELAPSED_DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseElapsedDuration()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec + 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.StudySpec.DecayCurveAutomatedStoppingSpec 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 decay curve automated stopping rule builds a Gaussian Process
+     * Regressor to predict the final objective value of a Trial based on the
+     * already completed Trials and the intermediate measurements of the current
+     * Trial. Early stopping is requested for the current Trial if there is very
+     * low probability to exceed the optimal value found so far.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.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(); + useElapsedDuration_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_DecayCurveAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec build() { + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec result = + new com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(this); + result.useElapsedDuration_ = useElapsedDuration_; + 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.StudySpec.DecayCurveAutomatedStoppingSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance()) return this; + if (other.getUseElapsedDuration() != false) { + setUseElapsedDuration(other.getUseElapsedDuration()); + } + 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.StudySpec.DecayCurveAutomatedStoppingSpec + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useElapsedDuration_; + /** + * + * + *
+       * True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each
+       * Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used
+       * as the x-axis.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + /** + * + * + *
+       * True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each
+       * Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used
+       * as the x-axis.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @param value The useElapsedDuration to set. + * @return This builder for chaining. + */ + public Builder setUseElapsedDuration(boolean value) { + + useElapsedDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each
+       * Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used
+       * as the x-axis.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseElapsedDuration() { + + useElapsedDuration_ = 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.StudySpec.DecayCurveAutomatedStoppingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + private static final com.google.cloud.aiplatform.v1beta1.StudySpec + .DecayCurveAutomatedStoppingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DecayCurveAutomatedStoppingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DecayCurveAutomatedStoppingSpec(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.StudySpec.DecayCurveAutomatedStoppingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MedianAutomatedStoppingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * True if median automated stopping rule applies on
+     * [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration
+     * field of latest measurement of current Trial is used to compute median
+     * objective value for each completed Trials.
+     * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + boolean getUseElapsedDuration(); + } + /** + * + * + *
+   * The median automated stopping rule stops a pending Trial if the Trial's
+   * best objective_value is strictly below the median 'performance' of all
+   * completed Trials reported up to the Trial's last measurement.
+   * Currently, 'performance' refers to the running average of the objective
+   * values reported by the Trial in each measurement.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} + */ + public static final class MedianAutomatedStoppingSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + MedianAutomatedStoppingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use MedianAutomatedStoppingSpec.newBuilder() to construct. + private MedianAutomatedStoppingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MedianAutomatedStoppingSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MedianAutomatedStoppingSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MedianAutomatedStoppingSpec( + 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: + { + useElapsedDuration_ = 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.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder + .class); + } + + public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; + private boolean useElapsedDuration_; + /** + * + * + *
+     * True if median automated stopping rule applies on
+     * [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration
+     * field of latest measurement of current Trial is used to compute median
+     * objective value for each completed Trials.
+     * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + + 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 (useElapsedDuration_ != false) { + output.writeBool(1, useElapsedDuration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useElapsedDuration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useElapsedDuration_); + } + 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.StudySpec.MedianAutomatedStoppingSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec other = + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) obj; + + if (getUseElapsedDuration() != other.getUseElapsedDuration()) 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) + USE_ELAPSED_DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseElapsedDuration()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec + 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.StudySpec.MedianAutomatedStoppingSpec 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 median automated stopping rule stops a pending Trial if the Trial's
+     * best objective_value is strictly below the median 'performance' of all
+     * completed Trials reported up to the Trial's last measurement.
+     * Currently, 'performance' refers to the running average of the objective
+     * values reported by the Trial in each measurement.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.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(); + useElapsedDuration_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_MedianAutomatedStoppingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec build() { + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec result = + new com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(this); + result.useElapsedDuration_ = useElapsedDuration_; + 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.StudySpec.MedianAutomatedStoppingSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance()) return this; + if (other.getUseElapsedDuration() != false) { + setUseElapsedDuration(other.getUseElapsedDuration()); + } + 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.StudySpec.MedianAutomatedStoppingSpec parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useElapsedDuration_; + /** + * + * + *
+       * True if median automated stopping rule applies on
+       * [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration
+       * field of latest measurement of current Trial is used to compute median
+       * objective value for each completed Trials.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @return The useElapsedDuration. + */ + @java.lang.Override + public boolean getUseElapsedDuration() { + return useElapsedDuration_; + } + /** + * + * + *
+       * True if median automated stopping rule applies on
+       * [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration
+       * field of latest measurement of current Trial is used to compute median
+       * objective value for each completed Trials.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @param value The useElapsedDuration to set. + * @return This builder for chaining. + */ + public Builder setUseElapsedDuration(boolean value) { + + useElapsedDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * True if median automated stopping rule applies on
+       * [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration
+       * field of latest measurement of current Trial is used to compute median
+       * objective value for each completed Trials.
+       * 
+ * + * bool use_elapsed_duration = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseElapsedDuration() { + + useElapsedDuration_ = 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.StudySpec.MedianAutomatedStoppingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + private static final com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MedianAutomatedStoppingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MedianAutomatedStoppingSpec(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.StudySpec.MedianAutomatedStoppingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConvexStopConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Steps used in predicting the final objective for early stopped trials. In
+     * general, it's set to be the same as the defined steps in training /
+     * tuning. When use_steps is false, this field is set to the maximum elapsed
+     * seconds.
+     * 
+ * + * int64 max_num_steps = 1; + * + * @return The maxNumSteps. + */ + long getMaxNumSteps(); + + /** + * + * + *
+     * Minimum number of steps for a trial to complete. Trials which do not have
+     * a measurement with num_steps > min_num_steps won't be considered for
+     * early stopping. It's ok to set it to 0, and a trial can be early stopped
+     * at any stage. By default, min_num_steps is set to be one-tenth of the
+     * max_num_steps.
+     * When use_steps is false, this field is set to the minimum elapsed
+     * seconds.
+     * 
+ * + * int64 min_num_steps = 2; + * + * @return The minNumSteps. + */ + long getMinNumSteps(); + + /** + * + * + *
+     * The number of Trial measurements used in autoregressive model for
+     * value prediction. A trial won't be considered early stopping if has fewer
+     * measurement points.
+     * 
+ * + * int64 autoregressive_order = 3; + * + * @return The autoregressiveOrder. + */ + long getAutoregressiveOrder(); + + /** + * + * + *
+     * The hyper-parameter name used in the tuning job that stands for learning
+     * rate. Leave it blank if learning rate is not in a parameter in tuning.
+     * The learning_rate is used to estimate the objective value of the ongoing
+     * trial.
+     * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The learningRateParameterName. + */ + java.lang.String getLearningRateParameterName(); + /** + * + * + *
+     * The hyper-parameter name used in the tuning job that stands for learning
+     * rate. Leave it blank if learning rate is not in a parameter in tuning.
+     * The learning_rate is used to estimate the objective value of the ongoing
+     * trial.
+     * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The bytes for learningRateParameterName. + */ + com.google.protobuf.ByteString getLearningRateParameterNameBytes(); + + /** + * + * + *
+     * This bool determines whether or not the rule is applied based on
+     * elapsed_secs or steps. If use_seconds==false, the early stopping decision
+     * is made according to the predicted objective values according to the
+     * target steps. If use_seconds==true, elapsed_secs is used instead of
+     * steps. Also, in this case, the parameters max_num_steps and min_num_steps
+     * are overloaded to contain max_elapsed_seconds and min_elapsed_seconds.
+     * 
+ * + * bool use_seconds = 5; + * + * @return The useSeconds. + */ + boolean getUseSeconds(); + } + /** + * + * + *
+   * Configuration for ConvexStopPolicy.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} + */ + public static final class ConvexStopConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + ConvexStopConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvexStopConfig.newBuilder() to construct. + private ConvexStopConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConvexStopConfig() { + learningRateParameterName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConvexStopConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConvexStopConfig( + 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: + { + maxNumSteps_ = input.readInt64(); + break; + } + case 16: + { + minNumSteps_ = input.readInt64(); + break; + } + case 24: + { + autoregressiveOrder_ = input.readInt64(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + learningRateParameterName_ = s; + break; + } + case 40: + { + useSeconds_ = 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.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder.class); + } + + public static final int MAX_NUM_STEPS_FIELD_NUMBER = 1; + private long maxNumSteps_; + /** + * + * + *
+     * Steps used in predicting the final objective for early stopped trials. In
+     * general, it's set to be the same as the defined steps in training /
+     * tuning. When use_steps is false, this field is set to the maximum elapsed
+     * seconds.
+     * 
+ * + * int64 max_num_steps = 1; + * + * @return The maxNumSteps. + */ + @java.lang.Override + public long getMaxNumSteps() { + return maxNumSteps_; + } + + public static final int MIN_NUM_STEPS_FIELD_NUMBER = 2; + private long minNumSteps_; + /** + * + * + *
+     * Minimum number of steps for a trial to complete. Trials which do not have
+     * a measurement with num_steps > min_num_steps won't be considered for
+     * early stopping. It's ok to set it to 0, and a trial can be early stopped
+     * at any stage. By default, min_num_steps is set to be one-tenth of the
+     * max_num_steps.
+     * When use_steps is false, this field is set to the minimum elapsed
+     * seconds.
+     * 
+ * + * int64 min_num_steps = 2; + * + * @return The minNumSteps. + */ + @java.lang.Override + public long getMinNumSteps() { + return minNumSteps_; + } + + public static final int AUTOREGRESSIVE_ORDER_FIELD_NUMBER = 3; + private long autoregressiveOrder_; + /** + * + * + *
+     * The number of Trial measurements used in autoregressive model for
+     * value prediction. A trial won't be considered early stopping if has fewer
+     * measurement points.
+     * 
+ * + * int64 autoregressive_order = 3; + * + * @return The autoregressiveOrder. + */ + @java.lang.Override + public long getAutoregressiveOrder() { + return autoregressiveOrder_; + } + + public static final int LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object learningRateParameterName_; + /** + * + * + *
+     * The hyper-parameter name used in the tuning job that stands for learning
+     * rate. Leave it blank if learning rate is not in a parameter in tuning.
+     * The learning_rate is used to estimate the objective value of the ongoing
+     * trial.
+     * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The learningRateParameterName. + */ + @java.lang.Override + public java.lang.String getLearningRateParameterName() { + java.lang.Object ref = learningRateParameterName_; + 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(); + learningRateParameterName_ = s; + return s; + } + } + /** + * + * + *
+     * The hyper-parameter name used in the tuning job that stands for learning
+     * rate. Leave it blank if learning rate is not in a parameter in tuning.
+     * The learning_rate is used to estimate the objective value of the ongoing
+     * trial.
+     * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The bytes for learningRateParameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { + java.lang.Object ref = learningRateParameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + learningRateParameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_SECONDS_FIELD_NUMBER = 5; + private boolean useSeconds_; + /** + * + * + *
+     * This bool determines whether or not the rule is applied based on
+     * elapsed_secs or steps. If use_seconds==false, the early stopping decision
+     * is made according to the predicted objective values according to the
+     * target steps. If use_seconds==true, elapsed_secs is used instead of
+     * steps. Also, in this case, the parameters max_num_steps and min_num_steps
+     * are overloaded to contain max_elapsed_seconds and min_elapsed_seconds.
+     * 
+ * + * bool use_seconds = 5; + * + * @return The useSeconds. + */ + @java.lang.Override + public boolean getUseSeconds() { + return useSeconds_; + } + + 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 (maxNumSteps_ != 0L) { + output.writeInt64(1, maxNumSteps_); + } + if (minNumSteps_ != 0L) { + output.writeInt64(2, minNumSteps_); + } + if (autoregressiveOrder_ != 0L) { + output.writeInt64(3, autoregressiveOrder_); + } + if (!getLearningRateParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, learningRateParameterName_); + } + if (useSeconds_ != false) { + output.writeBool(5, useSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxNumSteps_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxNumSteps_); + } + if (minNumSteps_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minNumSteps_); + } + if (autoregressiveOrder_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, autoregressiveOrder_); + } + if (!getLearningRateParameterNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, learningRateParameterName_); + } + if (useSeconds_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, useSeconds_); + } + 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.StudySpec.ConvexStopConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig other = + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) obj; + + if (getMaxNumSteps() != other.getMaxNumSteps()) return false; + if (getMinNumSteps() != other.getMinNumSteps()) return false; + if (getAutoregressiveOrder() != other.getAutoregressiveOrder()) return false; + if (!getLearningRateParameterName().equals(other.getLearningRateParameterName())) + return false; + if (getUseSeconds() != other.getUseSeconds()) 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) + MAX_NUM_STEPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxNumSteps()); + hash = (37 * hash) + MIN_NUM_STEPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinNumSteps()); + hash = (37 * hash) + AUTOREGRESSIVE_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoregressiveOrder()); + hash = (37 * hash) + LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLearningRateParameterName().hashCode(); + hash = (37 * hash) + USE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseSeconds()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig 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.StudySpec.ConvexStopConfig 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; + } + /** + * + * + *
+     * Configuration for ConvexStopPolicy.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.class, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.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(); + maxNumSteps_ = 0L; + + minNumSteps_ = 0L; + + autoregressiveOrder_ = 0L; + + learningRateParameterName_ = ""; + + useSeconds_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ConvexStopConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig build() { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig result = + new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(this); + result.maxNumSteps_ = maxNumSteps_; + result.minNumSteps_ = minNumSteps_; + result.autoregressiveOrder_ = autoregressiveOrder_; + result.learningRateParameterName_ = learningRateParameterName_; + result.useSeconds_ = useSeconds_; + 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.StudySpec.ConvexStopConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance()) + return this; + if (other.getMaxNumSteps() != 0L) { + setMaxNumSteps(other.getMaxNumSteps()); + } + if (other.getMinNumSteps() != 0L) { + setMinNumSteps(other.getMinNumSteps()); + } + if (other.getAutoregressiveOrder() != 0L) { + setAutoregressiveOrder(other.getAutoregressiveOrder()); + } + if (!other.getLearningRateParameterName().isEmpty()) { + learningRateParameterName_ = other.learningRateParameterName_; + onChanged(); + } + if (other.getUseSeconds() != false) { + setUseSeconds(other.getUseSeconds()); + } + 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.StudySpec.ConvexStopConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxNumSteps_; + /** + * + * + *
+       * Steps used in predicting the final objective for early stopped trials. In
+       * general, it's set to be the same as the defined steps in training /
+       * tuning. When use_steps is false, this field is set to the maximum elapsed
+       * seconds.
+       * 
+ * + * int64 max_num_steps = 1; + * + * @return The maxNumSteps. + */ + @java.lang.Override + public long getMaxNumSteps() { + return maxNumSteps_; + } + /** + * + * + *
+       * Steps used in predicting the final objective for early stopped trials. In
+       * general, it's set to be the same as the defined steps in training /
+       * tuning. When use_steps is false, this field is set to the maximum elapsed
+       * seconds.
+       * 
+ * + * int64 max_num_steps = 1; + * + * @param value The maxNumSteps to set. + * @return This builder for chaining. + */ + public Builder setMaxNumSteps(long value) { + + maxNumSteps_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Steps used in predicting the final objective for early stopped trials. In
+       * general, it's set to be the same as the defined steps in training /
+       * tuning. When use_steps is false, this field is set to the maximum elapsed
+       * seconds.
+       * 
+ * + * int64 max_num_steps = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxNumSteps() { + + maxNumSteps_ = 0L; + onChanged(); + return this; + } + + private long minNumSteps_; + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with num_steps > min_num_steps won't be considered for
+       * early stopping. It's ok to set it to 0, and a trial can be early stopped
+       * at any stage. By default, min_num_steps is set to be one-tenth of the
+       * max_num_steps.
+       * When use_steps is false, this field is set to the minimum elapsed
+       * seconds.
+       * 
+ * + * int64 min_num_steps = 2; + * + * @return The minNumSteps. + */ + @java.lang.Override + public long getMinNumSteps() { + return minNumSteps_; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with num_steps > min_num_steps won't be considered for
+       * early stopping. It's ok to set it to 0, and a trial can be early stopped
+       * at any stage. By default, min_num_steps is set to be one-tenth of the
+       * max_num_steps.
+       * When use_steps is false, this field is set to the minimum elapsed
+       * seconds.
+       * 
+ * + * int64 min_num_steps = 2; + * + * @param value The minNumSteps to set. + * @return This builder for chaining. + */ + public Builder setMinNumSteps(long value) { + + minNumSteps_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Minimum number of steps for a trial to complete. Trials which do not have
+       * a measurement with num_steps > min_num_steps won't be considered for
+       * early stopping. It's ok to set it to 0, and a trial can be early stopped
+       * at any stage. By default, min_num_steps is set to be one-tenth of the
+       * max_num_steps.
+       * When use_steps is false, this field is set to the minimum elapsed
+       * seconds.
+       * 
+ * + * int64 min_num_steps = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinNumSteps() { + + minNumSteps_ = 0L; + onChanged(); + return this; + } + + private long autoregressiveOrder_; + /** + * + * + *
+       * The number of Trial measurements used in autoregressive model for
+       * value prediction. A trial won't be considered early stopping if has fewer
+       * measurement points.
+       * 
+ * + * int64 autoregressive_order = 3; + * + * @return The autoregressiveOrder. + */ + @java.lang.Override + public long getAutoregressiveOrder() { + return autoregressiveOrder_; + } + /** + * + * + *
+       * The number of Trial measurements used in autoregressive model for
+       * value prediction. A trial won't be considered early stopping if has fewer
+       * measurement points.
+       * 
+ * + * int64 autoregressive_order = 3; + * + * @param value The autoregressiveOrder to set. + * @return This builder for chaining. + */ + public Builder setAutoregressiveOrder(long value) { + + autoregressiveOrder_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of Trial measurements used in autoregressive model for
+       * value prediction. A trial won't be considered early stopping if has fewer
+       * measurement points.
+       * 
+ * + * int64 autoregressive_order = 3; + * + * @return This builder for chaining. + */ + public Builder clearAutoregressiveOrder() { + + autoregressiveOrder_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object learningRateParameterName_ = ""; + /** + * + * + *
+       * The hyper-parameter name used in the tuning job that stands for learning
+       * rate. Leave it blank if learning rate is not in a parameter in tuning.
+       * The learning_rate is used to estimate the objective value of the ongoing
+       * trial.
+       * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The learningRateParameterName. + */ + public java.lang.String getLearningRateParameterName() { + java.lang.Object ref = learningRateParameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + learningRateParameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The hyper-parameter name used in the tuning job that stands for learning
+       * rate. Leave it blank if learning rate is not in a parameter in tuning.
+       * The learning_rate is used to estimate the objective value of the ongoing
+       * trial.
+       * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return The bytes for learningRateParameterName. + */ + public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { + java.lang.Object ref = learningRateParameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + learningRateParameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The hyper-parameter name used in the tuning job that stands for learning
+       * rate. Leave it blank if learning rate is not in a parameter in tuning.
+       * The learning_rate is used to estimate the objective value of the ongoing
+       * trial.
+       * 
+ * + * string learning_rate_parameter_name = 4; + * + * @param value The learningRateParameterName to set. + * @return This builder for chaining. + */ + public Builder setLearningRateParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + learningRateParameterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The hyper-parameter name used in the tuning job that stands for learning
+       * rate. Leave it blank if learning rate is not in a parameter in tuning.
+       * The learning_rate is used to estimate the objective value of the ongoing
+       * trial.
+       * 
+ * + * string learning_rate_parameter_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearLearningRateParameterName() { + + learningRateParameterName_ = getDefaultInstance().getLearningRateParameterName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The hyper-parameter name used in the tuning job that stands for learning
+       * rate. Leave it blank if learning rate is not in a parameter in tuning.
+       * The learning_rate is used to estimate the objective value of the ongoing
+       * trial.
+       * 
+ * + * string learning_rate_parameter_name = 4; + * + * @param value The bytes for learningRateParameterName to set. + * @return This builder for chaining. + */ + public Builder setLearningRateParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + learningRateParameterName_ = value; + onChanged(); + return this; + } + + private boolean useSeconds_; + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_seconds==false, the early stopping decision
+       * is made according to the predicted objective values according to the
+       * target steps. If use_seconds==true, elapsed_secs is used instead of
+       * steps. Also, in this case, the parameters max_num_steps and min_num_steps
+       * are overloaded to contain max_elapsed_seconds and min_elapsed_seconds.
+       * 
+ * + * bool use_seconds = 5; + * + * @return The useSeconds. + */ + @java.lang.Override + public boolean getUseSeconds() { + return useSeconds_; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_seconds==false, the early stopping decision
+       * is made according to the predicted objective values according to the
+       * target steps. If use_seconds==true, elapsed_secs is used instead of
+       * steps. Also, in this case, the parameters max_num_steps and min_num_steps
+       * are overloaded to contain max_elapsed_seconds and min_elapsed_seconds.
+       * 
+ * + * bool use_seconds = 5; + * + * @param value The useSeconds to set. + * @return This builder for chaining. + */ + public Builder setUseSeconds(boolean value) { + + useSeconds_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * This bool determines whether or not the rule is applied based on
+       * elapsed_secs or steps. If use_seconds==false, the early stopping decision
+       * is made according to the predicted objective values according to the
+       * target steps. If use_seconds==true, elapsed_secs is used instead of
+       * steps. Also, in this case, the parameters max_num_steps and min_num_steps
+       * are overloaded to contain max_elapsed_seconds and min_elapsed_seconds.
+       * 
+ * + * bool use_seconds = 5; + * + * @return This builder for chaining. + */ + public Builder clearUseSeconds() { + + useSeconds_ = 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.StudySpec.ConvexStopConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + private static final com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvexStopConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConvexStopConfig(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.StudySpec.ConvexStopConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int automatedStoppingSpecCase_ = 0; + private java.lang.Object automatedStoppingSpec_; + + public enum AutomatedStoppingSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DECAY_CURVE_STOPPING_SPEC(4), + MEDIAN_AUTOMATED_STOPPING_SPEC(5), + CONVEX_STOP_CONFIG(8), + AUTOMATEDSTOPPINGSPEC_NOT_SET(0); + private final int value; + + private AutomatedStoppingSpecCase(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 AutomatedStoppingSpecCase valueOf(int value) { + return forNumber(value); + } + + public static AutomatedStoppingSpecCase forNumber(int value) { + switch (value) { + case 4: + return DECAY_CURVE_STOPPING_SPEC; + case 5: + return MEDIAN_AUTOMATED_STOPPING_SPEC; + case 8: + return CONVEX_STOP_CONFIG; + case 0: + return AUTOMATEDSTOPPINGSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AutomatedStoppingSpecCase getAutomatedStoppingSpecCase() { + return AutomatedStoppingSpecCase.forNumber(automatedStoppingSpecCase_); + } + + public static final int DECAY_CURVE_STOPPING_SPEC_FIELD_NUMBER = 4; + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return Whether the decayCurveStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasDecayCurveStoppingSpec() { + return automatedStoppingSpecCase_ == 4; + } + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return The decayCurveStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + getDecayCurveStoppingSpec() { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder + getDecayCurveStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + + public static final int MEDIAN_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER = 5; + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return Whether the medianAutomatedStoppingSpec field is set. + */ + @java.lang.Override + public boolean hasMedianAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 5; + } + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return The medianAutomatedStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + getMedianAutomatedStoppingSpec() { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder + getMedianAutomatedStoppingSpecOrBuilder() { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + + public static final int CONVEX_STOP_CONFIG_FIELD_NUMBER = 8; + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return Whether the convexStopConfig field is set. + */ + @java.lang.Override + public boolean hasConvexStopConfig() { + return automatedStoppingSpecCase_ == 8; + } + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return The convexStopConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig getConvexStopConfig() { + if (automatedStoppingSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder + getConvexStopConfigOrBuilder() { + if (automatedStoppingSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } + + public static final int METRICS_FIELD_NUMBER = 1; + private java.util.List metrics_; + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Required. Metric specs for the Study.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpecOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + private java.util.List parameters_; + /** + * + * + *
+   * Required. The set of parameters to tune.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getParametersList() { + return parameters_; + } + /** + * + * + *
+   * Required. The set of parameters to tune.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder> + getParametersOrBuilderList() { + return parameters_; + } + /** + * + * + *
+   * Required. The set of parameters to tune.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + /** + * + * + *
+   * Required. The set of parameters to tune.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec getParameters(int index) { + return parameters_.get(index); + } + /** + * + * + *
+   * Required. The set of parameters to tune.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder + getParametersOrBuilder(int index) { + return parameters_.get(index); + } + + public static final int ALGORITHM_FIELD_NUMBER = 3; + private int algorithm_; + /** + * + * + *
+   * The search algorithm specified for the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.Algorithm algorithm = 3; + * + * @return The enum numeric value on the wire for algorithm. + */ + @java.lang.Override + public int getAlgorithmValue() { + return algorithm_; + } + /** + * + * + *
+   * The search algorithm specified for the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.Algorithm algorithm = 3; + * + * @return The algorithm. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm result = + com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.valueOf(algorithm_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.UNRECOGNIZED + : result; + } + + public static final int OBSERVATION_NOISE_FIELD_NUMBER = 6; + private int observationNoise_; + /** + * + * + *
+   * The observation noise level of the study.
+   * Currently only supported by the Vizier service. Not supported by
+   * HyperparamterTuningJob or TrainingPipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; + * + * @return The enum numeric value on the wire for observationNoise. + */ + @java.lang.Override + public int getObservationNoiseValue() { + return observationNoise_; + } + /** + * + * + *
+   * The observation noise level of the study.
+   * Currently only supported by the Vizier service. Not supported by
+   * HyperparamterTuningJob or TrainingPipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; + * + * @return The observationNoise. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise getObservationNoise() { + @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise result = com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.valueOf(observationNoise_); return result == null @@ -13445,6 +16133,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, algorithm_); } + if (automatedStoppingSpecCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_); + } + if (automatedStoppingSpecCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_); + } if (observationNoise_ != com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise .OBSERVATION_NOISE_UNSPECIFIED @@ -13457,6 +16157,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(7, measurementSelectionType_); } + if (automatedStoppingSpecCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) automatedStoppingSpec_); + } unknownFields.writeTo(output); } @@ -13477,6 +16182,20 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, algorithm_); } + if (automatedStoppingSpecCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_); + } + if (automatedStoppingSpecCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_); + } if (observationNoise_ != com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise .OBSERVATION_NOISE_UNSPECIFIED @@ -13489,6 +16208,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, measurementSelectionType_); } + if (automatedStoppingSpecCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -13510,6 +16236,21 @@ public boolean equals(final java.lang.Object obj) { if (algorithm_ != other.algorithm_) return false; if (observationNoise_ != other.observationNoise_) return false; if (measurementSelectionType_ != other.measurementSelectionType_) return false; + if (!getAutomatedStoppingSpecCase().equals(other.getAutomatedStoppingSpecCase())) return false; + switch (automatedStoppingSpecCase_) { + case 4: + if (!getDecayCurveStoppingSpec().equals(other.getDecayCurveStoppingSpec())) return false; + break; + case 5: + if (!getMedianAutomatedStoppingSpec().equals(other.getMedianAutomatedStoppingSpec())) + return false; + break; + case 8: + if (!getConvexStopConfig().equals(other.getConvexStopConfig())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -13535,6 +16276,22 @@ public int hashCode() { hash = (53 * hash) + observationNoise_; hash = (37 * hash) + MEASUREMENT_SELECTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + measurementSelectionType_; + switch (automatedStoppingSpecCase_) { + case 4: + hash = (37 * hash) + DECAY_CURVE_STOPPING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDecayCurveStoppingSpec().hashCode(); + break; + case 5: + hash = (37 * hash) + MEDIAN_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMedianAutomatedStoppingSpec().hashCode(); + break; + case 8: + hash = (37 * hash) + CONVEX_STOP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConvexStopConfig().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -13663,235 +16420,1015 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.StudySpec.Builder.class); } - // Construct using com.google.cloud.aiplatform.v1beta1.StudySpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using com.google.cloud.aiplatform.v1beta1.StudySpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricsFieldBuilder(); + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + metricsBuilder_.clear(); + } + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + parametersBuilder_.clear(); + } + algorithm_ = 0; + + observationNoise_ = 0; + + measurementSelectionType_ = 0; + + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec build() { + com.google.cloud.aiplatform.v1beta1.StudySpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.StudySpec result = + new com.google.cloud.aiplatform.v1beta1.StudySpec(this); + int from_bitField0_ = bitField0_; + if (automatedStoppingSpecCase_ == 4) { + if (decayCurveStoppingSpecBuilder_ == null) { + result.automatedStoppingSpec_ = automatedStoppingSpec_; + } else { + result.automatedStoppingSpec_ = decayCurveStoppingSpecBuilder_.build(); + } + } + if (automatedStoppingSpecCase_ == 5) { + if (medianAutomatedStoppingSpecBuilder_ == null) { + result.automatedStoppingSpec_ = automatedStoppingSpec_; + } else { + result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); + } + } + if (automatedStoppingSpecCase_ == 8) { + if (convexStopConfigBuilder_ == null) { + result.automatedStoppingSpec_ = automatedStoppingSpec_; + } else { + result.automatedStoppingSpec_ = convexStopConfigBuilder_.build(); + } + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + result.algorithm_ = algorithm_; + result.observationNoise_ = observationNoise_; + result.measurementSelectionType_ = measurementSelectionType_; + result.automatedStoppingSpecCase_ = automatedStoppingSpecCase_; + 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.StudySpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.StudySpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) return this; + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } + if (other.observationNoise_ != 0) { + setObservationNoiseValue(other.getObservationNoiseValue()); + } + if (other.measurementSelectionType_ != 0) { + setMeasurementSelectionTypeValue(other.getMeasurementSelectionTypeValue()); + } + switch (other.getAutomatedStoppingSpecCase()) { + case DECAY_CURVE_STOPPING_SPEC: + { + mergeDecayCurveStoppingSpec(other.getDecayCurveStoppingSpec()); + break; + } + case MEDIAN_AUTOMATED_STOPPING_SPEC: + { + mergeMedianAutomatedStoppingSpec(other.getMedianAutomatedStoppingSpec()); + break; + } + case CONVEX_STOP_CONFIG: + { + mergeConvexStopConfig(other.getConvexStopConfig()); + break; + } + case AUTOMATEDSTOPPINGSPEC_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.StudySpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.StudySpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int automatedStoppingSpecCase_ = 0; + private java.lang.Object automatedStoppingSpec_; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + public AutomatedStoppingSpecCase getAutomatedStoppingSpecCase() { + return AutomatedStoppingSpecCase.forNumber(automatedStoppingSpecCase_); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMetricsFieldBuilder(); - getParametersFieldBuilder(); - } + public Builder clearAutomatedStoppingSpec() { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + onChanged(); + return this; } + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder> + decayCurveStoppingSpecBuilder_; + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return Whether the decayCurveStoppingSpec field is set. + */ @java.lang.Override - public Builder clear() { - super.clear(); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public boolean hasDecayCurveStoppingSpec() { + return automatedStoppingSpecCase_ == 4; + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return The decayCurveStoppingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + getDecayCurveStoppingSpec() { + if (decayCurveStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); } else { - metricsBuilder_.clear(); + if (automatedStoppingSpecCase_ == 4) { + return decayCurveStoppingSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); } - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + public Builder setDecayCurveStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec value) { + if (decayCurveStoppingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedStoppingSpec_ = value; + onChanged(); } else { - parametersBuilder_.clear(); + decayCurveStoppingSpecBuilder_.setMessage(value); } - algorithm_ = 0; - - observationNoise_ = 0; - - measurementSelectionType_ = 0; - + automatedStoppingSpecCase_ = 4; return this; } - + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + public Builder setDecayCurveStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder + builderForValue) { + if (decayCurveStoppingSpecBuilder_ == null) { + automatedStoppingSpec_ = builderForValue.build(); + onChanged(); + } else { + decayCurveStoppingSpecBuilder_.setMessage(builderForValue.build()); + } + automatedStoppingSpecCase_ = 4; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + public Builder mergeDecayCurveStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec value) { + if (decayCurveStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 4 + && automatedStoppingSpec_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance()) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.StudySpec + .DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + automatedStoppingSpec_ = value; + } + onChanged(); + } else { + if (automatedStoppingSpecCase_ == 4) { + decayCurveStoppingSpecBuilder_.mergeFrom(value); + } + decayCurveStoppingSpecBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 4; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + public Builder clearDecayCurveStoppingSpec() { + if (decayCurveStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 4) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + onChanged(); + } + } else { + if (automatedStoppingSpecCase_ == 4) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + } + decayCurveStoppingSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder + getDecayCurveStoppingSpecBuilder() { + return getDecayCurveStoppingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.StudyProto - .internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor; + public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder + getDecayCurveStoppingSpecOrBuilder() { + if ((automatedStoppingSpecCase_ == 4) && (decayCurveStoppingSpecBuilder_ != null)) { + return decayCurveStoppingSpecBuilder_.getMessageOrBuilder(); + } else { + if (automatedStoppingSpecCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The automated early stopping spec using decay curve rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder> + getDecayCurveStoppingSpecFieldBuilder() { + if (decayCurveStoppingSpecBuilder_ == null) { + if (!(automatedStoppingSpecCase_ == 4)) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .getDefaultInstance(); + } + decayCurveStoppingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec + .DecayCurveAutomatedStoppingSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + automatedStoppingSpec_, + getParentForChildren(), + isClean()); + automatedStoppingSpec_ = null; + } + automatedStoppingSpecCase_ = 4; + onChanged(); + ; + return decayCurveStoppingSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder> + medianAutomatedStoppingSpecBuilder_; + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return Whether the medianAutomatedStoppingSpec field is set. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance(); + public boolean hasMedianAutomatedStoppingSpec() { + return automatedStoppingSpecCase_ == 5; } - + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return The medianAutomatedStoppingSpec. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec build() { - com.google.cloud.aiplatform.v1beta1.StudySpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + getMedianAutomatedStoppingSpec() { + if (medianAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } else { + if (automatedStoppingSpecCase_ == 5) { + return medianAutomatedStoppingSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.StudySpec buildPartial() { - com.google.cloud.aiplatform.v1beta1.StudySpec result = - new com.google.cloud.aiplatform.v1beta1.StudySpec(this); - int from_bitField0_ = bitField0_; - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + public Builder setMedianAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec value) { + if (medianAutomatedStoppingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedStoppingSpec_ = value; + onChanged(); + } else { + medianAutomatedStoppingSpecBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 5; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + public Builder setMedianAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder + builderForValue) { + if (medianAutomatedStoppingSpecBuilder_ == null) { + automatedStoppingSpec_ = builderForValue.build(); + onChanged(); + } else { + medianAutomatedStoppingSpecBuilder_.setMessage(builderForValue.build()); + } + automatedStoppingSpecCase_ = 5; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + public Builder mergeMedianAutomatedStoppingSpec( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec value) { + if (medianAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 5 + && automatedStoppingSpec_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance()) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + automatedStoppingSpec_ = value; + } + onChanged(); + } else { + if (automatedStoppingSpecCase_ == 5) { + medianAutomatedStoppingSpecBuilder_.mergeFrom(value); + } + medianAutomatedStoppingSpecBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 5; + return this; + } + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + public Builder clearMedianAutomatedStoppingSpec() { + if (medianAutomatedStoppingSpecBuilder_ == null) { + if (automatedStoppingSpecCase_ == 5) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; + onChanged(); } - result.metrics_ = metrics_; } else { - result.metrics_ = metricsBuilder_.build(); - } - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); + if (automatedStoppingSpecCase_ == 5) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + medianAutomatedStoppingSpecBuilder_.clear(); } - result.algorithm_ = algorithm_; - result.observationNoise_ = observationNoise_; - result.measurementSelectionType_ = measurementSelectionType_; - onBuilt(); - return result; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder + getMedianAutomatedStoppingSpecBuilder() { + return getMedianAutomatedStoppingSpecFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder + getMedianAutomatedStoppingSpecOrBuilder() { + if ((automatedStoppingSpecCase_ == 5) && (medianAutomatedStoppingSpecBuilder_ != null)) { + return medianAutomatedStoppingSpecBuilder_.getMessageOrBuilder(); + } else { + if (automatedStoppingSpecCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * The automated early stopping spec using median rule.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder> + getMedianAutomatedStoppingSpecFieldBuilder() { + if (medianAutomatedStoppingSpecBuilder_ == null) { + if (!(automatedStoppingSpecCase_ == 5)) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + .getDefaultInstance(); + } + medianAutomatedStoppingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + automatedStoppingSpec_, + getParentForChildren(), + isClean()); + automatedStoppingSpec_ = null; + } + automatedStoppingSpecCase_ = 5; + onChanged(); + ; + return medianAutomatedStoppingSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder> + convexStopConfigBuilder_; + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return Whether the convexStopConfig field is set. + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public boolean hasConvexStopConfig() { + return automatedStoppingSpecCase_ == 8; } - + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return The convexStopConfig. + */ @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.StudySpec.ConvexStopConfig getConvexStopConfig() { + if (convexStopConfigBuilder_ == null) { + if (automatedStoppingSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_; + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } else { + if (automatedStoppingSpecCase_ == 8) { + return convexStopConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + public Builder setConvexStopConfig( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig value) { + if (convexStopConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedStoppingSpec_ = value; + onChanged(); + } else { + convexStopConfigBuilder_.setMessage(value); + } + automatedStoppingSpecCase_ = 8; + return this; } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.StudySpec) { - return mergeFrom((com.google.cloud.aiplatform.v1beta1.StudySpec) other); + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + public Builder setConvexStopConfig( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder builderForValue) { + if (convexStopConfigBuilder_ == null) { + automatedStoppingSpec_ = builderForValue.build(); + onChanged(); } else { - super.mergeFrom(other); - return this; + convexStopConfigBuilder_.setMessage(builderForValue.build()); } + automatedStoppingSpecCase_ = 8; + return this; } - - public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { - if (other == com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) return this; - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + public Builder mergeConvexStopConfig( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig value) { + if (convexStopConfigBuilder_ == null) { + if (automatedStoppingSpecCase_ == 8 + && automatedStoppingSpec_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + .getDefaultInstance()) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.newBuilder( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + automatedStoppingSpec_ = value; } + onChanged(); } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } + if (automatedStoppingSpecCase_ == 8) { + convexStopConfigBuilder_.mergeFrom(value); } + convexStopConfigBuilder_.setMessage(value); } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } + automatedStoppingSpecCase_ = 8; + return this; + } + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + public Builder clearConvexStopConfig() { + if (convexStopConfigBuilder_ == null) { + if (automatedStoppingSpecCase_ == 8) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; onChanged(); } } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } + if (automatedStoppingSpecCase_ == 8) { + automatedStoppingSpecCase_ = 0; + automatedStoppingSpec_ = null; } + convexStopConfigBuilder_.clear(); } - if (other.algorithm_ != 0) { - setAlgorithmValue(other.getAlgorithmValue()); - } - if (other.observationNoise_ != 0) { - setObservationNoiseValue(other.getObservationNoiseValue()); - } - if (other.measurementSelectionType_ != 0) { - setMeasurementSelectionTypeValue(other.getMeasurementSelectionTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder + getConvexStopConfigBuilder() { + return getConvexStopConfigFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ @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.StudySpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.aiplatform.v1beta1.StudySpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder + getConvexStopConfigOrBuilder() { + if ((automatedStoppingSpecCase_ == 8) && (convexStopConfigBuilder_ != null)) { + return convexStopConfigBuilder_.getMessageOrBuilder(); + } else { + if (automatedStoppingSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_; } + return com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); } - return this; } - - private int bitField0_; + /** + * + * + *
+     * The automated early stopping using convex stopping rule.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder> + getConvexStopConfigFieldBuilder() { + if (convexStopConfigBuilder_ == null) { + if (!(automatedStoppingSpecCase_ == 8)) { + automatedStoppingSpec_ = + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.getDefaultInstance(); + } + convexStopConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.Builder, + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + automatedStoppingSpec_, + getParentForChildren(), + isClean()); + automatedStoppingSpec_ = null; + } + automatedStoppingSpecCase_ = 8; + onChanged(); + ; + return convexStopConfigBuilder_; + } private java.util.List metrics_ = java.util.Collections.emptyList(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java index fcbd0fde9..7d1da9d55 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java @@ -23,6 +23,131 @@ public interface StudySpecOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StudySpec) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return Whether the decayCurveStoppingSpec field is set. + */ + boolean hasDecayCurveStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + * + * @return The decayCurveStoppingSpec. + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + getDecayCurveStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using decay curve rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpecOrBuilder + getDecayCurveStoppingSpecOrBuilder(); + + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return Whether the medianAutomatedStoppingSpec field is set. + */ + boolean hasMedianAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + * + * @return The medianAutomatedStoppingSpec. + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + getMedianAutomatedStoppingSpec(); + /** + * + * + *
+   * The automated early stopping spec using median rule.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpecOrBuilder + getMedianAutomatedStoppingSpecOrBuilder(); + + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return Whether the convexStopConfig field is set. + */ + boolean hasConvexStopConfig(); + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + * + * @return The convexStopConfig. + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig getConvexStopConfig(); + /** + * + * + *
+   * The automated early stopping using convex stopping rule.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig convex_stop_config = 8; + * + */ + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfigOrBuilder + getConvexStopConfigOrBuilder(); + /** * * @@ -231,4 +356,7 @@ com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder getParamete */ com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType getMeasurementSelectionType(); + + public com.google.cloud.aiplatform.v1beta1.StudySpec.AutomatedStoppingSpecCase + getAutomatedStoppingSpecCase(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java new file mode 100644 index 000000000..633b53660 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java @@ -0,0 +1,944 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform Trials suggestion.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata} + */ +public final class SuggestTrialsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) + SuggestTrialsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestTrialsMetadata.newBuilder() to construct. + private SuggestTrialsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestTrialsMetadata() { + clientId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestTrialsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SuggestTrialsMetadata( + 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; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .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 suggesting Trials.
+   * 
+ * + * .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 suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object clientId_; + /** + * + * + *
+   * The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 2; + * + * @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; + } + } + /** + * + * + *
+   * The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 2; + * + * @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; + } + } + + 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()); + } + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); + } + 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()); + } + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); + } + 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.SuggestTrialsMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata other = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getClientId().equals(other.getClientId())) 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 = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata 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.SuggestTrialsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata 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.SuggestTrialsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata 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.SuggestTrialsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata 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.SuggestTrialsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata 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.SuggestTrialsMetadata 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.SuggestTrialsMetadata 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.SuggestTrialsMetadata 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 Trials suggestion.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.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; + } + clientId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata build() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata result = + new com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + result.clientId_ = clientId_; + 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.SuggestTrialsMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata.getDefaultInstance()) + return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + 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.SuggestTrialsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) 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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for suggesting Trials.
+     * 
+ * + * .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 suggesting Trials.
+     * 
+ * + * .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_; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
+     * The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 2; + * + * @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; + } + } + /** + * + * + *
+     * The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 2; + * + * @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; + } + } + /** + * + * + *
+     * The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 2; + * + * @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; + } + /** + * + * + *
+     * The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 2; + * + * @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; + } + + @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.SuggestTrialsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) + private static final com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestTrialsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestTrialsMetadata(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.SuggestTrialsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadataOrBuilder.java new file mode 100644 index 000000000..1220c5cd0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadataOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SuggestTrialsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for suggesting Trials.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 2; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+   * The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 2; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java new file mode 100644 index 000000000..234beb3fd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java @@ -0,0 +1,948 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsRequest} + */ +public final class SuggestTrialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) + SuggestTrialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestTrialsRequest.newBuilder() to construct. + private SuggestTrialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestTrialsRequest() { + parent_ = ""; + clientId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestTrialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SuggestTrialsRequest( + 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 16: + { + suggestionCount_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = 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.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The project and location that the Study belongs to.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 project and location that the Study belongs to.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * 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 SUGGESTION_COUNT_FIELD_NUMBER = 2; + private int suggestionCount_; + /** + * + * + *
+   * Required. The number of suggestions requested.
+   * 
+ * + * int32 suggestion_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestionCount. + */ + @java.lang.Override + public int getSuggestionCount() { + return suggestionCount_; + } + + public static final int CLIENT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clientId_; + /** + * + * + *
+   * Required. The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + 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 (suggestionCount_ != 0) { + output.writeInt32(2, suggestionCount_); + } + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientId_); + } + 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 (suggestionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, suggestionCount_); + } + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientId_); + } + 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.SuggestTrialsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest other = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getSuggestionCount() != other.getSuggestionCount()) return false; + if (!getClientId().equals(other.getClientId())) 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) + SUGGESTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionCount(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest 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.SuggestTrialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest 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.SuggestTrialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest 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.SuggestTrialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest 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.SuggestTrialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest 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.SuggestTrialsRequest 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.SuggestTrialsRequest 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.SuggestTrialsRequest 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 [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.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_ = ""; + + suggestionCount_ = 0; + + clientId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest build() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest result = + new com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest(this); + result.parent_ = parent_; + result.suggestionCount_ = suggestionCount_; + result.clientId_ = clientId_; + 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.SuggestTrialsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getSuggestionCount() != 0) { + setSuggestionCount(other.getSuggestionCount()); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + 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.SuggestTrialsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project and location that the Study belongs to.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 project and location that the Study belongs to.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 project and location that the Study belongs to.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 project and location that the Study belongs to.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 project and location that the Study belongs to.
+     * Format: `projects/{project}/locations/{location}/studies/{study}`
+     * 
+ * + * + * 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 int suggestionCount_; + /** + * + * + *
+     * Required. The number of suggestions requested.
+     * 
+ * + * int32 suggestion_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestionCount. + */ + @java.lang.Override + public int getSuggestionCount() { + return suggestionCount_; + } + /** + * + * + *
+     * Required. The number of suggestions requested.
+     * 
+ * + * int32 suggestion_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The suggestionCount to set. + * @return This builder for chaining. + */ + public Builder setSuggestionCount(int value) { + + suggestionCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The number of suggestions requested.
+     * 
+ * + * int32 suggestion_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSuggestionCount() { + + suggestionCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
+     * Required. The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The identifier of the client that is requesting the suggestion.
+     * If multiple SuggestTrialsRequests have the same `client_id`,
+     * the service will return the identical suggested Trial if the Trial is
+     * pending, and provide a new Trial if the last suggested Trial was completed.
+     * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + @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.SuggestTrialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) + private static final com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestTrialsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestTrialsRequest(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.SuggestTrialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequestOrBuilder.java new file mode 100644 index 000000000..263ae7d57 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequestOrBuilder.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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SuggestTrialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuggestTrialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location that the Study belongs to.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project and location that the Study belongs to.
+   * Format: `projects/{project}/locations/{location}/studies/{study}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The number of suggestions requested.
+   * 
+ * + * int32 suggestion_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestionCount. + */ + int getSuggestionCount(); + + /** + * + * + *
+   * Required. The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+   * Required. The identifier of the client that is requesting the suggestion.
+   * If multiple SuggestTrialsRequests have the same `client_id`,
+   * the service will return the identical suggested Trial if the Trial is
+   * pending, and provide a new Trial if the last suggested Trial was completed.
+   * 
+ * + * string client_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java new file mode 100644 index 000000000..c057a429c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java @@ -0,0 +1,1638 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsResponse} + */ +public final class SuggestTrialsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) + SuggestTrialsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestTrialsResponse.newBuilder() to construct. + private SuggestTrialsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestTrialsResponse() { + trials_ = java.util.Collections.emptyList(); + studyState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestTrialsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SuggestTrialsResponse( + 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)) { + trials_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + trials_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Trial.parser(), extensionRegistry)); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + studyState_ = rawValue; + break; + } + case 26: + { + 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 34: + { + 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; + } + 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)) { + trials_ = java.util.Collections.unmodifiableList(trials_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.Builder.class); + } + + public static final int TRIALS_FIELD_NUMBER = 1; + private java.util.List trials_; + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public java.util.List getTrialsList() { + return trials_; + } + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public java.util.List + getTrialsOrBuilderList() { + return trials_; + } + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public int getTrialsCount() { + return trials_.size(); + } + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) { + return trials_.get(index); + } + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) { + return trials_.get(index); + } + + public static final int STUDY_STATE_FIELD_NUMBER = 2; + private int studyState_; + /** + * + * + *
+   * The state of the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The enum numeric value on the wire for studyState. + */ + @java.lang.Override + public int getStudyStateValue() { + return studyState_; + } + /** + * + * + *
+   * The state of the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The studyState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study.State getStudyState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Study.State result = + com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(studyState_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 < trials_.size(); i++) { + output.writeMessage(1, trials_.get(i)); + } + if (studyState_ + != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, studyState_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(4, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trials_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, trials_.get(i)); + } + if (studyState_ + != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, studyState_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + } + 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.SuggestTrialsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse other = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) obj; + + if (!getTrialsList().equals(other.getTrialsList())) return false; + if (studyState_ != other.studyState_) 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 (!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 (getTrialsCount() > 0) { + hash = (37 * hash) + TRIALS_FIELD_NUMBER; + hash = (53 * hash) + getTrialsList().hashCode(); + } + hash = (37 * hash) + STUDY_STATE_FIELD_NUMBER; + hash = (53 * hash) + studyState_; + 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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse 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.SuggestTrialsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse 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.SuggestTrialsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse 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.SuggestTrialsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse 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.SuggestTrialsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse 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.SuggestTrialsResponse 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.SuggestTrialsResponse 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.SuggestTrialsResponse 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 [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuggestTrialsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.class, + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTrialsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (trialsBuilder_ == null) { + trials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + trialsBuilder_.clear(); + } + studyState_ = 0; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VizierServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse build() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse result = + new com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse(this); + int from_bitField0_ = bitField0_; + if (trialsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trials_ = java.util.Collections.unmodifiableList(trials_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trials_ = trials_; + } else { + result.trials_ = trialsBuilder_.build(); + } + result.studyState_ = studyState_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.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.SuggestTrialsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse.getDefaultInstance()) + return this; + if (trialsBuilder_ == null) { + if (!other.trials_.isEmpty()) { + if (trials_.isEmpty()) { + trials_ = other.trials_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrialsIsMutable(); + trials_.addAll(other.trials_); + } + onChanged(); + } + } else { + if (!other.trials_.isEmpty()) { + if (trialsBuilder_.isEmpty()) { + trialsBuilder_.dispose(); + trialsBuilder_ = null; + trials_ = other.trials_; + bitField0_ = (bitField0_ & ~0x00000001); + trialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrialsFieldBuilder() + : null; + } else { + trialsBuilder_.addAllMessages(other.trials_); + } + } + } + if (other.studyState_ != 0) { + setStudyStateValue(other.getStudyStateValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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.SuggestTrialsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List trials_ = + java.util.Collections.emptyList(); + + private void ensureTrialsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trials_ = new java.util.ArrayList(trials_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + trialsBuilder_; + + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List getTrialsList() { + if (trialsBuilder_ == null) { + return java.util.Collections.unmodifiableList(trials_); + } else { + return trialsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public int getTrialsCount() { + if (trialsBuilder_ == null) { + return trials_.size(); + } else { + return trialsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) { + if (trialsBuilder_ == null) { + return trials_.get(index); + } else { + return trialsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder setTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.set(index, value); + onChanged(); + } else { + trialsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder setTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.set(index, builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.add(value); + onChanged(); + } else { + trialsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) { + if (trialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrialsIsMutable(); + trials_.add(index, value); + onChanged(); + } else { + trialsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.add(builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addTrials( + int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.add(index, builderForValue.build()); + onChanged(); + } else { + trialsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder addAllTrials( + java.lang.Iterable values) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trials_); + onChanged(); + } else { + trialsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder clearTrials() { + if (trialsBuilder_ == null) { + trials_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trialsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public Builder removeTrials(int index) { + if (trialsBuilder_ == null) { + ensureTrialsIsMutable(); + trials_.remove(index); + onChanged(); + } else { + trialsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder getTrialsBuilder(int index) { + return getTrialsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) { + if (trialsBuilder_ == null) { + return trials_.get(index); + } else { + return trialsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List + getTrialsOrBuilderList() { + if (trialsBuilder_ != null) { + return trialsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trials_); + } + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder() { + return getTrialsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder(int index) { + return getTrialsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Trials.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + public java.util.List + getTrialsBuilderList() { + return getTrialsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder> + getTrialsFieldBuilder() { + if (trialsBuilder_ == null) { + trialsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trial, + com.google.cloud.aiplatform.v1beta1.Trial.Builder, + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>( + trials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + trials_ = null; + } + return trialsBuilder_; + } + + private int studyState_ = 0; + /** + * + * + *
+     * The state of the Study.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The enum numeric value on the wire for studyState. + */ + @java.lang.Override + public int getStudyStateValue() { + return studyState_; + } + /** + * + * + *
+     * The state of the Study.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @param value The enum numeric value on the wire for studyState to set. + * @return This builder for chaining. + */ + public Builder setStudyStateValue(int value) { + + studyState_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the Study.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The studyState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Study.State getStudyState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Study.State result = + com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(studyState_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of the Study.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @param value The studyState to set. + * @return This builder for chaining. + */ + public Builder setStudyState(com.google.cloud.aiplatform.v1beta1.Study.State value) { + if (value == null) { + throw new NullPointerException(); + } + + studyState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the Study.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return This builder for chaining. + */ + public Builder clearStudyState() { + + studyState_ = 0; + onChanged(); + return this; + } + + 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_; + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @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(); + } + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + 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; + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + 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; + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time at which the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + 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_; + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @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(); + } + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + 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; + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + 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; + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time at which operation processing completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + 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_; + } + + @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.SuggestTrialsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) + private static final com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestTrialsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestTrialsResponse(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.SuggestTrialsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponseOrBuilder.java new file mode 100644 index 000000000..5644a3d34 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SuggestTrialsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuggestTrialsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + java.util.List getTrialsList(); + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index); + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + int getTrialsCount(); + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + java.util.List + getTrialsOrBuilderList(); + /** + * + * + *
+   * A list of Trials.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 1; + */ + com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index); + + /** + * + * + *
+   * The state of the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The enum numeric value on the wire for studyState. + */ + int getStudyStateValue(); + /** + * + * + *
+   * The state of the Study.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Study.State study_state = 2; + * + * @return The studyState. + */ + com.google.cloud.aiplatform.v1beta1.Study.State getStudyState(); + + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time at which the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time at which operation processing completed.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java new file mode 100644 index 000000000..341132e6b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java @@ -0,0 +1,761 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The storage details for TFRecord output content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TFRecordDestination} + */ +public final class TFRecordDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TFRecordDestination) + TFRecordDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TFRecordDestination.newBuilder() to construct. + private TFRecordDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TFRecordDestination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TFRecordDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TFRecordDestination( + 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.GcsDestination.Builder subBuilder = null; + if (gcsDestination_ != null) { + subBuilder = gcsDestination_.toBuilder(); + } + gcsDestination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsDestination_); + gcsDestination_ = 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.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.class, + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder.class); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return gcsDestination_ != null; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + return getGcsDestination(); + } + + 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 (gcsDestination_ != null) { + output.writeMessage(1, getGcsDestination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsDestination()); + } + 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.TFRecordDestination)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TFRecordDestination other = + (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) obj; + + if (hasGcsDestination() != other.hasGcsDestination()) return false; + if (hasGcsDestination()) { + if (!getGcsDestination().equals(other.getGcsDestination())) 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 (hasGcsDestination()) { + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination 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.TFRecordDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination 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.TFRecordDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination 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.TFRecordDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination 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.TFRecordDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination 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.TFRecordDestination 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.TFRecordDestination 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.TFRecordDestination 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 storage details for TFRecord output content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TFRecordDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TFRecordDestination) + com.google.cloud.aiplatform.v1beta1.TFRecordDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.class, + com.google.cloud.aiplatform.v1beta1.TFRecordDestination.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TFRecordDestination.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 (gcsDestinationBuilder_ == null) { + gcsDestination_ = null; + } else { + gcsDestination_ = null; + gcsDestinationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination build() { + com.google.cloud.aiplatform.v1beta1.TFRecordDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TFRecordDestination buildPartial() { + com.google.cloud.aiplatform.v1beta1.TFRecordDestination result = + new com.google.cloud.aiplatform.v1beta1.TFRecordDestination(this); + if (gcsDestinationBuilder_ == null) { + result.gcsDestination_ = gcsDestination_; + } else { + result.gcsDestination_ = gcsDestinationBuilder_.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.TFRecordDestination) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TFRecordDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TFRecordDestination other) { + if (other == com.google.cloud.aiplatform.v1beta1.TFRecordDestination.getDefaultInstance()) + return this; + if (other.hasGcsDestination()) { + mergeGcsDestination(other.getGcsDestination()); + } + 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.TFRecordDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TFRecordDestination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + public boolean hasGcsDestination() { + return gcsDestinationBuilder_ != null || gcsDestination_ != null; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } else { + return gcsDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsDestination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + gcsDestination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (gcsDestination_ != null) { + gcsDestination_ = + com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(gcsDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + gcsDestination_ = value; + } + onChanged(); + } else { + gcsDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + gcsDestination_ = null; + onChanged(); + } else { + gcsDestination_ = null; + gcsDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { + + onChanged(); + return getGcsDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder + getGcsDestinationOrBuilder() { + if (gcsDestinationBuilder_ != null) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; + } + } + /** + * + * + *
+     * Required. Google Cloud Storage location.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder>( + getGcsDestination(), getParentForChildren(), isClean()); + gcsDestination_ = null; + } + return gcsDestinationBuilder_; + } + + @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.TFRecordDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TFRecordDestination) + private static final com.google.cloud.aiplatform.v1beta1.TFRecordDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TFRecordDestination(); + } + + public static com.google.cloud.aiplatform.v1beta1.TFRecordDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TFRecordDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TFRecordDestination(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.TFRecordDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestinationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestinationOrBuilder.java new file mode 100644 index 000000000..76b1fa416 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestinationOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/io.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TFRecordDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TFRecordDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination(); + /** + * + * + *
+   * Required. Google Cloud Storage location.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java new file mode 100644 index 000000000..1e45b6ad9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java @@ -0,0 +1,2780 @@ +/* + * 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/tensorboard.proto + +package com.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.
+ * If needed users can also create extra Tensorboards in their projects.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tensorboard} + */ +public final class Tensorboard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Tensorboard) + TensorboardOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tensorboard.newBuilder() to construct. + private Tensorboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tensorboard() { + name_ = ""; + displayName_ = ""; + description_ = ""; + blobStoragePathPrefix_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tensorboard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Tensorboard( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: + { + runCount_ = input.readInt32(); + break; + } + case 50: + { + 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 58: + { + 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 66: + { + 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 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + blobStoragePathPrefix_ = s; + break; + } + case 90: + { + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder subBuilder = null; + if (encryptionSpec_ != null) { + subBuilder = encryptionSpec_.toBuilder(); + } + encryptionSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptionSpec_); + encryptionSpec_ = 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.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + 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.v1beta1.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tensorboard.class, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Name of the Tensorboard.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * 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. Name of the Tensorboard.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. User provided name of this Tensorboard.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. User provided name of this Tensorboard.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of this Tensorboard.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of this Tensorboard.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 11; + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return encryptionSpec_ != null; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return getEncryptionSpec(); + } + + public static final int BLOB_STORAGE_PATH_PREFIX_FIELD_NUMBER = 10; + private volatile java.lang.Object blobStoragePathPrefix_; + /** + * + * + *
+   * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+   * can either be a bucket or directory. Does not end with a '/'.
+   * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The blobStoragePathPrefix. + */ + @java.lang.Override + public java.lang.String getBlobStoragePathPrefix() { + java.lang.Object ref = blobStoragePathPrefix_; + 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(); + blobStoragePathPrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+   * can either be a bucket or directory. Does not end with a '/'.
+   * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for blobStoragePathPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlobStoragePathPrefixBytes() { + java.lang.Object ref = blobStoragePathPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blobStoragePathPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_COUNT_FIELD_NUMBER = 5; + private int runCount_; + /** + * + * + *
+   * Output only. The number of Runs stored in this Tensorboard.
+   * 
+ * + * int32 run_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The runCount. + */ + @java.lang.Override + public int getRunCount() { + return runCount_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_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 Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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 Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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 Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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 ETAG_FIELD_NUMBER = 9; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a 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; + } + } + /** + * + * + *
+   * Used to perform a 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; + } + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (runCount_ != 0) { + output.writeInt32(5, runCount_); + } + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + if (!getBlobStoragePathPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, blobStoragePathPrefix_); + } + if (encryptionSpec_ != null) { + output.writeMessage(11, getEncryptionSpec()); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (runCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, runCount_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + 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(8, labels__); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + if (!getBlobStoragePathPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, blobStoragePathPrefix_); + } + if (encryptionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEncryptionSpec()); + } + 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.Tensorboard)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Tensorboard other = + (com.google.cloud.aiplatform.v1beta1.Tensorboard) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } + if (!getBlobStoragePathPrefix().equals(other.getBlobStoragePathPrefix())) return false; + if (getRunCount() != other.getRunCount()) 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 (!internalGetLabels().equals(other.internalGetLabels())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } + hash = (37 * hash) + BLOB_STORAGE_PATH_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getBlobStoragePathPrefix().hashCode(); + hash = (37 * hash) + RUN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRunCount(); + 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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().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.Tensorboard parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard 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.Tensorboard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard 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.Tensorboard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard 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.Tensorboard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard 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.Tensorboard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard 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.Tensorboard 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.Tensorboard 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.Tensorboard 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; + } + /** + * + * + *
+   * Tensorboard is a physical database that stores users' training metrics.
+   * A default Tensorboard is provided in each region of a GCP project.
+   * If needed users can also create extra Tensorboards in their projects.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tensorboard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Tensorboard) + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 8: + 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.v1beta1.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tensorboard.class, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Tensorboard.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_ = ""; + + description_ = ""; + + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + blobStoragePathPrefix_ = ""; + + runCount_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardProto + .internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard build() { + com.google.cloud.aiplatform.v1beta1.Tensorboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard buildPartial() { + com.google.cloud.aiplatform.v1beta1.Tensorboard result = + new com.google.cloud.aiplatform.v1beta1.Tensorboard(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + if (encryptionSpecBuilder_ == null) { + result.encryptionSpec_ = encryptionSpec_; + } else { + result.encryptionSpec_ = encryptionSpecBuilder_.build(); + } + result.blobStoragePathPrefix_ = blobStoragePathPrefix_; + result.runCount_ = runCount_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + 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.Tensorboard) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Tensorboard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tensorboard other) { + if (other == com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } + if (!other.getBlobStoragePathPrefix().isEmpty()) { + blobStoragePathPrefix_ = other.blobStoragePathPrefix_; + onChanged(); + } + if (other.getRunCount() != 0) { + setRunCount(other.getRunCount()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + 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.Tensorboard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Tensorboard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of the Tensorboard.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * 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. Name of the Tensorboard.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * 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. Name of the Tensorboard.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * 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. Name of the Tensorboard.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * 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. Name of the Tensorboard.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. User provided name of this Tensorboard.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this Tensorboard.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this Tensorboard.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. User provided name of this Tensorboard.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided name of this Tensorboard.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Description of this Tensorboard.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of this Tensorboard.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of this Tensorboard.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this Tensorboard.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this Tensorboard.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.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 Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + onChanged(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (encryptionSpec_ != null) { + encryptionSpec_ = + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSpec_ = value; + } + onChanged(); + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public Builder clearEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + onChanged(); + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + + onChanged(); + return getEncryptionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder + getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a Tensorboard. If set, this
+     * Tensorboard and all sub-resources of this Tensorboard will be secured by
+     * this key.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + + private java.lang.Object blobStoragePathPrefix_ = ""; + /** + * + * + *
+     * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+     * can either be a bucket or directory. Does not end with a '/'.
+     * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The blobStoragePathPrefix. + */ + public java.lang.String getBlobStoragePathPrefix() { + java.lang.Object ref = blobStoragePathPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blobStoragePathPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+     * can either be a bucket or directory. Does not end with a '/'.
+     * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for blobStoragePathPrefix. + */ + public com.google.protobuf.ByteString getBlobStoragePathPrefixBytes() { + java.lang.Object ref = blobStoragePathPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blobStoragePathPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+     * can either be a bucket or directory. Does not end with a '/'.
+     * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The blobStoragePathPrefix to set. + * @return This builder for chaining. + */ + public Builder setBlobStoragePathPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blobStoragePathPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+     * can either be a bucket or directory. Does not end with a '/'.
+     * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlobStoragePathPrefix() { + + blobStoragePathPrefix_ = getDefaultInstance().getBlobStoragePathPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+     * can either be a bucket or directory. Does not end with a '/'.
+     * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for blobStoragePathPrefix to set. + * @return This builder for chaining. + */ + public Builder setBlobStoragePathPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blobStoragePathPrefix_ = value; + onChanged(); + return this; + } + + private int runCount_; + /** + * + * + *
+     * Output only. The number of Runs stored in this Tensorboard.
+     * 
+ * + * int32 run_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The runCount. + */ + @java.lang.Override + public int getRunCount() { + return runCount_; + } + /** + * + * + *
+     * Output only. The number of Runs stored in this Tensorboard.
+     * 
+ * + * int32 run_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The runCount to set. + * @return This builder for chaining. + */ + public Builder setRunCount(int value) { + + runCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of Runs stored in this Tensorboard.
+     * 
+ * + * int32 run_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRunCount() { + + runCount_ = 0; + 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. Timestamp when this Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 Tensorboard was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 Tensorboard was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + 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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + 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 Tensorboards.
+     * 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 Tensorboard
+     * (System labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 8; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a 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; + } + } + /** + * + * + *
+     * Used to perform a 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; + } + } + /** + * + * + *
+     * Used to perform a 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; + } + /** + * + * + *
+     * Used to perform a 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; + } + /** + * + * + *
+     * Used to perform a 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; + } + + @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.Tensorboard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Tensorboard) + private static final com.google.cloud.aiplatform.v1beta1.Tensorboard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Tensorboard(); + } + + public static com.google.cloud.aiplatform.v1beta1.Tensorboard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tensorboard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tensorboard(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.Tensorboard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java new file mode 100644 index 000000000..35e266746 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java @@ -0,0 +1,741 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * One blob (e.g, image, graph) viewable on a blob metric plot.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardBlob} + */ +public final class TensorboardBlob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardBlob) + TensorboardBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardBlob.newBuilder() to construct. + private TensorboardBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardBlob() { + id_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardBlob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardBlob( + 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(); + + id_ = s; + break; + } + case 18: + { + data_ = input.readBytes(); + 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.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.class, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+   * stored in the Cloud Storage bucket of the consumer project.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+   * stored in the Cloud Storage bucket of the consumer project.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.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; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * + * + *
+   * Optional. The bytes of the blob is not present unless it's returned by the
+   * ReadTensorboardBlobData endpoint.
+   * 
+ * + * bytes data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + 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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + 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.TensorboardBlob)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardBlob other = + (com.google.cloud.aiplatform.v1beta1.TensorboardBlob) obj; + + if (!getId().equals(other.getId())) return false; + if (!getData().equals(other.getData())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob 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.TensorboardBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob 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.TensorboardBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob 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.TensorboardBlob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob 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.TensorboardBlob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob 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.TensorboardBlob 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.TensorboardBlob 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.TensorboardBlob 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; + } + /** + * + * + *
+   * One blob (e.g, image, graph) viewable on a blob metric plot.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardBlob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardBlob) + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.class, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardBlob.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(); + id_ = ""; + + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob build() { + com.google.cloud.aiplatform.v1beta1.TensorboardBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardBlob result = + new com.google.cloud.aiplatform.v1beta1.TensorboardBlob(this); + result.id_ = id_; + result.data_ = data_; + 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.TensorboardBlob) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardBlob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardBlob other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + 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.TensorboardBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+     * stored in the Cloud Storage bucket of the consumer project.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + 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. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+     * stored in the Cloud Storage bucket of the consumer project.
+     * 
+ * + * string id = 1 [(.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. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+     * stored in the Cloud Storage bucket of the consumer project.
+     * 
+ * + * string id = 1 [(.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. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+     * stored in the Cloud Storage bucket of the consumer project.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+     * stored in the Cloud Storage bucket of the consumer project.
+     * 
+ * + * string id = 1 [(.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 com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Optional. The bytes of the blob is not present unless it's returned by the
+     * ReadTensorboardBlobData endpoint.
+     * 
+ * + * bytes data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * + * + *
+     * Optional. The bytes of the blob is not present unless it's returned by the
+     * ReadTensorboardBlobData endpoint.
+     * 
+ * + * bytes data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The bytes of the blob is not present unless it's returned by the
+     * ReadTensorboardBlobData endpoint.
+     * 
+ * + * bytes data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + 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.TensorboardBlob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardBlob) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardBlob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardBlob(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardBlob(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.TensorboardBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobOrBuilder.java new file mode 100644 index 000000000..cb2272e69 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardBlobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardBlob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+   * stored in the Cloud Storage bucket of the consumer project.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob
+   * stored in the Cloud Storage bucket of the consumer project.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Optional. The bytes of the blob is not present unless it's returned by the
+   * ReadTensorboardBlobData endpoint.
+   * 
+ * + * bytes data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java new file mode 100644 index 000000000..945a939a4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java @@ -0,0 +1,959 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * One point viewable on a blob metric plot, but mostly just a wrapper message
+ * to work around repeated fields can't be used directly within `oneof` fields.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardBlobSequence} + */ +public final class TensorboardBlobSequence extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) + TensorboardBlobSequenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardBlobSequence.newBuilder() to construct. + private TensorboardBlobSequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardBlobSequence() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardBlobSequence(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardBlobSequence( + 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)) { + values_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.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)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.class, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getValuesOrBuilder( + int index) { + return values_.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 < values_.size(); i++) { + output.writeMessage(1, values_.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 < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.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.TensorboardBlobSequence)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence other = + (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence 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.TensorboardBlobSequence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence 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.TensorboardBlobSequence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence 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.TensorboardBlobSequence parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence 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.TensorboardBlobSequence parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence 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.TensorboardBlobSequence 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.TensorboardBlobSequence 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.TensorboardBlobSequence 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; + } + /** + * + * + *
+   * One point viewable on a blob metric plot, but mostly just a wrapper message
+   * to work around repeated fields can't be used directly within `oneof` fields.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardBlobSequence} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.class, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence build() { + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence result = + new com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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.TensorboardBlobSequence) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance()) + return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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.TensorboardBlobSequence parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = + new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder> + valuesBuilder_; + + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder setValues(int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder setValues( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder addValues(com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder addValues(int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder addValues( + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder addValues( + int index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance()); + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TensorboardBlob.getDefaultInstance()); + } + /** + * + * + *
+     * List of blobs contained within the sequence.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlob, + com.google.cloud.aiplatform.v1beta1.TensorboardBlob.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @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.TensorboardBlobSequence) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardBlobSequence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardBlobSequence(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.TensorboardBlobSequence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequenceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequenceOrBuilder.java new file mode 100644 index 000000000..88da335d1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequenceOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardBlobSequenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + java.util.List getValuesList(); + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlob getValues(int index); + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + int getValuesCount(); + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * + * + *
+   * List of blobs contained within the sequence.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.TensorboardBlob values = 1; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlobOrBuilder getValuesOrBuilder(int index); +} 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 new file mode 100644 index 000000000..95604e306 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java @@ -0,0 +1,163 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardDataProto { + private TensorboardDataProto() {} + + 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_v1beta1_TimeSeriesData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Scalar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/aiplatform/v1beta1/tensor" + + "board_data.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\032=google/cloud/aiplatform/v1beta1/tens" + + "orboard_time_series.proto\032\037google/protob" + + "uf/timestamp.proto\032\034google/api/annotatio" + + "ns.proto\"\342\001\n\016TimeSeriesData\022\'\n\032tensorboa" + + "rd_time_series_id\030\001 \001(\tB\003\340A\002\022\\\n\nvalue_ty" + + "pe\030\002 \001(\0162@.google.cloud.aiplatform.v1bet" + + "a1.TensorboardTimeSeries.ValueTypeB\006\340A\002\340" + + "A\005\022I\n\006values\030\003 \003(\01324.google.cloud.aiplat" + + "form.v1beta1.TimeSeriesDataPointB\003\340A\002\"\247\002" + + "\n\023TimeSeriesDataPoint\0229\n\006scalar\030\003 \001(\0132\'." + + "google.cloud.aiplatform.v1beta1.ScalarH\000" + + "\022D\n\006tensor\030\004 \001(\01322.google.cloud.aiplatfo" + + "rm.v1beta1.TensorboardTensorH\000\022I\n\005blobs\030" + + "\005 \001(\01328.google.cloud.aiplatform.v1beta1." + + "TensorboardBlobSequenceH\000\022-\n\twall_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022\014\n\004step" + + "\030\002 \001(\003B\007\n\005value\"\027\n\006Scalar\022\r\n\005value\030\001 \001(\001" + + "\"D\n\021TensorboardTensor\022\022\n\005value\030\001 \001(\014B\003\340A" + + "\002\022\033\n\016version_number\030\002 \001(\005B\003\340A\001\"[\n\027Tensor" + + "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." + + "aiplatform.v1beta1B\024TensorboardDataProto" + + "P\001ZIgoogle.golang.org/genproto/googleapi" + + "s/cloud/aiplatform/v1beta1;aiplatformb\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_descriptor, + new java.lang.String[] { + "TensorboardTimeSeriesId", "ValueType", "Values", + }); + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor, + new java.lang.String[] { + "Scalar", "Tensor", "Blobs", "WallTime", "Step", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_Scalar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Scalar_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor, + new java.lang.String[] { + "Value", "VersionNumber", + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlobSequence_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardBlob_descriptor, + new java.lang.String[] { + "Id", "Data", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java new file mode 100644 index 000000000..30b6d3a06 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java @@ -0,0 +1,2407 @@ +/* + * 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/tensorboard_experiment.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A TensorboardExperiment is a group of TensorboardRuns, that are typically the
+ * results of a training job run, in a Tensorboard.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardExperiment} + */ +public final class TensorboardExperiment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardExperiment) + TensorboardExperimentOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardExperiment.newBuilder() to construct. + private TensorboardExperiment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardExperiment() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + source_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardExperiment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardExperiment( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + 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 42: + { + 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 50: + { + 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 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = 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.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.class, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Name of the TensorboardExperiment.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * 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. Name of the TensorboardExperiment.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * 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 name of this TensorboardExperiment.
+   * 
+ * + * 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 name of this TensorboardExperiment.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of this TensorboardExperiment.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of this TensorboardExperiment.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_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 Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + @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 Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + @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 Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + @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 ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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 SOURCE_FIELD_NUMBER = 8; + private volatile java.lang.Object source_; + /** + * + * + *
+   * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+   * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+   * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, source_); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + 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(6, labels__); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, source_); + } + 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.TensorboardExperiment)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment other = + (com.google.cloud.aiplatform.v1beta1.TensorboardExperiment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getSource().equals(other.getSource())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment 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.TensorboardExperiment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment 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.TensorboardExperiment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment 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.TensorboardExperiment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment 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.TensorboardExperiment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment 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.TensorboardExperiment 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.TensorboardExperiment 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.TensorboardExperiment 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 TensorboardExperiment is a group of TensorboardRuns, that are typically the
+   * results of a training job run, in a Tensorboard.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardExperiment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardExperiment) + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + 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.v1beta1.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.class, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.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_ = ""; + + description_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + + source_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardExperimentProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment build() { + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment result = + new com.google.cloud.aiplatform.v1beta1.TensorboardExperiment(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.etag_ = etag_; + result.source_ = source_; + 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.TensorboardExperiment) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardExperiment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardExperiment other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + 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.TensorboardExperiment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardExperiment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of the TensorboardExperiment.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * 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. Name of the TensorboardExperiment.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * 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. Name of the TensorboardExperiment.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * 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. Name of the TensorboardExperiment.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * 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. Name of the TensorboardExperiment.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * 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 name of this TensorboardExperiment.
+     * 
+ * + * 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 name of this TensorboardExperiment.
+     * 
+ * + * 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 name of this TensorboardExperiment.
+     * 
+ * + * 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 name of this TensorboardExperiment.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided name of this TensorboardExperiment.
+     * 
+ * + * 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 description_ = ""; + /** + * + * + *
+     * Description of this TensorboardExperiment.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardExperiment.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardExperiment.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardExperiment.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardExperiment.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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. Timestamp when this TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 TensorboardExperiment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 TensorboardExperiment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + @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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + @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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + @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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + 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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + 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 Datasets.
+     * 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 Dataset (System
+     * labels are excluded).
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable. Following system labels exist for each Dataset:
+     * * "aiplatform.googleapis.com/dataset_metadata_schema":
+     *   - output only, its value is the
+     *   [metadata_schema's][metadata_schema_uri] title.
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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 java.lang.Object source_ = ""; + /** + * + * + *
+     * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+     * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+     * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+     * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+     * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+     * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = 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.TensorboardExperiment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardExperiment) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardExperiment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardExperiment(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardExperiment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardExperiment(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.TensorboardExperiment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java new file mode 100644 index 000000000..dc2c27f34 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java @@ -0,0 +1,270 @@ +/* + * 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 TensorboardExperimentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TENSORBOARD_EXPERIMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tensorboard; + private final String experiment; + + @Deprecated + protected TensorboardExperimentName() { + project = null; + location = null; + tensorboard = null; + experiment = null; + } + + private TensorboardExperimentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tensorboard = Preconditions.checkNotNull(builder.getTensorboard()); + experiment = Preconditions.checkNotNull(builder.getExperiment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TensorboardExperimentName of( + String project, String location, String tensorboard, String experiment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .build(); + } + + public static String format( + String project, String location, String tensorboard, String experiment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .build() + .toString(); + } + + public static TensorboardExperimentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TENSORBOARD_EXPERIMENT.validatedMatch( + formattedString, + "TensorboardExperimentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("tensorboard"), + matchMap.get("experiment")); + } + + 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 (TensorboardExperimentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT.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 (tensorboard != null) { + fieldMapBuilder.put("tensorboard", tensorboard); + } + if (experiment != null) { + fieldMapBuilder.put("experiment", experiment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT.instantiate( + "project", + project, + "location", + location, + "tensorboard", + tensorboard, + "experiment", + experiment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TensorboardExperimentName that = ((TensorboardExperimentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tensorboard, that.tensorboard) + && Objects.equals(this.experiment, that.experiment); + } + 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(tensorboard); + h *= 1000003; + h ^= Objects.hashCode(experiment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}. + */ + public static class Builder { + private String project; + private String location; + private String tensorboard; + private String experiment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTensorboard(String tensorboard) { + this.tensorboard = tensorboard; + return this; + } + + public Builder setExperiment(String experiment) { + this.experiment = experiment; + return this; + } + + private Builder(TensorboardExperimentName tensorboardExperimentName) { + project = tensorboardExperimentName.project; + location = tensorboardExperimentName.location; + tensorboard = tensorboardExperimentName.tensorboard; + experiment = tensorboardExperimentName.experiment; + } + + public TensorboardExperimentName build() { + return new TensorboardExperimentName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java new file mode 100644 index 000000000..27b70bfda --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java @@ -0,0 +1,341 @@ +/* + * 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/tensorboard_experiment.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardExperimentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardExperiment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of the TensorboardExperiment.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of the TensorboardExperiment.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * User provided name of this TensorboardExperiment.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * User provided name of this TensorboardExperiment.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Description of this TensorboardExperiment.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of this TensorboardExperiment.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardExperiment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + 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 Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Datasets.
+   * 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 Dataset (System
+   * labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable. Following system labels exist for each Dataset:
+   * * "aiplatform.googleapis.com/dataset_metadata_schema":
+   *   - output only, its value is the
+   *   [metadata_schema's][metadata_schema_uri] title.
+   * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+   * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The source. + */ + java.lang.String getSource(); + /** + * + * + *
+   * Immutable. Source of the TensorboardExperiment. Example: a custom training job.
+   * 
+ * + * string source = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); +} 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 new file mode 100644 index 000000000..4cb1bb14e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.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/v1beta1/tensorboard_experiment.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardExperimentProto { + private TensorboardExperimentProto() {} + + 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_v1beta1_TensorboardExperiment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardExperiment_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 fieldValuesMap; + private final String project; + private final String location; + private final String tensorboard; + + @Deprecated + protected TensorboardName() { + project = null; + location = null; + tensorboard = null; + } + + private TensorboardName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tensorboard = Preconditions.checkNotNull(builder.getTensorboard()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TensorboardName of(String project, String location, String tensorboard) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .build(); + } + + public static String format(String project, String location, String tensorboard) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .build() + .toString(); + } + + public static TensorboardName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TENSORBOARD.validatedMatch( + formattedString, "TensorboardName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("tensorboard")); + } + + 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 (TensorboardName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TENSORBOARD.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 (tensorboard != null) { + fieldMapBuilder.put("tensorboard", tensorboard); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TENSORBOARD.instantiate( + "project", project, "location", location, "tensorboard", tensorboard); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TensorboardName that = ((TensorboardName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tensorboard, that.tensorboard); + } + 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(tensorboard); + return h; + } + + /** Builder for projects/{project}/locations/{location}/tensorboards/{tensorboard}. */ + public static class Builder { + private String project; + private String location; + private String tensorboard; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTensorboard(String tensorboard) { + this.tensorboard = tensorboard; + return this; + } + + private Builder(TensorboardName tensorboardName) { + project = tensorboardName.project; + location = tensorboardName.location; + tensorboard = tensorboardName.tensorboard; + } + + public TensorboardName build() { + return new TensorboardName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java new file mode 100644 index 000000000..48a628b53 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java @@ -0,0 +1,382 @@ +/* + * 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/tensorboard.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tensorboard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of the Tensorboard.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of the Tensorboard.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. User provided name of this Tensorboard.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. User provided name of this Tensorboard.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Description of this Tensorboard.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of this Tensorboard.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a Tensorboard. If set, this
+   * Tensorboard and all sub-resources of this Tensorboard will be secured by
+   * this key.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+   * can either be a bucket or directory. Does not end with a '/'.
+   * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The blobStoragePathPrefix. + */ + java.lang.String getBlobStoragePathPrefix(); + /** + * + * + *
+   * Output only. Consumer project Cloud Storage path prefix used to store blob data, which
+   * can either be a bucket or directory. Does not end with a '/'.
+   * 
+ * + * string blob_storage_path_prefix = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for blobStoragePathPrefix. + */ + com.google.protobuf.ByteString getBlobStoragePathPrefixBytes(); + + /** + * + * + *
+   * Output only. The number of Runs stored in this Tensorboard.
+   * 
+ * + * int32 run_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The runCount. + */ + int getRunCount(); + + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Tensorboard was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + 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 Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Tensorboards.
+   * 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 Tensorboard
+   * (System labels are excluded).
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a 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(); +} 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 new file mode 100644 index 000000000..d66f609d0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java @@ -0,0 +1,124 @@ +/* + * 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/tensorboard.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardProto { + private TensorboardProto() {} + + 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_v1beta1_Tensorboard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_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 = { + "\n1google/cloud/aiplatform/v1beta1/tensor" + + "board.proto\022\037google.cloud.aiplatform.v1b" + + "eta1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\0325google/cloud/a" + + "iplatform/v1beta1/encryption_spec.proto\032" + + "\037google/protobuf/timestamp.proto\032\034google" + + "/api/annotations.proto\"\274\004\n\013Tensorboard\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB" + + "\003\340A\002\022\023\n\013description\030\003 \001(\t\022H\n\017encryption_" + + "spec\030\013 \001(\0132/.google.cloud.aiplatform.v1b" + + "eta1.EncryptionSpec\022%\n\030blob_storage_path" + + "_prefix\030\n \001(\tB\003\340A\003\022\026\n\trun_count\030\005 \001(\005B\003\340" + + "A\003\0224\n\013create_time\030\006 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022H\n\006labels" + + "\030\010 \003(\01328.google.cloud.aiplatform.v1beta1" + + ".Tensorboard.LabelsEntry\022\014\n\004etag\030\t \001(\t\032-" + + "\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" + + "\n#com.google.cloud.aiplatform.v1beta1B\020T" + + "ensorboardProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatformb\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.v1beta1.EncryptionSpecProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "EncryptionSpec", + "BlobStoragePathPrefix", + "RunCount", + "CreateTime", + "UpdateTime", + "Labels", + "Etag", + }); + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Tensorboard_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.v1beta1.EncryptionSpecProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java new file mode 100644 index 000000000..e7302f5e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java @@ -0,0 +1,2032 @@ +/* + * 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/tensorboard_run.proto + +package com.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
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardRun} + */ +public final class TensorboardRun extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardRun) + TensorboardRunOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardRun.newBuilder() to construct. + private TensorboardRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardRun() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardRun(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardRun( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + 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 58: + { + 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 66: + { + 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 74: + { + 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.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + 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.v1beta1.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.class, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Name of the TensorboardRun.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * 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. Name of the TensorboardRun.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. User provided name of this TensorboardRun.
+   * This value must be unique among all TensorboardRuns
+   * belonging to the same parent TensorboardExperiment.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. User provided name of this TensorboardRun.
+   * This value must be unique among all TensorboardRuns
+   * belonging to the same parent TensorboardExperiment.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of this TensorboardRun.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of this TensorboardRun.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_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(); + } + /** map<string, string> labels = 8; */ + @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(); + } + /** map<string, string> labels = 8; */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** map<string, string> labels = 8; */ + @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; + } + /** map<string, string> labels = 8; */ + @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 ETAG_FIELD_NUMBER = 9; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a 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; + } + } + /** + * + * + *
+   * Used to perform a 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; + } + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, 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 (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + 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(8, labels__); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.TensorboardRun)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardRun other = + (com.google.cloud.aiplatform.v1beta1.TensorboardRun) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!internalGetLabels().equals(other.internalGetLabels())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().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.TensorboardRun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun 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.TensorboardRun parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun 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.TensorboardRun parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun 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.TensorboardRun parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun 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.TensorboardRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun 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.TensorboardRun 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.TensorboardRun 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.TensorboardRun 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; + } + /** + * + * + *
+   * TensorboardRun maps to a specific execution of a training job with a given
+   * set of hyperparameter values, model definition, dataset, etc
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardRun} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardRun) + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 8: + 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.v1beta1.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.class, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardRun.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_ = ""; + + description_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardRunProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun build() { + com.google.cloud.aiplatform.v1beta1.TensorboardRun result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardRun result = + new com.google.cloud.aiplatform.v1beta1.TensorboardRun(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + 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.TensorboardRun) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardRun) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardRun other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + 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.TensorboardRun parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardRun) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of the TensorboardRun.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * 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. Name of the TensorboardRun.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * 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. Name of the TensorboardRun.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * 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. Name of the TensorboardRun.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * 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. Name of the TensorboardRun.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. User provided name of this TensorboardRun.
+     * This value must be unique among all TensorboardRuns
+     * belonging to the same parent TensorboardExperiment.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this TensorboardRun.
+     * This value must be unique among all TensorboardRuns
+     * belonging to the same parent TensorboardExperiment.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this TensorboardRun.
+     * This value must be unique among all TensorboardRuns
+     * belonging to the same parent TensorboardExperiment.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. User provided name of this TensorboardRun.
+     * This value must be unique among all TensorboardRuns
+     * belonging to the same parent TensorboardExperiment.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided name of this TensorboardRun.
+     * This value must be unique among all TensorboardRuns
+     * belonging to the same parent TensorboardExperiment.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Description of this TensorboardRun.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardRun.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardRun.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardRun.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardRun.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = 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. Timestamp when this TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 TensorboardRun was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 TensorboardRun was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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.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(); + } + /** map<string, string> labels = 8; */ + @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(); + } + /** map<string, string> labels = 8; */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** map<string, string> labels = 8; */ + @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; + } + /** map<string, string> labels = 8; */ + @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; + } + /** map<string, string> labels = 8; */ + 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(); + } + /** map<string, string> labels = 8; */ + 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; + } + /** map<string, string> labels = 8; */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a 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; + } + } + /** + * + * + *
+     * Used to perform a 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; + } + } + /** + * + * + *
+     * Used to perform a 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; + } + /** + * + * + *
+     * Used to perform a 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; + } + /** + * + * + *
+     * Used to perform a 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; + } + + @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.TensorboardRun) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardRun) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardRun DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardRun(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardRun getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardRun(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.TensorboardRun getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java new file mode 100644 index 000000000..5bdb7e68c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java @@ -0,0 +1,298 @@ +/* + * 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 TensorboardRunName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tensorboard; + private final String experiment; + private final String run; + + @Deprecated + protected TensorboardRunName() { + project = null; + location = null; + tensorboard = null; + experiment = null; + run = null; + } + + private TensorboardRunName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tensorboard = Preconditions.checkNotNull(builder.getTensorboard()); + experiment = Preconditions.checkNotNull(builder.getExperiment()); + run = Preconditions.checkNotNull(builder.getRun()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public String getRun() { + return run; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TensorboardRunName of( + String project, String location, String tensorboard, String experiment, String run) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .setRun(run) + .build(); + } + + public static String format( + String project, String location, String tensorboard, String experiment, String run) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .setRun(run) + .build() + .toString(); + } + + public static TensorboardRunName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN.validatedMatch( + formattedString, "TensorboardRunName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("tensorboard"), + matchMap.get("experiment"), + matchMap.get("run")); + } + + 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 (TensorboardRunName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN.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 (tensorboard != null) { + fieldMapBuilder.put("tensorboard", tensorboard); + } + if (experiment != null) { + fieldMapBuilder.put("experiment", experiment); + } + if (run != null) { + fieldMapBuilder.put("run", run); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN.instantiate( + "project", + project, + "location", + location, + "tensorboard", + tensorboard, + "experiment", + experiment, + "run", + run); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TensorboardRunName that = ((TensorboardRunName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tensorboard, that.tensorboard) + && Objects.equals(this.experiment, that.experiment) + && Objects.equals(this.run, that.run); + } + 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(tensorboard); + h *= 1000003; + h ^= Objects.hashCode(experiment); + h *= 1000003; + h ^= Objects.hashCode(run); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}. + */ + public static class Builder { + private String project; + private String location; + private String tensorboard; + private String experiment; + private String run; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public String getRun() { + return run; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTensorboard(String tensorboard) { + this.tensorboard = tensorboard; + return this; + } + + public Builder setExperiment(String experiment) { + this.experiment = experiment; + return this; + } + + public Builder setRun(String run) { + this.run = run; + return this; + } + + private Builder(TensorboardRunName tensorboardRunName) { + project = tensorboardRunName.project; + location = tensorboardRunName.location; + tensorboard = tensorboardRunName.tensorboard; + experiment = tensorboardRunName.experiment; + run = tensorboardRunName.run; + } + + public TensorboardRunName build() { + return new TensorboardRunName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java new file mode 100644 index 000000000..0084e6e94 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java @@ -0,0 +1,225 @@ +/* + * 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/tensorboard_run.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardRunOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardRun) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of the TensorboardRun.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of the TensorboardRun.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. User provided name of this TensorboardRun.
+   * This value must be unique among all TensorboardRuns
+   * belonging to the same parent TensorboardExperiment.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. User provided name of this TensorboardRun.
+   * This value must be unique among all TensorboardRuns
+   * belonging to the same parent TensorboardExperiment.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Description of this TensorboardRun.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of this TensorboardRun.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardRun was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** map<string, string> labels = 8; */ + int getLabelsCount(); + /** map<string, string> labels = 8; */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** map<string, string> labels = 8; */ + java.util.Map getLabelsMap(); + /** map<string, string> labels = 8; */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** map<string, string> labels = 8; */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a 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(); +} 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 new file mode 100644 index 000000000..daf85138e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java @@ -0,0 +1,110 @@ +/* + * 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/tensorboard_run.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardRunProto { + private TensorboardRunProto() {} + + 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_v1beta1_TensorboardRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_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 = { + "\n5google/cloud/aiplatform/v1beta1/tensor" + + "board_run.proto\022\037google.cloud.aiplatform" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\034google/api/annota" + + "tions.proto\"\342\003\n\016TensorboardRun\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013" + + "description\030\003 \001(\t\0224\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022K\n\006labels\030\010 \003(\0132;.google.cloud.aip" + + "latform.v1beta1.TensorboardRun.LabelsEnt" + + "ry\022\014\n\004etag\030\t \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226\001\352A\222\001\n(aiplatfo" + + "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" + + "platform.v1beta1B\023TensorboardRunProtoP\001Z" + + "Igoogle.golang.org/genproto/googleapis/c" + + "loud/aiplatform/v1beta1;aiplatformb\006prot" + + "o3" + }; + 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.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "Labels", "Etag", + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardRun_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.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 new file mode 100644 index 000000000..2abc10706 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceProto.java @@ -0,0 +1,805 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardServiceProto { + private TensorboardServiceProto() {} + + 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_v1beta1_CreateTensorboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/aiplatform/v1beta1/tensor" + + "board_service.proto\022\037google.cloud.aiplat" + + "form.v1beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032/google/cloud/aiplatform/v1beta1" + + "/operation.proto\0321google/cloud/aiplatfor" + + "m/v1beta1/tensorboard.proto\0326google/clou" + + "d/aiplatform/v1beta1/tensorboard_data.pr" + + "oto\032\n\004name\030\001 \001(\tB0\340" + + "A\002\372A*\n(aiplatform.googleapis.com/Tensorb" + + "oardRun\"\200\001\n\036ReadTensorboardBlobDataReque" + + "st\022L\n\013time_series\030\001 \001(\tB7\340A\002\372A1\n/aiplatf" + + "orm.googleapis.com/TensorboardTimeSeries" + + "\022\020\n\010blob_ids\030\002 \003(\t\"b\n\037ReadTensorboardBlo" + + "bDataResponse\022?\n\005blobs\030\001 \003(\01320.google.cl" + + "oud.aiplatform.v1beta1.TensorboardBlob\"\326" + + "\001\n\032ListTensorboardRunsRequest\022@\n\006parent\030" + + "\001 \001(\tB0\340A\002\372A*\022(aiplatform.googleapis.com" + + "/TensorboardRun\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.pro" + + "tobuf.FieldMask\"\201\001\n\033ListTensorboardRunsR" + + "esponse\022I\n\020tensorboard_runs\030\001 \003(\0132/.goog" + + "le.cloud.aiplatform.v1beta1.TensorboardR" + + "un\022\027\n\017next_page_token\030\002 \001(\t\"\242\001\n\033UpdateTe" + + "nsorboardRunRequest\0224\n\013update_mask\030\001 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\022M\n\017ten" + + "sorboard_run\030\002 \001(\0132/.google.cloud.aiplat" + + "form.v1beta1.TensorboardRunB\003\340A\002\"]\n\033Dele" + + "teTensorboardRunRequest\022>\n\004name\030\001 \001(\tB0\340" + + "A\002\372A*\n(aiplatform.googleapis.com/Tensorb" + + "oardRun\"\364\001\n\"CreateTensorboardTimeSeriesR" + + "equest\022G\n\006parent\030\001 \001(\tB7\340A\002\372A1\n/aiplatfo" + + "rm.googleapis.com/TensorboardTimeSeries\022" + + "\'\n\032tensorboard_time_series_id\030\003 \001(\tB\003\340A\001" + + "\022\\\n\027tensorboard_time_series\030\002 \001(\01326.goog" + + "le.cloud.aiplatform.v1beta1.TensorboardT" + + "imeSeriesB\003\340A\002\"h\n\037GetTensorboardTimeSeri" + + "esRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/aiplatf" + + "orm.googleapis.com/TensorboardTimeSeries" + + "\"\343\001\n ListTensorboardTimeSeriesRequest\022G\n" + + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/aiplatform.google" + + "apis.com/TensorboardTimeSeries\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.protobuf.FieldMask\"\225\001\n!ListT" + + "ensorboardTimeSeriesResponse\022W\n\027tensorbo" + + "ard_time_series\030\001 \003(\01326.google.cloud.aip" + + "latform.v1beta1.TensorboardTimeSeries\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\270\001\n\"UpdateTensorb" + + "oardTimeSeriesRequest\0224\n\013update_mask\030\001 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\\\n\027t" + + "ensorboard_time_series\030\002 \001(\01326.google.cl" + + "oud.aiplatform.v1beta1.TensorboardTimeSe" + + "riesB\003\340A\002\"k\n\"DeleteTensorboardTimeSeries" + + "Request\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/aiplatfor" + + "m.googleapis.com/TensorboardTimeSeries\"\251" + + "\001\n$ReadTensorboardTimeSeriesDataRequest\022" + + "X\n\027tensorboard_time_series\030\001 \001(\tB7\340A\002\372A1" + + "\n/aiplatform.googleapis.com/TensorboardT" + + "imeSeries\022\027\n\017max_data_points\030\002 \001(\005\022\016\n\006fi" + + "lter\030\003 \001(\t\"r\n%ReadTensorboardTimeSeriesD" + + "ataResponse\022I\n\020time_series_data\030\001 \001(\0132/." + + "google.cloud.aiplatform.v1beta1.TimeSeri" + + "esData\"\273\001\n\036WriteTensorboardRunDataReques" + + "t\022I\n\017tensorboard_run\030\001 \001(\tB0\340A\002\372A*\n(aipl" + + "atform.googleapis.com/TensorboardRun\022N\n\020" + + "time_series_data\030\002 \003(\0132/.google.cloud.ai" + + "platform.v1beta1.TimeSeriesDataB\003\340A\002\"!\n\037" + + "WriteTensorboardRunDataResponse\"\313\001\n&Expo" + + "rtTensorboardTimeSeriesDataRequest\022X\n\027te" + + "nsorboard_time_series\030\001 \001(\tB7\340A\002\372A1\n/aip" + + "latform.googleapis.com/TensorboardTimeSe" + + "ries\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\"\231\001" + + "\n\'ExportTensorboardTimeSeriesDataRespons" + + "e\022U\n\027time_series_data_points\030\001 \003(\01324.goo" + + "gle.cloud.aiplatform.v1beta1.TimeSeriesD" + + "ataPoint\022\027\n\017next_page_token\030\002 \001(\t\"y\n\"Cre" + + "ateTensorboardOperationMetadata\022S\n\020gener" + + "ic_metadata\030\001 \001(\01329.google.cloud.aiplatf" + + "orm.v1beta1.GenericOperationMetadata\"y\n\"" + + "UpdateTensorboardOperationMetadata\022S\n\020ge" + + "neric_metadata\030\001 \001(\01329.google.cloud.aipl" + + "atform.v1beta1.GenericOperationMetadata2" + + "\2554\n\022TensorboardService\022\203\002\n\021CreateTensorb" + + "oard\0229.google.cloud.aiplatform.v1beta1.C" + + "reateTensorboardRequest\032\035.google.longrun" + + "ning.Operation\"\223\001\202\323\344\223\002D\"5/v1beta1/{paren" + + "t=projects/*/locations/*}/tensorboards:\013" + + "tensorboard\332A\022parent,tensorboard\312A1\n\013Ten" + + "sorboard\022\"CreateTensorboardOperationMeta" + + "data\022\274\001\n\016GetTensorboard\0226.google.cloud.a" + + "iplatform.v1beta1.GetTensorboardRequest\032" + + ",.google.cloud.aiplatform.v1beta1.Tensor" + + "board\"D\202\323\344\223\0027\0225/v1beta1/{name=projects/*" + + "/locations/*/tensorboards/*}\332A\004name\022\224\002\n\021" + + "UpdateTensorboard\0229.google.cloud.aiplatf" + + "orm.v1beta1.UpdateTensorboardRequest\032\035.g" + + "oogle.longrunning.Operation\"\244\001\202\323\344\223\002P2A/v" + + "1beta1/{tensorboard.name=projects/*/loca" + + "tions/*/tensorboards/*}:\013tensorboard\332A\027t" + + "ensorboard,update_mask\312A1\n\013Tensorboard\022\"" + + "UpdateTensorboardOperationMetadata\022\317\001\n\020L" + + "istTensorboards\0228.google.cloud.aiplatfor" + + "m.v1beta1.ListTensorboardsRequest\0329.goog" + + "le.cloud.aiplatform.v1beta1.ListTensorbo" + + "ardsResponse\"F\202\323\344\223\0027\0225/v1beta1/{parent=p" + + "rojects/*/locations/*}/tensorboards\332A\006pa" + + "rent\022\346\001\n\021DeleteTensorboard\0229.google.clou" + + "d.aiplatform.v1beta1.DeleteTensorboardRe" + + "quest\032\035.google.longrunning.Operation\"w\202\323" + + "\344\223\0027*5/v1beta1/{name=projects/*/location" + + "s/*/tensorboards/*}\332A\004name\312A0\n\025google.pr" + + "otobuf.Empty\022\027DeleteOperationMetadata\022\272\002" + + "\n\033CreateTensorboardExperiment\022C.google.c" + + "loud.aiplatform.v1beta1.CreateTensorboar" + + "dExperimentRequest\0326.google.cloud.aiplat" + + "form.v1beta1.TensorboardExperiment\"\235\001\202\323\344" + + "\223\002]\"C/v1beta1/{parent=projects/*/locatio" + + "ns/*/tensorboards/*}/experiments:\026tensor" + + "board_experiment\332A7parent,tensorboard_ex" + + "periment,tensorboard_experiment_id\022\350\001\n\030G" + + "etTensorboardExperiment\022@.google.cloud.a" + + "iplatform.v1beta1.GetTensorboardExperime" + + "ntRequest\0326.google.cloud.aiplatform.v1be" + + "ta1.TensorboardExperiment\"R\202\323\344\223\002E\022C/v1be" + + "ta1/{name=projects/*/locations/*/tensorb" + + "oards/*/experiments/*}\332A\004name\022\274\002\n\033Update" + + "TensorboardExperiment\022C.google.cloud.aip" + + "latform.v1beta1.UpdateTensorboardExperim" + + "entRequest\0326.google.cloud.aiplatform.v1b" + + "eta1.TensorboardExperiment\"\237\001\202\323\344\223\002t2Z/v1" + + "beta1/{tensorboard_experiment.name=proje" + + "cts/*/locations/*/tensorboards/*/experim" + + "ents/*}:\026tensorboard_experiment\332A\"tensor" + + "board_experiment,update_mask\022\373\001\n\032ListTen" + + "sorboardExperiments\022B.google.cloud.aipla" + + "tform.v1beta1.ListTensorboardExperiments" + + "Request\032C.google.cloud.aiplatform.v1beta" + + "1.ListTensorboardExperimentsResponse\"T\202\323" + + "\344\223\002E\022C/v1beta1/{parent=projects/*/locati" + + "ons/*/tensorboards/*}/experiments\332A\006pare" + + "nt\022\211\002\n\033DeleteTensorboardExperiment\022C.goo" + + "gle.cloud.aiplatform.v1beta1.DeleteTenso" + + "rboardExperimentRequest\032\035.google.longrun" + + "ning.Operation\"\205\001\202\323\344\223\002E*C/v1beta1/{name=" + + "projects/*/locations/*/tensorboards/*/ex" + + "periments/*}\332A\004name\312A0\n\025google.protobuf." + + "Empty\022\027DeleteOperationMetadata\022\227\002\n\024Creat" + + "eTensorboardRun\022<.google.cloud.aiplatfor" + + "m.v1beta1.CreateTensorboardRunRequest\032/." + + "google.cloud.aiplatform.v1beta1.Tensorbo" + + "ardRun\"\217\001\202\323\344\223\002]\"J/v1beta1/{parent=projec" + + "ts/*/locations/*/tensorboards/*/experime" + + "nts/*}/runs:\017tensorboard_run\332A)parent,te" + + "nsorboard_run,tensorboard_run_id\022\332\001\n\021Get" + + "TensorboardRun\0229.google.cloud.aiplatform" + + ".v1beta1.GetTensorboardRunRequest\032/.goog" + + "le.cloud.aiplatform.v1beta1.TensorboardR" + + "un\"Y\202\323\344\223\002L\022J/v1beta1/{name=projects/*/lo" + + "cations/*/tensorboards/*/experiments/*/r" + + "uns/*}\332A\004name\022\231\002\n\024UpdateTensorboardRun\022<" + + ".google.cloud.aiplatform.v1beta1.UpdateT" + + "ensorboardRunRequest\032/.google.cloud.aipl" + + "atform.v1beta1.TensorboardRun\"\221\001\202\323\344\223\002m2Z" + + "/v1beta1/{tensorboard_run.name=projects/" + + "*/locations/*/tensorboards/*/experiments" + + "/*/runs/*}:\017tensorboard_run\332A\033tensorboar" + + "d_run,update_mask\022\355\001\n\023ListTensorboardRun" + + "s\022;.google.cloud.aiplatform.v1beta1.List" + + "TensorboardRunsRequest\032<.google.cloud.ai" + + "platform.v1beta1.ListTensorboardRunsResp" + + "onse\"[\202\323\344\223\002L\022J/v1beta1/{parent=projects/" + + "*/locations/*/tensorboards/*/experiments" + + "/*}/runs\332A\006parent\022\202\002\n\024DeleteTensorboardR" + + "un\022<.google.cloud.aiplatform.v1beta1.Del" + + "eteTensorboardRunRequest\032\035.google.longru" + + "nning.Operation\"\214\001\202\323\344\223\002L*J/v1beta1/{name" + + "=projects/*/locations/*/tensorboards/*/e" + + "xperiments/*/runs/*}\332A\004name\312A0\n\025google.p" + + "rotobuf.Empty\022\027DeleteOperationMetadata\022\266" + + "\002\n\033CreateTensorboardTimeSeries\022C.google." + + "cloud.aiplatform.v1beta1.CreateTensorboa" + + "rdTimeSeriesRequest\0326.google.cloud.aipla" + + "tform.v1beta1.TensorboardTimeSeries\"\231\001\202\323" + + "\344\223\002r\"W/v1beta1/{parent=projects/*/locati" + + "ons/*/tensorboards/*/experiments/*/runs/" + + "*}/timeSeries:\027tensorboard_time_series\332A" + + "\036parent,tensorboard_time_series\022\374\001\n\030GetT" + + "ensorboardTimeSeries\022@.google.cloud.aipl" + + "atform.v1beta1.GetTensorboardTimeSeriesR" + + "equest\0326.google.cloud.aiplatform.v1beta1" + + ".TensorboardTimeSeries\"f\202\323\344\223\002Y\022W/v1beta1" + + "/{name=projects/*/locations/*/tensorboar" + + "ds/*/experiments/*/runs/*/timeSeries/*}\332" + + "A\004name\022\324\002\n\033UpdateTensorboardTimeSeries\022C" + + ".google.cloud.aiplatform.v1beta1.UpdateT" + + "ensorboardTimeSeriesRequest\0326.google.clo" + + "ud.aiplatform.v1beta1.TensorboardTimeSer" + + "ies\"\267\001\202\323\344\223\002\212\0012o/v1beta1/{tensorboard_tim" + + "e_series.name=projects/*/locations/*/ten" + + "sorboards/*/experiments/*/runs/*/timeSer" + + "ies/*}:\027tensorboard_time_series\332A#tensor" + + "board_time_series,update_mask\022\214\002\n\031ListTe" + + "nsorboardTimeSeries\022A.google.cloud.aipla" + + "tform.v1beta1.ListTensorboardTimeSeriesR" + + "equest\032B.google.cloud.aiplatform.v1beta1" + + ".ListTensorboardTimeSeriesResponse\"h\202\323\344\223" + + "\002Y\022W/v1beta1/{parent=projects/*/location" + + "s/*/tensorboards/*/experiments/*/runs/*}" + + "/timeSeries\332A\006parent\022\235\002\n\033DeleteTensorboa" + + "rdTimeSeries\022C.google.cloud.aiplatform.v" + + "1beta1.DeleteTensorboardTimeSeriesReques" + + "t\032\035.google.longrunning.Operation\"\231\001\202\323\344\223\002" + + "Y*W/v1beta1/{name=projects/*/locations/*" + + "/tensorboards/*/experiments/*/runs/*/tim" + + "eSeries/*}\332A\004name\312A0\n\025google.protobuf.Em" + + "pty\022\027DeleteOperationMetadata\022\302\002\n\035ReadTen" + + "sorboardTimeSeriesData\022E.google.cloud.ai" + + "platform.v1beta1.ReadTensorboardTimeSeri" + + "esDataRequest\032F.google.cloud.aiplatform." + + "v1beta1.ReadTensorboardTimeSeriesDataRes" + + "ponse\"\221\001\202\323\344\223\002q\022o/v1beta1/{tensorboard_ti" + + "me_series=projects/*/locations/*/tensorb" + + "oards/*/experiments/*/runs/*/timeSeries/" + + "*}:read\332A\027tensorboard_time_series\022\242\002\n\027Re" + + "adTensorboardBlobData\022?.google.cloud.aip" + + "latform.v1beta1.ReadTensorboardBlobDataR" + + "equest\032@.google.cloud.aiplatform.v1beta1" + + ".ReadTensorboardBlobDataResponse\"\201\001\202\323\344\223\002" + + "m\022k/v1beta1/{time_series=projects/*/loca" + + "tions/*/tensorboards/*/experiments/*/run" + + "s/*/timeSeries/*}:readBlobData\332A\013time_se" + + "ries0\001\022\250\002\n\027WriteTensorboardRunData\022?.goo" + + "gle.cloud.aiplatform.v1beta1.WriteTensor" + + "boardRunDataRequest\032@.google.cloud.aipla" + + "tform.v1beta1.WriteTensorboardRunDataRes" + + "ponse\"\211\001\202\323\344\223\002`\"[/v1beta1/{tensorboard_ru" + + "n=projects/*/locations/*/tensorboards/*/" + + "experiments/*/runs/*}:write:\001*\332A tensorb" + + "oard_run,time_series_data\022\344\002\n\037ExportTens" + + "orboardTimeSeriesData\022G.google.cloud.aip" + + "latform.v1beta1.ExportTensorboardTimeSer" + + "iesDataRequest\032H.google.cloud.aiplatform" + + ".v1beta1.ExportTensorboardTimeSeriesData" + + "Response\"\255\001\202\323\344\223\002\214\001\"\206\001/v1beta1/{tensorboa" + + "rd_time_series=projects/*/locations/*/te" + + "nsorboards/*/experiments/*/runs/*/timeSe" + + "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" + + "loud.aiplatform.v1beta1B\027TensorboardServ" + + "iceProtoP\001ZIgoogle.golang.org/genproto/g" + + "oogleapis/cloud/aiplatform/v1beta1;aipla" + + "tformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardDataProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardRunProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRequest_descriptor, + new java.lang.String[] { + "Parent", "Tensorboard", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardsResponse_descriptor, + new java.lang.String[] { + "Tensorboards", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Tensorboard", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardExperimentRequest_descriptor, + new java.lang.String[] { + "Parent", "TensorboardExperiment", "TensorboardExperimentId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardExperimentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardExperimentsResponse_descriptor, + new java.lang.String[] { + "TensorboardExperiments", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "TensorboardExperiment", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardExperimentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardRunRequest_descriptor, + new java.lang.String[] { + "Parent", "TensorboardRun", "TensorboardRunId", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataRequest_descriptor, + new java.lang.String[] { + "TimeSeries", "BlobIds", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardBlobDataResponse_descriptor, + new java.lang.String[] { + "Blobs", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardRunsResponse_descriptor, + new java.lang.String[] { + "TensorboardRuns", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "TensorboardRun", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Parent", "TensorboardTimeSeriesId", "TensorboardTimeSeries", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetTensorboardTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTensorboardTimeSeriesResponse_descriptor, + new java.lang.String[] { + "TensorboardTimeSeries", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "TensorboardTimeSeries", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteTensorboardTimeSeriesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataRequest_descriptor, + new java.lang.String[] { + "TensorboardTimeSeries", "MaxDataPoints", "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReadTensorboardTimeSeriesDataResponse_descriptor, + new java.lang.String[] { + "TimeSeriesData", + }); + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor, + new java.lang.String[] { + "TensorboardRun", "TimeSeriesData", + }); + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataRequest_descriptor, + new java.lang.String[] { + "TensorboardTimeSeries", "Filter", "PageSize", "PageToken", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExportTensorboardTimeSeriesDataResponse_descriptor, + new java.lang.String[] { + "TimeSeriesDataPoints", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTensorboardOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardDataProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardRunProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java new file mode 100644 index 000000000..ca6f9351f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java @@ -0,0 +1,646 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * One point viewable on a tensor metric plot.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTensor} + */ +public final class TensorboardTensor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardTensor) + TensorboardTensorOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardTensor.newBuilder() to construct. + private TensorboardTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardTensor() { + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardTensor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardTensor( + 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: + { + value_ = input.readBytes(); + break; + } + case 16: + { + versionNumber_ = 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.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString value_; + /** + * + * + *
+   * Required. Serialized form of
+   * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
+   * 
+ * + * bytes value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int VERSION_NUMBER_FIELD_NUMBER = 2; + private int versionNumber_; + /** + * + * + *
+   * Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
+   * 
+ * + * int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The versionNumber. + */ + @java.lang.Override + public int getVersionNumber() { + return versionNumber_; + } + + 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 (!value_.isEmpty()) { + output.writeBytes(1, value_); + } + if (versionNumber_ != 0) { + output.writeInt32(2, versionNumber_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, value_); + } + if (versionNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, versionNumber_); + } + 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.TensorboardTensor)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardTensor other = + (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) obj; + + if (!getValue().equals(other.getValue())) return false; + if (getVersionNumber() != other.getVersionNumber()) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + VERSION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVersionNumber(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor 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.TensorboardTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor 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.TensorboardTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor 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.TensorboardTensor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor 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.TensorboardTensor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor 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.TensorboardTensor 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.TensorboardTensor 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.TensorboardTensor 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; + } + /** + * + * + *
+   * One point viewable on a tensor metric plot.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTensor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardTensor) + com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardTensor.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(); + value_ = com.google.protobuf.ByteString.EMPTY; + + versionNumber_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTensor_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor build() { + com.google.cloud.aiplatform.v1beta1.TensorboardTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardTensor result = + new com.google.cloud.aiplatform.v1beta1.TensorboardTensor(this); + result.value_ = value_; + result.versionNumber_ = versionNumber_; + 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.TensorboardTensor) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardTensor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardTensor other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance()) + return this; + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getVersionNumber() != 0) { + setVersionNumber(other.getVersionNumber()); + } + 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.TensorboardTensor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Required. Serialized form of
+     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
+     * 
+ * + * bytes value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * + * + *
+     * Required. Serialized form of
+     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
+     * 
+ * + * bytes value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Serialized form of
+     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
+     * 
+ * + * bytes value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private int versionNumber_; + /** + * + * + *
+     * Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
+     * 
+ * + * int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The versionNumber. + */ + @java.lang.Override + public int getVersionNumber() { + return versionNumber_; + } + /** + * + * + *
+     * Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
+     * 
+ * + * int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The versionNumber to set. + * @return This builder for chaining. + */ + public Builder setVersionNumber(int value) { + + versionNumber_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
+     * 
+ * + * int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersionNumber() { + + versionNumber_ = 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.TensorboardTensor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardTensor) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardTensor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardTensor(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardTensor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardTensor(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.TensorboardTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensorOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensorOrBuilder.java new file mode 100644 index 000000000..95ddfe83f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensorOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardTensorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardTensor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Serialized form of
+   * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
+   * 
+ * + * bytes value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + + /** + * + * + *
+   * Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value].
+   * 
+ * + * int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The versionNumber. + */ + int getVersionNumber(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java new file mode 100644 index 000000000..342710cd4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java @@ -0,0 +1,3765 @@ +/* + * 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/tensorboard_time_series.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TensorboardTimeSeries maps to times series produced in training runs
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTimeSeries} + */ +public final class TensorboardTimeSeries extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) + TensorboardTimeSeriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorboardTimeSeries.newBuilder() to construct. + private TensorboardTimeSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TensorboardTimeSeries() { + name_ = ""; + displayName_ = ""; + description_ = ""; + valueType_ = 0; + etag_ = ""; + pluginName_ = ""; + pluginData_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TensorboardTimeSeries(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TensorboardTimeSeries( + 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(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + valueType_ = rawValue; + break; + } + case 42: + { + 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 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + pluginName_ = s; + break; + } + case 74: + { + pluginData_ = input.readBytes(); + break; + } + case 82: + { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder + subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = 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.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder.class); + } + + /** + * + * + *
+   * An enum representing the value type of a TensorboardTimeSeries.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType} + */ + public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The value type is unspecified.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + VALUE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of scalars.
+     * E.g. accuracy of a model over epochs/time.
+     * 
+ * + * SCALAR = 1; + */ + SCALAR(1), + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of tensors.
+     * E.g. histograms of weights of layer in a model over epoch/time.
+     * 
+ * + * TENSOR = 2; + */ + TENSOR(2), + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of blob sequences.
+     * E.g. set of sample images with labels over epochs/time.
+     * 
+ * + * BLOB_SEQUENCE = 3; + */ + BLOB_SEQUENCE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The value type is unspecified.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + public static final int VALUE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of scalars.
+     * E.g. accuracy of a model over epochs/time.
+     * 
+ * + * SCALAR = 1; + */ + public static final int SCALAR_VALUE = 1; + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of tensors.
+     * E.g. histograms of weights of layer in a model over epoch/time.
+     * 
+ * + * TENSOR = 2; + */ + public static final int TENSOR_VALUE = 2; + /** + * + * + *
+     * Used for TensorboardTimeSeries that is a list of blob sequences.
+     * E.g. set of sample images with labels over epochs/time.
+     * 
+ * + * BLOB_SEQUENCE = 3; + */ + public static final int BLOB_SEQUENCE_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 ValueType 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 ValueType forNumber(int value) { + switch (value) { + case 0: + return VALUE_TYPE_UNSPECIFIED; + case 1: + return SCALAR; + case 2: + return TENSOR; + case 3: + return BLOB_SEQUENCE; + 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 ValueType findValueByNumber(int number) { + return ValueType.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.TensorboardTimeSeries.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ValueType[] VALUES = values(); + + public static ValueType 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 ValueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType) + } + + public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Max step index of all data points within a TensorboardTimeSeries.
+     * 
+ * + * int64 max_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxStep. + */ + long getMaxStep(); + + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maxWallTime field is set. + */ + boolean hasMaxWallTime(); + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxWallTime. + */ + com.google.protobuf.Timestamp getMaxWallTime(); + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getMaxWallTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The largest blob sequence length (number of blobs) of all data points in
+     * this time series, if its ValueType is BLOB_SEQUENCE.
+     * 
+ * + * int64 max_blob_sequence_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxBlobSequenceLength. + */ + long getMaxBlobSequenceLength(); + } + /** + * + * + *
+   * Describes metadata for a TensorboardTimeSeries.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata} + */ + public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Metadata( + 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: + { + maxStep_ = input.readInt64(); + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (maxWallTime_ != null) { + subBuilder = maxWallTime_.toBuilder(); + } + maxWallTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxWallTime_); + maxWallTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + maxBlobSequenceLength_ = 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.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder.class); + } + + public static final int MAX_STEP_FIELD_NUMBER = 1; + private long maxStep_; + /** + * + * + *
+     * Output only. Max step index of all data points within a TensorboardTimeSeries.
+     * 
+ * + * int64 max_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxStep. + */ + @java.lang.Override + public long getMaxStep() { + return maxStep_; + } + + public static final int MAX_WALL_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp maxWallTime_; + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maxWallTime field is set. + */ + @java.lang.Override + public boolean hasMaxWallTime() { + return maxWallTime_ != null; + } + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxWallTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMaxWallTime() { + return maxWallTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maxWallTime_; + } + /** + * + * + *
+     * Output only. Max wall clock timestamp of all data points within a
+     * TensorboardTimeSeries.
+     * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMaxWallTimeOrBuilder() { + return getMaxWallTime(); + } + + public static final int MAX_BLOB_SEQUENCE_LENGTH_FIELD_NUMBER = 3; + private long maxBlobSequenceLength_; + /** + * + * + *
+     * Output only. The largest blob sequence length (number of blobs) of all data points in
+     * this time series, if its ValueType is BLOB_SEQUENCE.
+     * 
+ * + * int64 max_blob_sequence_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxBlobSequenceLength. + */ + @java.lang.Override + public long getMaxBlobSequenceLength() { + return maxBlobSequenceLength_; + } + + 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 (maxStep_ != 0L) { + output.writeInt64(1, maxStep_); + } + if (maxWallTime_ != null) { + output.writeMessage(2, getMaxWallTime()); + } + if (maxBlobSequenceLength_ != 0L) { + output.writeInt64(3, maxBlobSequenceLength_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxStep_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxStep_); + } + if (maxWallTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxWallTime()); + } + if (maxBlobSequenceLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maxBlobSequenceLength_); + } + 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.TensorboardTimeSeries.Metadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata other = + (com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) obj; + + if (getMaxStep() != other.getMaxStep()) return false; + if (hasMaxWallTime() != other.hasMaxWallTime()) return false; + if (hasMaxWallTime()) { + if (!getMaxWallTime().equals(other.getMaxWallTime())) return false; + } + if (getMaxBlobSequenceLength() != other.getMaxBlobSequenceLength()) 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) + MAX_STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxStep()); + if (hasMaxWallTime()) { + hash = (37 * hash) + MAX_WALL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMaxWallTime().hashCode(); + } + hash = (37 * hash) + MAX_BLOB_SEQUENCE_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBlobSequenceLength()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + 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.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata 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.TensorboardTimeSeries.Metadata 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; + } + /** + * + * + *
+     * Describes metadata for a TensorboardTimeSeries.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.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(); + maxStep_ = 0L; + + if (maxWallTimeBuilder_ == null) { + maxWallTime_ = null; + } else { + maxWallTime_ = null; + maxWallTimeBuilder_ = null; + } + maxBlobSequenceLength_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata build() { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata result = + new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata(this); + result.maxStep_ = maxStep_; + if (maxWallTimeBuilder_ == null) { + result.maxWallTime_ = maxWallTime_; + } else { + result.maxWallTime_ = maxWallTimeBuilder_.build(); + } + result.maxBlobSequenceLength_ = maxBlobSequenceLength_; + 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.TensorboardTimeSeries.Metadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + .getDefaultInstance()) return this; + if (other.getMaxStep() != 0L) { + setMaxStep(other.getMaxStep()); + } + if (other.hasMaxWallTime()) { + mergeMaxWallTime(other.getMaxWallTime()); + } + if (other.getMaxBlobSequenceLength() != 0L) { + setMaxBlobSequenceLength(other.getMaxBlobSequenceLength()); + } + 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.TensorboardTimeSeries.Metadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxStep_; + /** + * + * + *
+       * Output only. Max step index of all data points within a TensorboardTimeSeries.
+       * 
+ * + * int64 max_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The maxStep. + */ + @java.lang.Override + public long getMaxStep() { + return maxStep_; + } + /** + * + * + *
+       * Output only. Max step index of all data points within a TensorboardTimeSeries.
+       * 
+ * + * int64 max_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The maxStep to set. + * @return This builder for chaining. + */ + public Builder setMaxStep(long value) { + + maxStep_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Max step index of all data points within a TensorboardTimeSeries.
+       * 
+ * + * int64 max_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMaxStep() { + + maxStep_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp maxWallTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + maxWallTimeBuilder_; + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maxWallTime field is set. + */ + public boolean hasMaxWallTime() { + return maxWallTimeBuilder_ != null || maxWallTime_ != null; + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxWallTime. + */ + public com.google.protobuf.Timestamp getMaxWallTime() { + if (maxWallTimeBuilder_ == null) { + return maxWallTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maxWallTime_; + } else { + return maxWallTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaxWallTime(com.google.protobuf.Timestamp value) { + if (maxWallTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxWallTime_ = value; + onChanged(); + } else { + maxWallTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMaxWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (maxWallTimeBuilder_ == null) { + maxWallTime_ = builderForValue.build(); + onChanged(); + } else { + maxWallTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMaxWallTime(com.google.protobuf.Timestamp value) { + if (maxWallTimeBuilder_ == null) { + if (maxWallTime_ != null) { + maxWallTime_ = + com.google.protobuf.Timestamp.newBuilder(maxWallTime_) + .mergeFrom(value) + .buildPartial(); + } else { + maxWallTime_ = value; + } + onChanged(); + } else { + maxWallTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMaxWallTime() { + if (maxWallTimeBuilder_ == null) { + maxWallTime_ = null; + onChanged(); + } else { + maxWallTime_ = null; + maxWallTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getMaxWallTimeBuilder() { + + onChanged(); + return getMaxWallTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMaxWallTimeOrBuilder() { + if (maxWallTimeBuilder_ != null) { + return maxWallTimeBuilder_.getMessageOrBuilder(); + } else { + return maxWallTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maxWallTime_; + } + } + /** + * + * + *
+       * Output only. Max wall clock timestamp of all data points within a
+       * TensorboardTimeSeries.
+       * 
+ * + * + * .google.protobuf.Timestamp max_wall_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMaxWallTimeFieldBuilder() { + if (maxWallTimeBuilder_ == null) { + maxWallTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMaxWallTime(), getParentForChildren(), isClean()); + maxWallTime_ = null; + } + return maxWallTimeBuilder_; + } + + private long maxBlobSequenceLength_; + /** + * + * + *
+       * Output only. The largest blob sequence length (number of blobs) of all data points in
+       * this time series, if its ValueType is BLOB_SEQUENCE.
+       * 
+ * + * int64 max_blob_sequence_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maxBlobSequenceLength. + */ + @java.lang.Override + public long getMaxBlobSequenceLength() { + return maxBlobSequenceLength_; + } + /** + * + * + *
+       * Output only. The largest blob sequence length (number of blobs) of all data points in
+       * this time series, if its ValueType is BLOB_SEQUENCE.
+       * 
+ * + * int64 max_blob_sequence_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The maxBlobSequenceLength to set. + * @return This builder for chaining. + */ + public Builder setMaxBlobSequenceLength(long value) { + + maxBlobSequenceLength_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The largest blob sequence length (number of blobs) of all data points in
+       * this time series, if its ValueType is BLOB_SEQUENCE.
+       * 
+ * + * int64 max_blob_sequence_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxBlobSequenceLength() { + + maxBlobSequenceLength_ = 0L; + 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.TensorboardTimeSeries.Metadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metadata(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.TensorboardTimeSeries.Metadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Name of the TensorboardTimeSeries.
+   * 
+ * + * 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. Name of the TensorboardTimeSeries.
+   * 
+ * + * 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_; + /** + * + * + *
+   * Required. User provided name of this TensorboardTimeSeries.
+   * This value should be unique among all TensorboardTimeSeries resources
+   * belonging to the same TensorboardRun resource (parent resource).
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. User provided name of this TensorboardTimeSeries.
+   * This value should be unique among all TensorboardTimeSeries resources
+   * belonging to the same TensorboardRun resource (parent resource).
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Description of this TensorboardTimeSeries.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Description of this TensorboardTimeSeries.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_TYPE_FIELD_NUMBER = 4; + private int valueType_; + /** + * + * + *
+   * Required. Immutable. Type of TensorboardTimeSeries value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+   * Required. Immutable. Type of TensorboardTimeSeries value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @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 PLUGIN_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object pluginName_; + /** + * + * + *
+   * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+   * Blob
+   * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pluginName. + */ + @java.lang.Override + public java.lang.String getPluginName() { + java.lang.Object ref = pluginName_; + 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(); + pluginName_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+   * Blob
+   * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pluginName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPluginNameBytes() { + java.lang.Object ref = pluginName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pluginName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLUGIN_DATA_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString pluginData_; + /** + * + * + *
+   * Data of the current plugin, with the size limited to 65KB.
+   * 
+ * + * bytes plugin_data = 9; + * + * @return The pluginData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPluginData() { + return pluginData_; + } + + public static final int METADATA_FIELD_NUMBER = 10; + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata_; + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata getMetadata() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder + getMetadataOrBuilder() { + return getMetadata(); + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType + .VALUE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, valueType_); + } + if (createTime_ != null) { + output.writeMessage(5, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); + } + if (!getPluginNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pluginName_); + } + if (!pluginData_.isEmpty()) { + output.writeBytes(9, pluginData_); + } + if (metadata_ != null) { + output.writeMessage(10, getMetadata()); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType + .VALUE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, valueType_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); + } + if (!getPluginNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pluginName_); + } + if (!pluginData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, pluginData_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata()); + } + 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.TensorboardTimeSeries)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries other = + (com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (valueType_ != other.valueType_) 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 (!getEtag().equals(other.getEtag())) return false; + if (!getPluginName().equals(other.getPluginName())) return false; + if (!getPluginData().equals(other.getPluginData())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + valueType_; + 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + PLUGIN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPluginName().hashCode(); + hash = (37 * hash) + PLUGIN_DATA_FIELD_NUMBER; + hash = (53 * hash) + getPluginData().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries 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.TensorboardTimeSeries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries 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.TensorboardTimeSeries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries 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.TensorboardTimeSeries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries 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.TensorboardTimeSeries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries 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.TensorboardTimeSeries 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.TensorboardTimeSeries 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.TensorboardTimeSeries 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; + } + /** + * + * + *
+   * TensorboardTimeSeries maps to times series produced in training runs
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TensorboardTimeSeries} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.class, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.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_ = ""; + + description_ = ""; + + valueType_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + etag_ = ""; + + pluginName_ = ""; + + pluginData_ = com.google.protobuf.ByteString.EMPTY; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesProto + .internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries build() { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries buildPartial() { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries result = + new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + result.valueType_ = valueType_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.etag_ = etag_; + result.pluginName_ = pluginName_; + result.pluginData_ = pluginData_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.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.TensorboardTimeSeries) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries other) { + if (other == com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.valueType_ != 0) { + setValueTypeValue(other.getValueTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getPluginName().isEmpty()) { + pluginName_ = other.pluginName_; + onChanged(); + } + if (other.getPluginData() != com.google.protobuf.ByteString.EMPTY) { + setPluginData(other.getPluginData()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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.TensorboardTimeSeries parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of the TensorboardTimeSeries.
+     * 
+ * + * 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. Name of the TensorboardTimeSeries.
+     * 
+ * + * 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. Name of the TensorboardTimeSeries.
+     * 
+ * + * 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. Name of the TensorboardTimeSeries.
+     * 
+ * + * 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. Name of the TensorboardTimeSeries.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Required. User provided name of this TensorboardTimeSeries.
+     * This value should be unique among all TensorboardTimeSeries resources
+     * belonging to the same TensorboardRun resource (parent resource).
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this TensorboardTimeSeries.
+     * This value should be unique among all TensorboardTimeSeries resources
+     * belonging to the same TensorboardRun resource (parent resource).
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. User provided name of this TensorboardTimeSeries.
+     * This value should be unique among all TensorboardTimeSeries resources
+     * belonging to the same TensorboardRun resource (parent resource).
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. User provided name of this TensorboardTimeSeries.
+     * This value should be unique among all TensorboardTimeSeries resources
+     * belonging to the same TensorboardRun resource (parent resource).
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided name of this TensorboardTimeSeries.
+     * This value should be unique among all TensorboardTimeSeries resources
+     * belonging to the same TensorboardRun resource (parent resource).
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Description of this TensorboardTimeSeries.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardTimeSeries.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Description of this TensorboardTimeSeries.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardTimeSeries.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Description of this TensorboardTimeSeries.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int valueType_ = 0; + /** + * + * + *
+     * Required. Immutable. Type of TensorboardTimeSeries value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+     * Required. Immutable. Type of TensorboardTimeSeries value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. + */ + public Builder setValueTypeValue(int value) { + + valueType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Type of TensorboardTimeSeries value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Type of TensorboardTimeSeries value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The valueType to set. + * @return This builder for chaining. + */ + public Builder setValueType( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value) { + if (value == null) { + throw new NullPointerException(); + } + + valueType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Type of TensorboardTimeSeries value.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueType() { + + valueType_ = 0; + 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. Timestamp when this TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 TensorboardTimeSeries was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 7; + * + * @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 java.lang.Object pluginName_ = ""; + /** + * + * + *
+     * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+     * Blob
+     * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pluginName. + */ + public java.lang.String getPluginName() { + java.lang.Object ref = pluginName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pluginName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+     * Blob
+     * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pluginName. + */ + public com.google.protobuf.ByteString getPluginNameBytes() { + java.lang.Object ref = pluginName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pluginName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+     * Blob
+     * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The pluginName to set. + * @return This builder for chaining. + */ + public Builder setPluginName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pluginName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+     * Blob
+     * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearPluginName() { + + pluginName_ = getDefaultInstance().getPluginName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+     * Blob
+     * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for pluginName to set. + * @return This builder for chaining. + */ + public Builder setPluginNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pluginName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString pluginData_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Data of the current plugin, with the size limited to 65KB.
+     * 
+ * + * bytes plugin_data = 9; + * + * @return The pluginData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPluginData() { + return pluginData_; + } + /** + * + * + *
+     * Data of the current plugin, with the size limited to 65KB.
+     * 
+ * + * bytes plugin_data = 9; + * + * @param value The pluginData to set. + * @return This builder for chaining. + */ + public Builder setPluginData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + pluginData_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Data of the current plugin, with the size limited to 65KB.
+     * 
+ * + * bytes plugin_data = 9; + * + * @return This builder for chaining. + */ + public Builder clearPluginData() { + + pluginData_ = getDefaultInstance().getPluginData(); + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + .getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder + builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMetadata( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.newBuilder( + metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder + getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + .getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @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.TensorboardTimeSeries) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) + private static final com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries(); + } + + public static com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorboardTimeSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TensorboardTimeSeries(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.TensorboardTimeSeries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java new file mode 100644 index 000000000..a998de9c3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java @@ -0,0 +1,338 @@ +/* + * 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 TensorboardTimeSeriesName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN_TIME_SERIES = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tensorboard; + private final String experiment; + private final String run; + private final String timeSeries; + + @Deprecated + protected TensorboardTimeSeriesName() { + project = null; + location = null; + tensorboard = null; + experiment = null; + run = null; + timeSeries = null; + } + + private TensorboardTimeSeriesName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tensorboard = Preconditions.checkNotNull(builder.getTensorboard()); + experiment = Preconditions.checkNotNull(builder.getExperiment()); + run = Preconditions.checkNotNull(builder.getRun()); + timeSeries = Preconditions.checkNotNull(builder.getTimeSeries()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public String getRun() { + return run; + } + + public String getTimeSeries() { + return timeSeries; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TensorboardTimeSeriesName of( + String project, + String location, + String tensorboard, + String experiment, + String run, + String timeSeries) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .setRun(run) + .setTimeSeries(timeSeries) + .build(); + } + + public static String format( + String project, + String location, + String tensorboard, + String experiment, + String run, + String timeSeries) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTensorboard(tensorboard) + .setExperiment(experiment) + .setRun(run) + .setTimeSeries(timeSeries) + .build() + .toString(); + } + + public static TensorboardTimeSeriesName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN_TIME_SERIES.validatedMatch( + formattedString, + "TensorboardTimeSeriesName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("tensorboard"), + matchMap.get("experiment"), + matchMap.get("run"), + matchMap.get("time_series")); + } + + 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 (TensorboardTimeSeriesName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN_TIME_SERIES.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 (tensorboard != null) { + fieldMapBuilder.put("tensorboard", tensorboard); + } + if (experiment != null) { + fieldMapBuilder.put("experiment", experiment); + } + if (run != null) { + fieldMapBuilder.put("run", run); + } + if (timeSeries != null) { + fieldMapBuilder.put("time_series", timeSeries); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TENSORBOARD_EXPERIMENT_RUN_TIME_SERIES.instantiate( + "project", + project, + "location", + location, + "tensorboard", + tensorboard, + "experiment", + experiment, + "run", + run, + "time_series", + timeSeries); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TensorboardTimeSeriesName that = ((TensorboardTimeSeriesName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tensorboard, that.tensorboard) + && Objects.equals(this.experiment, that.experiment) + && Objects.equals(this.run, that.run) + && Objects.equals(this.timeSeries, that.timeSeries); + } + 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(tensorboard); + h *= 1000003; + h ^= Objects.hashCode(experiment); + h *= 1000003; + h ^= Objects.hashCode(run); + h *= 1000003; + h ^= Objects.hashCode(timeSeries); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}. + */ + public static class Builder { + private String project; + private String location; + private String tensorboard; + private String experiment; + private String run; + private String timeSeries; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTensorboard() { + return tensorboard; + } + + public String getExperiment() { + return experiment; + } + + public String getRun() { + return run; + } + + public String getTimeSeries() { + return timeSeries; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTensorboard(String tensorboard) { + this.tensorboard = tensorboard; + return this; + } + + public Builder setExperiment(String experiment) { + this.experiment = experiment; + return this; + } + + public Builder setRun(String run) { + this.run = run; + return this; + } + + public Builder setTimeSeries(String timeSeries) { + this.timeSeries = timeSeries; + return this; + } + + private Builder(TensorboardTimeSeriesName tensorboardTimeSeriesName) { + project = tensorboardTimeSeriesName.project; + location = tensorboardTimeSeriesName.location; + tensorboard = tensorboardTimeSeriesName.tensorboard; + experiment = tensorboardTimeSeriesName.experiment; + run = tensorboardTimeSeriesName.run; + timeSeries = tensorboardTimeSeriesName.timeSeries; + } + + public TensorboardTimeSeriesName build() { + return new TensorboardTimeSeriesName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesOrBuilder.java new file mode 100644 index 000000000..c1340cafc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesOrBuilder.java @@ -0,0 +1,318 @@ +/* + * 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/tensorboard_time_series.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TensorboardTimeSeriesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TensorboardTimeSeries) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of the TensorboardTimeSeries.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of the TensorboardTimeSeries.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. User provided name of this TensorboardTimeSeries.
+   * This value should be unique among all TensorboardTimeSeries resources
+   * belonging to the same TensorboardRun resource (parent resource).
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. User provided name of this TensorboardTimeSeries.
+   * This value should be unique among all TensorboardTimeSeries resources
+   * belonging to the same TensorboardRun resource (parent resource).
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Description of this TensorboardTimeSeries.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Description of this TensorboardTimeSeries.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. Type of TensorboardTimeSeries value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + int getValueTypeValue(); + /** + * + * + *
+   * Required. Immutable. Type of TensorboardTimeSeries value.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this TensorboardTimeSeries was last 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 TensorboardTimeSeries was last 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 TensorboardTimeSeries was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+   * Blob
+   * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pluginName. + */ + java.lang.String getPluginName(); + /** + * + * + *
+   * Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor,
+   * Blob
+   * 
+ * + * string plugin_name = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pluginName. + */ + com.google.protobuf.ByteString getPluginNameBytes(); + + /** + * + * + *
+   * Data of the current plugin, with the size limited to 65KB.
+   * 
+ * + * bytes plugin_data = 9; + * + * @return The pluginData. + */ + com.google.protobuf.ByteString getPluginData(); + + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata getMetadata(); + /** + * + * + *
+   * Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder + getMetadataOrBuilder(); +} 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 new file mode 100644 index 000000000..cbc09d7c2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java @@ -0,0 +1,128 @@ +/* + * 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/tensorboard_time_series.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TensorboardTimeSeriesProto { + private TensorboardTimeSeriesProto() {} + + 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_v1beta1_TensorboardTimeSeries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_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/v1beta1/tensor" + + "board_time_series.proto\022\037google.cloud.ai" + + "platform.v1beta1\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\034google/ap" + + "i/annotations.proto\"\311\006\n\025TensorboardTimeS" + + "eries\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name" + + "\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\\\n\nvalu" + + "e_type\030\004 \001(\0162@.google.cloud.aiplatform.v" + + "1beta1.TensorboardTimeSeries.ValueTypeB\006" + + "\340A\002\340A\005\0224\n\013create_time\030\005 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004et" + + "ag\030\007 \001(\t\022\030\n\013plugin_name\030\010 \001(\tB\003\340A\005\022\023\n\013pl" + + "ugin_data\030\t \001(\014\022V\n\010metadata\030\n \001(\0132?.goog" + + "le.cloud.aiplatform.v1beta1.TensorboardT" + + "imeSeries.MetadataB\003\340A\003\032\200\001\n\010Metadata\022\025\n\010" + + "max_step\030\001 \001(\003B\003\340A\003\0226\n\rmax_wall_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022%\n\030m" + + "ax_blob_sequence_length\030\003 \001(\003B\003\340A\003\"R\n\tVa" + + "lueType\022\032\n\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n\006S" + + "CALAR\020\001\022\n\n\006TENSOR\020\002\022\021\n\rBLOB_SEQUENCE\020\003:\266" + + "\001\352A\262\001\n/aiplatform.googleapis.com/Tensorb" + + "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" + + "loud.aiplatform.v1beta1B\032TensorboardTime" + + "SeriesProtoP\001ZIgoogle.golang.org/genprot" + + "o/googleapis/cloud/aiplatform/v1beta1;ai" + + "platformb\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.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "ValueType", + "CreateTime", + "UpdateTime", + "Etag", + "PluginName", + "PluginData", + "Metadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TensorboardTimeSeries_Metadata_descriptor, + new java.lang.String[] { + "MaxStep", "MaxWallTime", "MaxBlobSequenceLength", + }); + 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.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java new file mode 100644 index 000000000..64005fad0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java @@ -0,0 +1,713 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The config for feature monitoring threshold.
+ * Next ID: 3
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ThresholdConfig} + */ +public final class ThresholdConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ThresholdConfig) + ThresholdConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThresholdConfig.newBuilder() to construct. + private ThresholdConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ThresholdConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThresholdConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ThresholdConfig( + 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 9: + { + thresholdCase_ = 1; + threshold_ = input.readDouble(); + 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_ThresholdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.class, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder.class); + } + + private int thresholdCase_ = 0; + private java.lang.Object threshold_; + + public enum ThresholdCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(1), + THRESHOLD_NOT_SET(0); + private final int value; + + private ThresholdCase(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 ThresholdCase valueOf(int value) { + return forNumber(value); + } + + public static ThresholdCase forNumber(int value) { + switch (value) { + case 1: + return VALUE; + case 0: + return THRESHOLD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ThresholdCase getThresholdCase() { + return ThresholdCase.forNumber(thresholdCase_); + } + + public static final int VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * Specify a threshold value that can trigger the alert.
+   * If this threshold config is for feature distribution distance:
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * Each feature must have a non-zero threshold if they need to be monitored.
+   * Otherwise no alert will be triggered for that feature.
+   * 
+ * + * double value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return thresholdCase_ == 1; + } + /** + * + * + *
+   * Specify a threshold value that can trigger the alert.
+   * If this threshold config is for feature distribution distance:
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * Each feature must have a non-zero threshold if they need to be monitored.
+   * Otherwise no alert will be triggered for that feature.
+   * 
+ * + * double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + if (thresholdCase_ == 1) { + return (java.lang.Double) threshold_; + } + return 0D; + } + + 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 (thresholdCase_ == 1) { + output.writeDouble(1, (double) ((java.lang.Double) threshold_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (thresholdCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 1, (double) ((java.lang.Double) threshold_)); + } + 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.ThresholdConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ThresholdConfig other = + (com.google.cloud.aiplatform.v1beta1.ThresholdConfig) obj; + + if (!getThresholdCase().equals(other.getThresholdCase())) return false; + switch (thresholdCase_) { + case 1: + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) 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 (thresholdCase_) { + case 1: + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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.ThresholdConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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.ThresholdConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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.ThresholdConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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.ThresholdConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig 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.ThresholdConfig 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.ThresholdConfig 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.ThresholdConfig 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 feature monitoring threshold.
+   * Next ID: 3
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ThresholdConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ThresholdConfig) + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.class, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ThresholdConfig.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(); + thresholdCase_ = 0; + threshold_ = 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_ThresholdConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig build() { + com.google.cloud.aiplatform.v1beta1.ThresholdConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ThresholdConfig result = + new com.google.cloud.aiplatform.v1beta1.ThresholdConfig(this); + if (thresholdCase_ == 1) { + result.threshold_ = threshold_; + } + result.thresholdCase_ = thresholdCase_; + 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.ThresholdConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ThresholdConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ThresholdConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()) + return this; + switch (other.getThresholdCase()) { + case VALUE: + { + setValue(other.getValue()); + break; + } + case THRESHOLD_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.ThresholdConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ThresholdConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int thresholdCase_ = 0; + private java.lang.Object threshold_; + + public ThresholdCase getThresholdCase() { + return ThresholdCase.forNumber(thresholdCase_); + } + + public Builder clearThreshold() { + thresholdCase_ = 0; + threshold_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specify a threshold value that can trigger the alert.
+     * If this threshold config is for feature distribution distance:
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * Each feature must have a non-zero threshold if they need to be monitored.
+     * Otherwise no alert will be triggered for that feature.
+     * 
+ * + * double value = 1; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return thresholdCase_ == 1; + } + /** + * + * + *
+     * Specify a threshold value that can trigger the alert.
+     * If this threshold config is for feature distribution distance:
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * Each feature must have a non-zero threshold if they need to be monitored.
+     * Otherwise no alert will be triggered for that feature.
+     * 
+ * + * double value = 1; + * + * @return The value. + */ + public double getValue() { + if (thresholdCase_ == 1) { + return (java.lang.Double) threshold_; + } + return 0D; + } + /** + * + * + *
+     * Specify a threshold value that can trigger the alert.
+     * If this threshold config is for feature distribution distance:
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * Each feature must have a non-zero threshold if they need to be monitored.
+     * Otherwise no alert will be triggered for that feature.
+     * 
+ * + * double value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + thresholdCase_ = 1; + threshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specify a threshold value that can trigger the alert.
+     * If this threshold config is for feature distribution distance:
+     *   1. For categorical feature, the distribution distance is calculated by
+     *      L-inifinity norm.
+     *   2. For numerical feature, the distribution distance is calculated by
+     *      Jensen–Shannon divergence.
+     * Each feature must have a non-zero threshold if they need to be monitored.
+     * Otherwise no alert will be triggered for that feature.
+     * 
+ * + * double value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + if (thresholdCase_ == 1) { + thresholdCase_ = 0; + threshold_ = null; + 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.ThresholdConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ThresholdConfig) + private static final com.google.cloud.aiplatform.v1beta1.ThresholdConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ThresholdConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThresholdConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThresholdConfig(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.ThresholdConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfigOrBuilder.java new file mode 100644 index 000000000..bd7f77e37 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ThresholdConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ThresholdConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specify a threshold value that can trigger the alert.
+   * If this threshold config is for feature distribution distance:
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * Each feature must have a non-zero threshold if they need to be monitored.
+   * Otherwise no alert will be triggered for that feature.
+   * 
+ * + * double value = 1; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * Specify a threshold value that can trigger the alert.
+   * If this threshold config is for feature distribution distance:
+   *   1. For categorical feature, the distribution distance is calculated by
+   *      L-inifinity norm.
+   *   2. For numerical feature, the distribution distance is calculated by
+   *      Jensen–Shannon divergence.
+   * Each feature must have a non-zero threshold if they need to be monitored.
+   * Otherwise no alert will be triggered for that feature.
+   * 
+ * + * double value = 1; + * + * @return The value. + */ + double getValue(); + + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.ThresholdCase getThresholdCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java new file mode 100644 index 000000000..6fc672fe3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java @@ -0,0 +1,1380 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * All the data stored in a TensorboardTimeSeries.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TimeSeriesData} + */ +public final class TimeSeriesData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TimeSeriesData) + TimeSeriesDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeSeriesData.newBuilder() to construct. + private TimeSeriesData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeSeriesData() { + tensorboardTimeSeriesId_ = ""; + valueType_ = 0; + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeSeriesData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeSeriesData( + 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(); + + tensorboardTimeSeriesId_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + valueType_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint>(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.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)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.class, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder.class); + } + + public static final int TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object tensorboardTimeSeriesId_; + /** + * + * + *
+   * Required. The ID of the TensorboardTimeSeries, which will become the final component
+   * of the TensorboardTimeSeries' resource name
+   * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardTimeSeriesId. + */ + @java.lang.Override + public java.lang.String getTensorboardTimeSeriesId() { + java.lang.Object ref = tensorboardTimeSeriesId_; + 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(); + tensorboardTimeSeriesId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the TensorboardTimeSeries, which will become the final component
+   * of the TensorboardTimeSeries' resource name
+   * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeriesId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_TYPE_FIELD_NUMBER = 2; + private int valueType_; + /** + * + * + *
+   * Required. Immutable. The value type of this time series. All the values in this time series data
+   * must match this value type.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+   * Required. Immutable. The value type of this time series. All the values in this time series data
+   * must match this value type.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED + : result; + } + + public static final int VALUES_FIELD_NUMBER = 3; + private java.util.List values_; + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder getValuesOrBuilder( + int index) { + return values_.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 (!getTensorboardTimeSeriesIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorboardTimeSeriesId_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType + .VALUE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, valueType_); + } + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(3, values_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTensorboardTimeSeriesIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorboardTimeSeriesId_); + } + if (valueType_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType + .VALUE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); + } + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.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.TimeSeriesData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TimeSeriesData other = + (com.google.cloud.aiplatform.v1beta1.TimeSeriesData) obj; + + if (!getTensorboardTimeSeriesId().equals(other.getTensorboardTimeSeriesId())) return false; + if (valueType_ != other.valueType_) return false; + if (!getValuesList().equals(other.getValuesList())) 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) + TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeriesId().hashCode(); + hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + valueType_; + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData 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.TimeSeriesData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData 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.TimeSeriesData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData 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.TimeSeriesData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData 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.TimeSeriesData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData 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.TimeSeriesData 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.TimeSeriesData 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.TimeSeriesData 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; + } + /** + * + * + *
+   * All the data stored in a TensorboardTimeSeries.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TimeSeriesData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TimeSeriesData) + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.class, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TimeSeriesData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + tensorboardTimeSeriesId_ = ""; + + valueType_ = 0; + + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData build() { + com.google.cloud.aiplatform.v1beta1.TimeSeriesData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData buildPartial() { + com.google.cloud.aiplatform.v1beta1.TimeSeriesData result = + new com.google.cloud.aiplatform.v1beta1.TimeSeriesData(this); + int from_bitField0_ = bitField0_; + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + result.valueType_ = valueType_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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.TimeSeriesData) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TimeSeriesData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimeSeriesData other) { + if (other == com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance()) + return this; + if (!other.getTensorboardTimeSeriesId().isEmpty()) { + tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + onChanged(); + } + if (other.valueType_ != 0) { + setValueTypeValue(other.getValueTypeValue()); + } + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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.TimeSeriesData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TimeSeriesData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object tensorboardTimeSeriesId_ = ""; + /** + * + * + *
+     * Required. The ID of the TensorboardTimeSeries, which will become the final component
+     * of the TensorboardTimeSeries' resource name
+     * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardTimeSeriesId. + */ + public java.lang.String getTensorboardTimeSeriesId() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardTimeSeriesId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the TensorboardTimeSeries, which will become the final component
+     * of the TensorboardTimeSeries' resource name
+     * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { + java.lang.Object ref = tensorboardTimeSeriesId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardTimeSeriesId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the TensorboardTimeSeries, which will become the final component
+     * of the TensorboardTimeSeries' resource name
+     * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tensorboardTimeSeriesId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardTimeSeriesId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the TensorboardTimeSeries, which will become the final component
+     * of the TensorboardTimeSeries' resource name
+     * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTensorboardTimeSeriesId() { + + tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the TensorboardTimeSeries, which will become the final component
+     * of the TensorboardTimeSeries' resource name
+     * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tensorboardTimeSeriesId to set. + * @return This builder for chaining. + */ + public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardTimeSeriesId_ = value; + onChanged(); + return this; + } + + private int valueType_ = 0; + /** + * + * + *
+     * Required. Immutable. The value type of this time series. All the values in this time series data
+     * must match this value type.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + /** + * + * + *
+     * Required. Immutable. The value type of this time series. All the values in this time series data
+     * must match this value type.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. + */ + public Builder setValueTypeValue(int value) { + + valueType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The value type of this time series. All the values in this time series data
+     * must match this value type.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The value type of this time series. All the values in this time series data
+     * must match this value type.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The valueType to set. + * @return This builder for chaining. + */ + public Builder setValueType( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value) { + if (value == null) { + throw new NullPointerException(); + } + + valueType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The value type of this time series. All the values in this time series data
+     * must match this value type.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueType() { + + valueType_ = 0; + onChanged(); + return this; + } + + private java.util.List values_ = + java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = + new java.util.ArrayList( + values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + valuesBuilder_; + + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValues( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValues( + int index, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues(com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues( + int index, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllValues( + java.lang.Iterable + values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Data points in this time series.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @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.TimeSeriesData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TimeSeriesData) + private static final com.google.cloud.aiplatform.v1beta1.TimeSeriesData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TimeSeriesData(); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeSeriesData(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.TimeSeriesData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataOrBuilder.java new file mode 100644 index 000000000..0e31f7d48 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataOrBuilder.java @@ -0,0 +1,145 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TimeSeriesDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TimeSeriesData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the TensorboardTimeSeries, which will become the final component
+   * of the TensorboardTimeSeries' resource name
+   * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tensorboardTimeSeriesId. + */ + java.lang.String getTensorboardTimeSeriesId(); + /** + * + * + *
+   * Required. The ID of the TensorboardTimeSeries, which will become the final component
+   * of the TensorboardTimeSeries' resource name
+   * 
+ * + * string tensorboard_time_series_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tensorboardTimeSeriesId. + */ + com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes(); + + /** + * + * + *
+   * Required. Immutable. The value type of this time series. All the values in this time series data
+   * must match this value type.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + int getValueTypeValue(); + /** + * + * + *
+   * Required. Immutable. The value type of this time series. All the values in this time series data
+   * must match this value type.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The valueType. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType(); + + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getValuesList(); + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getValues(int index); + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getValuesCount(); + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getValuesOrBuilderList(); + /** + * + * + *
+   * Required. Data points in this time series.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder getValuesOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java new file mode 100644 index 000000000..c04c5e57b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java @@ -0,0 +1,1816 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A TensorboardTimeSeries data point.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint} + */ +public final class TimeSeriesDataPoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) + TimeSeriesDataPointOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeSeriesDataPoint.newBuilder() to construct. + private TimeSeriesDataPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeSeriesDataPoint() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeSeriesDataPoint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeSeriesDataPoint( + 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.protobuf.Timestamp.Builder subBuilder = null; + if (wallTime_ != null) { + subBuilder = wallTime_.toBuilder(); + } + wallTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wallTime_); + wallTime_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + step_ = input.readInt64(); + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.Scalar.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: + { + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_).toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: + { + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_) + .toBuilder(); + } + value_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + 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.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.class, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.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 { + SCALAR(3), + TENSOR(4), + BLOBS(5), + 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 3: + return SCALAR; + case 4: + return TENSOR; + case 5: + return BLOBS; + 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 SCALAR_FIELD_NUMBER = 3; + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return Whether the scalar field is set. + */ + @java.lang.Override + public boolean hasScalar() { + return valueCase_ == 3; + } + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return The scalar. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scalar getScalar() { + if (valueCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.Scalar) value_; + } + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.Scalar) value_; + } + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + + public static final int TENSOR_FIELD_NUMBER = 4; + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return valueCase_ == 4; + } + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return The tensor. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor getTensor() { + if (valueCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder getTensorOrBuilder() { + if (valueCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + + public static final int BLOBS_FIELD_NUMBER = 5; + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return Whether the blobs field is set. + */ + @java.lang.Override + public boolean hasBlobs() { + return valueCase_ == 5; + } + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return The blobs. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence getBlobs() { + if (valueCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder getBlobsOrBuilder() { + if (valueCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + + public static final int WALL_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp wallTime_; + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return Whether the wallTime field is set. + */ + @java.lang.Override + public boolean hasWallTime() { + return wallTime_ != null; + } + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return The wallTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getWallTime() { + return wallTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : wallTime_; + } + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getWallTimeOrBuilder() { + return getWallTime(); + } + + public static final int STEP_FIELD_NUMBER = 2; + private long step_; + /** + * + * + *
+   * Step index of this data point within the run.
+   * 
+ * + * int64 step = 2; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + 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 (wallTime_ != null) { + output.writeMessage(1, getWallTime()); + } + if (step_ != 0L) { + output.writeInt64(2, step_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.Scalar) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (wallTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWallTime()); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, step_); + } + if (valueCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.Scalar) value_); + } + if (valueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_); + } + if (valueCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) 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.v1beta1.TimeSeriesDataPoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint other = + (com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) obj; + + if (hasWallTime() != other.hasWallTime()) return false; + if (hasWallTime()) { + if (!getWallTime().equals(other.getWallTime())) return false; + } + if (getStep() != other.getStep()) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 3: + if (!getScalar().equals(other.getScalar())) return false; + break; + case 4: + if (!getTensor().equals(other.getTensor())) return false; + break; + case 5: + if (!getBlobs().equals(other.getBlobs())) 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(); + if (hasWallTime()) { + hash = (37 * hash) + WALL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWallTime().hashCode(); + } + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStep()); + switch (valueCase_) { + case 3: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 4: + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensor().hashCode(); + break; + case 5: + hash = (37 * hash) + BLOBS_FIELD_NUMBER; + hash = (53 * hash) + getBlobs().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint 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.TimeSeriesDataPoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint 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.TimeSeriesDataPoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint 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.TimeSeriesDataPoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint 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.TimeSeriesDataPoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint 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.TimeSeriesDataPoint 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.TimeSeriesDataPoint 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.TimeSeriesDataPoint 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 TensorboardTimeSeries data point.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.class, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.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 (wallTimeBuilder_ == null) { + wallTime_ = null; + } else { + wallTime_ = null; + wallTimeBuilder_ = null; + } + step_ = 0L; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardDataProto + .internal_static_google_cloud_aiplatform_v1beta1_TimeSeriesDataPoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint build() { + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint buildPartial() { + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint result = + new com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint(this); + if (valueCase_ == 3) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (tensorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tensorBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (blobsBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blobsBuilder_.build(); + } + } + if (wallTimeBuilder_ == null) { + result.wallTime_ = wallTime_; + } else { + result.wallTime_ = wallTimeBuilder_.build(); + } + result.step_ = step_; + 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.v1beta1.TimeSeriesDataPoint) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint other) { + if (other == com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.getDefaultInstance()) + return this; + if (other.hasWallTime()) { + mergeWallTime(other.getWallTime()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + switch (other.getValueCase()) { + case SCALAR: + { + mergeScalar(other.getScalar()); + break; + } + case TENSOR: + { + mergeTensor(other.getTensor()); + break; + } + case BLOBS: + { + mergeBlobs(other.getBlobs()); + 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.v1beta1.TimeSeriesDataPoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) 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; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Scalar, + com.google.cloud.aiplatform.v1beta1.Scalar.Builder, + com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder> + scalarBuilder_; + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return Whether the scalar field is set. + */ + @java.lang.Override + public boolean hasScalar() { + return valueCase_ == 3; + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return The scalar. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.Scalar) value_; + } + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return scalarBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + public Builder setScalar(com.google.cloud.aiplatform.v1beta1.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + public Builder setScalar(com.google.cloud.aiplatform.v1beta1.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + public Builder mergeScalar(com.google.cloud.aiplatform.v1beta1.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 3 + && value_ != com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.Scalar.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Scalar) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 3) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.Scalar) value_; + } + return com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + } + /** + * + * + *
+     * A scalar value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Scalar, + com.google.cloud.aiplatform.v1beta1.Scalar.Builder, + com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = com.google.cloud.aiplatform.v1beta1.Scalar.getDefaultInstance(); + } + scalarBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Scalar, + com.google.cloud.aiplatform.v1beta1.Scalar.Builder, + com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged(); + ; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTensor, + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder> + tensorBuilder_; + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return valueCase_ == 4; + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return The tensor. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor getTensor() { + if (tensorBuilder_ == null) { + if (valueCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return tensorBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + public Builder setTensor(com.google.cloud.aiplatform.v1beta1.TensorboardTensor value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tensorBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + public Builder setTensor( + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder builderForValue) { + if (tensorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tensorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + public Builder mergeTensor(com.google.cloud.aiplatform.v1beta1.TensorboardTensor value) { + if (tensorBuilder_ == null) { + if (valueCase_ == 4 + && value_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + tensorBuilder_.mergeFrom(value); + } + tensorBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + tensorBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder getTensorBuilder() { + return getTensorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder getTensorOrBuilder() { + if ((valueCase_ == 4) && (tensorBuilder_ != null)) { + return tensorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + } + /** + * + * + *
+     * A tensor value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTensor, + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = com.google.cloud.aiplatform.v1beta1.TensorboardTensor.getDefaultInstance(); + } + tensorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTensor, + com.google.cloud.aiplatform.v1beta1.TensorboardTensor.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TensorboardTensor) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged(); + ; + return tensorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder> + blobsBuilder_; + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return Whether the blobs field is set. + */ + @java.lang.Override + public boolean hasBlobs() { + return valueCase_ == 5; + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return The blobs. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence getBlobs() { + if (blobsBuilder_ == null) { + if (valueCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return blobsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + public Builder setBlobs(com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence value) { + if (blobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blobsBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + public Builder setBlobs( + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder builderForValue) { + if (blobsBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blobsBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + public Builder mergeBlobs(com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence value) { + if (blobsBuilder_ == null) { + if (valueCase_ == 5 + && value_ + != com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence + .getDefaultInstance()) { + value_ = + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + blobsBuilder_.mergeFrom(value); + } + blobsBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + public Builder clearBlobs() { + if (blobsBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + blobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder getBlobsBuilder() { + return getBlobsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder + getBlobsOrBuilder() { + if ((valueCase_ == 5) && (blobsBuilder_ != null)) { + return blobsBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_; + } + return com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + } + /** + * + * + *
+     * A blob sequence value.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder> + getBlobsFieldBuilder() { + if (blobsBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.getDefaultInstance(); + } + blobsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged(); + ; + return blobsBuilder_; + } + + private com.google.protobuf.Timestamp wallTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + wallTimeBuilder_; + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return Whether the wallTime field is set. + */ + public boolean hasWallTime() { + return wallTimeBuilder_ != null || wallTime_ != null; + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return The wallTime. + */ + public com.google.protobuf.Timestamp getWallTime() { + if (wallTimeBuilder_ == null) { + return wallTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : wallTime_; + } else { + return wallTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public Builder setWallTime(com.google.protobuf.Timestamp value) { + if (wallTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wallTime_ = value; + onChanged(); + } else { + wallTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public Builder setWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (wallTimeBuilder_ == null) { + wallTime_ = builderForValue.build(); + onChanged(); + } else { + wallTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public Builder mergeWallTime(com.google.protobuf.Timestamp value) { + if (wallTimeBuilder_ == null) { + if (wallTime_ != null) { + wallTime_ = + com.google.protobuf.Timestamp.newBuilder(wallTime_).mergeFrom(value).buildPartial(); + } else { + wallTime_ = value; + } + onChanged(); + } else { + wallTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public Builder clearWallTime() { + if (wallTimeBuilder_ == null) { + wallTime_ = null; + onChanged(); + } else { + wallTime_ = null; + wallTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getWallTimeBuilder() { + + onChanged(); + return getWallTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getWallTimeOrBuilder() { + if (wallTimeBuilder_ != null) { + return wallTimeBuilder_.getMessageOrBuilder(); + } else { + return wallTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : wallTime_; + } + } + /** + * + * + *
+     * Wall clock timestamp when this data point is generated by the end user.
+     * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getWallTimeFieldBuilder() { + if (wallTimeBuilder_ == null) { + wallTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getWallTime(), getParentForChildren(), isClean()); + wallTime_ = null; + } + return wallTimeBuilder_; + } + + private long step_; + /** + * + * + *
+     * Step index of this data point within the run.
+     * 
+ * + * int64 step = 2; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + /** + * + * + *
+     * Step index of this data point within the run.
+     * 
+ * + * int64 step = 2; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Step index of this data point within the run.
+     * 
+ * + * int64 step = 2; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + + step_ = 0L; + 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.TimeSeriesDataPoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) + private static final com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint(); + } + + public static com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesDataPoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeSeriesDataPoint(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.TimeSeriesDataPoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPointOrBuilder.java new file mode 100644 index 000000000..81a5abb6a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPointOrBuilder.java @@ -0,0 +1,180 @@ +/* + * 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/tensorboard_data.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface TimeSeriesDataPointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return Whether the scalar field is set. + */ + boolean hasScalar(); + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + * + * @return The scalar. + */ + com.google.cloud.aiplatform.v1beta1.Scalar getScalar(); + /** + * + * + *
+   * A scalar value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Scalar scalar = 3; + */ + com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder getScalarOrBuilder(); + + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return Whether the tensor field is set. + */ + boolean hasTensor(); + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + * + * @return The tensor. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTensor getTensor(); + /** + * + * + *
+   * A tensor value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardTensor tensor = 4; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder getTensorOrBuilder(); + + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return Whether the blobs field is set. + */ + boolean hasBlobs(); + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + * + * @return The blobs. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence getBlobs(); + /** + * + * + *
+   * A blob sequence value.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TensorboardBlobSequence blobs = 5; + */ + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequenceOrBuilder getBlobsOrBuilder(); + + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return Whether the wallTime field is set. + */ + boolean hasWallTime(); + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + * + * @return The wallTime. + */ + com.google.protobuf.Timestamp getWallTime(); + /** + * + * + *
+   * Wall clock timestamp when this data point is generated by the end user.
+   * 
+ * + * .google.protobuf.Timestamp wall_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getWallTimeOrBuilder(); + + /** + * + * + *
+   * Step index of this data point within the run.
+   * 
+ * + * int64 step = 2; + * + * @return The step. + */ + long getStep(); + + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.ValueCase getValueCase(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java index 03f4b1206..79635058b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java @@ -24,8 +24,8 @@ *
  * The TrainingPipeline orchestrates tasks associated with training a Model. It
  * always executes the training task, and optionally may also
- * export data from AI Platform's Dataset which becomes the training input,
- * [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to AI Platform, and evaluate the
+ * export data from Vertex AI's Dataset which becomes the training input,
+ * [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the
  * Model.
  * 
* @@ -422,7 +422,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -442,7 +442,7 @@ public boolean hasInputDataConfig() {
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -464,7 +464,7 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig getInputDataConfig()
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -682,7 +682,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -710,7 +710,7 @@ public boolean hasModelToUpload() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -740,7 +740,7 @@ public com.google.cloud.aiplatform.v1beta1.Model getModelToUpload() {
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -1572,8 +1572,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * The TrainingPipeline orchestrates tasks associated with training a Model. It
    * always executes the training task, and optionally may also
-   * export data from AI Platform's Dataset which becomes the training input,
-   * [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to AI Platform, and evaluate the
+   * export data from Vertex AI's Dataset which becomes the training input,
+   * [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the
    * Model.
    * 
* @@ -2138,7 +2138,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2157,7 +2157,7 @@ public boolean hasInputDataConfig() {
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2182,7 +2182,7 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig getInputDataConfig()
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2209,7 +2209,7 @@ public Builder setInputDataConfig(com.google.cloud.aiplatform.v1beta1.InputDataC
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2234,7 +2234,7 @@ public Builder setInputDataConfig(
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2265,7 +2265,7 @@ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1beta1.InputDat
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2290,7 +2290,7 @@ public Builder clearInputDataConfig() {
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2309,7 +2309,7 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig.Builder getInputDataC
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2333,7 +2333,7 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig.Builder getInputDataC
      *
      *
      * 
-     * Specifies AI Platform owned input data that may be used for training the
+     * Specifies Vertex AI owned input data that may be used for training the
      * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
      * clear whether this config is used and if there are any special requirements
      * on how it should be filled. If nothing about this config is mentioned in
@@ -2972,7 +2972,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -2999,7 +2999,7 @@ public boolean hasModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3032,7 +3032,7 @@ public com.google.cloud.aiplatform.v1beta1.Model getModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3067,7 +3067,7 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1beta1.Model value)
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3100,7 +3100,7 @@ public Builder setModelToUpload(
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3139,7 +3139,7 @@ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1beta1.Model valu
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3172,7 +3172,7 @@ public Builder clearModelToUpload() {
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3199,7 +3199,7 @@ public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelToUploadBuilder
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
@@ -3230,7 +3230,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelToUploadOrBuil
      * a need of this information, or that training task does not support
      * uploading a Model as part of the pipeline.
      * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-     * the trained Model had been uploaded into AI Platform, then the
+     * the trained Model had been uploaded into Vertex AI, then the
      * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
      * is always uploaded into the Project and Location in which this pipeline
      * is.
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java
index 654873e0e..cd9e5ef4a 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java
@@ -1,5 +1,5 @@
 /*
- * 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/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java
index 925dbdf68..75ec7dc0d 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java
@@ -77,7 +77,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -94,7 +94,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -111,7 +111,7 @@ public interface TrainingPipelineOrBuilder
    *
    *
    * 
-   * Specifies AI Platform owned input data that may be used for training the
+   * Specifies Vertex AI owned input data that may be used for training the
    * Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make
    * clear whether this config is used and if there are any special requirements
    * on how it should be filled. If nothing about this config is mentioned in
@@ -273,7 +273,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -298,7 +298,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
@@ -323,7 +323,7 @@ public interface TrainingPipelineOrBuilder
    * a need of this information, or that training task does not support
    * uploading a Model as part of the pipeline.
    * When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and
-   * the trained Model had been uploaded into AI Platform, then the
+   * the trained Model had been uploaded into Vertex AI, then the
    * model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model
    * is always uploaded into the Project and Location in which this pipeline
    * is.
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 c91173241..0894266a8 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
@@ -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();
@@ -119,6 +130,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.v1beta1.Measurement.parser(), extensionRegistry));
+              break;
+            }
           case 58:
             {
               com.google.protobuf.Timestamp.Builder subBuilder = null;
@@ -147,6 +170,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:
@@ -173,6 +210,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();
     }
@@ -1445,6 +1485,55 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Parameter getDefaultInstanceFor
     }
   }
 
+  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_; /** @@ -1668,6 +1757,96 @@ public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurem 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getMeasurementsOrBuilder( + int index) { + return measurements_.get(index); + } + public static final int START_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp startTime_; /** @@ -1766,6 +1945,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_; /** @@ -1835,6 +2128,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_); } @@ -1847,12 +2143,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_); } @@ -1865,6 +2170,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_); } @@ -1877,12 +2185,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_); } @@ -1902,6 +2219,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1beta1.Trial other = (com.google.cloud.aiplatform.v1beta1.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; @@ -1909,6 +2227,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; @@ -1917,6 +2236,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; @@ -1929,6 +2250,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; @@ -1941,6 +2264,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(); @@ -1949,6 +2276,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(); @@ -2094,12 +2425,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; @@ -2116,6 +2450,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 { @@ -2128,6 +2468,10 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + clientId_ = ""; + + infeasibleReason_ = ""; + customJob_ = ""; return this; @@ -2158,6 +2502,7 @@ public com.google.cloud.aiplatform.v1beta1.Trial buildPartial() { com.google.cloud.aiplatform.v1beta1.Trial result = new com.google.cloud.aiplatform.v1beta1.Trial(this); int from_bitField0_ = bitField0_; + result.name_ = name_; result.id_ = id_; result.state_ = state_; if (parametersBuilder_ == null) { @@ -2174,6 +2519,15 @@ public com.google.cloud.aiplatform.v1beta1.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 { @@ -2184,6 +2538,8 @@ public com.google.cloud.aiplatform.v1beta1.Trial buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.clientId_ = clientId_; + result.infeasibleReason_ = infeasibleReason_; result.customJob_ = customJob_; onBuilt(); return result; @@ -2234,6 +2590,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { if (other == com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -2271,12 +2631,47 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.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(); @@ -2312,24 +2707,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; @@ -2339,19 +2734,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; @@ -2361,20 +2756,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; } @@ -2382,16 +2777,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; } @@ -2399,41 +2794,147 @@ 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.v1beta1.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() { + 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.v1beta1.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_; } /** @@ -3117,220 +3618,648 @@ public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurem 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.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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. 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.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Measurement.Builder addMeasurementsBuilder() { + return getMeasurementsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Measurement.Builder addMeasurementsBuilder( + int index) { + return getMeasurementsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder> + getMeasurementsFieldBuilder() { + if (measurementsBuilder_ == null) { + measurementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Measurement, + com.google.cloud.aiplatform.v1beta1.Measurement.Builder, + com.google.cloud.aiplatform.v1beta1.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; + } + /** + * + * + *
+     * 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]; @@ -3493,6 +4422,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java index 9697fffbb..6e6e1f729 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java @@ -1,5 +1,5 @@ /* - * 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/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 ddf40f28b..8a99f85ec 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 @@ -23,6 +23,31 @@ public interface TrialOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.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-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 new file mode 100644 index 000000000..eb178de31 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java @@ -0,0 +1,108 @@ +/* + * 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/types.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class TypesProto { + private TypesProto() {} + + 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_v1beta1_BoolArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BoolArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Int64Array_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StringArray_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/v1beta1/types." + + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_BoolArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BoolArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DoubleArray_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_Int64Array_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Int64Array_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_StringArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StringArray_descriptor, + new java.lang.String[] { + "Values", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java new file mode 100644 index 000000000..f7fbcb9c2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java @@ -0,0 +1,755 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} + */ +public final class UndeployIndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + UndeployIndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeployIndexOperationMetadata.newBuilder() to construct. + private UndeployIndexOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeployIndexOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeployIndexOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeployIndexOperationMetadata( + 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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.UndeployIndexOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) 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.UndeployIndexOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + 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.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(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.UndeployIndexOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + .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.UndeployIndexOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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.UndeployIndexOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployIndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployIndexOperationMetadata(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.UndeployIndexOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadataOrBuilder.java new file mode 100644 index 000000000..23f803b91 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadataOrBuilder.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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UndeployIndexOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/UndeployIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java new file mode 100644 index 000000000..25ec65381 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java @@ -0,0 +1,844 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexRequest} + */ +public final class UndeployIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + UndeployIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeployIndexRequest.newBuilder() to construct. + private UndeployIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeployIndexRequest() { + indexEndpoint_ = ""; + deployedIndexId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeployIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeployIndexRequest( + 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(); + + indexEndpoint_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployedIndexId_ = 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.Builder.class); + } + + public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; + private volatile java.lang.Object indexEndpoint_; + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + @java.lang.Override + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + 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(); + indexEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object deployedIndexId_; + /** + * + * + *
+   * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 + 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 (!getIndexEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexEndpoint_); + } + if (!getDeployedIndexIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedIndexId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIndexEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexEndpoint_); + } + if (!getDeployedIndexIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedIndexId_); + } + 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.UndeployIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) obj; + + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) return false; + if (!getDeployedIndexId().equals(other.getDeployedIndexId())) 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) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + hash = (37 * hash) + DEPLOYED_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest 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.UndeployIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest 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.UndeployIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest 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.UndeployIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest 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.UndeployIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest 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.UndeployIndexRequest 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.UndeployIndexRequest 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.UndeployIndexRequest 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 [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.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(); + indexEndpoint_ = ""; + + deployedIndexId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(this); + result.indexEndpoint_ = indexEndpoint_; + result.deployedIndexId_ = deployedIndexId_; + 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.UndeployIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest.getDefaultInstance()) + return this; + if (!other.getIndexEndpoint().isEmpty()) { + indexEndpoint_ = other.indexEndpoint_; + onChanged(); + } + if (!other.getDeployedIndexId().isEmpty()) { + deployedIndexId_ = other.deployedIndexId_; + 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.UndeployIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object indexEndpoint_ = ""; + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indexEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + indexEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIndexEndpoint() { + + indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indexEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object deployedIndexId_ = ""; + /** + * + * + *
+     * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeployedIndexId() { + + deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+     * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + } + + @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.UndeployIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployIndexRequest(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.UndeployIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequestOrBuilder.java new file mode 100644 index 000000000..bedd0bcc8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UndeployIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The indexEndpoint. + */ + java.lang.String getIndexEndpoint(); + /** + * + * + *
+   * Required. The name of the IndexEndpoint resource from which to undeploy an Index.
+   * Format:
+   * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+   * 
+ * + * + * string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for indexEndpoint. + */ + com.google.protobuf.ByteString getIndexEndpointBytes(); + + /** + * + * + *
+   * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployedIndexId. + */ + java.lang.String getDeployedIndexId(); + /** + * + * + *
+   * Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
+   * 
+ * + * string deployed_index_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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/UndeployIndexResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java new file mode 100644 index 000000000..149869f06 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponse.java @@ -0,0 +1,457 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexResponse} + */ +public final class UndeployIndexResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + UndeployIndexResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeployIndexResponse.newBuilder() to construct. + private UndeployIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeployIndexResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeployIndexResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeployIndexResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse other = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse 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.UndeployIndexResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse 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.UndeployIndexResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse 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.UndeployIndexResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse 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.UndeployIndexResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse 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.UndeployIndexResponse 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.UndeployIndexResponse 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.UndeployIndexResponse 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 [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UndeployIndexResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.class, + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse build() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse result = + new com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + private static final com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployIndexResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployIndexResponse(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.UndeployIndexResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponseOrBuilder.java new file mode 100644 index 000000000..3b2e41a03 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UndeployIndexResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java new file mode 100644 index 000000000..e489cdfc6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java @@ -0,0 +1,1185 @@ +/* + * 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.UpdateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} + */ +public final class UpdateArtifactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + UpdateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateArtifactRequest.newBuilder() to construct. + private UpdateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateArtifactRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateArtifactRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateArtifactRequest( + 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.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + allowMissing_ = 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_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Artifact artifact_; + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + @java.lang.Override + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_; + /** + * + * + *
+   * If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will
+   * be created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (artifact_ != null) { + output.writeMessage(1, getArtifact()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifact_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArtifact()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } + 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.UpdateArtifactRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) obj; + + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact().equals(other.getArtifact())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (getAllowMissing() != other.getAllowMissing()) 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 (hasArtifact()) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest 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.UpdateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest 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.UpdateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest 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.UpdateArtifactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest 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.UpdateArtifactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest 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.UpdateArtifactRequest 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.UpdateArtifactRequest 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.UpdateArtifactRequest 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.UpdateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.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 (artifactBuilder_ == null) { + artifact_ = null; + } else { + artifact_ = null; + artifactBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + allowMissing_ = 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_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(this); + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.allowMissing_ = allowMissing_; + 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.UpdateArtifactRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.getDefaultInstance()) + return this; + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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.UpdateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + artifactBuilder_; + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setArtifact( + com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + com.google.cloud.aiplatform.v1beta1.Artifact.newBuilder(artifact_) + .mergeFrom(value) + .buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; + } + } + /** + * + * + *
+     * Required. The Artifact containing updates.
+     * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+     * be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Artifact, + com.google.cloud.aiplatform.v1beta1.Artifact.Builder, + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder>( + getArtifact(), getParentForChildren(), isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean allowMissing_; + /** + * + * + *
+     * If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will
+     * be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will
+     * be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will
+     * be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + + allowMissing_ = 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.UpdateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateArtifactRequest(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.UpdateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.java new file mode 100644 index 000000000..a01de02dc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequestOrBuilder.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateArtifactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the artifact field is set. + */ + boolean hasArtifact(); + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The artifact. + */ + com.google.cloud.aiplatform.v1beta1.Artifact getArtifact(); + /** + * + * + *
+   * Required. The Artifact containing updates.
+   * The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to
+   * be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder(); + + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will
+   * be created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java new file mode 100644 index 000000000..52253ec3a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java @@ -0,0 +1,1184 @@ +/* + * 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.UpdateContext][google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateContextRequest} + */ +public final class UpdateContextRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateContextRequest) + UpdateContextRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateContextRequest.newBuilder() to construct. + private UpdateContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateContextRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateContextRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateContextRequest( + 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.Context.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); + } + context_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + allowMissing_ = 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_UpdateContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Context context_; + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Context getContext() { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_; + /** + * + * + *
+   * If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be
+   * created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (context_ != null) { + output.writeMessage(1, getContext()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContext()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } + 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.UpdateContextRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateContextRequest) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext().equals(other.getContext())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (getAllowMissing() != other.getAllowMissing()) 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 (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest 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.UpdateContextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest 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.UpdateContextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest 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.UpdateContextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest 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.UpdateContextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest 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.UpdateContextRequest 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.UpdateContextRequest 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.UpdateContextRequest 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.UpdateContext][google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateContextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateContextRequest) + com.google.cloud.aiplatform.v1beta1.UpdateContextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.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 (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + allowMissing_ = 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_UpdateContextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateContextRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateContextRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateContextRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateContextRequest(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.allowMissing_ = allowMissing_; + 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.UpdateContextRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateContextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateContextRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateContextRequest.getDefaultInstance()) + return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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.UpdateContextRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateContextRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Context context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + contextBuilder_; + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + public com.google.cloud.aiplatform.v1beta1.Context getContext() { + if (contextBuilder_ == null) { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + com.google.cloud.aiplatform.v1beta1.Context.newBuilder(context_) + .mergeFrom(value) + .buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Context.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; + } + } + /** + * + * + *
+     * Required. The Context containing updates.
+     * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+     * updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Context, + com.google.cloud.aiplatform.v1beta1.Context.Builder, + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>( + getContext(), getParentForChildren(), isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean allowMissing_; + /** + * + * + *
+     * If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be
+     * created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be
+     * created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be
+     * created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + + allowMissing_ = 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.UpdateContextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateContextRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateContextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateContextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateContextRequest(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.UpdateContextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.java new file mode 100644 index 000000000..c8b1a0591 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequestOrBuilder.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateContextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + com.google.cloud.aiplatform.v1beta1.Context getContext(); + /** + * + * + *
+   * Required. The Context containing updates.
+   * The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be
+   * updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Context context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder(); + + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be
+   * created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java index 823c09eb1..54be4afb3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java @@ -194,8 +194,7 @@ public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetOrBuilder( * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -216,8 +215,7 @@ public boolean hasUpdateMask() {
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -238,8 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -827,8 +824,7 @@ public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetOrBuilder(
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -848,8 +844,7 @@ public boolean hasUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -875,8 +870,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -904,8 +898,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -930,8 +923,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -961,8 +953,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -988,8 +979,7 @@ public Builder clearUpdateMask() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -1009,8 +999,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
@@ -1034,8 +1023,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * Updatable fields:
      *   * `display_name`
      *   * `description`
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequestOrBuilder.java
index 3a5dc293a..74260335d 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequestOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequestOrBuilder.java
@@ -69,8 +69,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -88,8 +87,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
@@ -107,8 +105,7 @@ public interface UpdateDatasetRequestOrBuilder
    *
    * 
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * Updatable fields:
    *   * `display_name`
    *   * `description`
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java
index 3e01d02c6..cc614a49c 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java
@@ -193,9 +193,7 @@ public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointOrBuilde
    *
    *
    * 
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -211,9 +209,7 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -229,9 +225,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -815,9 +809,7 @@ public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointOrBuilde * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -832,9 +824,7 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -855,9 +845,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -880,9 +868,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -902,9 +888,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -929,9 +913,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -952,9 +934,7 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -969,9 +949,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -990,9 +968,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource.
-     * See
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequestOrBuilder.java index d381f83e8..080775689 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequestOrBuilder.java @@ -68,9 +68,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -83,9 +81,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -98,9 +94,7 @@ public interface UpdateEndpointRequestOrBuilder * * *
-   * Required. The update mask applies to the resource.
-   * See
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java new file mode 100644 index 000000000..f13f43dd2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java @@ -0,0 +1,1199 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} + */ +public final class UpdateEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + UpdateEntityTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEntityTypeRequest.newBuilder() to construct. + private UpdateEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEntityTypeRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEntityTypeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateEntityTypeRequest( + 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.EntityType.Builder subBuilder = null; + if (entityType_ != null) { + subBuilder = entityType_.toBuilder(); + } + entityType_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EntityType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityType_); + entityType_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EntityType entityType_; + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + @java.lang.Override + public boolean hasEntityType() { + return entityType_ != null; + } + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { + return getEntityType(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (entityType_ != null) { + output.writeMessage(1, getEntityType()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entityType_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntityType()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateEntityTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) obj; + + if (hasEntityType() != other.hasEntityType()) return false; + if (hasEntityType()) { + if (!getEntityType().equals(other.getEntityType())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasEntityType()) { + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest 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.UpdateEntityTypeRequest 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.UpdateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateEntityTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.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 (entityTypeBuilder_ == null) { + entityType_ = null; + } else { + entityType_ = null; + entityTypeBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = 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_UpdateEntityTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(this); + if (entityTypeBuilder_ == null) { + result.entityType_ = entityType_; + } else { + result.entityType_ = entityTypeBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateEntityTypeRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.getDefaultInstance()) + return this; + if (other.hasEntityType()) { + mergeEntityType(other.getEntityType()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateEntityTypeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EntityType entityType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + entityTypeBuilder_; + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + public boolean hasEntityType() { + return entityTypeBuilder_ != null || entityType_ != null; + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityType. + */ + public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { + if (entityTypeBuilder_ == null) { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } else { + return entityTypeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityType_ = value; + onChanged(); + } else { + entityTypeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityType( + com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { + if (entityTypeBuilder_ == null) { + entityType_ = builderForValue.build(); + onChanged(); + } else { + entityTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { + if (entityTypeBuilder_ == null) { + if (entityType_ != null) { + entityType_ = + com.google.cloud.aiplatform.v1beta1.EntityType.newBuilder(entityType_) + .mergeFrom(value) + .buildPartial(); + } else { + entityType_ = value; + } + onChanged(); + } else { + entityTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEntityType() { + if (entityTypeBuilder_ == null) { + entityType_ = null; + onChanged(); + } else { + entityType_ = null; + entityTypeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EntityType.Builder getEntityTypeBuilder() { + + onChanged(); + return getEntityTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { + if (entityTypeBuilder_ != null) { + return entityTypeBuilder_.getMessageOrBuilder(); + } else { + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; + } + } + /** + * + * + *
+     * Required. The EntityType's `name` field is used to identify the EntityType to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder> + getEntityTypeFieldBuilder() { + if (entityTypeBuilder_ == null) { + entityTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityType, + com.google.cloud.aiplatform.v1beta1.EntityType.Builder, + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder>( + getEntityType(), getParentForChildren(), isClean()); + entityType_ = null; + } + return entityTypeBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * EntityType resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateEntityTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateEntityTypeRequest(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.UpdateEntityTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java new file mode 100644 index 000000000..18172db74 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateEntityTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + boolean hasEntityType(); + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityType. + */ + com.google.cloud.aiplatform.v1beta1.EntityType getEntityType(); + /** + * + * + *
+   * Required. The EntityType's `name` field is used to identify the EntityType to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * EntityType resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java new file mode 100644 index 000000000..8fff294bb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java @@ -0,0 +1,1185 @@ +/* + * 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.UpdateExecution][google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} + */ +public final class UpdateExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + UpdateExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExecutionRequest.newBuilder() to construct. + private UpdateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExecutionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateExecutionRequest( + 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.Execution.Builder subBuilder = null; + if (execution_ != null) { + subBuilder = execution_.toBuilder(); + } + execution_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Execution.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(execution_); + execution_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + allowMissing_ = 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_UpdateExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.Builder.class); + } + + public static final int EXECUTION_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Execution execution_; + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return execution_ != null; + } + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { + return getExecution(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_; + /** + * + * + *
+   * If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution]
+   * will be created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (execution_ != null) { + output.writeMessage(1, getExecution()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (execution_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecution()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } + 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.UpdateExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) obj; + + if (hasExecution() != other.hasExecution()) return false; + if (hasExecution()) { + if (!getExecution().equals(other.getExecution())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (getAllowMissing() != other.getAllowMissing()) 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 (hasExecution()) { + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest 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.UpdateExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest 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.UpdateExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest 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.UpdateExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest 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.UpdateExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest 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.UpdateExecutionRequest 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.UpdateExecutionRequest 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.UpdateExecutionRequest 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.UpdateExecution][google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.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 (executionBuilder_ == null) { + execution_ = null; + } else { + execution_ = null; + executionBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + allowMissing_ = 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_UpdateExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(this); + if (executionBuilder_ == null) { + result.execution_ = execution_; + } else { + result.execution_ = executionBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.allowMissing_ = allowMissing_; + 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.UpdateExecutionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.getDefaultInstance()) + return this; + if (other.hasExecution()) { + mergeExecution(other.getExecution()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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.UpdateExecutionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Execution execution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + executionBuilder_; + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + public boolean hasExecution() { + return executionBuilder_ != null || execution_ != null; + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { + if (executionBuilder_ == null) { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } else { + return executionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execution_ = value; + onChanged(); + } else { + executionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution( + com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { + if (executionBuilder_ == null) { + execution_ = builderForValue.build(); + onChanged(); + } else { + executionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { + if (executionBuilder_ == null) { + if (execution_ != null) { + execution_ = + com.google.cloud.aiplatform.v1beta1.Execution.newBuilder(execution_) + .mergeFrom(value) + .buildPartial(); + } else { + execution_ = value; + } + onChanged(); + } else { + executionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExecution() { + if (executionBuilder_ == null) { + execution_ = null; + onChanged(); + } else { + execution_ = null; + executionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { + + onChanged(); + return getExecutionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { + if (executionBuilder_ != null) { + return executionBuilder_.getMessageOrBuilder(); + } else { + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; + } + } + /** + * + * + *
+     * Required. The Execution containing updates.
+     * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+     * to be updated.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder> + getExecutionFieldBuilder() { + if (executionBuilder_ == null) { + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Execution, + com.google.cloud.aiplatform.v1beta1.Execution.Builder, + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); + execution_ = null; + } + return executionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. A FieldMask indicating which fields should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean allowMissing_; + /** + * + * + *
+     * If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution]
+     * will be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution]
+     * will be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution]
+     * will be created. In this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + + allowMissing_ = 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.UpdateExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateExecutionRequest(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.UpdateExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.java new file mode 100644 index 000000000..4b2035a37 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequestOrBuilder.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/v1beta1/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + com.google.cloud.aiplatform.v1beta1.Execution getExecution(); + /** + * + * + *
+   * Required. The Execution containing updates.
+   * The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution
+   * to be updated.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Execution execution = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder(); + + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. A FieldMask indicating which fields should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution]
+   * will be created. In this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java new file mode 100644 index 000000000..f1c945b09 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java @@ -0,0 +1,1198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} + */ +public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + UpdateFeatureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeatureRequest.newBuilder() to construct. + private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeatureRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeatureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFeatureRequest( + 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.Feature.Builder subBuilder = null; + if (feature_ != null) { + subBuilder = feature_.toBuilder(); + } + feature_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feature_); + feature_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.Builder.class); + } + + public static final int FEATURE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Feature feature_; + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + @java.lang.Override + public boolean hasFeature() { + return feature_ != null; + } + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { + return getFeature(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (feature_ != null) { + output.writeMessage(1, getFeature()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (feature_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeature()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateFeatureRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) obj; + + if (hasFeature() != other.hasFeature()) return false; + if (hasFeature()) { + if (!getFeature().equals(other.getFeature())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasFeature()) { + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getFeature().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest 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.UpdateFeatureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest 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.UpdateFeatureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest 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.UpdateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest 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.UpdateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest 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.UpdateFeatureRequest 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.UpdateFeatureRequest 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.UpdateFeatureRequest 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.UpdateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.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 (featureBuilder_ == null) { + feature_ = null; + } else { + feature_ = null; + featureBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = 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_UpdateFeatureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(this); + if (featureBuilder_ == null) { + result.feature_ = feature_; + } else { + result.feature_ = featureBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateFeatureRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.getDefaultInstance()) + return this; + if (other.hasFeature()) { + mergeFeature(other.getFeature()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateFeatureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Feature feature_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + featureBuilder_; + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + public boolean hasFeature() { + return featureBuilder_ != null || feature_ != null; + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { + if (featureBuilder_ == null) { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } else { + return featureBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feature_ = value; + onChanged(); + } else { + featureBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { + if (featureBuilder_ == null) { + feature_ = builderForValue.build(); + onChanged(); + } else { + featureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { + if (featureBuilder_ == null) { + if (feature_ != null) { + feature_ = + com.google.cloud.aiplatform.v1beta1.Feature.newBuilder(feature_) + .mergeFrom(value) + .buildPartial(); + } else { + feature_ = value; + } + onChanged(); + } else { + featureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeature() { + if (featureBuilder_ == null) { + feature_ = null; + onChanged(); + } else { + feature_ = null; + featureBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeatureBuilder() { + + onChanged(); + return getFeatureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { + if (featureBuilder_ != null) { + return featureBuilder_.getMessageOrBuilder(); + } else { + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; + } + } + /** + * + * + *
+     * Required. The Feature's `name` field is used to identify the Feature to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder> + getFeatureFieldBuilder() { + if (featureBuilder_ == null) { + featureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Feature, + com.google.cloud.aiplatform.v1beta1.Feature.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder>( + getFeature(), getParentForChildren(), isClean()); + feature_ = null; + } + return featureBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Features resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `description`
+     *   * `labels`
+     *   * `monitoring_config.snapshot_analysis.disabled`
+     *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateFeatureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(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.UpdateFeatureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java new file mode 100644 index 000000000..7a05609fa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateFeatureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the feature field is set. + */ + boolean hasFeature(); + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feature. + */ + com.google.cloud.aiplatform.v1beta1.Feature getFeature(); + /** + * + * + *
+   * Required. The Feature's `name` field is used to identify the Feature to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Feature feature = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Features resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `description`
+   *   * `labels`
+   *   * `monitoring_config.snapshot_analysis.disabled`
+   *   * `monitoring_config.snapshot_analysis.monitoring_interval`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java new file mode 100644 index 000000000..a4794d47c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java @@ -0,0 +1,760 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform update Featurestore.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} + */ +public final class UpdateFeaturestoreOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + UpdateFeaturestoreOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeaturestoreOperationMetadata.newBuilder() to construct. + private UpdateFeaturestoreOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeaturestoreOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeaturestoreOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFeaturestoreOperationMetadata( + 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .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 Featurestore.
+   * 
+ * + * .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 Featurestore.
+   * 
+ * + * .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.UpdateFeaturestoreOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) 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.UpdateFeaturestoreOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + 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.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata 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 update Featurestore.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(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.UpdateFeaturestoreOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + .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.UpdateFeaturestoreOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + 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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore.
+     * 
+ * + * .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 Featurestore.
+     * 
+ * + * .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.UpdateFeaturestoreOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeaturestoreOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeaturestoreOperationMetadata(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.UpdateFeaturestoreOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadataOrBuilder.java new file mode 100644 index 000000000..a6b6916f9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadataOrBuilder.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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateFeaturestoreOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore.
+   * 
+ * + * .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/UpdateFeaturestoreRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java new file mode 100644 index 000000000..93fa8f944 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java @@ -0,0 +1,1179 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} + */ +public final class UpdateFeaturestoreRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + UpdateFeaturestoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeaturestoreRequest.newBuilder() to construct. + private UpdateFeaturestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeaturestoreRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeaturestoreRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFeaturestoreRequest( + 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.Featurestore.Builder subBuilder = null; + if (featurestore_ != null) { + subBuilder = featurestore_.toBuilder(); + } + featurestore_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Featurestore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(featurestore_); + featurestore_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.Builder.class); + } + + public static final int FEATURESTORE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Featurestore featurestore_; + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + @java.lang.Override + public boolean hasFeaturestore() { + return featurestore_ != null; + } + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { + return getFeaturestore(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (featurestore_ != null) { + output.writeMessage(1, getFeaturestore()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (featurestore_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeaturestore()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateFeaturestoreRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) obj; + + if (hasFeaturestore() != other.hasFeaturestore()) return false; + if (hasFeaturestore()) { + if (!getFeaturestore().equals(other.getFeaturestore())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasFeaturestore()) { + hash = (37 * hash) + FEATURESTORE_FIELD_NUMBER; + hash = (53 * hash) + getFeaturestore().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest 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.UpdateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeaturestoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.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 (featurestoreBuilder_ == null) { + featurestore_ = null; + } else { + featurestore_ = null; + featurestoreBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = 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_UpdateFeaturestoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(this); + if (featurestoreBuilder_ == null) { + result.featurestore_ = featurestore_; + } else { + result.featurestore_ = featurestoreBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateFeaturestoreRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.getDefaultInstance()) + return this; + if (other.hasFeaturestore()) { + mergeFeaturestore(other.getFeaturestore()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateFeaturestoreRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Featurestore featurestore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + featurestoreBuilder_; + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + public boolean hasFeaturestore() { + return featurestoreBuilder_ != null || featurestore_ != null; + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { + if (featurestoreBuilder_ == null) { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } else { + return featurestoreBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featurestore_ = value; + onChanged(); + } else { + featurestoreBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeaturestore( + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { + if (featurestoreBuilder_ == null) { + featurestore_ = builderForValue.build(); + onChanged(); + } else { + featurestoreBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { + if (featurestoreBuilder_ == null) { + if (featurestore_ != null) { + featurestore_ = + com.google.cloud.aiplatform.v1beta1.Featurestore.newBuilder(featurestore_) + .mergeFrom(value) + .buildPartial(); + } else { + featurestore_ = value; + } + onChanged(); + } else { + featurestoreBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeaturestore() { + if (featurestoreBuilder_ == null) { + featurestore_ = null; + onChanged(); + } else { + featurestore_ = null; + featurestoreBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder getFeaturestoreBuilder() { + + onChanged(); + return getFeaturestoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { + if (featurestoreBuilder_ != null) { + return featurestoreBuilder_.getMessageOrBuilder(); + } else { + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; + } + } + /** + * + * + *
+     * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+     * updated.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder> + getFeaturestoreFieldBuilder() { + if (featurestoreBuilder_ == null) { + featurestoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Featurestore, + com.google.cloud.aiplatform.v1beta1.Featurestore.Builder, + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder>( + getFeaturestore(), getParentForChildren(), isClean()); + featurestore_ = null; + } + return featurestoreBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Featurestore resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     * Updatable fields:
+     *   * `labels`
+     *   * `online_serving_config.fixed_node_count`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateFeaturestoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeaturestoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeaturestoreRequest(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.UpdateFeaturestoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java new file mode 100644 index 000000000..767cf5f2f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateFeaturestoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featurestore field is set. + */ + boolean hasFeaturestore(); + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featurestore. + */ + com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore(); + /** + * + * + *
+   * Required. The Featurestore's `name` field is used to identify the Featurestore to be
+   * updated.
+   * Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Featurestore featurestore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Featurestore resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   * Updatable fields:
+   *   * `labels`
+   *   * `online_serving_config.fixed_node_count`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java new file mode 100644 index 000000000..5047d7edf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java @@ -0,0 +1,1050 @@ +/* + * 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/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} + */ +public final class UpdateIndexEndpointRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + UpdateIndexEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateIndexEndpointRequest.newBuilder() to construct. + private UpdateIndexEndpointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIndexEndpointRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIndexEndpointRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateIndexEndpointRequest( + 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.IndexEndpoint.Builder subBuilder = null; + if (indexEndpoint_ != null) { + subBuilder = indexEndpoint_.toBuilder(); + } + indexEndpoint_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexEndpoint_); + indexEndpoint_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.Builder.class); + } + + public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.IndexEndpoint indexEndpoint_; + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + @java.lang.Override + public boolean hasIndexEndpoint() { + return indexEndpoint_ != null; + } + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { + return getIndexEndpoint(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (indexEndpoint_ != null) { + output.writeMessage(1, getIndexEndpoint()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (indexEndpoint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIndexEndpoint()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateIndexEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) obj; + + if (hasIndexEndpoint() != other.hasIndexEndpoint()) return false; + if (hasIndexEndpoint()) { + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasIndexEndpoint()) { + hash = (37 * hash) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest 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 [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.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 (indexEndpointBuilder_ == null) { + indexEndpoint_ = null; + } else { + indexEndpoint_ = null; + indexEndpointBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(this); + if (indexEndpointBuilder_ == null) { + result.indexEndpoint_ = indexEndpoint_; + } else { + result.indexEndpoint_ = indexEndpointBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateIndexEndpointRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.getDefaultInstance()) + return this; + if (other.hasIndexEndpoint()) { + mergeIndexEndpoint(other.getIndexEndpoint()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateIndexEndpointRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.IndexEndpoint indexEndpoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + indexEndpointBuilder_; + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + public boolean hasIndexEndpoint() { + return indexEndpointBuilder_ != null || indexEndpoint_ != null; + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { + if (indexEndpointBuilder_ == null) { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } else { + return indexEndpointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexEndpoint_ = value; + onChanged(); + } else { + indexEndpointBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndexEndpoint( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { + if (indexEndpointBuilder_ == null) { + indexEndpoint_ = builderForValue.build(); + onChanged(); + } else { + indexEndpointBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { + if (indexEndpointBuilder_ == null) { + if (indexEndpoint_ != null) { + indexEndpoint_ = + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.newBuilder(indexEndpoint_) + .mergeFrom(value) + .buildPartial(); + } else { + indexEndpoint_ = value; + } + onChanged(); + } else { + indexEndpointBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIndexEndpoint() { + if (indexEndpointBuilder_ == null) { + indexEndpoint_ = null; + onChanged(); + } else { + indexEndpoint_ = null; + indexEndpointBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder getIndexEndpointBuilder() { + + onChanged(); + return getIndexEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { + if (indexEndpointBuilder_ != null) { + return indexEndpointBuilder_.getMessageOrBuilder(); + } else { + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; + } + } + /** + * + * + *
+     * Required. The IndexEndpoint which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> + getIndexEndpointFieldBuilder() { + if (indexEndpointBuilder_ == null) { + indexEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.IndexEndpoint, + com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder>( + getIndexEndpoint(), getParentForChildren(), isClean()); + indexEndpoint_ = null; + } + return indexEndpointBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateIndexEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIndexEndpointRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateIndexEndpointRequest(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.UpdateIndexEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequestOrBuilder.java new file mode 100644 index 000000000..948ba4234 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequestOrBuilder.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/v1beta1/index_endpoint_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateIndexEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the indexEndpoint field is set. + */ + boolean hasIndexEndpoint(); + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The indexEndpoint. + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint(); + /** + * + * + *
+   * Required. The IndexEndpoint which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.IndexEndpoint index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java new file mode 100644 index 000000000..03028675d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java @@ -0,0 +1,1077 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} + */ +public final class UpdateIndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + UpdateIndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateIndexOperationMetadata.newBuilder() to construct. + private UpdateIndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIndexOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIndexOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateIndexOperationMetadata( + 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; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + subBuilder = null; + if (nearestNeighborSearchOperationMetadata_ != null) { + subBuilder = nearestNeighborSearchOperationMetadata_.toBuilder(); + } + nearestNeighborSearchOperationMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nearestNeighborSearchOperationMetadata_); + nearestNeighborSearchOperationMetadata_ = 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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + nearestNeighborSearchOperationMetadata_; + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + @java.lang.Override + public boolean hasNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadata_ != null; + } + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder() { + return getNearestNeighborSearchOperationMetadata(); + } + + 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()); + } + if (nearestNeighborSearchOperationMetadata_ != null) { + output.writeMessage(2, getNearestNeighborSearchOperationMetadata()); + } + 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()); + } + if (nearestNeighborSearchOperationMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getNearestNeighborSearchOperationMetadata()); + } + 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.UpdateIndexOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (hasNearestNeighborSearchOperationMetadata() + != other.hasNearestNeighborSearchOperationMetadata()) return false; + if (hasNearestNeighborSearchOperationMetadata()) { + if (!getNearestNeighborSearchOperationMetadata() + .equals(other.getNearestNeighborSearchOperationMetadata())) 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(); + } + if (hasNearestNeighborSearchOperationMetadata()) { + hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getNearestNeighborSearchOperationMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.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; + } + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = null; + } else { + nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; + } else { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_.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.UpdateIndexOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.getDefaultInstance()) + return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (other.hasNearestNeighborSearchOperationMetadata()) { + mergeNearestNeighborSearchOperationMetadata( + other.getNearestNeighborSearchOperationMetadata()); + } + 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.UpdateIndexOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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_; + } + + private com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + nearestNeighborSearchOperationMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder> + nearestNeighborSearchOperationMetadataBuilder_; + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + public boolean hasNearestNeighborSearchOperationMetadata() { + return nearestNeighborSearchOperationMetadataBuilder_ != null + || nearestNeighborSearchOperationMetadata_ != null; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } else { + return nearestNeighborSearchOperationMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder setNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearestNeighborSearchOperationMetadata_ = value; + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder setNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + builderForValue) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = builderForValue.build(); + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder mergeNearestNeighborSearchOperationMetadata( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + if (nearestNeighborSearchOperationMetadata_ != null) { + nearestNeighborSearchOperationMetadata_ = + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.newBuilder( + nearestNeighborSearchOperationMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + nearestNeighborSearchOperationMetadata_ = value; + } + onChanged(); + } else { + nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public Builder clearNearestNeighborSearchOperationMetadata() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadata_ = null; + onChanged(); + } else { + nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder + getNearestNeighborSearchOperationMetadataBuilder() { + + onChanged(); + return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder() { + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + return nearestNeighborSearchOperationMetadataBuilder_.getMessageOrBuilder(); + } else { + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; + } + } + /** + * + * + *
+     * The operation metadata with regard to Matching Engine Index operation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder> + getNearestNeighborSearchOperationMetadataFieldBuilder() { + if (nearestNeighborSearchOperationMetadataBuilder_ == null) { + nearestNeighborSearchOperationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1 + .NearestNeighborSearchOperationMetadataOrBuilder>( + getNearestNeighborSearchOperationMetadata(), getParentForChildren(), isClean()); + nearestNeighborSearchOperationMetadata_ = null; + } + return nearestNeighborSearchOperationMetadataBuilder_; + } + + @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.UpdateIndexOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIndexOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateIndexOperationMetadata(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.UpdateIndexOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadataOrBuilder.java new file mode 100644 index 000000000..72d0fdace --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadataOrBuilder.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateIndexOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return Whether the nearestNeighborSearchOperationMetadata field is set. + */ + boolean hasNearestNeighborSearchOperationMetadata(); + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + * + * @return The nearestNeighborSearchOperationMetadata. + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + getNearestNeighborSearchOperationMetadata(); + /** + * + * + *
+   * The operation metadata with regard to Matching Engine Index operation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder + getNearestNeighborSearchOperationMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java new file mode 100644 index 000000000..7780f1c94 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java @@ -0,0 +1,1040 @@ +/* + * 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/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexRequest} + */ +public final class UpdateIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + UpdateIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateIndexRequest.newBuilder() to construct. + private UpdateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIndexRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIndexRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateIndexRequest( + 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.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.Builder.class); + } + + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Index index_; + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return index_ != null; + } + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Index getIndex() { + return index_ == null ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() : index_; + } + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { + return getIndex(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (index_ != null) { + output.writeMessage(1, getIndex()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIndex()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateIndexRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) obj; + + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex().equals(other.getIndex())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest 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.UpdateIndexRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest 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.UpdateIndexRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest 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.UpdateIndexRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest 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.UpdateIndexRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest 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.UpdateIndexRequest 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.UpdateIndexRequest 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.UpdateIndexRequest 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 [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.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 (indexBuilder_ == null) { + index_ = null; + } else { + index_ = null; + indexBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IndexServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateIndexRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(this); + if (indexBuilder_ == null) { + result.index_ = index_; + } else { + result.index_ = indexBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateIndexRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest.getDefaultInstance()) + return this; + if (other.hasIndex()) { + mergeIndex(other.getIndex()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateIndexRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Index index_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + indexBuilder_; + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + public boolean hasIndex() { + return indexBuilder_ != null || index_ != null; + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + public com.google.cloud.aiplatform.v1beta1.Index getIndex() { + if (indexBuilder_ == null) { + return index_ == null + ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() + : index_; + } else { + return indexBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + onChanged(); + } else { + indexBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { + if (indexBuilder_ == null) { + index_ = builderForValue.build(); + onChanged(); + } else { + indexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { + if (indexBuilder_ == null) { + if (index_ != null) { + index_ = + com.google.cloud.aiplatform.v1beta1.Index.newBuilder(index_) + .mergeFrom(value) + .buildPartial(); + } else { + index_ = value; + } + onChanged(); + } else { + indexBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIndex() { + if (indexBuilder_ == null) { + index_ = null; + onChanged(); + } else { + index_ = null; + indexBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Index.Builder getIndexBuilder() { + + onChanged(); + return getIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { + if (indexBuilder_ != null) { + return indexBuilder_.getMessageOrBuilder(); + } else { + return index_ == null + ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() + : index_; + } + } + /** + * + * + *
+     * Required. The Index which updates the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder> + getIndexFieldBuilder() { + if (indexBuilder_ == null) { + indexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Index, + com.google.cloud.aiplatform.v1beta1.Index.Builder, + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder>( + getIndex(), getParentForChildren(), isClean()); + index_ = null; + } + return indexBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateIndexRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIndexRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateIndexRequest(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.UpdateIndexRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequestOrBuilder.java new file mode 100644 index 000000000..65657dd4a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequestOrBuilder.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/v1beta1/index_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateIndexRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The index. + */ + com.google.cloud.aiplatform.v1beta1.Index getIndex(); + /** + * + * + *
+   * Required. The Index which updates the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Index index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java new file mode 100644 index 000000000..47b8e8a50 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java @@ -0,0 +1,808 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for
+ * [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} + */ +public final class UpdateModelDeploymentMonitoringJobOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateModelDeploymentMonitoringJobOperationMetadata.newBuilder() to construct. + private UpdateModelDeploymentMonitoringJobOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateModelDeploymentMonitoringJobOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateModelDeploymentMonitoringJobOperationMetadata( + 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.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + .class, + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + .Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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.UpdateModelDeploymentMonitoringJobOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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 + .UpdateModelDeploymentMonitoringJobOperationMetadata + 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.UpdateModelDeploymentMonitoringJobOperationMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for
+   * [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.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.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + build() { + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + result = + new com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata(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.UpdateModelDeploymentMonitoringJobOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + .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.UpdateModelDeploymentMonitoringJobOperationMetadata + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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.UpdateModelDeploymentMonitoringJobOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1 + .UpdateModelDeploymentMonitoringJobOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + UpdateModelDeploymentMonitoringJobOperationMetadata> + PARSER = + new com.google.protobuf.AbstractParser< + UpdateModelDeploymentMonitoringJobOperationMetadata>() { + @java.lang.Override + public UpdateModelDeploymentMonitoringJobOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateModelDeploymentMonitoringJobOperationMetadata( + 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.UpdateModelDeploymentMonitoringJobOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder.java new file mode 100644 index 000000000..18747e1bc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder.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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateModelDeploymentMonitoringJobOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/UpdateModelDeploymentMonitoringJobRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java new file mode 100644 index 000000000..aa98ef14c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java @@ -0,0 +1,1100 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} + */ +public final class UpdateModelDeploymentMonitoringJobRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + UpdateModelDeploymentMonitoringJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateModelDeploymentMonitoringJobRequest.newBuilder() to construct. + private UpdateModelDeploymentMonitoringJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateModelDeploymentMonitoringJobRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateModelDeploymentMonitoringJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateModelDeploymentMonitoringJobRequest( + 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.ModelDeploymentMonitoringJob.Builder subBuilder = + null; + if (modelDeploymentMonitoringJob_ != null) { + subBuilder = modelDeploymentMonitoringJob_.toBuilder(); + } + modelDeploymentMonitoringJob_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelDeploymentMonitoringJob_); + modelDeploymentMonitoringJob_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.Builder + .class); + } + + public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + modelDeploymentMonitoringJob_; + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + @java.lang.Override + public boolean hasModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob_ != null; + } + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder() { + return getModelDeploymentMonitoringJob(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (modelDeploymentMonitoringJob_ != null) { + output.writeMessage(1, getModelDeploymentMonitoringJob()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modelDeploymentMonitoringJob_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getModelDeploymentMonitoringJob()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateModelDeploymentMonitoringJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) obj; + + if (hasModelDeploymentMonitoringJob() != other.hasModelDeploymentMonitoringJob()) return false; + if (hasModelDeploymentMonitoringJob()) { + if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasModelDeploymentMonitoringJob()) { + hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest + 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.UpdateModelDeploymentMonitoringJobRequest 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
+   * [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.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 (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = null; + } else { + modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJobBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.JobServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateModelDeploymentMonitoringJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(this); + if (modelDeploymentMonitoringJobBuilder_ == null) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } else { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.UpdateModelDeploymentMonitoringJobRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + .getDefaultInstance()) return this; + if (other.hasModelDeploymentMonitoringJob()) { + mergeModelDeploymentMonitoringJob(other.getModelDeploymentMonitoringJob()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.UpdateModelDeploymentMonitoringJobRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + modelDeploymentMonitoringJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + modelDeploymentMonitoringJobBuilder_; + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + public boolean hasModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } else { + return modelDeploymentMonitoringJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelDeploymentMonitoringJob_ = value; + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = builderForValue.build(); + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeModelDeploymentMonitoringJob( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { + if (modelDeploymentMonitoringJobBuilder_ == null) { + if (modelDeploymentMonitoringJob_ != null) { + modelDeploymentMonitoringJob_ = + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.newBuilder( + modelDeploymentMonitoringJob_) + .mergeFrom(value) + .buildPartial(); + } else { + modelDeploymentMonitoringJob_ = value; + } + onChanged(); + } else { + modelDeploymentMonitoringJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearModelDeploymentMonitoringJob() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJob_ = null; + onChanged(); + } else { + modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder + getModelDeploymentMonitoringJobBuilder() { + + onChanged(); + return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder() { + if (modelDeploymentMonitoringJobBuilder_ != null) { + return modelDeploymentMonitoringJobBuilder_.getMessageOrBuilder(); + } else { + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; + } + } + /** + * + * + *
+     * Required. The model monitoring configuration which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder> + getModelDeploymentMonitoringJobFieldBuilder() { + if (modelDeploymentMonitoringJobBuilder_ == null) { + modelDeploymentMonitoringJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder, + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder>( + getModelDeploymentMonitoringJob(), getParentForChildren(), isClean()); + modelDeploymentMonitoringJob_ = null; + } + return modelDeploymentMonitoringJobBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateModelDeploymentMonitoringJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateModelDeploymentMonitoringJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateModelDeploymentMonitoringJobRequest(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.UpdateModelDeploymentMonitoringJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequestOrBuilder.java new file mode 100644 index 000000000..1939276d9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/job_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateModelDeploymentMonitoringJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelDeploymentMonitoringJob field is set. + */ + boolean hasModelDeploymentMonitoringJob(); + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelDeploymentMonitoringJob. + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + getModelDeploymentMonitoringJob(); + /** + * + * + *
+   * Required. The model monitoring configuration which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder + getModelDeploymentMonitoringJobOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java index 62902fada..b328533db 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java @@ -192,8 +192,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -210,8 +209,7 @@ public boolean hasUpdateMask() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -228,8 +226,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -813,8 +810,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -830,8 +826,7 @@ public boolean hasUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -853,8 +848,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -878,8 +872,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -900,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -927,8 +919,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -950,8 +941,7 @@ public Builder clearUpdateMask() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -967,8 +957,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -988,8 +977,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Required. The update mask applies to the resource.
-     * For the `FieldMask` definition, see
-     * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+     * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java index c05760803..7cec9a8aa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequestOrBuilder.java @@ -69,8 +69,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -84,8 +83,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -99,8 +97,7 @@ public interface UpdateModelRequestOrBuilder * *
    * Required. The update mask applies to the resource.
-   * For the `FieldMask` definition, see
-   * [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask).
+   * For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask].
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java new file mode 100644 index 000000000..200f9133a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java @@ -0,0 +1,1148 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest} + */ +public final class UpdateTensorboardExperimentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) + UpdateTensorboardExperimentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTensorboardExperimentRequest.newBuilder() to construct. + private UpdateTensorboardExperimentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTensorboardExperimentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTensorboardExperimentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTensorboardExperimentRequest( + 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.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder subBuilder = null; + if (tensorboardExperiment_ != null) { + subBuilder = tensorboardExperiment_.toBuilder(); + } + tensorboardExperiment_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardExperiment_); + tensorboardExperiment_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboardExperiment_; + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardExperiment field is set. + */ + @java.lang.Override + public boolean hasTensorboardExperiment() { + return tensorboardExperiment_ != null; + } + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardExperiment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment() { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder() { + return getTensorboardExperiment(); + } + + 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (tensorboardExperiment_ != null) { + output.writeMessage(2, getTensorboardExperiment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (tensorboardExperiment_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardExperiment()); + } + 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.UpdateTensorboardExperimentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTensorboardExperiment() != other.hasTensorboardExperiment()) return false; + if (hasTensorboardExperiment()) { + if (!getTensorboardExperiment().equals(other.getTensorboardExperiment())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTensorboardExperiment()) { + hash = (37 * hash) + TENSORBOARD_EXPERIMENT_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardExperiment().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + 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.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest 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.UpdateTensorboardExperimentRequest 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 [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.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 (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = null; + } else { + tensorboardExperiment_ = null; + tensorboardExperimentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardExperimentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (tensorboardExperimentBuilder_ == null) { + result.tensorboardExperiment_ = tensorboardExperiment_; + } else { + result.tensorboardExperiment_ = tensorboardExperimentBuilder_.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.UpdateTensorboardExperimentRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTensorboardExperiment()) { + mergeTensorboardExperiment(other.getTensorboardExperiment()); + } + 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.UpdateTensorboardExperimentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardExperiment resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboardExperiment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + tensorboardExperimentBuilder_; + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardExperiment field is set. + */ + public boolean hasTensorboardExperiment() { + return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardExperiment. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment() { + if (tensorboardExperimentBuilder_ == null) { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } else { + return tensorboardExperimentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardExperiment_ = value; + onChanged(); + } else { + tensorboardExperimentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = builderForValue.build(); + onChanged(); + } else { + tensorboardExperimentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboardExperiment( + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { + if (tensorboardExperimentBuilder_ == null) { + if (tensorboardExperiment_ != null) { + tensorboardExperiment_ = + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.newBuilder( + tensorboardExperiment_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardExperiment_ = value; + } + onChanged(); + } else { + tensorboardExperimentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboardExperiment() { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperiment_ = null; + onChanged(); + } else { + tensorboardExperiment_ = null; + tensorboardExperimentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder + getTensorboardExperimentBuilder() { + + onChanged(); + return getTensorboardExperimentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder() { + if (tensorboardExperimentBuilder_ != null) { + return tensorboardExperimentBuilder_.getMessageOrBuilder(); + } else { + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; + } + } + /** + * + * + *
+     * Required. The TensorboardExperiment's `name` field is used to identify the
+     * TensorboardExperiment to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder> + getTensorboardExperimentFieldBuilder() { + if (tensorboardExperimentBuilder_ == null) { + tensorboardExperimentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment, + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder>( + getTensorboardExperiment(), getParentForChildren(), isClean()); + tensorboardExperiment_ = null; + } + return tensorboardExperimentBuilder_; + } + + @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.UpdateTensorboardExperimentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTensorboardExperimentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTensorboardExperimentRequest(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.UpdateTensorboardExperimentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequestOrBuilder.java new file mode 100644 index 000000000..bc2ef904e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateTensorboardExperimentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardExperiment resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardExperiment field is set. + */ + boolean hasTensorboardExperiment(); + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardExperiment. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment(); + /** + * + * + *
+   * Required. The TensorboardExperiment's `name` field is used to identify the
+   * TensorboardExperiment to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardExperiment tensorboard_experiment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder + getTensorboardExperimentOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java new file mode 100644 index 000000000..7c692a6f0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java @@ -0,0 +1,756 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform update Tensorboard.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata} + */ +public final class UpdateTensorboardOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) + UpdateTensorboardOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTensorboardOperationMetadata.newBuilder() to construct. + private UpdateTensorboardOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTensorboardOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTensorboardOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTensorboardOperationMetadata( + 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .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 Tensorboard.
+   * 
+ * + * .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 Tensorboard.
+   * 
+ * + * .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.UpdateTensorboardOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) 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.UpdateTensorboardOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + 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.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata 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.UpdateTensorboardOperationMetadata 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 update Tensorboard.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata(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.UpdateTensorboardOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + .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.UpdateTensorboardOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) + 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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Tensorboard.
+     * 
+ * + * .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 Tensorboard.
+     * 
+ * + * .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.UpdateTensorboardOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTensorboardOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTensorboardOperationMetadata(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.UpdateTensorboardOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadataOrBuilder.java new file mode 100644 index 000000000..d48b98b1b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadataOrBuilder.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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateTensorboardOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Tensorboard.
+   * 
+ * + * .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/UpdateTensorboardRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java new file mode 100644 index 000000000..6caa5cbe2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java @@ -0,0 +1,1130 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest} + */ +public final class UpdateTensorboardRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) + UpdateTensorboardRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTensorboardRequest.newBuilder() to construct. + private UpdateTensorboardRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTensorboardRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTensorboardRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTensorboardRequest( + 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.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder subBuilder = null; + if (tensorboard_ != null) { + subBuilder = tensorboard_.toBuilder(); + } + tensorboard_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tensorboard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboard_); + tensorboard_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int TENSORBOARD_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Tensorboard tensorboard_; + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + @java.lang.Override + public boolean hasTensorboard() { + return tensorboard_ != null; + } + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { + return getTensorboard(); + } + + 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (tensorboard_ != null) { + output.writeMessage(2, getTensorboard()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (tensorboard_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboard()); + } + 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.UpdateTensorboardRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTensorboard() != other.hasTensorboard()) return false; + if (hasTensorboard()) { + if (!getTensorboard().equals(other.getTensorboard())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTensorboard()) { + hash = (37 * hash) + TENSORBOARD_FIELD_NUMBER; + hash = (53 * hash) + getTensorboard().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest 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.UpdateTensorboardRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest 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.UpdateTensorboardRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest 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.UpdateTensorboardRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest 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.UpdateTensorboardRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest 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.UpdateTensorboardRequest 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.UpdateTensorboardRequest 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.UpdateTensorboardRequest 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 [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.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 (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (tensorboardBuilder_ == null) { + tensorboard_ = null; + } else { + tensorboard_ = null; + tensorboardBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (tensorboardBuilder_ == null) { + result.tensorboard_ = tensorboard_; + } else { + result.tensorboard_ = tensorboardBuilder_.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.UpdateTensorboardRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTensorboard()) { + mergeTensorboard(other.getTensorboard()); + } + 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.UpdateTensorboardRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Tensorboard resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Tensorboard tensorboard_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + tensorboardBuilder_; + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + public boolean hasTensorboard() { + return tensorboardBuilder_ != null || tensorboard_ != null; + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { + if (tensorboardBuilder_ == null) { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } else { + return tensorboardBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboard_ = value; + onChanged(); + } else { + tensorboardBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboard( + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { + if (tensorboardBuilder_ == null) { + tensorboard_ = builderForValue.build(); + onChanged(); + } else { + tensorboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { + if (tensorboardBuilder_ == null) { + if (tensorboard_ != null) { + tensorboard_ = + com.google.cloud.aiplatform.v1beta1.Tensorboard.newBuilder(tensorboard_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboard_ = value; + } + onChanged(); + } else { + tensorboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboard() { + if (tensorboardBuilder_ == null) { + tensorboard_ = null; + onChanged(); + } else { + tensorboard_ = null; + tensorboardBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder getTensorboardBuilder() { + + onChanged(); + return getTensorboardFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { + if (tensorboardBuilder_ != null) { + return tensorboardBuilder_.getMessageOrBuilder(); + } else { + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; + } + } + /** + * + * + *
+     * Required. The Tensorboard's `name` field is used to identify the
+     * Tensorboard to be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder> + getTensorboardFieldBuilder() { + if (tensorboardBuilder_ == null) { + tensorboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tensorboard, + com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder>( + getTensorboard(), getParentForChildren(), isClean()); + tensorboard_ = null; + } + return tensorboardBuilder_; + } + + @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.UpdateTensorboardRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTensorboardRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTensorboardRequest(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.UpdateTensorboardRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequestOrBuilder.java new file mode 100644 index 000000000..b031ce390 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateTensorboardRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Tensorboard resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboard field is set. + */ + boolean hasTensorboard(); + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboard. + */ + com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard(); + /** + * + * + *
+   * Required. The Tensorboard's `name` field is used to identify the
+   * Tensorboard to be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java new file mode 100644 index 000000000..8cee07146 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java @@ -0,0 +1,1136 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest} + */ +public final class UpdateTensorboardRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) + UpdateTensorboardRunRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTensorboardRunRequest.newBuilder() to construct. + private UpdateTensorboardRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTensorboardRunRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTensorboardRunRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTensorboardRunRequest( + 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.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder subBuilder = null; + if (tensorboardRun_ != null) { + subBuilder = tensorboardRun_.toBuilder(); + } + tensorboardRun_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardRun_); + tensorboardRun_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int TENSORBOARD_RUN_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardRun tensorboardRun_; + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + @java.lang.Override + public boolean hasTensorboardRun() { + return tensorboardRun_ != null; + } + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { + return getTensorboardRun(); + } + + 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (tensorboardRun_ != null) { + output.writeMessage(2, getTensorboardRun()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (tensorboardRun_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardRun()); + } + 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.UpdateTensorboardRunRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTensorboardRun() != other.hasTensorboardRun()) return false; + if (hasTensorboardRun()) { + if (!getTensorboardRun().equals(other.getTensorboardRun())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTensorboardRun()) { + hash = (37 * hash) + TENSORBOARD_RUN_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardRun().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest 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.UpdateTensorboardRunRequest 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 [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.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 (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (tensorboardRunBuilder_ == null) { + tensorboardRun_ = null; + } else { + tensorboardRun_ = null; + tensorboardRunBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardRunRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (tensorboardRunBuilder_ == null) { + result.tensorboardRun_ = tensorboardRun_; + } else { + result.tensorboardRun_ = tensorboardRunBuilder_.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.UpdateTensorboardRunRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTensorboardRun()) { + mergeTensorboardRun(other.getTensorboardRun()); + } + 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.UpdateTensorboardRunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardRun resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.TensorboardRun tensorboardRun_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + tensorboardRunBuilder_; + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + public boolean hasTensorboardRun() { + return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { + if (tensorboardRunBuilder_ == null) { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } else { + return tensorboardRunBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardRun_ = value; + onChanged(); + } else { + tensorboardRunBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardRun( + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { + if (tensorboardRunBuilder_ == null) { + tensorboardRun_ = builderForValue.build(); + onChanged(); + } else { + tensorboardRunBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { + if (tensorboardRunBuilder_ == null) { + if (tensorboardRun_ != null) { + tensorboardRun_ = + com.google.cloud.aiplatform.v1beta1.TensorboardRun.newBuilder(tensorboardRun_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardRun_ = value; + } + onChanged(); + } else { + tensorboardRunBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboardRun() { + if (tensorboardRunBuilder_ == null) { + tensorboardRun_ = null; + onChanged(); + } else { + tensorboardRun_ = null; + tensorboardRunBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboardRunBuilder() { + + onChanged(); + return getTensorboardRunFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder + getTensorboardRunOrBuilder() { + if (tensorboardRunBuilder_ != null) { + return tensorboardRunBuilder_.getMessageOrBuilder(); + } else { + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; + } + } + /** + * + * + *
+     * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+     * be updated. Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder> + getTensorboardRunFieldBuilder() { + if (tensorboardRunBuilder_ == null) { + tensorboardRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardRun, + com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder>( + getTensorboardRun(), getParentForChildren(), isClean()); + tensorboardRun_ = null; + } + return tensorboardRunBuilder_; + } + + @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.UpdateTensorboardRunRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTensorboardRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTensorboardRunRequest(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.UpdateTensorboardRunRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequestOrBuilder.java new file mode 100644 index 000000000..b2cb004c7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateTensorboardRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardRun resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardRun field is set. + */ + boolean hasTensorboardRun(); + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardRun. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun(); + /** + * + * + *
+   * Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to
+   * be updated. Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java new file mode 100644 index 000000000..a8c34b09b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java @@ -0,0 +1,1160 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest} + */ +public final class UpdateTensorboardTimeSeriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) + UpdateTensorboardTimeSeriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTensorboardTimeSeriesRequest.newBuilder() to construct. + private UpdateTensorboardTimeSeriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTensorboardTimeSeriesRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTensorboardTimeSeriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTensorboardTimeSeriesRequest( + 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.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder subBuilder = null; + if (tensorboardTimeSeries_ != null) { + subBuilder = tensorboardTimeSeries_.toBuilder(); + } + tensorboardTimeSeries_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tensorboardTimeSeries_); + tensorboardTimeSeries_ = 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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboardTimeSeries_; + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + @java.lang.Override + public boolean hasTensorboardTimeSeries() { + return tensorboardTimeSeries_ != null; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries() { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder() { + return getTensorboardTimeSeries(); + } + + 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (tensorboardTimeSeries_ != null) { + output.writeMessage(2, getTensorboardTimeSeries()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (tensorboardTimeSeries_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTensorboardTimeSeries()); + } + 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.UpdateTensorboardTimeSeriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTensorboardTimeSeries() != other.hasTensorboardTimeSeries()) return false; + if (hasTensorboardTimeSeries()) { + if (!getTensorboardTimeSeries().equals(other.getTensorboardTimeSeries())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTensorboardTimeSeries()) { + hash = (37 * hash) + TENSORBOARD_TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardTimeSeries().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + 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.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest 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.UpdateTensorboardTimeSeriesRequest 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 [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.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 (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = null; + } else { + tensorboardTimeSeries_ = null; + tensorboardTimeSeriesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateTensorboardTimeSeriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (tensorboardTimeSeriesBuilder_ == null) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } else { + result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.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.UpdateTensorboardTimeSeriesRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTensorboardTimeSeries()) { + mergeTensorboardTimeSeries(other.getTensorboardTimeSeries()); + } + 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.UpdateTensorboardTimeSeriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * TensorboardTimeSeries resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten if new
+     * values are specified.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboardTimeSeries_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + tensorboardTimeSeriesBuilder_; + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + public boolean hasTensorboardTimeSeries() { + return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries() { + if (tensorboardTimeSeriesBuilder_ == null) { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } else { + return tensorboardTimeSeriesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorboardTimeSeries_ = value; + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = builderForValue.build(); + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTensorboardTimeSeries( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { + if (tensorboardTimeSeriesBuilder_ == null) { + if (tensorboardTimeSeries_ != null) { + tensorboardTimeSeries_ = + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.newBuilder( + tensorboardTimeSeries_) + .mergeFrom(value) + .buildPartial(); + } else { + tensorboardTimeSeries_ = value; + } + onChanged(); + } else { + tensorboardTimeSeriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTensorboardTimeSeries() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeries_ = null; + onChanged(); + } else { + tensorboardTimeSeries_ = null; + tensorboardTimeSeriesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder + getTensorboardTimeSeriesBuilder() { + + onChanged(); + return getTensorboardTimeSeriesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder() { + if (tensorboardTimeSeriesBuilder_ != null) { + return tensorboardTimeSeriesBuilder_.getMessageOrBuilder(); + } else { + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries' `name` field is used to identify the
+     * TensorboardTimeSeries to be updated.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder> + getTensorboardTimeSeriesFieldBuilder() { + if (tensorboardTimeSeriesBuilder_ == null) { + tensorboardTimeSeriesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder, + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder>( + getTensorboardTimeSeries(), getParentForChildren(), isClean()); + tensorboardTimeSeries_ = null; + } + return tensorboardTimeSeriesBuilder_; + } + + @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.UpdateTensorboardTimeSeriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTensorboardTimeSeriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTensorboardTimeSeriesRequest(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.UpdateTensorboardTimeSeriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequestOrBuilder.java new file mode 100644 index 000000000..182295801 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateTensorboardTimeSeriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * TensorboardTimeSeries resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten if new
+   * values are specified.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tensorboardTimeSeries field is set. + */ + boolean hasTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tensorboardTimeSeries. + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries' `name` field is used to identify the
+   * TensorboardTimeSeries to be updated.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder + getTensorboardTimeSeriesOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java index 804043c7e..ba4dfd305 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java @@ -174,6 +174,23 @@ public ReferenceCase getReferenceCase() { } public static final int OPERATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * For API calls that return a long running operation.
+   * Resource name of the long running operation.
+   * Format:
+   * 'projects/{project}/locations/{location}/operations/{operation}'
+   * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + public boolean hasOperation() { + return referenceCase_ == 1; + } /** * * @@ -236,6 +253,23 @@ public com.google.protobuf.ByteString getOperationBytes() { } public static final int DATA_LABELING_JOB_FIELD_NUMBER = 2; + /** + * + * + *
+   * For API calls that start a LabelingJob.
+   * Resource name of the LabelingJob.
+   * Format:
+   * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+   * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + public boolean hasDataLabelingJob() { + return referenceCase_ == 2; + } /** * * @@ -303,8 +337,8 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -327,8 +361,8 @@ public java.lang.String getMethod() { * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -746,6 +780,24 @@ public Builder clearReference() { return this; } + /** + * + * + *
+     * For API calls that return a long running operation.
+     * Resource name of the long running operation.
+     * Format:
+     * 'projects/{project}/locations/{location}/operations/{operation}'
+     * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + @java.lang.Override + public boolean hasOperation() { + return referenceCase_ == 1; + } /** * * @@ -880,6 +932,24 @@ public Builder setOperationBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * For API calls that start a LabelingJob.
+     * Resource name of the LabelingJob.
+     * Format:
+     * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+     * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + @java.lang.Override + public boolean hasDataLabelingJob() { + return referenceCase_ == 2; + } /** * * @@ -1019,8 +1089,8 @@ public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1042,8 +1112,8 @@ public java.lang.String getMethod() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1065,8 +1135,8 @@ public com.google.protobuf.ByteString getMethodBytes() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1087,8 +1157,8 @@ public Builder setMethod(java.lang.String value) { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; @@ -1105,8 +1175,8 @@ public Builder clearMethod() { * * *
-     * The method name of the API call. For example,
-     * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+     * The method name of the API RPC call. For example,
+     * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
      * 
* * string method = 3; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceOrBuilder.java index 404666273..3584669ce 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceOrBuilder.java @@ -23,6 +23,21 @@ public interface UserActionReferenceOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UserActionReference) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * For API calls that return a long running operation.
+   * Resource name of the long running operation.
+   * Format:
+   * 'projects/{project}/locations/{location}/operations/{operation}'
+   * 
+ * + * string operation = 1; + * + * @return Whether the operation field is set. + */ + boolean hasOperation(); /** * * @@ -54,6 +69,21 @@ public interface UserActionReferenceOrBuilder */ com.google.protobuf.ByteString getOperationBytes(); + /** + * + * + *
+   * For API calls that start a LabelingJob.
+   * Resource name of the LabelingJob.
+   * Format:
+   * 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}'
+   * 
+ * + * string data_labeling_job = 2; + * + * @return Whether the dataLabelingJob field is set. + */ + boolean hasDataLabelingJob(); /** * * @@ -89,8 +119,8 @@ public interface UserActionReferenceOrBuilder * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; @@ -102,8 +132,8 @@ public interface UserActionReferenceOrBuilder * * *
-   * The method name of the API call. For example,
-   * "/google.cloud.aiplatform.v1alpha1.DatasetService.CreateDataset"
+   * The method name of the API RPC call. For example,
+   * "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset"
    * 
* * string method = 3; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java new file mode 100644 index 000000000..9de81a314 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java @@ -0,0 +1,1040 @@ +/* + * 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/value.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Value is the value of the field.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Value} + */ +public final class Value extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.ValueProto + .internal_static_google_cloud_aiplatform_v1beta1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ValueProto + .internal_static_google_cloud_aiplatform_v1beta1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Value.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Value other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Value} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Value) + com.google.cloud.aiplatform.v1beta1.ValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ValueProto + .internal_static_google_cloud_aiplatform_v1beta1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ValueProto + .internal_static_google_cloud_aiplatform_v1beta1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Value.class, + com.google.cloud.aiplatform.v1beta1.Value.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.ValueProto + .internal_static_google_cloud_aiplatform_v1beta1_Value_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Value getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Value.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Value build() { + com.google.cloud.aiplatform.v1beta1.Value result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Value buildPartial() { + com.google.cloud.aiplatform.v1beta1.Value result = + new com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Value) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Value other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Value) + private static final com.google.cloud.aiplatform.v1beta1.Value DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Value(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Value getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueOrBuilder.java new file mode 100644 index 000000000..261c65bae --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/value.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.Value.ValueCase getValueCase(); +} 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 new file mode 100644 index 000000000..3a0ee3aa5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java @@ -0,0 +1,71 @@ +/* + * 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/value.proto + +package com.google.cloud.aiplatform.v1beta1; + +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_v1beta1_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_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/v1beta1/value." + + "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" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Value_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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-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 index 38396a473..c96c08d88 100644 --- 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 @@ -1,5 +1,5 @@ /* - * 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/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java new file mode 100644 index 000000000..67d991fb2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java @@ -0,0 +1,498 @@ +/* + * 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/vizier_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class VizierServiceProto { + private VizierServiceProto() {} + + 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_v1beta1_GetStudyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/aiplatform/v1beta1/vizier" + + "_service.proto\022\037google.cloud.aiplatform." + + "v1beta1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032/google/cloud/aiplatform/v1beta1/oper" + + "ation.proto\032+google/cloud/aiplatform/v1b" + + "eta1/study.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032\037google/protobuf/timestamp.proto\"H\n\017G" + + "etStudyRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037ai" + + "platform.googleapis.com/Study\"\213\001\n\022Create" + + "StudyRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + + "cations.googleapis.com/Location\022:\n\005study" + + "\030\002 \001(\0132&.google.cloud.aiplatform.v1beta1" + + ".StudyB\003\340A\002\"\200\001\n\022ListStudiesRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + + ".com/Location\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026" + + "\n\tpage_size\030\003 \001(\005B\003\340A\001\"g\n\023ListStudiesRes" + + "ponse\0227\n\007studies\030\001 \003(\0132&.google.cloud.ai" + + "platform.v1beta1.Study\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"K\n\022DeleteStudyRequest\0225\n\004name\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/S" + + "tudy\"j\n\022LookupStudyRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\"\206\001\n\024Sug" + + "gestTrialsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037aiplatform.googleapis.com/Study\022\035\n\020su" + + "ggestion_count\030\002 \001(\005B\003\340A\002\022\026\n\tclient_id\030\003" + + " \001(\tB\003\340A\002\"\360\001\n\025SuggestTrialsResponse\0226\n\006t" + + "rials\030\001 \003(\0132&.google.cloud.aiplatform.v1" + + "beta1.Trial\022A\n\013study_state\030\002 \001(\0162,.googl" + + "e.cloud.aiplatform.v1beta1.Study.State\022." + + "\n\nstart_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\"\177\n\025SuggestTrialsMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google.cloud.a" + + "iplatform.v1beta1.GenericOperationMetada" + + "ta\022\021\n\tclient_id\030\002 \001(\t\"\211\001\n\022CreateTrialReq" + + "uest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform" + + ".googleapis.com/Study\022:\n\005trial\030\002 \001(\0132&.g" + + "oogle.cloud.aiplatform.v1beta1.TrialB\003\340A" + + "\002\"H\n\017GetTrialRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037aiplatform.googleapis.com/Trial\"}\n\021L" + + "istTrialsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037aiplatform.googleapis.com/Study\022\027\n\npag" + + "e_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" + + "A\001\"e\n\022ListTrialsResponse\0226\n\006trials\030\001 \003(\013" + + "2&.google.cloud.aiplatform.v1beta1.Trial" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\241\001\n\032AddTrialMe" + + "asurementRequest\022;\n\ntrial_name\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037aiplatform.googleapis.com/Trial\022F\n" + + "\013measurement\030\003 \001(\0132,.google.cloud.aiplat" + + "form.v1beta1.MeasurementB\003\340A\002\"\332\001\n\024Comple" + + "teTrialRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037ai" + + "platform.googleapis.com/Trial\022L\n\021final_m" + + "easurement\030\002 \001(\0132,.google.cloud.aiplatfo" + + "rm.v1beta1.MeasurementB\003\340A\001\022\035\n\020trial_inf" + + "easible\030\003 \001(\010B\003\340A\001\022\036\n\021infeasible_reason\030" + + "\004 \001(\tB\003\340A\001\"K\n\022DeleteTrialRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.co" + + "m/Trial\"b\n#CheckTrialEarlyStoppingStateR" + + "equest\022;\n\ntrial_name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" + + "atform.googleapis.com/Trial\";\n$CheckTria" + + "lEarlyStoppingStateResponse\022\023\n\013should_st" + + "op\030\001 \001(\010\"\232\001\n%CheckTrialEarlyStoppingStat" + + "eMetatdata\022S\n\020generic_metadata\030\001 \001(\01329.g" + + "oogle.cloud.aiplatform.v1beta1.GenericOp" + + "erationMetadata\022\r\n\005study\030\002 \001(\t\022\r\n\005trial\030" + + "\003 \001(\t\"I\n\020StopTrialRequest\0225\n\004name\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037aiplatform.googleapis.com/Trial" + + "\"S\n\030ListOptimalTrialsRequest\0227\n\006parent\030\001" + + " \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/" + + "Study\"[\n\031ListOptimalTrialsResponse\022>\n\016op" + + "timal_trials\030\001 \003(\0132&.google.cloud.aiplat" + + "form.v1beta1.Trial2\241\030\n\rVizierService\022\272\001\n" + + "\013CreateStudy\0223.google.cloud.aiplatform.v" + + "1beta1.CreateStudyRequest\032&.google.cloud" + + ".aiplatform.v1beta1.Study\"N\202\323\344\223\0029\"0/v1be" + + "ta1/{parent=projects/*/locations/*}/stud" + + "ies:\005study\332A\014parent,study\022\245\001\n\010GetStudy\0220" + + ".google.cloud.aiplatform.v1beta1.GetStud" + + "yRequest\032&.google.cloud.aiplatform.v1bet" + + "a1.Study\"?\202\323\344\223\0022\0220/v1beta1/{name=project" + + "s/*/locations/*/studies/*}\332A\004name\022\273\001\n\013Li" + + "stStudies\0223.google.cloud.aiplatform.v1be" + + "ta1.ListStudiesRequest\0324.google.cloud.ai" + + "platform.v1beta1.ListStudiesResponse\"A\202\323" + + "\344\223\0022\0220/v1beta1/{parent=projects/*/locati" + + "ons/*}/studies\332A\006parent\022\233\001\n\013DeleteStudy\022" + + "3.google.cloud.aiplatform.v1beta1.Delete" + + "StudyRequest\032\026.google.protobuf.Empty\"?\202\323" + + "\344\223\0022*0/v1beta1/{name=projects/*/location" + + "s/*/studies/*}\332A\004name\022\267\001\n\013LookupStudy\0223." + + "google.cloud.aiplatform.v1beta1.LookupSt" + + "udyRequest\032&.google.cloud.aiplatform.v1b" + + "eta1.Study\"K\202\323\344\223\002<\"7/v1beta1/{parent=pro" + + "jects/*/locations/*}/studies:lookup:\001*\332A" + + "\006parent\022\344\001\n\rSuggestTrials\0225.google.cloud" + + ".aiplatform.v1beta1.SuggestTrialsRequest" + + "\032\035.google.longrunning.Operation\"}\202\323\344\223\002F\"" + + "A/v1beta1/{parent=projects/*/locations/*" + + "/studies/*}/trials:suggest:\001*\312A.\n\025Sugges" + + "tTrialsResponse\022\025SuggestTrialsMetadata\022\303" + + "\001\n\013CreateTrial\0223.google.cloud.aiplatform" + + ".v1beta1.CreateTrialRequest\032&.google.clo" + + "ud.aiplatform.v1beta1.Trial\"W\202\323\344\223\002B\"9/v1" + + "beta1/{parent=projects/*/locations/*/stu" + + "dies/*}/trials:\005trial\332A\014parent,trial\022\256\001\n" + + "\010GetTrial\0220.google.cloud.aiplatform.v1be" + + "ta1.GetTrialRequest\032&.google.cloud.aipla" + + "tform.v1beta1.Trial\"H\202\323\344\223\002;\0229/v1beta1/{n" + + "ame=projects/*/locations/*/studies/*/tri" + + "als/*}\332A\004name\022\301\001\n\nListTrials\0222.google.cl" + + "oud.aiplatform.v1beta1.ListTrialsRequest" + + "\0323.google.cloud.aiplatform.v1beta1.ListT" + + "rialsResponse\"J\202\323\344\223\002;\0229/v1beta1/{parent=" + + "projects/*/locations/*/studies/*}/trials" + + "\332A\006parent\022\332\001\n\023AddTrialMeasurement\022;.goog" + + "le.cloud.aiplatform.v1beta1.AddTrialMeas" + + "urementRequest\032&.google.cloud.aiplatform" + + ".v1beta1.Trial\"^\202\323\344\223\002X\"S/v1beta1/{trial_" + + "name=projects/*/locations/*/studies/*/tr" + + "ials/*}:addTrialMeasurement:\001*\022\275\001\n\rCompl" + + "eteTrial\0225.google.cloud.aiplatform.v1bet" + + "a1.CompleteTrialRequest\032&.google.cloud.a" + + "iplatform.v1beta1.Trial\"M\202\323\344\223\002G\"B/v1beta" + + "1/{name=projects/*/locations/*/studies/*" + + "/trials/*}:complete:\001*\022\244\001\n\013DeleteTrial\0223" + + ".google.cloud.aiplatform.v1beta1.DeleteT" + + "rialRequest\032\026.google.protobuf.Empty\"H\202\323\344" + + "\223\002;*9/v1beta1/{name=projects/*/locations" + + "/*/studies/*/trials/*}\332A\004name\022\275\002\n\034CheckT" + + "rialEarlyStoppingState\022D.google.cloud.ai" + + "platform.v1beta1.CheckTrialEarlyStopping" + + "StateRequest\032\035.google.longrunning.Operat" + + "ion\"\267\001\202\323\344\223\002a\"\\/v1beta1/{trial_name=proje" + + "cts/*/locations/*/studies/*/trials/*}:ch" + + "eckTrialEarlyStoppingState:\001*\312AM\n$CheckT" + + "rialEarlyStoppingStateResponse\022%CheckTri" + + "alEarlyStoppingStateMetatdata\022\261\001\n\tStopTr" + + "ial\0221.google.cloud.aiplatform.v1beta1.St" + + "opTrialRequest\032&.google.cloud.aiplatform" + + ".v1beta1.Trial\"I\202\323\344\223\002C\">/v1beta1/{name=p" + + "rojects/*/locations/*/studies/*/trials/*" + + "}:stop:\001*\022\353\001\n\021ListOptimalTrials\0229.google" + + ".cloud.aiplatform.v1beta1.ListOptimalTri" + + "alsRequest\032:.google.cloud.aiplatform.v1b" + + "eta1.ListOptimalTrialsResponse\"_\202\323\344\223\002P\"K" + + "/v1beta1/{parent=projects/*/locations/*/" + + "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" + + "1beta1B\022VizierServiceProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatformb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.StudyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetStudyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateStudyRequest_descriptor, + new java.lang.String[] { + "Parent", "Study", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListStudiesResponse_descriptor, + new java.lang.String[] { + "Studies", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteStudyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_LookupStudyRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayName", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsRequest_descriptor, + new java.lang.String[] { + "Parent", "SuggestionCount", "ClientId", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsResponse_descriptor, + new java.lang.String[] { + "Trials", "StudyState", "StartTime", "EndTime", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuggestTrialsMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", "ClientId", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateTrialRequest_descriptor, + new java.lang.String[] { + "Parent", "Trial", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetTrialRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListTrialsResponse_descriptor, + new java.lang.String[] { + "Trials", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AddTrialMeasurementRequest_descriptor, + new java.lang.String[] { + "TrialName", "Measurement", + }); + internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CompleteTrialRequest_descriptor, + new java.lang.String[] { + "Name", "FinalMeasurement", "TrialInfeasible", "InfeasibleReason", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteTrialRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateRequest_descriptor, + new java.lang.String[] { + "TrialName", + }); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateResponse_descriptor, + new java.lang.String[] { + "ShouldStop", + }); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CheckTrialEarlyStoppingStateMetatdata_descriptor, + new java.lang.String[] { + "GenericMetadata", "Study", "Trial", + }); + internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StopTrialRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOptimalTrialsResponse_descriptor, + new java.lang.String[] { + "OptimalTrials", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.StudyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java new file mode 100644 index 000000000..594823fc4 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java @@ -0,0 +1,1324 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest} + */ +public final class WriteTensorboardRunDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) + WriteTensorboardRunDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteTensorboardRunDataRequest.newBuilder() to construct. + private WriteTensorboardRunDataRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteTensorboardRunDataRequest() { + tensorboardRun_ = ""; + timeSeriesData_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteTensorboardRunDataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteTensorboardRunDataRequest( + 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(); + + tensorboardRun_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timeSeriesData_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + timeSeriesData_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.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)) { + timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.class, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.Builder.class); + } + + public static final int TENSORBOARD_RUN_FIELD_NUMBER = 1; + private volatile java.lang.Object tensorboardRun_; + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to write data to.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardRun. + */ + @java.lang.Override + public java.lang.String getTensorboardRun() { + java.lang.Object ref = tensorboardRun_; + 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(); + tensorboardRun_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to write data to.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardRun. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardRunBytes() { + java.lang.Object ref = tensorboardRun_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardRun_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_SERIES_DATA_FIELD_NUMBER = 2; + private java.util.List timeSeriesData_; + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getTimeSeriesDataList() { + return timeSeriesData_; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getTimeSeriesDataOrBuilderList() { + return timeSeriesData_; + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getTimeSeriesDataCount() { + return timeSeriesData_.size(); + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData(int index) { + return timeSeriesData_.get(index); + } + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( + int index) { + return timeSeriesData_.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 (!getTensorboardRunBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorboardRun_); + } + for (int i = 0; i < timeSeriesData_.size(); i++) { + output.writeMessage(2, timeSeriesData_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTensorboardRunBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorboardRun_); + } + for (int i = 0; i < timeSeriesData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timeSeriesData_.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.WriteTensorboardRunDataRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest other = + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) obj; + + if (!getTensorboardRun().equals(other.getTensorboardRun())) return false; + if (!getTimeSeriesDataList().equals(other.getTimeSeriesDataList())) 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) + TENSORBOARD_RUN_FIELD_NUMBER; + hash = (53 * hash) + getTensorboardRun().hashCode(); + if (getTimeSeriesDataCount() > 0) { + hash = (37 * hash) + TIME_SERIES_DATA_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + 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.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest 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.WriteTensorboardRunDataRequest 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 [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.class, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeSeriesDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + tensorboardRun_ = ""; + + if (timeSeriesDataBuilder_ == null) { + timeSeriesData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + timeSeriesDataBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest build() { + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest result = + new com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest(this); + int from_bitField0_ = bitField0_; + result.tensorboardRun_ = tensorboardRun_; + if (timeSeriesDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timeSeriesData_ = timeSeriesData_; + } else { + result.timeSeriesData_ = timeSeriesDataBuilder_.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.WriteTensorboardRunDataRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + .getDefaultInstance()) return this; + if (!other.getTensorboardRun().isEmpty()) { + tensorboardRun_ = other.tensorboardRun_; + onChanged(); + } + if (timeSeriesDataBuilder_ == null) { + if (!other.timeSeriesData_.isEmpty()) { + if (timeSeriesData_.isEmpty()) { + timeSeriesData_ = other.timeSeriesData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.addAll(other.timeSeriesData_); + } + onChanged(); + } + } else { + if (!other.timeSeriesData_.isEmpty()) { + if (timeSeriesDataBuilder_.isEmpty()) { + timeSeriesDataBuilder_.dispose(); + timeSeriesDataBuilder_ = null; + timeSeriesData_ = other.timeSeriesData_; + bitField0_ = (bitField0_ & ~0x00000001); + timeSeriesDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeSeriesDataFieldBuilder() + : null; + } else { + timeSeriesDataBuilder_.addAllMessages(other.timeSeriesData_); + } + } + } + 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.WriteTensorboardRunDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object tensorboardRun_ = ""; + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to write data to.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardRun. + */ + public java.lang.String getTensorboardRun() { + java.lang.Object ref = tensorboardRun_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboardRun_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to write data to.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardRun. + */ + public com.google.protobuf.ByteString getTensorboardRunBytes() { + java.lang.Object ref = tensorboardRun_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboardRun_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to write data to.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tensorboardRun to set. + * @return This builder for chaining. + */ + public Builder setTensorboardRun(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorboardRun_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to write data to.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTensorboardRun() { + + tensorboardRun_ = getDefaultInstance().getTensorboardRun(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the TensorboardRun to write data to.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+     * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tensorboardRun to set. + * @return This builder for chaining. + */ + public Builder setTensorboardRunBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tensorboardRun_ = value; + onChanged(); + return this; + } + + private java.util.List timeSeriesData_ = + java.util.Collections.emptyList(); + + private void ensureTimeSeriesDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timeSeriesData_ = + new java.util.ArrayList( + timeSeriesData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder> + timeSeriesDataBuilder_; + + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTimeSeriesDataList() { + if (timeSeriesDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeSeriesData_); + } else { + return timeSeriesDataBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getTimeSeriesDataCount() { + if (timeSeriesDataBuilder_ == null) { + return timeSeriesData_.size(); + } else { + return timeSeriesDataBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData(int index) { + if (timeSeriesDataBuilder_ == null) { + return timeSeriesData_.get(index); + } else { + return timeSeriesDataBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTimeSeriesData( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { + if (timeSeriesDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.set(index, value); + onChanged(); + } else { + timeSeriesDataBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTimeSeriesData( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder builderForValue) { + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.set(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { + if (timeSeriesDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(value); + onChanged(); + } else { + timeSeriesDataBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTimeSeriesData( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { + if (timeSeriesDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(index, value); + onChanged(); + } else { + timeSeriesDataBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTimeSeriesData( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder builderForValue) { + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(builderForValue.build()); + onChanged(); + } else { + timeSeriesDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTimeSeriesData( + int index, com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder builderForValue) { + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.add(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllTimeSeriesData( + java.lang.Iterable values) { + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesData_); + onChanged(); + } else { + timeSeriesDataBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTimeSeriesData() { + if (timeSeriesDataBuilder_ == null) { + timeSeriesData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + timeSeriesDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeTimeSeriesData(int index) { + if (timeSeriesDataBuilder_ == null) { + ensureTimeSeriesDataIsMutable(); + timeSeriesData_.remove(index); + onChanged(); + } else { + timeSeriesDataBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder getTimeSeriesDataBuilder( + int index) { + return getTimeSeriesDataFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder( + int index) { + if (timeSeriesDataBuilder_ == null) { + return timeSeriesData_.get(index); + } else { + return timeSeriesDataBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTimeSeriesDataOrBuilderList() { + if (timeSeriesDataBuilder_ != null) { + return timeSeriesDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeSeriesData_); + } + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder addTimeSeriesDataBuilder() { + return getTimeSeriesDataFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder addTimeSeriesDataBuilder( + int index) { + return getTimeSeriesDataFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The TensorboardTimeSeries data to write.
+     * Values with in a time series are indexed by their step value.
+     * Repeated writes to the same step will overwrite the existing value for that
+     * step.
+     * The upper limit of data points per write request is 5000.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTimeSeriesDataBuilderList() { + return getTimeSeriesDataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder> + getTimeSeriesDataFieldBuilder() { + if (timeSeriesDataBuilder_ == null) { + timeSeriesDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TimeSeriesData, + com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder>( + timeSeriesData_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + timeSeriesData_ = null; + } + return timeSeriesDataBuilder_; + } + + @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.WriteTensorboardRunDataRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) + private static final com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteTensorboardRunDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteTensorboardRunDataRequest(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.WriteTensorboardRunDataRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequestOrBuilder.java new file mode 100644 index 000000000..bed32bfed --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface WriteTensorboardRunDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to write data to.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboardRun. + */ + java.lang.String getTensorboardRun(); + /** + * + * + *
+   * Required. The resource name of the TensorboardRun to write data to.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+   * 
+ * + * + * string tensorboard_run = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboardRun. + */ + com.google.protobuf.ByteString getTensorboardRunBytes(); + + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getTimeSeriesDataList(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData(int index); + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getTimeSeriesDataCount(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getTimeSeriesDataOrBuilderList(); + /** + * + * + *
+   * Required. The TensorboardTimeSeries data to write.
+   * Values with in a time series are indexed by their step value.
+   * Repeated writes to the same step will overwrite the existing value for that
+   * step.
+   * The upper limit of data points per write request is 5000.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java new file mode 100644 index 000000000..39e4452f6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponse.java @@ -0,0 +1,469 @@ +/* + * 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/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse} + */ +public final class WriteTensorboardRunDataResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + WriteTensorboardRunDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteTensorboardRunDataResponse.newBuilder() to construct. + private WriteTensorboardRunDataResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteTensorboardRunDataResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteTensorboardRunDataResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteTensorboardRunDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (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.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.class, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse other = + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + 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.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse 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.WriteTensorboardRunDataResponse 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 [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.class, + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteTensorboardRunDataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse build() { + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse result = + new com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + private static final com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteTensorboardRunDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteTensorboardRunDataResponse(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.WriteTensorboardRunDataResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponseOrBuilder.java new file mode 100644 index 000000000..6aadeb319 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface WriteTensorboardRunDataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java index f7670b130..7405542ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java @@ -76,16 +76,6 @@ private TimeSeriesForecastingPredictionResult( value_ = input.readFloat(); break; } - case 21: - { - lowerBound_ = input.readFloat(); - break; - } - case 29: - { - upperBound_ = input.readFloat(); - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -142,42 +132,6 @@ public float getValue() { return value_; } - public static final int LOWER_BOUND_FIELD_NUMBER = 2; - private float lowerBound_; - /** - * - * - *
-   * The lower bound of the prediction interval.
-   * 
- * - * float lower_bound = 2; - * - * @return The lowerBound. - */ - @java.lang.Override - public float getLowerBound() { - return lowerBound_; - } - - public static final int UPPER_BOUND_FIELD_NUMBER = 3; - private float upperBound_; - /** - * - * - *
-   * The upper bound of the prediction interval.
-   * 
- * - * float upper_bound = 3; - * - * @return The upperBound. - */ - @java.lang.Override - public float getUpperBound() { - return upperBound_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -195,12 +149,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (value_ != 0F) { output.writeFloat(1, value_); } - if (lowerBound_ != 0F) { - output.writeFloat(2, lowerBound_); - } - if (upperBound_ != 0F) { - output.writeFloat(3, upperBound_); - } unknownFields.writeTo(output); } @@ -213,12 +161,6 @@ public int getSerializedSize() { if (value_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); } - if (lowerBound_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, lowerBound_); - } - if (upperBound_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, upperBound_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -244,10 +186,6 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getValue()) != java.lang.Float.floatToIntBits(other.getValue())) return false; - if (java.lang.Float.floatToIntBits(getLowerBound()) - != java.lang.Float.floatToIntBits(other.getLowerBound())) return false; - if (java.lang.Float.floatToIntBits(getUpperBound()) - != java.lang.Float.floatToIntBits(other.getUpperBound())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,10 +199,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getValue()); - hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLowerBound()); - hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getUpperBound()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -440,10 +374,6 @@ public Builder clear() { super.clear(); value_ = 0F; - lowerBound_ = 0F; - - upperBound_ = 0F; - return this; } @@ -485,8 +415,6 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TimeSeriesForecastingPredictionResult(this); result.value_ = value_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; onBuilt(); return result; } @@ -550,12 +478,6 @@ public Builder mergeFrom( if (other.getValue() != 0F) { setValue(other.getValue()); } - if (other.getLowerBound() != 0F) { - setLowerBound(other.getLowerBound()); - } - if (other.getUpperBound() != 0F) { - setUpperBound(other.getUpperBound()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -642,110 +564,6 @@ public Builder clearValue() { return this; } - private float lowerBound_; - /** - * - * - *
-     * The lower bound of the prediction interval.
-     * 
- * - * float lower_bound = 2; - * - * @return The lowerBound. - */ - @java.lang.Override - public float getLowerBound() { - return lowerBound_; - } - /** - * - * - *
-     * The lower bound of the prediction interval.
-     * 
- * - * float lower_bound = 2; - * - * @param value The lowerBound to set. - * @return This builder for chaining. - */ - public Builder setLowerBound(float value) { - - lowerBound_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The lower bound of the prediction interval.
-     * 
- * - * float lower_bound = 2; - * - * @return This builder for chaining. - */ - public Builder clearLowerBound() { - - lowerBound_ = 0F; - onChanged(); - return this; - } - - private float upperBound_; - /** - * - * - *
-     * The upper bound of the prediction interval.
-     * 
- * - * float upper_bound = 3; - * - * @return The upperBound. - */ - @java.lang.Override - public float getUpperBound() { - return upperBound_; - } - /** - * - * - *
-     * The upper bound of the prediction interval.
-     * 
- * - * float upper_bound = 3; - * - * @param value The upperBound to set. - * @return This builder for chaining. - */ - public Builder setUpperBound(float value) { - - upperBound_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The upper bound of the prediction interval.
-     * 
- * - * float upper_bound = 3; - * - * @return This builder for chaining. - */ - public Builder clearUpperBound() { - - upperBound_ = 0F; - 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/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java index b56e2964e..dcb0d447e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultOrBuilder.java @@ -35,30 +35,4 @@ public interface TimeSeriesForecastingPredictionResultOrBuilder * @return The value. */ float getValue(); - - /** - * - * - *
-   * The lower bound of the prediction interval.
-   * 
- * - * float lower_bound = 2; - * - * @return The lowerBound. - */ - float getLowerBound(); - - /** - * - * - *
-   * The upper bound of the prediction interval.
-   * 
- * - * float upper_bound = 3; - * - * @return The upperBound. - */ - float getUpperBound(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java index bccf02c30..abb91afec 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java @@ -44,15 +44,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/predict/prediction/time_series_forecast" + "ing.proto\0229google.cloud.aiplatform.v1bet" + "a1.schema.predict.prediction\032\034google/api" - + "/annotations.proto\"`\n%TimeSeriesForecast" - + "ingPredictionResult\022\r\n\005value\030\001 \001(\002\022\023\n\013lo" - + "wer_bound\030\002 \001(\002\022\023\n\013upper_bound\030\003 \001(\002B\322\001\n" - + "=com.google.cloud.aiplatform.v1beta1.sch" - + "ema.predict.predictionB*TimeSeriesForeca" - + "stingPredictionResultProtoP\001Zcgoogle.gol" - + "ang.org/genproto/googleapis/cloud/aiplat" - + "form/v1beta1/schema/predict/prediction;p" - + "redictionb\006proto3" + + "/annotations.proto\"6\n%TimeSeriesForecast" + + "ingPredictionResult\022\r\n\005value\030\001 \001(\002B\322\001\n=c" + + "om.google.cloud.aiplatform.v1beta1.schem" + + "a.predict.predictionB*TimeSeriesForecast" + + "ingPredictionResultProtoP\001Zcgoogle.golan" + + "g.org/genproto/googleapis/cloud/aiplatfo" + + "rm/v1beta1/schema/predict/prediction;pre" + + "dictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -66,7 +65,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_schema_predict_prediction_TimeSeriesForecastingPredictionResult_descriptor, new java.lang.String[] { - "Value", "LowerBound", "UpperBound", + "Value", }); com.google.api.AnnotationsProto.getDescriptor(); } 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 6d17c462a..d70836643 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 @@ -61,21 +61,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextTransformation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -102,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\"\265\024\n\027AutoMlForecastingInputs\022" + + "ingMetadata\"\327\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,71 +98,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".definition.AutoMlForecastingInputs.Tran" + "sformation\022\036\n\026optimization_objective\030\005 \001" + "(\t\022%\n\035train_budget_milli_node_hours\030\006 \001(" - + "\003\022\025\n\rweight_column\030\007 \001(\t\022\026\n\016static_colum" - + "ns\030\010 \003(\t\022&\n\036time_variant_past_only_colum" - + "ns\030\t \003(\t\022,\n$time_variant_past_and_future" - + "_columns\030\n \003(\t\022m\n\006period\030\013 \001(\0132].google." - + "cloud.aiplatform.v1beta1.schema.training" - + "job.definition.AutoMlForecastingInputs.P" - + "eriod\022\035\n\025forecast_window_start\030\014 \001(\003\022\033\n\023" - + "forecast_window_end\030\r \001(\003\022\024\n\014past_horizo" - + "n\030\016 \001(\003\022\211\001\n\"export_evaluated_data_items_" - + "config\030\017 \001(\0132].google.cloud.aiplatform.v" - + "1beta1.schema.trainingjob.definition.Exp" - + "ortEvaluatedDataItemsConfig\022\021\n\tquantiles" - + "\030\020 \003(\001\022\032\n\022validation_options\030\021 \001(\t\032\324\r\n\016T" - + "ransformation\022\210\001\n\004auto\030\001 \001(\0132x.google.cl" - + "oud.aiplatform.v1beta1.schema.trainingjo" - + "b.definition.AutoMlForecastingInputs.Tra" - + "nsformation.AutoTransformationH\000\022\216\001\n\007num" - + "eric\030\002 \001(\0132{.google.cloud.aiplatform.v1b" - + "eta1.schema.trainingjob.definition.AutoM" - + "lForecastingInputs.Transformation.Numeri" - + "cTransformationH\000\022\226\001\n\013categorical\030\003 \001(\0132" - + "\177.google.cloud.aiplatform.v1beta1.schema" - + ".trainingjob.definition.AutoMlForecastin" - + "gInputs.Transformation.CategoricalTransf" - + "ormationH\000\022\222\001\n\ttimestamp\030\004 \001(\0132}.google." - + "cloud.aiplatform.v1beta1.schema.training" - + "job.definition.AutoMlForecastingInputs.T" - + "ransformation.TimestampTransformationH\000\022" - + "\210\001\n\004text\030\005 \001(\0132x.google.cloud.aiplatform" - + ".v1beta1.schema.trainingjob.definition.A" - + "utoMlForecastingInputs.Transformation.Te" - + "xtTransformationH\000\022\235\001\n\020repeated_numeric\030" - + "\006 \001(\0132\200\001.google.cloud.aiplatform.v1beta1" + + "\003\022\025\n\rweight_column\030\007 \001(\t\022%\n\035time_series_" + + "attribute_columns\030\023 \003(\t\022\'\n\037unavailable_a" + + "t_forecast_columns\030\024 \003(\t\022%\n\035available_at" + + "_forecast_columns\030\025 \003(\t\022|\n\020data_granular" + + "ity\030\026 \001(\0132b.google.cloud.aiplatform.v1be" + + "ta1.schema.trainingjob.definition.AutoMl" + + "ForecastingInputs.Granularity\022\030\n\020forecas" + + "t_horizon\030\027 \001(\003\022\026\n\016context_window\030\030 \001(\003\022" + + "\211\001\n\"export_evaluated_data_items_config\030\017" + + " \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.NumericArr" - + "ayTransformationH\000\022\245\001\n\024repeated_categori" - + "cal\030\007 \001(\0132\204\001.google.cloud.aiplatform.v1b" - + "eta1.schema.trainingjob.definition.AutoM" - + "lForecastingInputs.Transformation.Catego" - + "ricalArrayTransformationH\000\022\226\001\n\rrepeated_" - + "text\030\010 \001(\0132}.google.cloud.aiplatform.v1b" - + "eta1.schema.trainingjob.definition.AutoM" - + "lForecastingInputs.Transformation.TextAr" - + "rayTransformationH\000\032)\n\022AutoTransformatio" - + "n\022\023\n\013column_name\030\001 \001(\t\032L\n\025NumericTransfo" - + "rmation\022\023\n\013column_name\030\001 \001(\t\022\036\n\026invalid_" - + "values_allowed\030\002 \001(\010\0320\n\031CategoricalTrans" - + "formation\022\023\n\013column_name\030\001 \001(\t\032c\n\027Timest" - + "ampTransformation\022\023\n\013column_name\030\001 \001(\t\022\023" - + "\n\013time_format\030\002 \001(\t\022\036\n\026invalid_values_al" - + "lowed\030\003 \001(\010\032)\n\022TextTransformation\022\023\n\013col" - + "umn_name\030\001 \001(\t\032Q\n\032NumericArrayTransforma" - + "tion\022\023\n\013column_name\030\001 \001(\t\022\036\n\026invalid_val" - + "ues_allowed\030\002 \001(\010\0325\n\036CategoricalArrayTra" - + "nsformation\022\023\n\013column_name\030\001 \001(\t\032.\n\027Text" - + "ArrayTransformation\022\023\n\013column_name\030\001 \001(\t" - + "B\027\n\025transformation_detail\032(\n\006Period\022\014\n\004u" - + "nit\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\003\"@\n\031AutoMlFor" - + "ecastingMetadata\022#\n\033train_cost_milli_nod" - + "e_hours\030\001 \001(\003B\306\001\nAcom.google.cloud.aipla" - + "tform.v1beta1.schema.trainingjob.definit" - + "ionB\026AutoMLForecastingProtoP\001Zggoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1/schema/trainingjob/definit" - + "ion;definitionb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -205,13 +175,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptimizationObjective", "TrainBudgetMilliNodeHours", "WeightColumn", - "StaticColumns", - "TimeVariantPastOnlyColumns", - "TimeVariantPastAndFutureColumns", - "Period", - "ForecastWindowStart", - "ForecastWindowEnd", - "PastHorizon", + "TimeSeriesAttributeColumns", + "UnavailableAtForecastColumns", + "AvailableAtForecastColumns", + "DataGranularity", + "ForecastHorizon", + "ContextWindow", "ExportEvaluatedDataItemsConfig", "Quantiles", "ValidationOptions", @@ -224,15 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor, new java.lang.String[] { - "Auto", - "Numeric", - "Categorical", - "Timestamp", - "Text", - "RepeatedNumeric", - "RepeatedCategorical", - "RepeatedText", - "TransformationDetail", + "Auto", "Numeric", "Categorical", "Timestamp", "Text", "TransformationDetail", }); internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_AutoTransformation_descriptor = internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor @@ -252,7 +213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericTransformation_descriptor, new java.lang.String[] { - "ColumnName", "InvalidValuesAllowed", + "ColumnName", }); internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalTransformation_descriptor = internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor @@ -272,7 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TimestampTransformation_descriptor, new java.lang.String[] { - "ColumnName", "TimeFormat", "InvalidValuesAllowed", + "ColumnName", "TimeFormat", }); internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextTransformation_descriptor = internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor @@ -284,43 +245,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ColumnName", }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor, - new java.lang.String[] { - "ColumnName", "InvalidValuesAllowed", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor, - new java.lang.String[] { - "ColumnName", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor = - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor, - new java.lang.String[] { - "ColumnName", - }); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor = internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor .getNestedTypes() .get(1); - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_fieldAccessorTable = + internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor, + internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor, new java.lang.String[] { "Unit", "Quantity", }); 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 b368666f6..3599c57f0 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 @@ -40,9 +40,9 @@ private AutoMlForecastingInputs() { transformations_ = java.util.Collections.emptyList(); optimizationObjective_ = ""; weightColumn_ = ""; - staticColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - timeVariantPastOnlyColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - timeVariantPastAndFutureColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + timeSeriesAttributeColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unavailableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; quantiles_ = emptyDoubleList(); validationOptions_ = ""; } @@ -133,71 +133,6 @@ private AutoMlForecastingInputs( weightColumn_ = s; break; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - staticColumns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - staticColumns_.add(s); - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - timeVariantPastOnlyColumns_.add(s); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - timeVariantPastAndFutureColumns_.add(s); - break; - } - case 90: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder - subBuilder = null; - if (period_ != null) { - subBuilder = period_.toBuilder(); - } - period_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(period_); - period_ = subBuilder.buildPartial(); - } - - break; - } - case 96: - { - forecastWindowStart_ = input.readInt64(); - break; - } - case 104: - { - forecastWindowEnd_ = input.readInt64(); - break; - } - case 112: - { - pastHorizon_ = input.readInt64(); - break; - } case 122: { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -248,6 +183,66 @@ private AutoMlForecastingInputs( validationOptions_ = s; break; } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + timeSeriesAttributeColumns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + timeSeriesAttributeColumns_.add(s); + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + unavailableAtForecastColumns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + unavailableAtForecastColumns_.add(s); + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + availableAtForecastColumns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + availableAtForecastColumns_.add(s); + break; + } + case 178: + { + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Granularity.Builder + subBuilder = null; + if (dataGranularity_ != null) { + subBuilder = dataGranularity_.toBuilder(); + } + dataGranularity_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Granularity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataGranularity_); + dataGranularity_ = subBuilder.buildPartial(); + } + + break; + } + case 184: + { + forecastHorizon_ = input.readInt64(); + break; + } + case 192: + { + contextWindow_ = input.readInt64(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -265,17 +260,17 @@ private AutoMlForecastingInputs( if (((mutable_bitField0_ & 0x00000001) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + quantiles_.makeImmutable(); // C + } if (((mutable_bitField0_ & 0x00000002) != 0)) { - staticColumns_ = staticColumns_.getUnmodifiableView(); + timeSeriesAttributeColumns_ = timeSeriesAttributeColumns_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_.getUnmodifiableView(); + unavailableAtForecastColumns_ = unavailableAtForecastColumns_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - quantiles_.makeImmutable(); // C + availableAtForecastColumns_ = availableAtForecastColumns_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -439,87 +434,6 @@ public interface TransformationOrBuilder .Transformation.TextTransformationOrBuilder getTextOrBuilder(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - * - * @return Whether the repeatedNumeric field is set. - */ - boolean hasRepeatedNumeric(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - * - * @return The repeatedNumeric. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - getRepeatedNumeric(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformationOrBuilder - getRepeatedNumericOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - * - * @return Whether the repeatedCategorical field is set. - */ - boolean hasRepeatedCategorical(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - * - * @return The repeatedCategorical. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - getRepeatedCategorical(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformationOrBuilder - getRepeatedCategoricalOrBuilder(); - - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - * - * @return Whether the repeatedText field is set. - */ - boolean hasRepeatedText(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - * - * @return The repeatedText. - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - getRepeatedText(); - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformationOrBuilder - getRepeatedTextOrBuilder(); - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .Transformation.TransformationDetailCase getTransformationDetailCase(); @@ -706,94 +620,6 @@ private Transformation( transformationDetailCase_ = 5; break; } - case 50: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 6) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .NumericArrayTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 6; - break; - } - case 58: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .Builder - subBuilder = null; - if (transformationDetailCase_ == 7) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 7; - break; - } - case 66: - { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder - subBuilder = null; - if (transformationDetailCase_ == 8) { - subBuilder = - ((com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_) - .toBuilder(); - } - transformationDetail_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_); - transformationDetail_ = subBuilder.buildPartial(); - } - transformationDetailCase_ = 8; - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1528,22 +1354,6 @@ public interface NumericTransformationOrBuilder * @return The bytes for columnName. */ com.google.protobuf.ByteString getColumnNameBytes(); - - /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. - */ - boolean getInvalidValuesAllowed(); } /** * @@ -1614,11 +1424,6 @@ private NumericTransformation( columnName_ = s; break; } - case 16: - { - invalidValuesAllowed_ = input.readBool(); - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1695,27 +1500,6 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } } - public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; - /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. - */ - @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1733,9 +1517,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - if (invalidValuesAllowed_ != false) { - output.writeBool(2, invalidValuesAllowed_); - } unknownFields.writeTo(output); } @@ -1748,9 +1529,6 @@ public int getSerializedSize() { if (!getColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); } - if (invalidValuesAllowed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, invalidValuesAllowed_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1775,7 +1553,6 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getColumnName().equals(other.getColumnName())) return false; - if (getInvalidValuesAllowed() != other.getInvalidValuesAllowed()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1789,8 +1566,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); - hash = (37 * hash) + INVALID_VALUES_ALLOWED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalidValuesAllowed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1979,8 +1754,6 @@ public Builder clear() { super.clear(); columnName_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -2022,7 +1795,6 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.NumericTransformation(this); result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; onBuilt(); return result; } @@ -2090,9 +1862,6 @@ public Builder mergeFrom( columnName_ = other.columnName_; onChanged(); } - if (other.getInvalidValuesAllowed() != false) { - setInvalidValuesAllowed(other.getInvalidValuesAllowed()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2203,77 +1972,16 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean invalidValuesAllowed_; - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. - */ @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @param value The invalidValuesAllowed to set. - * @return This builder for chaining. - */ - public Builder setInvalidValuesAllowed(boolean value) { - invalidValuesAllowed_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @return This builder for chaining. - */ - public Builder clearInvalidValuesAllowed() { - - invalidValuesAllowed_ = 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); + @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.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation) @@ -2348,8 +2056,7 @@ public interface CategoricalTransformationOrBuilder *
      * Training pipeline will perform following transformation functions.
      * *  The categorical string as is--no change to case, punctuation,
-     * spelling,
-     *    tense, and so on.
+     *    spelling, tense, and so on.
      * *  Convert the category name to a dictionary lookup index and generate an
      *    embedding for each index.
      * *  Categories that appear less than 5 times in the training dataset are
@@ -2684,8 +2391,7 @@ protected Builder newBuilderForType(
        * 
        * Training pipeline will perform following transformation functions.
        * *  The categorical string as is--no change to case, punctuation,
-       * spelling,
-       *    tense, and so on.
+       *    spelling, tense, and so on.
        * *  Convert the category name to a dictionary lookup index and generate an
        *    embedding for each index.
        * *  Categories that appear less than 5 times in the training dataset are
@@ -3051,7 +2757,8 @@ public interface TimestampTransformationOrBuilder
        * * `unix-nanoseconds`
        * (for respectively number of seconds, milliseconds, microseconds and
        * nanoseconds since start of the Unix epoch);
-       * or be written in `strftime` syntax. If time_format is not set, then the
+       * or be written in `strftime` syntax.
+       * If time_format is not set, then the
        * default format is RFC 3339 `date-time` format, where
        * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z)
        * 
@@ -3073,7 +2780,8 @@ public interface TimestampTransformationOrBuilder * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3083,22 +2791,6 @@ public interface TimestampTransformationOrBuilder * @return The bytes for timeFormat. */ com.google.protobuf.ByteString getTimeFormatBytes(); - - /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 3; - * - * @return The invalidValuesAllowed. - */ - boolean getInvalidValuesAllowed(); } /** * @@ -3107,7 +2799,7 @@ public interface TimestampTransformationOrBuilder * Training pipeline will perform following transformation functions. * * Apply the transformation functions for Numerical columns. * * Determine the year, month, day,and weekday. Treat each value from the - * * timestamp as a Categorical column. + * timestamp as a Categorical column. * * Invalid numerical values (for example, values that fall outside of a * typical timestamp range, or are extreme values) receive no special * treatment and are not removed. @@ -3174,11 +2866,6 @@ private TimestampTransformation( timeFormat_ = s; break; } - case 24: - { - invalidValuesAllowed_ = input.readBool(); - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3269,7 +2956,8 @@ public com.google.protobuf.ByteString getColumnNameBytes() { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3302,7 +2990,8 @@ public java.lang.String getTimeFormat() { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3324,27 +3013,6 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { } } - public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 3; - private boolean invalidValuesAllowed_; - /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 3; - * - * @return The invalidValuesAllowed. - */ - @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3365,9 +3033,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getTimeFormatBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeFormat_); } - if (invalidValuesAllowed_ != false) { - output.writeBool(3, invalidValuesAllowed_); - } unknownFields.writeTo(output); } @@ -3383,9 +3048,6 @@ public int getSerializedSize() { if (!getTimeFormatBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeFormat_); } - if (invalidValuesAllowed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, invalidValuesAllowed_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3411,7 +3073,6 @@ public boolean equals(final java.lang.Object obj) { if (!getColumnName().equals(other.getColumnName())) return false; if (!getTimeFormat().equals(other.getTimeFormat())) return false; - if (getInvalidValuesAllowed() != other.getInvalidValuesAllowed()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3427,8 +3088,6 @@ public int hashCode() { hash = (53 * hash) + getColumnName().hashCode(); hash = (37 * hash) + TIME_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getTimeFormat().hashCode(); - hash = (37 * hash) + INVALID_VALUES_ALLOWED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalidValuesAllowed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3560,7 +3219,7 @@ protected Builder newBuilderForType( * Training pipeline will perform following transformation functions. * * Apply the transformation functions for Numerical columns. * * Determine the year, month, day,and weekday. Treat each value from the - * * timestamp as a Categorical column. + * timestamp as a Categorical column. * * Invalid numerical values (for example, values that fall outside of a * typical timestamp range, or are extreme values) receive no special * treatment and are not removed. @@ -3617,8 +3276,6 @@ public Builder clear() { timeFormat_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -3661,7 +3318,6 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { .AutoMlForecastingInputs.Transformation.TimestampTransformation(this); result.columnName_ = columnName_; result.timeFormat_ = timeFormat_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; onBuilt(); return result; } @@ -3733,9 +3389,6 @@ public Builder mergeFrom( timeFormat_ = other.timeFormat_; onChanged(); } - if (other.getInvalidValuesAllowed() != false) { - setInvalidValuesAllowed(other.getInvalidValuesAllowed()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3859,7 +3512,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3891,7 +3545,8 @@ public java.lang.String getTimeFormat() { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3923,7 +3578,8 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3954,7 +3610,8 @@ public Builder setTimeFormat(java.lang.String value) { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -3981,7 +3638,8 @@ public Builder clearTimeFormat() { * * `unix-nanoseconds` * (for respectively number of seconds, milliseconds, microseconds and * nanoseconds since start of the Unix epoch); - * or be written in `strftime` syntax. If time_format is not set, then the + * or be written in `strftime` syntax. + * If time_format is not set, then the * default format is RFC 3339 `date-time` format, where * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) *
@@ -4002,67 +3660,6 @@ public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { return this; } - private boolean invalidValuesAllowed_; - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 3; - * - * @return The invalidValuesAllowed. - */ - @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; - } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 3; - * - * @param value The invalidValuesAllowed to set. - * @return This builder for chaining. - */ - public Builder setInvalidValuesAllowed(boolean value) { - - invalidValuesAllowed_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 3; - * - * @return This builder for chaining. - */ - public Builder clearInvalidValuesAllowed() { - - invalidValuesAllowed_ = false; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4147,15 +3744,9 @@ public interface TextTransformationOrBuilder *
      * Training pipeline will perform following transformation functions.
      * *  The text as is--no change to case, punctuation, spelling, tense, and
-     * so
-     *    on.
-     * *  Tokenize text to words. Convert each words to a dictionary lookup
-     * index
-     *    and generate an embedding for each index. Combine the embedding of all
-     *    elements into a single embedding using the mean.
-     * *  Tokenization is based on unicode script boundaries.
-     * *  Missing values get their own lookup index and resulting embedding.
-     * *  Stop-words receive no special treatment and are not removed.
+     *    so on.
+     * *  Convert the category name to a dictionary lookup index and generate an
+     *    embedding for each index.
      * 
* * Protobuf type {@code @@ -4483,15 +4074,9 @@ protected Builder newBuilderForType( *
        * Training pipeline will perform following transformation functions.
        * *  The text as is--no change to case, punctuation, spelling, tense, and
-       * so
-       *    on.
-       * *  Tokenize text to words. Convert each words to a dictionary lookup
-       * index
-       *    and generate an embedding for each index. Combine the embedding of all
-       *    elements into a single embedding using the mean.
-       * *  Tokenization is based on unicode script boundaries.
-       * *  Missing values get their own lookup index and resulting embedding.
-       * *  Stop-words receive no special treatment and are not removed.
+       *    so on.
+       * *  Convert the category name to a dictionary lookup index and generate an
+       *    embedding for each index.
        * 
* * Protobuf type {@code @@ -4820,4074 +4405,976 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface NumericArrayTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - com.google.protobuf.MessageOrBuilder { + private int transformationDetailCase_ = 0; + private java.lang.Object transformationDetail_; - /** - * string column_name = 1; - * - * @return The columnName. - */ - java.lang.String getColumnName(); - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - com.google.protobuf.ByteString getColumnNameBytes(); + public enum TransformationDetailCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTO(1), + NUMERIC(2), + CATEGORICAL(3), + TIMESTAMP(4), + TEXT(5), + TRANSFORMATIONDETAIL_NOT_SET(0); + private final int value; + private TransformationDetailCase(int value) { + this.value = value; + } /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - boolean getInvalidValuesAllowed(); + @java.lang.Deprecated + public static TransformationDetailCase valueOf(int value) { + return forNumber(value); + } + + public static TransformationDetailCase forNumber(int value) { + switch (value) { + case 1: + return AUTO; + case 2: + return NUMERIC; + case 3: + return CATEGORICAL; + case 4: + return TIMESTAMP; + case 5: + return TEXT; + case 0: + return TRANSFORMATIONDETAIL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TransformationDetailCase getTransformationDetailCase() { + return TransformationDetailCase.forNumber(transformationDetailCase_); } + + public static final int AUTO_FIELD_NUMBER = 1; /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; + * * + * @return Whether the auto field is set. + */ + @java.lang.Override + public boolean hasAuto() { + return transformationDetailCase_ == 1; + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; + * * - *
-     * Treats the column as numerical array and performs following
-     * transformation functions.
-     * *  All transformations for Numerical types applied to the average of the
-     *    all elements.
-     * *  The average of empty arrays is treated as zero.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} + * @return The auto. */ - public static final class NumericArrayTransformation - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - NumericArrayTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericArrayTransformation.newBuilder() to construct. - private NumericArrayTransformation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NumericArrayTransformation() { - columnName_ = ""; + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.AutoTransformation + getAuto() { + if (transformationDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation) + transformationDetail_; } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericArrayTransformation(); + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.AutoTransformationOrBuilder + getAutoOrBuilder() { + if (transformationDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation) + transformationDetail_; } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + public static final int NUMERIC_FIELD_NUMBER = 2; + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; + * + * + * @return Whether the numeric field is set. + */ + @java.lang.Override + public boolean hasNumeric() { + return transformationDetailCase_ == 2; + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; + * + * + * @return The numeric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.NumericTransformation + getNumeric() { + if (transformationDetailCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation) + transformationDetail_; } - - private NumericArrayTransformation( - 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(); - - columnName_ = s; - break; - } - case 16: - { - invalidValuesAllowed_ = 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(); - } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.NumericTransformationOrBuilder + getNumericOrBuilder() { + if (transformationDetailCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation) + transformationDetail_; } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor; + public static final int CATEGORICAL_FIELD_NUMBER = 3; + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; + * + * + * @return Whether the categorical field is set. + */ + @java.lang.Override + public boolean hasCategorical() { + return transformationDetailCase_ == 3; + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; + * + * + * @return The categorical. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.CategoricalTransformation + getCategorical() { + if (transformationDetailCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) + transformationDetail_; } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder - .class); + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.getDefaultInstance(); + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.CategoricalTransformationOrBuilder + getCategoricalOrBuilder() { + if (transformationDetailCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) + transformationDetail_; } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.getDefaultInstance(); + } - public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; - /** - * string column_name = 1; - * - * @return The columnName. - */ - @java.lang.Override - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - 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(); - columnName_ = s; - return s; - } + public static final int TIMESTAMP_FIELD_NUMBER = 4; + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * + * + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return transformationDetailCase_ == 4; + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * + * + * @return The timestamp. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.TimestampTransformation + getTimestamp() { + if (transformationDetailCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation) + transformationDetail_; } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.TimestampTransformationOrBuilder + getTimestampOrBuilder() { + if (transformationDetailCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation) + transformationDetail_; } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); + } - public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; - /** - * - * - *
-       * If invalid values is allowed, the training pipeline will create a
-       * boolean feature that indicated whether the value is valid.
-       * Otherwise, the training pipeline will discard the input row from
-       * trainining data.
-       * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. - */ - @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; + public static final int TEXT_FIELD_NUMBER = 5; + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return transformationDetailCase_ == 5; + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.TextTransformation + getText() { + if (transformationDetailCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation) + transformationDetail_; + } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + } + /** + * + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation.TextTransformationOrBuilder + getTextOrBuilder() { + if (transformationDetailCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation) + transformationDetail_; } + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; + 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 (!getColumnNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); - } - if (invalidValuesAllowed_ != false) { - output.writeBool(2, invalidValuesAllowed_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + memoizedIsInitialized = 1; + return true; + } - size = 0; - if (!getColumnNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); - } - if (invalidValuesAllowed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, invalidValuesAllowed_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (transformationDetailCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation) + transformationDetail_); } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (getInvalidValuesAllowed() != other.getInvalidValuesAllowed()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + if (transformationDetailCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation) + transformationDetail_); } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getColumnName().hashCode(); - hash = (37 * hash) + INVALID_VALUES_ALLOWED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalidValuesAllowed()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + if (transformationDetailCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (transformationDetailCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (transformationDetailCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation) + transformationDetail_); } + unknownFields.writeTo(output); + } - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + size = 0; + if (transformationDetailCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (transformationDetailCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (transformationDetailCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + if (transformationDetailCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation) + transformationDetail_); } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + if (transformationDetailCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation) + transformationDetail_); } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation)) { + return super.equals(obj); } + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + other = + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation) + obj; - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + if (!getTransformationDetailCase().equals(other.getTransformationDetailCase())) return false; + switch (transformationDetailCase_) { + case 1: + if (!getAuto().equals(other.getAuto())) return false; + break; + case 2: + if (!getNumeric().equals(other.getNumeric())) return false; + break; + case 3: + if (!getCategorical().equals(other.getCategorical())) return false; + break; + case 4: + if (!getTimestamp().equals(other.getTimestamp())) return false; + break; + case 5: + if (!getText().equals(other.getText())) return false; + break; + case 0: + default: } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - 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 int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - @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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (transformationDetailCase_) { + case 1: + hash = (37 * hash) + AUTO_FIELD_NUMBER; + hash = (53 * hash) + getAuto().hashCode(); + break; + case 2: + hash = (37 * hash) + NUMERIC_FIELD_NUMBER; + hash = (53 * hash) + getNumeric().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICAL_FIELD_NUMBER; + hash = (53 * hash) + getCategorical().hashCode(); + break; + case 4: + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + break; + case 5: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 0: + default: } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Treats the column as numerical array and performs following
-       * transformation functions.
-       * *  All transformations for Numerical types applied to the average of the
-       *    all elements.
-       * *  The average of empty arrays is treated as zero.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor; - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder - .class); - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder clear() { - super.clear(); - columnName_ = ""; + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - invalidValuesAllowed_ = false; + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - return this; - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_NumericArrayTransformation_descriptor; - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - .getDefaultInstance(); - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + 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 com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; - onBuilt(); - return result; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .TransformationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMLForecastingProto + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor; + } - @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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - .getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; - onChanged(); - } - if (other.getInvalidValuesAllowed() != false) { - setInvalidValuesAllowed(other.getInvalidValuesAllowed()); - } - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object columnName_ = ""; - /** - * string column_name = 1; - * - * @return The columnName. - */ - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string column_name = 1; - * - * @param value The columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnName_ = value; - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearColumnName() { - - columnName_ = getDefaultInstance().getColumnName(); - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @param value The bytes for columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnName_ = value; - onChanged(); - return this; - } - - private boolean invalidValuesAllowed_; - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @return The invalidValuesAllowed. - */ - @java.lang.Override - public boolean getInvalidValuesAllowed() { - return invalidValuesAllowed_; - } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @param value The invalidValuesAllowed to set. - * @return This builder for chaining. - */ - public Builder setInvalidValuesAllowed(boolean value) { - - invalidValuesAllowed_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * If invalid values is allowed, the training pipeline will create a
-         * boolean feature that indicated whether the value is valid.
-         * Otherwise, the training pipeline will discard the input row from
-         * trainining data.
-         * 
- * - * bool invalid_values_allowed = 2; - * - * @return This builder for chaining. - */ - public Builder clearInvalidValuesAllowed() { - - invalidValuesAllowed_ = 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.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMLForecastingProto + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.class, + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.Builder.class); } - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericArrayTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericArrayTransformation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface CategoricalArrayTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - com.google.protobuf.MessageOrBuilder { - - /** - * string column_name = 1; - * - * @return The columnName. - */ - java.lang.String getColumnName(); - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - com.google.protobuf.ByteString getColumnNameBytes(); - } - /** - * - * - *
-     * Treats the column as categorical array and performs following
-     * transformation functions.
-     * *  For each element in the array, convert the category name to a
-     * dictionary
-     *    lookup index and generate an embedding for each index.
-     *    Combine the embedding of all elements into a single embedding using
-     *    the mean.
-     * *  Empty arrays treated as an embedding of zeroes.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} - */ - public static final class CategoricalArrayTransformation - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - CategoricalArrayTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use CategoricalArrayTransformation.newBuilder() to construct. - private CategoricalArrayTransformation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CategoricalArrayTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CategoricalArrayTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CategoricalArrayTransformation( - 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(); - - columnName_ = 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.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder - .class); - } - - public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; - /** - * string column_name = 1; - * - * @return The columnName. - */ - @java.lang.Override - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - 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(); - columnName_ = s; - return s; - } - } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = 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 (!getColumnNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getColumnNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); - } - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - obj; - - if (!getColumnName().equals(other.getColumnName())) 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) + COLUMN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getColumnName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - 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; - } - /** - * - * - *
-       * Treats the column as categorical array and performs following
-       * transformation functions.
-       * *  For each element in the array, convert the category name to a
-       * dictionary
-       *    lookup index and generate an embedding for each index.
-       *    Combine the embedding of all elements into a single embedding using
-       *    the mean.
-       * *  Empty arrays treated as an embedding of zeroes.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder - .class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.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(); - columnName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_CategoricalArrayTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation(this); - result.columnName_ = columnName_; - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object columnName_ = ""; - /** - * string column_name = 1; - * - * @return The columnName. - */ - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string column_name = 1; - * - * @param value The columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnName_ = value; - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearColumnName() { - - columnName_ = getDefaultInstance().getColumnName(); - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @param value The bytes for columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnName_ = 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.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoricalArrayTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoricalArrayTransformation(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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface TextArrayTransformationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) - com.google.protobuf.MessageOrBuilder { - - /** - * string column_name = 1; - * - * @return The columnName. - */ - java.lang.String getColumnName(); - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - com.google.protobuf.ByteString getColumnNameBytes(); - } - /** - * - * - *
-     * Treats the column as text array and performs following transformation
-     * functions.
-     * *  Concatenate all text values in the array into a single text value
-     * using
-     *    a space (" ") as a delimiter, and then treat the result as a single
-     *    text value. Apply the transformations for Text columns.
-     * *  Empty arrays treated as an empty text.
-     * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} - */ - public static final class TextArrayTransformation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) - TextArrayTransformationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextArrayTransformation.newBuilder() to construct. - private TextArrayTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TextArrayTransformation() { - columnName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextArrayTransformation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TextArrayTransformation( - 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(); - - columnName_ = 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.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder.class); - } - - public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; - /** - * string column_name = 1; - * - * @return The columnName. - */ - @java.lang.Override - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - 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(); - columnName_ = s; - return s; - } - } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = 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 (!getColumnNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getColumnNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); - } - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - obj; - - if (!getColumnName().equals(other.getColumnName())) 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) + COLUMN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getColumnName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - 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; - } - /** - * - * - *
-       * Treats the column as text array and performs following transformation
-       * functions.
-       * *  Concatenate all text values in the array into a single text value
-       * using
-       *    a space (" ") as a delimiter, and then treat the result as a single
-       *    text value. Apply the transformations for Text columns.
-       * *  Empty arrays treated as an empty text.
-       * 
- * - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder - .class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.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(); - columnName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_TextArrayTransformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation(this); - result.columnName_ = columnName_; - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - .getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object columnName_ = ""; - /** - * string column_name = 1; - * - * @return The columnName. - */ - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string column_name = 1; - * - * @return The bytes for columnName. - */ - public com.google.protobuf.ByteString getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string column_name = 1; - * - * @param value The columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnName_ = value; - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearColumnName() { - - columnName_ = getDefaultInstance().getColumnName(); - onChanged(); - return this; - } - /** - * string column_name = 1; - * - * @param value The bytes for columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnName_ = 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.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) - private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation(); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextArrayTransformation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextArrayTransformation(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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int transformationDetailCase_ = 0; - private java.lang.Object transformationDetail_; - - public enum TransformationDetailCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AUTO(1), - NUMERIC(2), - CATEGORICAL(3), - TIMESTAMP(4), - TEXT(5), - REPEATED_NUMERIC(6), - REPEATED_CATEGORICAL(7), - REPEATED_TEXT(8), - TRANSFORMATIONDETAIL_NOT_SET(0); - private final int value; - - private TransformationDetailCase(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 TransformationDetailCase valueOf(int value) { - return forNumber(value); - } - - public static TransformationDetailCase forNumber(int value) { - switch (value) { - case 1: - return AUTO; - case 2: - return NUMERIC; - case 3: - return CATEGORICAL; - case 4: - return TIMESTAMP; - case 5: - return TEXT; - case 6: - return REPEATED_NUMERIC; - case 7: - return REPEATED_CATEGORICAL; - case 8: - return REPEATED_TEXT; - case 0: - return TRANSFORMATIONDETAIL_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TransformationDetailCase getTransformationDetailCase() { - return TransformationDetailCase.forNumber(transformationDetailCase_); - } - - public static final int AUTO_FIELD_NUMBER = 1; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return Whether the auto field is set. - */ - @java.lang.Override - public boolean hasAuto() { - return transformationDetailCase_ == 1; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return The auto. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - getAuto() { - if (transformationDetailCase_ == 1) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformationOrBuilder - getAutoOrBuilder() { - if (transformationDetailCase_ == 1) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - - public static final int NUMERIC_FIELD_NUMBER = 2; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return Whether the numeric field is set. - */ - @java.lang.Override - public boolean hasNumeric() { - return transformationDetailCase_ == 2; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return The numeric. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - getNumeric() { - if (transformationDetailCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformationOrBuilder - getNumericOrBuilder() { - if (transformationDetailCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } - - public static final int CATEGORICAL_FIELD_NUMBER = 3; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return Whether the categorical field is set. - */ - @java.lang.Override - public boolean hasCategorical() { - return transformationDetailCase_ == 3; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return The categorical. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - getCategorical() { - if (transformationDetailCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformationOrBuilder - getCategoricalOrBuilder() { - if (transformationDetailCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.getDefaultInstance(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - * - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return transformationDetailCase_ == 4; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - * - * @return The timestamp. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation - getTimestamp() { - if (transformationDetailCase_ == 4) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformationOrBuilder - getTimestampOrBuilder() { - if (transformationDetailCase_ == 4) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); - } - - public static final int TEXT_FIELD_NUMBER = 5; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return transformationDetailCase_ == 5; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - * - * @return The text. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation - getText() { - if (transformationDetailCase_ == 5) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformationOrBuilder - getTextOrBuilder() { - if (transformationDetailCase_ == 5) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); - } - - public static final int REPEATED_NUMERIC_FIELD_NUMBER = 6; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - * - * @return Whether the repeatedNumeric field is set. - */ - @java.lang.Override - public boolean hasRepeatedNumeric() { - return transformationDetailCase_ == 6; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - * - * @return The repeatedNumeric. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation - getRepeatedNumeric() { - if (transformationDetailCase_ == 6) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformationOrBuilder - getRepeatedNumericOrBuilder() { - if (transformationDetailCase_ == 6) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.getDefaultInstance(); - } - - public static final int REPEATED_CATEGORICAL_FIELD_NUMBER = 7; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - * - * @return Whether the repeatedCategorical field is set. - */ - @java.lang.Override - public boolean hasRepeatedCategorical() { - return transformationDetailCase_ == 7; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - * - * @return The repeatedCategorical. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation - getRepeatedCategorical() { - if (transformationDetailCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformationOrBuilder - getRepeatedCategoricalOrBuilder() { - if (transformationDetailCase_ == 7) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); - } - - public static final int REPEATED_TEXT_FIELD_NUMBER = 8; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - * - * @return Whether the repeatedText field is set. - */ - @java.lang.Override - public boolean hasRepeatedText() { - return transformationDetailCase_ == 8; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - * - * @return The repeatedText. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation - getRepeatedText() { - if (transformationDetailCase_ == 8) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.getDefaultInstance(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformationOrBuilder - getRepeatedTextOrBuilder() { - if (transformationDetailCase_ == 8) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.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 (transformationDetailCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 5) { - output.writeMessage( - 5, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 8) { - output.writeMessage( - 8, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transformationDetailCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) - transformationDetail_); - } - if (transformationDetailCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) - transformationDetail_); - } - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - other = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation) - obj; - - if (!getTransformationDetailCase().equals(other.getTransformationDetailCase())) return false; - switch (transformationDetailCase_) { - case 1: - if (!getAuto().equals(other.getAuto())) return false; - break; - case 2: - if (!getNumeric().equals(other.getNumeric())) return false; - break; - case 3: - if (!getCategorical().equals(other.getCategorical())) return false; - break; - case 4: - if (!getTimestamp().equals(other.getTimestamp())) return false; - break; - case 5: - if (!getText().equals(other.getText())) return false; - break; - case 6: - if (!getRepeatedNumeric().equals(other.getRepeatedNumeric())) return false; - break; - case 7: - if (!getRepeatedCategorical().equals(other.getRepeatedCategorical())) return false; - break; - case 8: - if (!getRepeatedText().equals(other.getRepeatedText())) 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 (transformationDetailCase_) { - case 1: - hash = (37 * hash) + AUTO_FIELD_NUMBER; - hash = (53 * hash) + getAuto().hashCode(); - break; - case 2: - hash = (37 * hash) + NUMERIC_FIELD_NUMBER; - hash = (53 * hash) + getNumeric().hashCode(); - break; - case 3: - hash = (37 * hash) + CATEGORICAL_FIELD_NUMBER; - hash = (53 * hash) + getCategorical().hashCode(); - break; - case 4: - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - break; - case 5: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 6: - hash = (37 * hash) + REPEATED_NUMERIC_FIELD_NUMBER; - hash = (53 * hash) + getRepeatedNumeric().hashCode(); - break; - case 7: - hash = (37 * hash) + REPEATED_CATEGORICAL_FIELD_NUMBER; - hash = (53 * hash) + getRepeatedCategorical().hashCode(); - break; - case 8: - hash = (37 * hash) + REPEATED_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getRepeatedText().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - 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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - 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; - } - /** - * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .TransformationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.class, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.Builder.class); - } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.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(); - transformationDetailCase_ = 0; - transformationDetail_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - build() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - buildPartial() { - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - result = - new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation(this); - if (transformationDetailCase_ == 1) { - if (autoBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = autoBuilder_.build(); - } - } - if (transformationDetailCase_ == 2) { - if (numericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = numericBuilder_.build(); - } - } - if (transformationDetailCase_ == 3) { - if (categoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = categoricalBuilder_.build(); - } - } - if (transformationDetailCase_ == 4) { - if (timestampBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = timestampBuilder_.build(); - } - } - if (transformationDetailCase_ == 5) { - if (textBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = textBuilder_.build(); - } - } - if (transformationDetailCase_ == 6) { - if (repeatedNumericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedNumericBuilder_.build(); - } - } - if (transformationDetailCase_ == 7) { - if (repeatedCategoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedCategoricalBuilder_.build(); - } - } - if (transformationDetailCase_ == 8) { - if (repeatedTextBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedTextBuilder_.build(); - } - } - result.transformationDetailCase_ = transformationDetailCase_; - 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation) { - return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - other) { - if (other - == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.getDefaultInstance()) return this; - switch (other.getTransformationDetailCase()) { - case AUTO: - { - mergeAuto(other.getAuto()); - break; - } - case NUMERIC: - { - mergeNumeric(other.getNumeric()); - break; - } - case CATEGORICAL: - { - mergeCategorical(other.getCategorical()); - break; - } - case TIMESTAMP: - { - mergeTimestamp(other.getTimestamp()); - break; - } - case TEXT: - { - mergeText(other.getText()); - break; - } - case REPEATED_NUMERIC: - { - mergeRepeatedNumeric(other.getRepeatedNumeric()); - break; - } - case REPEATED_CATEGORICAL: - { - mergeRepeatedCategorical(other.getRepeatedCategorical()); - break; - } - case REPEATED_TEXT: - { - mergeRepeatedText(other.getRepeatedText()); - break; - } - case TRANSFORMATIONDETAIL_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.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int transformationDetailCase_ = 0; - private java.lang.Object transformationDetail_; - - public TransformationDetailCase getTransformationDetailCase() { - return TransformationDetailCase.forNumber(transformationDetailCase_); - } - - public Builder clearTransformationDetail() { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder> - autoBuilder_; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return Whether the auto field is set. - */ - @java.lang.Override - public boolean hasAuto() { - return transformationDetailCase_ == 1; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - * - * @return The auto. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - getAuto() { - if (autoBuilder_ == null) { - if (transformationDetailCase_ == 1) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } else { - if (transformationDetailCase_ == 1) { - return autoBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - public Builder setAuto( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - value) { - if (autoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - autoBuilder_.setMessage(value); - } - transformationDetailCase_ = 1; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - public Builder setAuto( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation.Builder - builderForValue) { - if (autoBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - autoBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 1; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - public Builder mergeAuto( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.AutoTransformation - value) { - if (autoBuilder_ == null) { - if (transformationDetailCase_ == 1 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 1) { - autoBuilder_.mergeFrom(value); - } - autoBuilder_.setMessage(value); - } - transformationDetailCase_ = 1; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - public Builder clearAuto() { - if (autoBuilder_ == null) { - if (transformationDetailCase_ == 1) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 1) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - autoBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder - getAutoBuilder() { - return getAutoFieldBuilder().getBuilder(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder - getAutoOrBuilder() { - if ((transformationDetailCase_ == 1) && (autoBuilder_ != null)) { - return autoBuilder_.getMessageOrBuilder(); - } else { - if (transformationDetailCase_ == 1) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder> - getAutoFieldBuilder() { - if (autoBuilder_ == null) { - if (!(transformationDetailCase_ == 1)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); - } - autoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.AutoTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 1; - onChanged(); - ; - return autoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder> - numericBuilder_; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return Whether the numeric field is set. - */ - @java.lang.Override - public boolean hasNumeric() { - return transformationDetailCase_ == 2; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - * - * @return The numeric. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - getNumeric() { - if (numericBuilder_ == null) { - if (transformationDetailCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } else { - if (transformationDetailCase_ == 2) { - return numericBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - public Builder setNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - value) { - if (numericBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transformationDetail_ = value; - onChanged(); - } else { - numericBuilder_.setMessage(value); - } - transformationDetailCase_ = 2; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - public Builder setNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation.Builder - builderForValue) { - if (numericBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - numericBuilder_.setMessage(builderForValue.build()); - } - transformationDetailCase_ = 2; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - public Builder mergeNumeric( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericTransformation - value) { - if (numericBuilder_ == null) { - if (transformationDetailCase_ == 2 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); - } else { - transformationDetail_ = value; - } - onChanged(); - } else { - if (transformationDetailCase_ == 2) { - numericBuilder_.mergeFrom(value); - } - numericBuilder_.setMessage(value); - } - transformationDetailCase_ = 2; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - public Builder clearNumeric() { - if (numericBuilder_ == null) { - if (transformationDetailCase_ == 2) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); - } - } else { - if (transformationDetailCase_ == 2) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - numericBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder - getNumericBuilder() { - return getNumericFieldBuilder().getBuilder(); - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder - getNumericOrBuilder() { - if ((transformationDetailCase_ == 2) && (numericBuilder_ != null)) { - return numericBuilder_.getMessageOrBuilder(); - } else { - if (transformationDetailCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); - } - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder> - getNumericFieldBuilder() { - if (numericBuilder_ == null) { - if (!(transformationDetailCase_ == 2)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation - .getDefaultInstance(); - } - numericBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 2; - onChanged(); - ; - return numericBuilder_; + public Builder clear() { + super.clear(); + transformationDetailCase_ = 0; + transformationDetail_ = null; + return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder> - categoricalBuilder_; - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return Whether the categorical field is set. - */ @java.lang.Override - public boolean hasCategorical() { - return transformationDetailCase_ == 3; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMLForecastingProto + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor; } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - * - * @return The categorical. - */ + @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - getCategorical() { - if (categoricalBuilder_ == null) { - if (transformationDetailCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_; - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance(); - } else { - if (transformationDetailCase_ == 3) { - return categoricalBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + build() { + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - public Builder setCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - value) { - if (categoricalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation + buildPartial() { + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + result = + new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation(this); + if (transformationDetailCase_ == 1) { + if (autoBuilder_ == null) { + result.transformationDetail_ = transformationDetail_; + } else { + result.transformationDetail_ = autoBuilder_.build(); } - transformationDetail_ = value; - onChanged(); - } else { - categoricalBuilder_.setMessage(value); } - transformationDetailCase_ = 3; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - public Builder setCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation.Builder - builderForValue) { - if (categoricalBuilder_ == null) { - transformationDetail_ = builderForValue.build(); - onChanged(); - } else { - categoricalBuilder_.setMessage(builderForValue.build()); + if (transformationDetailCase_ == 2) { + if (numericBuilder_ == null) { + result.transformationDetail_ = transformationDetail_; + } else { + result.transformationDetail_ = numericBuilder_.build(); + } } - transformationDetailCase_ = 3; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - public Builder mergeCategorical( - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalTransformation - value) { - if (categoricalBuilder_ == null) { - if (transformationDetailCase_ == 3 - && transformationDetail_ - != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance()) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.newBuilder( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_) - .mergeFrom(value) - .buildPartial(); + if (transformationDetailCase_ == 3) { + if (categoricalBuilder_ == null) { + result.transformationDetail_ = transformationDetail_; } else { - transformationDetail_ = value; + result.transformationDetail_ = categoricalBuilder_.build(); } - onChanged(); - } else { - if (transformationDetailCase_ == 3) { - categoricalBuilder_.mergeFrom(value); + } + if (transformationDetailCase_ == 4) { + if (timestampBuilder_ == null) { + result.transformationDetail_ = transformationDetail_; + } else { + result.transformationDetail_ = timestampBuilder_.build(); } - categoricalBuilder_.setMessage(value); } - transformationDetailCase_ = 3; - return this; - } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - public Builder clearCategorical() { - if (categoricalBuilder_ == null) { - if (transformationDetailCase_ == 3) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - onChanged(); + if (transformationDetailCase_ == 5) { + if (textBuilder_ == null) { + result.transformationDetail_ = transformationDetail_; + } else { + result.transformationDetail_ = textBuilder_.build(); } + } + result.transformationDetailCase_ = transformationDetailCase_; + 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.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation) + other); } else { - if (transformationDetailCase_ == 3) { - transformationDetailCase_ = 0; - transformationDetail_ = null; - } - categoricalBuilder_.clear(); + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.getDefaultInstance()) return this; + switch (other.getTransformationDetailCase()) { + case AUTO: + { + mergeAuto(other.getAuto()); + break; + } + case NUMERIC: + { + mergeNumeric(other.getNumeric()); + break; + } + case CATEGORICAL: + { + mergeCategorical(other.getCategorical()); + break; + } + case TIMESTAMP: + { + mergeTimestamp(other.getTimestamp()); + break; + } + case TEXT: + { + mergeText(other.getText()); + break; + } + case TRANSFORMATIONDETAIL_NOT_SET: + { + break; + } } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder - getCategoricalBuilder() { - return getCategoricalFieldBuilder().getBuilder(); + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ + @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder - getCategoricalOrBuilder() { - if ((transformationDetailCase_ == 3) && (categoricalBuilder_ != null)) { - return categoricalBuilder_.getMessageOrBuilder(); - } else { - if (transformationDetailCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance(); } + return this; } - /** - * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder> - getCategoricalFieldBuilder() { - if (categoricalBuilder_ == null) { - if (!(transformationDetailCase_ == 3)) { - transformationDetail_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation - .getDefaultInstance(); - } - categoricalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalTransformation) - transformationDetail_, - getParentForChildren(), - isClean()); - transformationDetail_ = null; - } - transformationDetailCase_ = 3; + + private int transformationDetailCase_ = 0; + private java.lang.Object transformationDetail_; + + public TransformationDetailCase getTransformationDetailCase() { + return TransformationDetailCase.forNumber(transformationDetailCase_); + } + + public Builder clearTransformationDetail() { + transformationDetailCase_ = 0; + transformationDetail_ = null; onChanged(); - ; - return categoricalBuilder_; + return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, + .AutoMlForecastingInputs.Transformation.AutoTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, + .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> - timestampBuilder_; + .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder> + autoBuilder_; /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * * - * @return Whether the timestamp field is set. + * @return Whether the auto field is set. */ @java.lang.Override - public boolean hasTimestamp() { - return transformationDetailCase_ == 4; + public boolean hasAuto() { + return transformationDetailCase_ == 1; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * * - * @return The timestamp. + * @return The auto. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - getTimestamp() { - if (timestampBuilder_ == null) { - if (transformationDetailCase_ == 4) { + .AutoMlForecastingInputs.Transformation.AutoTransformation + getAuto() { + if (autoBuilder_ == null) { + if (transformationDetailCase_ == 1) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) + .AutoMlForecastingInputs.Transformation.AutoTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); } else { - if (transformationDetailCase_ == 4) { - return timestampBuilder_.getMessage(); + if (transformationDetailCase_ == 1) { + return autoBuilder_.getMessage(); } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ - public Builder setTimestamp( + public Builder setAuto( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation + .Transformation.AutoTransformation value) { - if (timestampBuilder_ == null) { + if (autoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformationDetail_ = value; onChanged(); } else { - timestampBuilder_.setMessage(value); + autoBuilder_.setMessage(value); } - transformationDetailCase_ = 4; + transformationDetailCase_ = 1; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ - public Builder setTimestamp( + public Builder setAuto( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation.Builder + .Transformation.AutoTransformation.Builder builderForValue) { - if (timestampBuilder_ == null) { + if (autoBuilder_ == null) { transformationDetail_ = builderForValue.build(); onChanged(); } else { - timestampBuilder_.setMessage(builderForValue.build()); + autoBuilder_.setMessage(builderForValue.build()); } - transformationDetailCase_ = 4; + transformationDetailCase_ = 1; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ - public Builder mergeTimestamp( + public Builder mergeAuto( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TimestampTransformation + .Transformation.AutoTransformation value) { - if (timestampBuilder_ == null) { - if (transformationDetailCase_ == 4 + if (autoBuilder_ == null) { + if (transformationDetailCase_ == 1 && transformationDetail_ != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation + .AutoMlForecastingInputs.Transformation.AutoTransformation .getDefaultInstance()) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.newBuilder( + .AutoMlForecastingInputs.Transformation.AutoTransformation.newBuilder( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) + .AutoMlForecastingInputs.Transformation.AutoTransformation) transformationDetail_) .mergeFrom(value) .buildPartial(); @@ -8896,212 +5383,211 @@ public Builder mergeTimestamp( } onChanged(); } else { - if (transformationDetailCase_ == 4) { - timestampBuilder_.mergeFrom(value); + if (transformationDetailCase_ == 1) { + autoBuilder_.mergeFrom(value); } - timestampBuilder_.setMessage(value); + autoBuilder_.setMessage(value); } - transformationDetailCase_ = 4; + transformationDetailCase_ = 1; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - if (transformationDetailCase_ == 4) { + public Builder clearAuto() { + if (autoBuilder_ == null) { + if (transformationDetailCase_ == 1) { transformationDetailCase_ = 0; transformationDetail_ = null; onChanged(); } } else { - if (transformationDetailCase_ == 4) { + if (transformationDetailCase_ == 1) { transformationDetailCase_ = 0; transformationDetail_ = null; } - timestampBuilder_.clear(); + autoBuilder_.clear(); } return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder - getTimestampBuilder() { - return getTimestampFieldBuilder().getBuilder(); + .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder + getAutoBuilder() { + return getAutoFieldBuilder().getBuilder(); } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder - getTimestampOrBuilder() { - if ((transformationDetailCase_ == 4) && (timestampBuilder_ != null)) { - return timestampBuilder_.getMessageOrBuilder(); + .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder + getAutoOrBuilder() { + if ((transformationDetailCase_ == 1) && (autoBuilder_ != null)) { + return autoBuilder_.getMessageOrBuilder(); } else { - if (transformationDetailCase_ == 4) { + if (transformationDetailCase_ == 1) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) + .AutoMlForecastingInputs.Transformation.AutoTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation auto = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, + .AutoMlForecastingInputs.Transformation.AutoTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, + .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - if (!(transformationDetailCase_ == 4)) { + .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder> + getAutoFieldBuilder() { + if (autoBuilder_ == null) { + if (!(transformationDetailCase_ == 1)) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.AutoTransformation.getDefaultInstance(); } - timestampBuilder_ = + autoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation, + .AutoMlForecastingInputs.Transformation.AutoTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, + .AutoMlForecastingInputs.Transformation.AutoTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder>( + .AutoMlForecastingInputs.Transformation.AutoTransformationOrBuilder>( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TimestampTransformation) + .AutoMlForecastingInputs.Transformation.AutoTransformation) transformationDetail_, getParentForChildren(), isClean()); transformationDetail_ = null; } - transformationDetailCase_ = 4; + transformationDetailCase_ = 1; onChanged(); ; - return timestampBuilder_; + return autoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, + .AutoMlForecastingInputs.Transformation.NumericTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, + .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> - textBuilder_; + .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder> + numericBuilder_; /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * * - * @return Whether the text field is set. + * @return Whether the numeric field is set. */ @java.lang.Override - public boolean hasText() { - return transformationDetailCase_ == 5; + public boolean hasNumeric() { + return transformationDetailCase_ == 2; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * * - * @return The text. + * @return The numeric. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation - getText() { - if (textBuilder_ == null) { - if (transformationDetailCase_ == 5) { + .AutoMlForecastingInputs.Transformation.NumericTransformation + getNumeric() { + if (numericBuilder_ == null) { + if (transformationDetailCase_ == 2) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) + .AutoMlForecastingInputs.Transformation.NumericTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); } else { - if (transformationDetailCase_ == 5) { - return textBuilder_.getMessage(); + if (transformationDetailCase_ == 2) { + return numericBuilder_.getMessage(); } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ - public Builder setText( + public Builder setNumeric( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation + .Transformation.NumericTransformation value) { - if (textBuilder_ == null) { + if (numericBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformationDetail_ = value; onChanged(); } else { - textBuilder_.setMessage(value); + numericBuilder_.setMessage(value); } - transformationDetailCase_ = 5; + transformationDetailCase_ = 2; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ - public Builder setText( + public Builder setNumeric( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation.Builder + .Transformation.NumericTransformation.Builder builderForValue) { - if (textBuilder_ == null) { + if (numericBuilder_ == null) { transformationDetail_ = builderForValue.build(); onChanged(); } else { - textBuilder_.setMessage(builderForValue.build()); + numericBuilder_.setMessage(builderForValue.build()); } - transformationDetailCase_ = 5; + transformationDetailCase_ = 2; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ - public Builder mergeText( + public Builder mergeNumeric( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextTransformation + .Transformation.NumericTransformation value) { - if (textBuilder_ == null) { - if (transformationDetailCase_ == 5 + if (numericBuilder_ == null) { + if (transformationDetailCase_ == 2 && transformationDetail_ != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation + .AutoMlForecastingInputs.Transformation.NumericTransformation .getDefaultInstance()) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.newBuilder( + .AutoMlForecastingInputs.Transformation.NumericTransformation.newBuilder( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) + .AutoMlForecastingInputs.Transformation.NumericTransformation) transformationDetail_) .mergeFrom(value) .buildPartial(); @@ -9110,213 +5596,214 @@ public Builder mergeText( } onChanged(); } else { - if (transformationDetailCase_ == 5) { - textBuilder_.mergeFrom(value); + if (transformationDetailCase_ == 2) { + numericBuilder_.mergeFrom(value); } - textBuilder_.setMessage(value); + numericBuilder_.setMessage(value); } - transformationDetailCase_ = 5; + transformationDetailCase_ = 2; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ - public Builder clearText() { - if (textBuilder_ == null) { - if (transformationDetailCase_ == 5) { + public Builder clearNumeric() { + if (numericBuilder_ == null) { + if (transformationDetailCase_ == 2) { transformationDetailCase_ = 0; transformationDetail_ = null; onChanged(); } } else { - if (transformationDetailCase_ == 5) { + if (transformationDetailCase_ == 2) { transformationDetailCase_ = 0; transformationDetail_ = null; } - textBuilder_.clear(); + numericBuilder_.clear(); } return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder - getTextBuilder() { - return getTextFieldBuilder().getBuilder(); + .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder + getNumericBuilder() { + return getNumericFieldBuilder().getBuilder(); } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder - getTextOrBuilder() { - if ((transformationDetailCase_ == 5) && (textBuilder_ != null)) { - return textBuilder_.getMessageOrBuilder(); + .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder + getNumericOrBuilder() { + if ((transformationDetailCase_ == 2) && (numericBuilder_ != null)) { + return numericBuilder_.getMessageOrBuilder(); } else { - if (transformationDetailCase_ == 5) { + if (transformationDetailCase_ == 2) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) + .AutoMlForecastingInputs.Transformation.NumericTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.NumericTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation numeric = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, + .AutoMlForecastingInputs.Transformation.NumericTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, + .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> - getTextFieldBuilder() { - if (textBuilder_ == null) { - if (!(transformationDetailCase_ == 5)) { + .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder> + getNumericFieldBuilder() { + if (numericBuilder_ == null) { + if (!(transformationDetailCase_ == 2)) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.NumericTransformation + .getDefaultInstance(); } - textBuilder_ = + numericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation, + .AutoMlForecastingInputs.Transformation.NumericTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, + .AutoMlForecastingInputs.Transformation.NumericTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder>( + .AutoMlForecastingInputs.Transformation.NumericTransformationOrBuilder>( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextTransformation) + .AutoMlForecastingInputs.Transformation.NumericTransformation) transformationDetail_, getParentForChildren(), isClean()); transformationDetail_ = null; } - transformationDetailCase_ = 5; + transformationDetailCase_ = 2; onChanged(); ; - return textBuilder_; + return numericBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder> - repeatedNumericBuilder_; + .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder> + categoricalBuilder_; /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * * - * @return Whether the repeatedNumeric field is set. + * @return Whether the categorical field is set. */ @java.lang.Override - public boolean hasRepeatedNumeric() { - return transformationDetailCase_ == 6; + public boolean hasCategorical() { + return transformationDetailCase_ == 3; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * * - * @return The repeatedNumeric. + * @return The categorical. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation - getRepeatedNumeric() { - if (repeatedNumericBuilder_ == null) { - if (transformationDetailCase_ == 6) { + .AutoMlForecastingInputs.Transformation.CategoricalTransformation + getCategorical() { + if (categoricalBuilder_ == null) { + if (transformationDetailCase_ == 3) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation + .AutoMlForecastingInputs.Transformation.CategoricalTransformation .getDefaultInstance(); } else { - if (transformationDetailCase_ == 6) { - return repeatedNumericBuilder_.getMessage(); + if (transformationDetailCase_ == 3) { + return categoricalBuilder_.getMessage(); } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation + .AutoMlForecastingInputs.Transformation.CategoricalTransformation .getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ - public Builder setRepeatedNumeric( + public Builder setCategorical( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation + .Transformation.CategoricalTransformation value) { - if (repeatedNumericBuilder_ == null) { + if (categoricalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformationDetail_ = value; onChanged(); } else { - repeatedNumericBuilder_.setMessage(value); + categoricalBuilder_.setMessage(value); } - transformationDetailCase_ = 6; + transformationDetailCase_ = 3; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ - public Builder setRepeatedNumeric( + public Builder setCategorical( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation.Builder + .Transformation.CategoricalTransformation.Builder builderForValue) { - if (repeatedNumericBuilder_ == null) { + if (categoricalBuilder_ == null) { transformationDetail_ = builderForValue.build(); onChanged(); } else { - repeatedNumericBuilder_.setMessage(builderForValue.build()); + categoricalBuilder_.setMessage(builderForValue.build()); } - transformationDetailCase_ = 6; + transformationDetailCase_ = 3; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ - public Builder mergeRepeatedNumeric( + public Builder mergeCategorical( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.NumericArrayTransformation + .Transformation.CategoricalTransformation value) { - if (repeatedNumericBuilder_ == null) { - if (transformationDetailCase_ == 6 + if (categoricalBuilder_ == null) { + if (transformationDetailCase_ == 3 && transformationDetail_ != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation + .AutoMlForecastingInputs.Transformation.CategoricalTransformation .getDefaultInstance()) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.newBuilder( + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.newBuilder( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) transformationDetail_) .mergeFrom(value) .buildPartial(); @@ -9325,217 +5812,213 @@ public Builder mergeRepeatedNumeric( } onChanged(); } else { - if (transformationDetailCase_ == 6) { - repeatedNumericBuilder_.mergeFrom(value); + if (transformationDetailCase_ == 3) { + categoricalBuilder_.mergeFrom(value); } - repeatedNumericBuilder_.setMessage(value); + categoricalBuilder_.setMessage(value); } - transformationDetailCase_ = 6; + transformationDetailCase_ = 3; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ - public Builder clearRepeatedNumeric() { - if (repeatedNumericBuilder_ == null) { - if (transformationDetailCase_ == 6) { + public Builder clearCategorical() { + if (categoricalBuilder_ == null) { + if (transformationDetailCase_ == 3) { transformationDetailCase_ = 0; transformationDetail_ = null; onChanged(); } } else { - if (transformationDetailCase_ == 6) { + if (transformationDetailCase_ == 3) { transformationDetailCase_ = 0; transformationDetail_ = null; } - repeatedNumericBuilder_.clear(); + categoricalBuilder_.clear(); } return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder - getRepeatedNumericBuilder() { - return getRepeatedNumericFieldBuilder().getBuilder(); + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder + getCategoricalBuilder() { + return getCategoricalFieldBuilder().getBuilder(); } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder - getRepeatedNumericOrBuilder() { - if ((transformationDetailCase_ == 6) && (repeatedNumericBuilder_ != null)) { - return repeatedNumericBuilder_.getMessageOrBuilder(); + .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder + getCategoricalOrBuilder() { + if ((transformationDetailCase_ == 3) && (categoricalBuilder_ != null)) { + return categoricalBuilder_.getMessageOrBuilder(); } else { - if (transformationDetailCase_ == 6) { + if (transformationDetailCase_ == 3) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation + .AutoMlForecastingInputs.Transformation.CategoricalTransformation .getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation repeated_numeric = 6; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation categorical = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder> - getRepeatedNumericFieldBuilder() { - if (repeatedNumericBuilder_ == null) { - if (!(transformationDetailCase_ == 6)) { + .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder> + getCategoricalFieldBuilder() { + if (categoricalBuilder_ == null) { + if (!(transformationDetailCase_ == 3)) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation + .AutoMlForecastingInputs.Transformation.CategoricalTransformation .getDefaultInstance(); } - repeatedNumericBuilder_ = + categoricalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.CategoricalTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformationOrBuilder>( + .AutoMlForecastingInputs.Transformation.CategoricalTransformationOrBuilder>( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.NumericArrayTransformation) + .AutoMlForecastingInputs.Transformation.CategoricalTransformation) transformationDetail_, getParentForChildren(), isClean()); transformationDetail_ = null; } - transformationDetailCase_ = 6; + transformationDetailCase_ = 3; onChanged(); ; - return repeatedNumericBuilder_; + return categoricalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, + .AutoMlForecastingInputs.Transformation.TimestampTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformationOrBuilder> - repeatedCategoricalBuilder_; + .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> + timestampBuilder_; /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * * - * @return Whether the repeatedCategorical field is set. + * @return Whether the timestamp field is set. */ @java.lang.Override - public boolean hasRepeatedCategorical() { - return transformationDetailCase_ == 7; + public boolean hasTimestamp() { + return transformationDetailCase_ == 4; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * * - * @return The repeatedCategorical. + * @return The timestamp. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - getRepeatedCategorical() { - if (repeatedCategoricalBuilder_ == null) { - if (transformationDetailCase_ == 7) { + .AutoMlForecastingInputs.Transformation.TimestampTransformation + getTimestamp() { + if (timestampBuilder_ == null) { + if (transformationDetailCase_ == 4) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) + .AutoMlForecastingInputs.Transformation.TimestampTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); } else { - if (transformationDetailCase_ == 7) { - return repeatedCategoricalBuilder_.getMessage(); + if (transformationDetailCase_ == 4) { + return timestampBuilder_.getMessage(); } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ - public Builder setRepeatedCategorical( + public Builder setTimestamp( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation + .Transformation.TimestampTransformation value) { - if (repeatedCategoricalBuilder_ == null) { + if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformationDetail_ = value; onChanged(); } else { - repeatedCategoricalBuilder_.setMessage(value); + timestampBuilder_.setMessage(value); } - transformationDetailCase_ = 7; + transformationDetailCase_ = 4; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ - public Builder setRepeatedCategorical( + public Builder setTimestamp( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation.Builder + .Transformation.TimestampTransformation.Builder builderForValue) { - if (repeatedCategoricalBuilder_ == null) { + if (timestampBuilder_ == null) { transformationDetail_ = builderForValue.build(); onChanged(); } else { - repeatedCategoricalBuilder_.setMessage(builderForValue.build()); + timestampBuilder_.setMessage(builderForValue.build()); } - transformationDetailCase_ = 7; + transformationDetailCase_ = 4; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ - public Builder mergeRepeatedCategorical( + public Builder mergeTimestamp( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.CategoricalArrayTransformation + .Transformation.TimestampTransformation value) { - if (repeatedCategoricalBuilder_ == null) { - if (transformationDetailCase_ == 7 + if (timestampBuilder_ == null) { + if (transformationDetailCase_ == 4 && transformationDetail_ != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + .AutoMlForecastingInputs.Transformation.TimestampTransformation .getDefaultInstance()) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .newBuilder( + .AutoMlForecastingInputs.Transformation.TimestampTransformation.newBuilder( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformation) + .AutoMlForecastingInputs.Transformation.TimestampTransformation) transformationDetail_) .mergeFrom(value) .buildPartial(); @@ -9544,215 +6027,212 @@ public Builder mergeRepeatedCategorical( } onChanged(); } else { - if (transformationDetailCase_ == 7) { - repeatedCategoricalBuilder_.mergeFrom(value); + if (transformationDetailCase_ == 4) { + timestampBuilder_.mergeFrom(value); } - repeatedCategoricalBuilder_.setMessage(value); + timestampBuilder_.setMessage(value); } - transformationDetailCase_ = 7; + transformationDetailCase_ = 4; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ - public Builder clearRepeatedCategorical() { - if (repeatedCategoricalBuilder_ == null) { - if (transformationDetailCase_ == 7) { + public Builder clearTimestamp() { + if (timestampBuilder_ == null) { + if (transformationDetailCase_ == 4) { transformationDetailCase_ = 0; transformationDetail_ = null; onChanged(); } } else { - if (transformationDetailCase_ == 7) { + if (transformationDetailCase_ == 4) { transformationDetailCase_ = 0; transformationDetail_ = null; } - repeatedCategoricalBuilder_.clear(); + timestampBuilder_.clear(); } return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder - getRepeatedCategoricalBuilder() { - return getRepeatedCategoricalFieldBuilder().getBuilder(); + .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder + getTimestampBuilder() { + return getTimestampFieldBuilder().getBuilder(); } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformationOrBuilder - getRepeatedCategoricalOrBuilder() { - if ((transformationDetailCase_ == 7) && (repeatedCategoricalBuilder_ != null)) { - return repeatedCategoricalBuilder_.getMessageOrBuilder(); + .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder + getTimestampOrBuilder() { + if ((transformationDetailCase_ == 4) && (timestampBuilder_ != null)) { + return timestampBuilder_.getMessageOrBuilder(); } else { - if (transformationDetailCase_ == 7) { + if (transformationDetailCase_ == 4) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) + .AutoMlForecastingInputs.Transformation.TimestampTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TimestampTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation repeated_categorical = 7; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation timestamp = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, + .AutoMlForecastingInputs.Transformation.TimestampTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformationOrBuilder> - getRepeatedCategoricalFieldBuilder() { - if (repeatedCategoricalBuilder_ == null) { - if (!(transformationDetailCase_ == 7)) { + .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder> + getTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + if (!(transformationDetailCase_ == 4)) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + .AutoMlForecastingInputs.Transformation.TimestampTransformation .getDefaultInstance(); } - repeatedCategoricalBuilder_ = + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, + .AutoMlForecastingInputs.Transformation.TimestampTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation - .Builder, + .AutoMlForecastingInputs.Transformation.TimestampTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation - .CategoricalArrayTransformationOrBuilder>( + .AutoMlForecastingInputs.Transformation.TimestampTransformationOrBuilder>( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) + .AutoMlForecastingInputs.Transformation.TimestampTransformation) transformationDetail_, getParentForChildren(), isClean()); transformationDetail_ = null; } - transformationDetailCase_ = 7; + transformationDetailCase_ = 4; onChanged(); ; - return repeatedCategoricalBuilder_; + return timestampBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, + .AutoMlForecastingInputs.Transformation.TextTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder> - repeatedTextBuilder_; + .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> + textBuilder_; /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * * - * @return Whether the repeatedText field is set. + * @return Whether the text field is set. */ @java.lang.Override - public boolean hasRepeatedText() { - return transformationDetailCase_ == 8; + public boolean hasText() { + return transformationDetailCase_ == 5; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * * - * @return The repeatedText. + * @return The text. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - getRepeatedText() { - if (repeatedTextBuilder_ == null) { - if (transformationDetailCase_ == 8) { + .AutoMlForecastingInputs.Transformation.TextTransformation + getText() { + if (textBuilder_ == null) { + if (transformationDetailCase_ == 5) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) + .AutoMlForecastingInputs.Transformation.TextTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); } else { - if (transformationDetailCase_ == 8) { - return repeatedTextBuilder_.getMessage(); + if (transformationDetailCase_ == 5) { + return textBuilder_.getMessage(); } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ - public Builder setRepeatedText( + public Builder setText( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation + .Transformation.TextTransformation value) { - if (repeatedTextBuilder_ == null) { + if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformationDetail_ = value; onChanged(); } else { - repeatedTextBuilder_.setMessage(value); + textBuilder_.setMessage(value); } - transformationDetailCase_ = 8; + transformationDetailCase_ = 5; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ - public Builder setRepeatedText( + public Builder setText( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation.Builder + .Transformation.TextTransformation.Builder builderForValue) { - if (repeatedTextBuilder_ == null) { + if (textBuilder_ == null) { transformationDetail_ = builderForValue.build(); onChanged(); } else { - repeatedTextBuilder_.setMessage(builderForValue.build()); + textBuilder_.setMessage(builderForValue.build()); } - transformationDetailCase_ = 8; + transformationDetailCase_ = 5; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ - public Builder mergeRepeatedText( + public Builder mergeText( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Transformation.TextArrayTransformation + .Transformation.TextTransformation value) { - if (repeatedTextBuilder_ == null) { - if (transformationDetailCase_ == 8 + if (textBuilder_ == null) { + if (transformationDetailCase_ == 5 && transformationDetail_ != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation + .AutoMlForecastingInputs.Transformation.TextTransformation .getDefaultInstance()) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.newBuilder( + .AutoMlForecastingInputs.Transformation.TextTransformation.newBuilder( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) + .AutoMlForecastingInputs.Transformation.TextTransformation) transformationDetail_) .mergeFrom(value) .buildPartial(); @@ -9761,105 +6241,104 @@ public Builder mergeRepeatedText( } onChanged(); } else { - if (transformationDetailCase_ == 8) { - repeatedTextBuilder_.mergeFrom(value); + if (transformationDetailCase_ == 5) { + textBuilder_.mergeFrom(value); } - repeatedTextBuilder_.setMessage(value); + textBuilder_.setMessage(value); } - transformationDetailCase_ = 8; + transformationDetailCase_ = 5; return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ - public Builder clearRepeatedText() { - if (repeatedTextBuilder_ == null) { - if (transformationDetailCase_ == 8) { + public Builder clearText() { + if (textBuilder_ == null) { + if (transformationDetailCase_ == 5) { transformationDetailCase_ = 0; transformationDetail_ = null; onChanged(); } } else { - if (transformationDetailCase_ == 8) { + if (transformationDetailCase_ == 5) { transformationDetailCase_ = 0; transformationDetail_ = null; } - repeatedTextBuilder_.clear(); + textBuilder_.clear(); } return this; } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder - getRepeatedTextBuilder() { - return getRepeatedTextFieldBuilder().getBuilder(); + .AutoMlForecastingInputs.Transformation.TextTransformation.Builder + getTextBuilder() { + return getTextFieldBuilder().getBuilder(); } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder - getRepeatedTextOrBuilder() { - if ((transformationDetailCase_ == 8) && (repeatedTextBuilder_ != null)) { - return repeatedTextBuilder_.getMessageOrBuilder(); + .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder + getTextOrBuilder() { + if ((transformationDetailCase_ == 5) && (textBuilder_ != null)) { + return textBuilder_.getMessageOrBuilder(); } else { - if (transformationDetailCase_ == 8) { + if (transformationDetailCase_ == 5) { return (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) + .AutoMlForecastingInputs.Transformation.TextTransformation) transformationDetail_; } return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); } } /** * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation repeated_text = 8; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation text = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, + .AutoMlForecastingInputs.Transformation.TextTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder> - getRepeatedTextFieldBuilder() { - if (repeatedTextBuilder_ == null) { - if (!(transformationDetailCase_ == 8)) { + .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder> + getTextFieldBuilder() { + if (textBuilder_ == null) { + if (!(transformationDetailCase_ == 5)) { transformationDetail_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation - .getDefaultInstance(); + .AutoMlForecastingInputs.Transformation.TextTransformation.getDefaultInstance(); } - repeatedTextBuilder_ = + textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation, + .AutoMlForecastingInputs.Transformation.TextTransformation, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation.Builder, + .AutoMlForecastingInputs.Transformation.TextTransformation.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformationOrBuilder>( + .AutoMlForecastingInputs.Transformation.TextTransformationOrBuilder>( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Transformation.TextArrayTransformation) + .AutoMlForecastingInputs.Transformation.TextTransformation) transformationDetail_, getParentForChildren(), isClean()); transformationDetail_ = null; } - transformationDetailCase_ = 8; + transformationDetailCase_ = 5; onChanged(); ; - return repeatedTextBuilder_; + return textBuilder_; } @java.lang.Override @@ -9922,9 +6401,9 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PeriodOrBuilder + public interface GranularityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity) com.google.protobuf.MessageOrBuilder { /** @@ -9932,13 +6411,13 @@ public interface PeriodOrBuilder * *
      * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
+     * The supported units are:
+     *  * "minute"
+     *  * "hour"
+     *  * "day"
+     *  * "week"
+     *  * "month"
+     *  * "year"
      * 
* * string unit = 1; @@ -9951,13 +6430,13 @@ public interface PeriodOrBuilder * *
      * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
+     * The supported units are:
+     *  * "minute"
+     *  * "hour"
+     *  * "day"
+     *  * "week"
+     *  * "month"
+     *  * "year"
      * 
* * string unit = 1; @@ -9970,7 +6449,10 @@ public interface PeriodOrBuilder * * *
-     * The number of units per period, e.g. 3 weeks or 2 months.
+     * The number of granularity_units between data points in the training
+     * data. If `granularity_unit` is `minute`,
+     * can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
+     * must be 1.
      * 
* * int64 quantity = 2; @@ -9987,26 +6469,26 @@ public interface PeriodOrBuilder *
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} + * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity} */ - public static final class Period extends com.google.protobuf.GeneratedMessageV3 + public static final class Granularity extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) - PeriodOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity) + GranularityOrBuilder { private static final long serialVersionUID = 0L; - // Use Period.newBuilder() to construct. - private Period(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Granularity.newBuilder() to construct. + private Granularity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Period() { + private Granularity() { unit_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Period(); + return new Granularity(); } @java.lang.Override @@ -10014,7 +6496,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Period( + private Granularity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10066,7 +6548,7 @@ private Period( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor; } @java.lang.Override @@ -10074,12 +6556,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.class, + .AutoMlForecastingInputs.Granularity.class, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder.class); + .AutoMlForecastingInputs.Granularity.Builder.class); } public static final int UNIT_FIELD_NUMBER = 1; @@ -10089,13 +6571,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
+     * The supported units are:
+     *  * "minute"
+     *  * "hour"
+     *  * "day"
+     *  * "week"
+     *  * "month"
+     *  * "year"
      * 
* * string unit = 1; @@ -10119,13 +6601,13 @@ public java.lang.String getUnit() { * *
      * The time granularity unit of this time period.
-     * The supported unit are:
-     *  "minute"
-     *  "hour"
-     *  "day"
-     *  "week"
-     *  "month"
-     *  "year"
+     * The supported units are:
+     *  * "minute"
+     *  * "hour"
+     *  * "day"
+     *  * "week"
+     *  * "month"
+     *  * "year"
      * 
* * string unit = 1; @@ -10151,7 +6633,10 @@ public com.google.protobuf.ByteString getUnitBytes() { * * *
-     * The number of units per period, e.g. 3 weeks or 2 months.
+     * The number of granularity_units between data points in the training
+     * data. If `granularity_unit` is `minute`,
+     * can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
+     * must be 1.
      * 
* * int64 quantity = 2; @@ -10211,14 +6696,14 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period)) { + .Granularity)) { return super.equals(obj); } com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity other = (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) + .AutoMlForecastingInputs.Granularity) obj; if (!getUnit().equals(other.getUnit())) return false; @@ -10244,14 +6729,14 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10259,14 +6744,14 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10275,26 +6760,26 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10303,13 +6788,13 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10318,13 +6803,13 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity 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.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10344,7 +6829,7 @@ public static Builder newBuilder() { public static Builder newBuilder( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -10368,18 +6853,18 @@ protected Builder newBuilderForType( *
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} + * google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity) com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder { + .GranularityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor; } @java.lang.Override @@ -10387,16 +6872,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.class, + .AutoMlForecastingInputs.Granularity.class, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder.class); + .AutoMlForecastingInputs.Granularity.Builder.class); } // Construct using - // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.newBuilder() + // com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -10424,23 +6909,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMLForecastingProto - .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Period_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Granularity_descriptor; } @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity getDefaultInstanceForType() { return com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance(); + .AutoMlForecastingInputs.Granularity.getDefaultInstance(); } @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity build() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -10450,13 +6935,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity buildPartial() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period(this); + .AutoMlForecastingInputs.Granularity(this); result.unit_ = unit_; result.quantity_ = quantity_; onBuilt(); @@ -10503,10 +6988,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) { + .AutoMlForecastingInputs.Granularity) { return mergeFrom( (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) + .AutoMlForecastingInputs.Granularity) other); } else { super.mergeFrom(other); @@ -10516,11 +7001,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity other) { if (other == com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance()) return this; + .AutoMlForecastingInputs.Granularity.getDefaultInstance()) return this; if (!other.getUnit().isEmpty()) { unit_ = other.unit_; onChanged(); @@ -10544,14 +7029,14 @@ public Builder mergeFrom( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period) + .AutoMlForecastingInputs.Granularity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -10568,13 +7053,13 @@ public Builder mergeFrom( * *
        * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
+       * The supported units are:
+       *  * "minute"
+       *  * "hour"
+       *  * "day"
+       *  * "week"
+       *  * "month"
+       *  * "year"
        * 
* * string unit = 1; @@ -10597,13 +7082,13 @@ public java.lang.String getUnit() { * *
        * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
+       * The supported units are:
+       *  * "minute"
+       *  * "hour"
+       *  * "day"
+       *  * "week"
+       *  * "month"
+       *  * "year"
        * 
* * string unit = 1; @@ -10626,13 +7111,13 @@ public com.google.protobuf.ByteString getUnitBytes() { * *
        * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
+       * The supported units are:
+       *  * "minute"
+       *  * "hour"
+       *  * "day"
+       *  * "week"
+       *  * "month"
+       *  * "year"
        * 
* * string unit = 1; @@ -10654,13 +7139,13 @@ public Builder setUnit(java.lang.String value) { * *
        * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
+       * The supported units are:
+       *  * "minute"
+       *  * "hour"
+       *  * "day"
+       *  * "week"
+       *  * "month"
+       *  * "year"
        * 
* * string unit = 1; @@ -10678,13 +7163,13 @@ public Builder clearUnit() { * *
        * The time granularity unit of this time period.
-       * The supported unit are:
-       *  "minute"
-       *  "hour"
-       *  "day"
-       *  "week"
-       *  "month"
-       *  "year"
+       * The supported units are:
+       *  * "minute"
+       *  * "hour"
+       *  * "day"
+       *  * "week"
+       *  * "month"
+       *  * "year"
        * 
* * string unit = 1; @@ -10708,7 +7193,10 @@ public Builder setUnitBytes(com.google.protobuf.ByteString value) { * * *
-       * The number of units per period, e.g. 3 weeks or 2 months.
+       * The number of granularity_units between data points in the training
+       * data. If `granularity_unit` is `minute`,
+       * can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
+       * must be 1.
        * 
* * int64 quantity = 2; @@ -10723,7 +7211,10 @@ public long getQuantity() { * * *
-       * The number of units per period, e.g. 3 weeks or 2 months.
+       * The number of granularity_units between data points in the training
+       * data. If `granularity_unit` is `minute`,
+       * can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
+       * must be 1.
        * 
* * int64 quantity = 2; @@ -10741,7 +7232,10 @@ public Builder setQuantity(long value) { * * *
-       * The number of units per period, e.g. 3 weeks or 2 months.
+       * The number of granularity_units between data points in the training
+       * data. If `granularity_unit` is `minute`,
+       * can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
+       * must be 1.
        * 
* * int64 quantity = 2; @@ -10767,49 +7261,49 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity) } - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity) private static final com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period(); + .AutoMlForecastingInputs.Granularity(); } public static com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period + .AutoMlForecastingInputs.Granularity 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 Period parsePartialFrom( + public Granularity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Period(input, extensionRegistry); + return new Granularity(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.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -11079,13 +7573,13 @@ public int getTransformationsCount() { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -11113,13 +7607,13 @@ public java.lang.String getOptimizationObjective() { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -11227,341 +7721,324 @@ public com.google.protobuf.ByteString getWeightColumnBytes() { } } - public static final int STATIC_COLUMNS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList staticColumns_; + public static final int TIME_SERIES_ATTRIBUTE_COLUMNS_FIELD_NUMBER = 19; + private com.google.protobuf.LazyStringList timeSeriesAttributeColumns_; /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return A list containing the staticColumns. + * @return A list containing the timeSeriesAttributeColumns. */ - public com.google.protobuf.ProtocolStringList getStaticColumnsList() { - return staticColumns_; + public com.google.protobuf.ProtocolStringList getTimeSeriesAttributeColumnsList() { + return timeSeriesAttributeColumns_; } /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return The count of staticColumns. + * @return The count of timeSeriesAttributeColumns. */ - public int getStaticColumnsCount() { - return staticColumns_.size(); + public int getTimeSeriesAttributeColumnsCount() { + return timeSeriesAttributeColumns_.size(); } /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the element to return. - * @return The staticColumns at the given index. + * @return The timeSeriesAttributeColumns at the given index. */ - public java.lang.String getStaticColumns(int index) { - return staticColumns_.get(index); + public java.lang.String getTimeSeriesAttributeColumns(int index) { + return timeSeriesAttributeColumns_.get(index); } /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. + * @return The bytes of the timeSeriesAttributeColumns at the given index. */ - public com.google.protobuf.ByteString getStaticColumnsBytes(int index) { - return staticColumns_.getByteString(index); + public com.google.protobuf.ByteString getTimeSeriesAttributeColumnsBytes(int index) { + return timeSeriesAttributeColumns_.getByteString(index); } - public static final int TIME_VARIANT_PAST_ONLY_COLUMNS_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList timeVariantPastOnlyColumns_; + public static final int UNAVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER = 20; + private com.google.protobuf.LazyStringList unavailableAtForecastColumns_; /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return A list containing the timeVariantPastOnlyColumns. + * @return A list containing the unavailableAtForecastColumns. */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastOnlyColumnsList() { - return timeVariantPastOnlyColumns_; + public com.google.protobuf.ProtocolStringList getUnavailableAtForecastColumnsList() { + return unavailableAtForecastColumns_; } /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return The count of timeVariantPastOnlyColumns. + * @return The count of unavailableAtForecastColumns. */ - public int getTimeVariantPastOnlyColumnsCount() { - return timeVariantPastOnlyColumns_.size(); + public int getUnavailableAtForecastColumnsCount() { + return unavailableAtForecastColumns_.size(); } /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. + * @return The unavailableAtForecastColumns at the given index. */ - public java.lang.String getTimeVariantPastOnlyColumns(int index) { - return timeVariantPastOnlyColumns_.get(index); + public java.lang.String getUnavailableAtForecastColumns(int index) { + return unavailableAtForecastColumns_.get(index); } /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. + * @return The bytes of the unavailableAtForecastColumns at the given index. */ - public com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(int index) { - return timeVariantPastOnlyColumns_.getByteString(index); + public com.google.protobuf.ByteString getUnavailableAtForecastColumnsBytes(int index) { + return unavailableAtForecastColumns_.getByteString(index); } - public static final int TIME_VARIANT_PAST_AND_FUTURE_COLUMNS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList timeVariantPastAndFutureColumns_; + public static final int AVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER = 21; + private com.google.protobuf.LazyStringList availableAtForecastColumns_; /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return A list containing the timeVariantPastAndFutureColumns. + * @return A list containing the availableAtForecastColumns. */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastAndFutureColumnsList() { - return timeVariantPastAndFutureColumns_; + public com.google.protobuf.ProtocolStringList getAvailableAtForecastColumnsList() { + return availableAtForecastColumns_; } /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return The count of timeVariantPastAndFutureColumns. + * @return The count of availableAtForecastColumns. */ - public int getTimeVariantPastAndFutureColumnsCount() { - return timeVariantPastAndFutureColumns_.size(); + public int getAvailableAtForecastColumnsCount() { + return availableAtForecastColumns_.size(); } /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. + * @return The availableAtForecastColumns at the given index. */ - public java.lang.String getTimeVariantPastAndFutureColumns(int index) { - return timeVariantPastAndFutureColumns_.get(index); + public java.lang.String getAvailableAtForecastColumns(int index) { + return availableAtForecastColumns_.get(index); } /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. + * @return The bytes of the availableAtForecastColumns at the given index. */ - public com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index) { - return timeVariantPastAndFutureColumns_.getByteString(index); + public com.google.protobuf.ByteString getAvailableAtForecastColumnsBytes(int index) { + return availableAtForecastColumns_.getByteString(index); } - public static final int PERIOD_FIELD_NUMBER = 11; + public static final int DATA_GRANULARITY_FIELD_NUMBER = 22; private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - period_; + .Granularity + dataGranularity_; /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return Whether the period field is set. + * @return Whether the dataGranularity field is set. */ @java.lang.Override - public boolean hasPeriod() { - return period_ != null; + public boolean hasDataGranularity() { + return dataGranularity_ != null; } /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return The period. + * @return The dataGranularity. */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - getPeriod() { - return period_ == null + .Granularity + getDataGranularity() { + return dataGranularity_ == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.getDefaultInstance() - : period_; + .Granularity.getDefaultInstance() + : dataGranularity_; } /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder - getPeriodOrBuilder() { - return getPeriod(); - } - - public static final int FORECAST_WINDOW_START_FIELD_NUMBER = 12; - private long forecastWindowStart_; - /** - * - * - *
-   * The number of periods offset into the future as the start of the forecast
-   * window (the window of future values to predict, relative to the present.),
-   * where each period is one unit of granularity as defined by the `period`
-   * field above. Default to 0. Inclusive.
-   * 
- * - * int64 forecast_window_start = 12; - * - * @return The forecastWindowStart. - */ - @java.lang.Override - public long getForecastWindowStart() { - return forecastWindowStart_; + .GranularityOrBuilder + getDataGranularityOrBuilder() { + return getDataGranularity(); } - public static final int FORECAST_WINDOW_END_FIELD_NUMBER = 13; - private long forecastWindowEnd_; + public static final int FORECAST_HORIZON_FIELD_NUMBER = 23; + private long forecastHorizon_; /** * * *
-   * The number of periods offset into the future as the end of the forecast
-   * window (the window of future values to predict, relative to the present.),
-   * where each period is one unit of granularity as defined by the `period`
-   * field above. Inclusive.
+   * The amount of time into the future for which forecasted values for the
+   * target are returned. Expressed in number of units defined by the
+   * `data_granularity` field.
    * 
* - * int64 forecast_window_end = 13; + * int64 forecast_horizon = 23; * - * @return The forecastWindowEnd. + * @return The forecastHorizon. */ @java.lang.Override - public long getForecastWindowEnd() { - return forecastWindowEnd_; + public long getForecastHorizon() { + return forecastHorizon_; } - public static final int PAST_HORIZON_FIELD_NUMBER = 14; - private long pastHorizon_; + public static final int CONTEXT_WINDOW_FIELD_NUMBER = 24; + private long contextWindow_; /** * * *
-   * The number of periods offset into the past to restrict past sequence, where
-   * each period is one unit of granularity as defined by the `period`. Default
-   * value 0 means that it lets algorithm to define the value. Inclusive.
+   * The amount of time into the past training and prediction data is used
+   * for model training and prediction respectively. Expressed in number of
+   * units defined by the `data_granularity` field.
    * 
* - * int64 past_horizon = 14; + * int64 context_window = 24; * - * @return The pastHorizon. + * @return The contextWindow. */ @java.lang.Override - public long getPastHorizon() { - return pastHorizon_; + public long getContextWindow() { + return contextWindow_; } public static final int EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER = 15; @@ -11694,9 +8171,9 @@ public double getQuantiles(int index) { *
    * Validation options for the data validation component. The available options
    * are:
-   *   "fail-pipeline" - default, will validate against the validation and
-   *                     fail the pipeline if it fails.
-   *   "ignore-validation" - ignore the results of the validation and continue
+   *   * "fail-pipeline" - default, will validate against the validation and
+   *      fail the pipeline if it fails.
+   *   * "ignore-validation" - ignore the results of the validation and continue
    * 
* * string validation_options = 17; @@ -11721,9 +8198,9 @@ public java.lang.String getValidationOptions() { *
    * Validation options for the data validation component. The available options
    * are:
-   *   "fail-pipeline" - default, will validate against the validation and
-   *                     fail the pipeline if it fails.
-   *   "ignore-validation" - ignore the results of the validation and continue
+   *   * "fail-pipeline" - default, will validate against the validation and
+   *      fail the pipeline if it fails.
+   *   * "ignore-validation" - ignore the results of the validation and continue
    * 
* * string validation_options = 17; @@ -11779,29 +8256,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getWeightColumnBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, weightColumn_); } - for (int i = 0; i < staticColumns_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, staticColumns_.getRaw(i)); - } - for (int i = 0; i < timeVariantPastOnlyColumns_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 9, timeVariantPastOnlyColumns_.getRaw(i)); - } - for (int i = 0; i < timeVariantPastAndFutureColumns_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, timeVariantPastAndFutureColumns_.getRaw(i)); - } - if (period_ != null) { - output.writeMessage(11, getPeriod()); - } - if (forecastWindowStart_ != 0L) { - output.writeInt64(12, forecastWindowStart_); - } - if (forecastWindowEnd_ != 0L) { - output.writeInt64(13, forecastWindowEnd_); - } - if (pastHorizon_ != 0L) { - output.writeInt64(14, pastHorizon_); - } if (exportEvaluatedDataItemsConfig_ != null) { output.writeMessage(15, getExportEvaluatedDataItemsConfig()); } @@ -11815,6 +8269,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getValidationOptionsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, validationOptions_); } + for (int i = 0; i < timeSeriesAttributeColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 19, timeSeriesAttributeColumns_.getRaw(i)); + } + for (int i = 0; i < unavailableAtForecastColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 20, unavailableAtForecastColumns_.getRaw(i)); + } + for (int i = 0; i < availableAtForecastColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 21, availableAtForecastColumns_.getRaw(i)); + } + if (dataGranularity_ != null) { + output.writeMessage(22, getDataGranularity()); + } + if (forecastHorizon_ != 0L) { + output.writeInt64(23, forecastHorizon_); + } + if (contextWindow_ != 0L) { + output.writeInt64(24, contextWindow_); + } unknownFields.writeTo(output); } @@ -11846,59 +8321,56 @@ public int getSerializedSize() { if (!getWeightColumnBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, weightColumn_); } + if (exportEvaluatedDataItemsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getExportEvaluatedDataItemsConfig()); + } { int dataSize = 0; - for (int i = 0; i < staticColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(staticColumns_.getRaw(i)); - } + dataSize = 8 * getQuantilesList().size(); size += dataSize; - size += 1 * getStaticColumnsList().size(); + if (!getQuantilesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + quantilesMemoizedSerializedSize = dataSize; + } + if (!getValidationOptionsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, validationOptions_); } { int dataSize = 0; - for (int i = 0; i < timeVariantPastOnlyColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(timeVariantPastOnlyColumns_.getRaw(i)); + for (int i = 0; i < timeSeriesAttributeColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(timeSeriesAttributeColumns_.getRaw(i)); } size += dataSize; - size += 1 * getTimeVariantPastOnlyColumnsList().size(); + size += 2 * getTimeSeriesAttributeColumnsList().size(); } { int dataSize = 0; - for (int i = 0; i < timeVariantPastAndFutureColumns_.size(); i++) { - dataSize += computeStringSizeNoTag(timeVariantPastAndFutureColumns_.getRaw(i)); + for (int i = 0; i < unavailableAtForecastColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(unavailableAtForecastColumns_.getRaw(i)); } size += dataSize; - size += 1 * getTimeVariantPastAndFutureColumnsList().size(); - } - if (period_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPeriod()); - } - if (forecastWindowStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, forecastWindowStart_); - } - if (forecastWindowEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, forecastWindowEnd_); - } - if (pastHorizon_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, pastHorizon_); - } - if (exportEvaluatedDataItemsConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getExportEvaluatedDataItemsConfig()); + size += 2 * getUnavailableAtForecastColumnsList().size(); } { int dataSize = 0; - dataSize = 8 * getQuantilesList().size(); - size += dataSize; - if (!getQuantilesList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + for (int i = 0; i < availableAtForecastColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(availableAtForecastColumns_.getRaw(i)); } - quantilesMemoizedSerializedSize = dataSize; + size += dataSize; + size += 2 * getAvailableAtForecastColumnsList().size(); } - if (!getValidationOptionsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, validationOptions_); + if (dataGranularity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDataGranularity()); + } + if (forecastHorizon_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, forecastHorizon_); + } + if (contextWindow_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(24, contextWindow_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11930,18 +8402,18 @@ public boolean equals(final java.lang.Object obj) { if (!getOptimizationObjective().equals(other.getOptimizationObjective())) return false; if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; if (!getWeightColumn().equals(other.getWeightColumn())) return false; - if (!getStaticColumnsList().equals(other.getStaticColumnsList())) return false; - if (!getTimeVariantPastOnlyColumnsList().equals(other.getTimeVariantPastOnlyColumnsList())) + if (!getTimeSeriesAttributeColumnsList().equals(other.getTimeSeriesAttributeColumnsList())) + return false; + if (!getUnavailableAtForecastColumnsList().equals(other.getUnavailableAtForecastColumnsList())) + return false; + if (!getAvailableAtForecastColumnsList().equals(other.getAvailableAtForecastColumnsList())) return false; - if (!getTimeVariantPastAndFutureColumnsList() - .equals(other.getTimeVariantPastAndFutureColumnsList())) return false; - if (hasPeriod() != other.hasPeriod()) return false; - if (hasPeriod()) { - if (!getPeriod().equals(other.getPeriod())) return false; - } - if (getForecastWindowStart() != other.getForecastWindowStart()) return false; - if (getForecastWindowEnd() != other.getForecastWindowEnd()) return false; - if (getPastHorizon() != other.getPastHorizon()) return false; + if (hasDataGranularity() != other.hasDataGranularity()) return false; + if (hasDataGranularity()) { + if (!getDataGranularity().equals(other.getDataGranularity())) return false; + } + if (getForecastHorizon() != other.getForecastHorizon()) return false; + if (getContextWindow() != other.getContextWindow()) return false; if (hasExportEvaluatedDataItemsConfig() != other.hasExportEvaluatedDataItemsConfig()) return false; if (hasExportEvaluatedDataItemsConfig()) { @@ -11977,28 +8449,26 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudgetMilliNodeHours()); hash = (37 * hash) + WEIGHT_COLUMN_FIELD_NUMBER; hash = (53 * hash) + getWeightColumn().hashCode(); - if (getStaticColumnsCount() > 0) { - hash = (37 * hash) + STATIC_COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getStaticColumnsList().hashCode(); - } - if (getTimeVariantPastOnlyColumnsCount() > 0) { - hash = (37 * hash) + TIME_VARIANT_PAST_ONLY_COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getTimeVariantPastOnlyColumnsList().hashCode(); - } - if (getTimeVariantPastAndFutureColumnsCount() > 0) { - hash = (37 * hash) + TIME_VARIANT_PAST_AND_FUTURE_COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getTimeVariantPastAndFutureColumnsList().hashCode(); - } - if (hasPeriod()) { - hash = (37 * hash) + PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getPeriod().hashCode(); - } - hash = (37 * hash) + FORECAST_WINDOW_START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getForecastWindowStart()); - hash = (37 * hash) + FORECAST_WINDOW_END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getForecastWindowEnd()); - hash = (37 * hash) + PAST_HORIZON_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPastHorizon()); + if (getTimeSeriesAttributeColumnsCount() > 0) { + hash = (37 * hash) + TIME_SERIES_ATTRIBUTE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesAttributeColumnsList().hashCode(); + } + if (getUnavailableAtForecastColumnsCount() > 0) { + hash = (37 * hash) + UNAVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getUnavailableAtForecastColumnsList().hashCode(); + } + if (getAvailableAtForecastColumnsCount() > 0) { + hash = (37 * hash) + AVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableAtForecastColumnsList().hashCode(); + } + if (hasDataGranularity()) { + hash = (37 * hash) + DATA_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + getDataGranularity().hashCode(); + } + hash = (37 * hash) + FORECAST_HORIZON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getForecastHorizon()); + hash = (37 * hash) + CONTEXT_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getContextWindow()); if (hasExportEvaluatedDataItemsConfig()) { hash = (37 * hash) + EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getExportEvaluatedDataItemsConfig().hashCode(); @@ -12195,23 +8665,21 @@ public Builder clear() { weightColumn_ = ""; - staticColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + timeSeriesAttributeColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - timeVariantPastOnlyColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unavailableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); - timeVariantPastAndFutureColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); - if (periodBuilder_ == null) { - period_ = null; + if (dataGranularityBuilder_ == null) { + dataGranularity_ = null; } else { - period_ = null; - periodBuilder_ = null; + dataGranularity_ = null; + dataGranularityBuilder_ = null; } - forecastWindowStart_ = 0L; - - forecastWindowEnd_ = 0L; + forecastHorizon_ = 0L; - pastHorizon_ = 0L; + contextWindow_ = 0L; if (exportEvaluatedDataItemsConfigBuilder_ == null) { exportEvaluatedDataItemsConfig_ = null; @@ -12275,28 +8743,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; result.weightColumn_ = weightColumn_; if (((bitField0_ & 0x00000002) != 0)) { - staticColumns_ = staticColumns_.getUnmodifiableView(); + timeSeriesAttributeColumns_ = timeSeriesAttributeColumns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } - result.staticColumns_ = staticColumns_; + result.timeSeriesAttributeColumns_ = timeSeriesAttributeColumns_; if (((bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_.getUnmodifiableView(); + unavailableAtForecastColumns_ = unavailableAtForecastColumns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } - result.timeVariantPastOnlyColumns_ = timeVariantPastOnlyColumns_; + result.unavailableAtForecastColumns_ = unavailableAtForecastColumns_; if (((bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_.getUnmodifiableView(); + availableAtForecastColumns_ = availableAtForecastColumns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } - result.timeVariantPastAndFutureColumns_ = timeVariantPastAndFutureColumns_; - if (periodBuilder_ == null) { - result.period_ = period_; + result.availableAtForecastColumns_ = availableAtForecastColumns_; + if (dataGranularityBuilder_ == null) { + result.dataGranularity_ = dataGranularity_; } else { - result.period_ = periodBuilder_.build(); + result.dataGranularity_ = dataGranularityBuilder_.build(); } - result.forecastWindowStart_ = forecastWindowStart_; - result.forecastWindowEnd_ = forecastWindowEnd_; - result.pastHorizon_ = pastHorizon_; + result.forecastHorizon_ = forecastHorizon_; + result.contextWindow_ = contextWindow_; if (exportEvaluatedDataItemsConfigBuilder_ == null) { result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfig_; } else { @@ -12417,47 +8884,44 @@ public Builder mergeFrom( weightColumn_ = other.weightColumn_; onChanged(); } - if (!other.staticColumns_.isEmpty()) { - if (staticColumns_.isEmpty()) { - staticColumns_ = other.staticColumns_; + if (!other.timeSeriesAttributeColumns_.isEmpty()) { + if (timeSeriesAttributeColumns_.isEmpty()) { + timeSeriesAttributeColumns_ = other.timeSeriesAttributeColumns_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureStaticColumnsIsMutable(); - staticColumns_.addAll(other.staticColumns_); + ensureTimeSeriesAttributeColumnsIsMutable(); + timeSeriesAttributeColumns_.addAll(other.timeSeriesAttributeColumns_); } onChanged(); } - if (!other.timeVariantPastOnlyColumns_.isEmpty()) { - if (timeVariantPastOnlyColumns_.isEmpty()) { - timeVariantPastOnlyColumns_ = other.timeVariantPastOnlyColumns_; + if (!other.unavailableAtForecastColumns_.isEmpty()) { + if (unavailableAtForecastColumns_.isEmpty()) { + unavailableAtForecastColumns_ = other.unavailableAtForecastColumns_; bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.addAll(other.timeVariantPastOnlyColumns_); + ensureUnavailableAtForecastColumnsIsMutable(); + unavailableAtForecastColumns_.addAll(other.unavailableAtForecastColumns_); } onChanged(); } - if (!other.timeVariantPastAndFutureColumns_.isEmpty()) { - if (timeVariantPastAndFutureColumns_.isEmpty()) { - timeVariantPastAndFutureColumns_ = other.timeVariantPastAndFutureColumns_; + if (!other.availableAtForecastColumns_.isEmpty()) { + if (availableAtForecastColumns_.isEmpty()) { + availableAtForecastColumns_ = other.availableAtForecastColumns_; bitField0_ = (bitField0_ & ~0x00000008); } else { - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.addAll(other.timeVariantPastAndFutureColumns_); + ensureAvailableAtForecastColumnsIsMutable(); + availableAtForecastColumns_.addAll(other.availableAtForecastColumns_); } onChanged(); } - if (other.hasPeriod()) { - mergePeriod(other.getPeriod()); + if (other.hasDataGranularity()) { + mergeDataGranularity(other.getDataGranularity()); } - if (other.getForecastWindowStart() != 0L) { - setForecastWindowStart(other.getForecastWindowStart()); + if (other.getForecastHorizon() != 0L) { + setForecastHorizon(other.getForecastHorizon()); } - if (other.getForecastWindowEnd() != 0L) { - setForecastWindowEnd(other.getForecastWindowEnd()); - } - if (other.getPastHorizon() != 0L) { - setPastHorizon(other.getPastHorizon()); + if (other.getContextWindow() != 0L) { + setContextWindow(other.getContextWindow()); } if (other.hasExportEvaluatedDataItemsConfig()) { mergeExportEvaluatedDataItemsConfig(other.getExportEvaluatedDataItemsConfig()); @@ -13341,13 +9805,13 @@ public Builder removeTransformations(int index) { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -13374,13 +9838,13 @@ public java.lang.String getOptimizationObjective() { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -13407,13 +9871,13 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -13439,13 +9903,13 @@ public Builder setOptimizationObjective(java.lang.String value) { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -13467,13 +9931,13 @@ public Builder clearOptimizationObjective() { * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -13706,12 +10170,13 @@ public Builder setWeightColumnBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList staticColumns_ = + private com.google.protobuf.LazyStringList timeSeriesAttributeColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureStaticColumnsIsMutable() { + private void ensureTimeSeriesAttributeColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - staticColumns_ = new com.google.protobuf.LazyStringArrayList(staticColumns_); + timeSeriesAttributeColumns_ = + new com.google.protobuf.LazyStringArrayList(timeSeriesAttributeColumns_); bitField0_ |= 0x00000002; } } @@ -13719,84 +10184,89 @@ private void ensureStaticColumnsIsMutable() { * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return A list containing the staticColumns. + * @return A list containing the timeSeriesAttributeColumns. */ - public com.google.protobuf.ProtocolStringList getStaticColumnsList() { - return staticColumns_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList getTimeSeriesAttributeColumnsList() { + return timeSeriesAttributeColumns_.getUnmodifiableView(); } /** * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return The count of staticColumns. + * @return The count of timeSeriesAttributeColumns. */ - public int getStaticColumnsCount() { - return staticColumns_.size(); + public int getTimeSeriesAttributeColumnsCount() { + return timeSeriesAttributeColumns_.size(); } /** * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the element to return. - * @return The staticColumns at the given index. + * @return The timeSeriesAttributeColumns at the given index. */ - public java.lang.String getStaticColumns(int index) { - return staticColumns_.get(index); + public java.lang.String getTimeSeriesAttributeColumns(int index) { + return timeSeriesAttributeColumns_.get(index); } /** * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. + * @return The bytes of the timeSeriesAttributeColumns at the given index. */ - public com.google.protobuf.ByteString getStaticColumnsBytes(int index) { - return staticColumns_.getByteString(index); + public com.google.protobuf.ByteString getTimeSeriesAttributeColumnsBytes(int index) { + return timeSeriesAttributeColumns_.getByteString(index); } /** * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index to set the value at. - * @param value The staticColumns to set. + * @param value The timeSeriesAttributeColumns to set. * @return This builder for chaining. */ - public Builder setStaticColumns(int index, java.lang.String value) { + public Builder setTimeSeriesAttributeColumns(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureStaticColumnsIsMutable(); - staticColumns_.set(index, value); + ensureTimeSeriesAttributeColumnsIsMutable(); + timeSeriesAttributeColumns_.set(index, value); onChanged(); return this; } @@ -13804,21 +10274,22 @@ public Builder setStaticColumns(int index, java.lang.String value) { * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @param value The staticColumns to add. + * @param value The timeSeriesAttributeColumns to add. * @return This builder for chaining. */ - public Builder addStaticColumns(java.lang.String value) { + public Builder addTimeSeriesAttributeColumns(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureStaticColumnsIsMutable(); - staticColumns_.add(value); + ensureTimeSeriesAttributeColumnsIsMutable(); + timeSeriesAttributeColumns_.add(value); onChanged(); return this; } @@ -13826,18 +10297,19 @@ public Builder addStaticColumns(java.lang.String value) { * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @param values The staticColumns to add. + * @param values The timeSeriesAttributeColumns to add. * @return This builder for chaining. */ - public Builder addAllStaticColumns(java.lang.Iterable values) { - ensureStaticColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticColumns_); + public Builder addAllTimeSeriesAttributeColumns(java.lang.Iterable values) { + ensureTimeSeriesAttributeColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeSeriesAttributeColumns_); onChanged(); return this; } @@ -13845,16 +10317,17 @@ public Builder addAllStaticColumns(java.lang.Iterable values) * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @return This builder for chaining. */ - public Builder clearStaticColumns() { - staticColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearTimeSeriesAttributeColumns() { + timeSeriesAttributeColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -13863,33 +10336,34 @@ public Builder clearStaticColumns() { * * *
-     * Column names that should be used as static columns.
-     * The value of these columns are static per time series.
+     * Column names that should be used as attribute columns.
+     * The value of these columns does not vary as a function of time.
+     * For example, store ID or item color.
      * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @param value The bytes of the staticColumns to add. + * @param value The bytes of the timeSeriesAttributeColumns to add. * @return This builder for chaining. */ - public Builder addStaticColumnsBytes(com.google.protobuf.ByteString value) { + public Builder addTimeSeriesAttributeColumnsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureStaticColumnsIsMutable(); - staticColumns_.add(value); + ensureTimeSeriesAttributeColumnsIsMutable(); + timeSeriesAttributeColumns_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList timeVariantPastOnlyColumns_ = + private com.google.protobuf.LazyStringList unavailableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTimeVariantPastOnlyColumnsIsMutable() { + private void ensureUnavailableAtForecastColumnsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - timeVariantPastOnlyColumns_ = - new com.google.protobuf.LazyStringArrayList(timeVariantPastOnlyColumns_); + unavailableAtForecastColumns_ = + new com.google.protobuf.LazyStringArrayList(unavailableAtForecastColumns_); bitField0_ |= 0x00000004; } } @@ -13897,99 +10371,94 @@ private void ensureTimeVariantPastOnlyColumnsIsMutable() { * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return A list containing the timeVariantPastOnlyColumns. + * @return A list containing the unavailableAtForecastColumns. */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastOnlyColumnsList() { - return timeVariantPastOnlyColumns_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList getUnavailableAtForecastColumnsList() { + return unavailableAtForecastColumns_.getUnmodifiableView(); } /** * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return The count of timeVariantPastOnlyColumns. + * @return The count of unavailableAtForecastColumns. */ - public int getTimeVariantPastOnlyColumnsCount() { - return timeVariantPastOnlyColumns_.size(); + public int getUnavailableAtForecastColumnsCount() { + return unavailableAtForecastColumns_.size(); } /** * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. + * @return The unavailableAtForecastColumns at the given index. */ - public java.lang.String getTimeVariantPastOnlyColumns(int index) { - return timeVariantPastOnlyColumns_.get(index); + public java.lang.String getUnavailableAtForecastColumns(int index) { + return unavailableAtForecastColumns_.get(index); } /** * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. + * @return The bytes of the unavailableAtForecastColumns at the given index. */ - public com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(int index) { - return timeVariantPastOnlyColumns_.getByteString(index); + public com.google.protobuf.ByteString getUnavailableAtForecastColumnsBytes(int index) { + return unavailableAtForecastColumns_.getByteString(index); } /** * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index to set the value at. - * @param value The timeVariantPastOnlyColumns to set. + * @param value The unavailableAtForecastColumns to set. * @return This builder for chaining. */ - public Builder setTimeVariantPastOnlyColumns(int index, java.lang.String value) { + public Builder setUnavailableAtForecastColumns(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.set(index, value); + ensureUnavailableAtForecastColumnsIsMutable(); + unavailableAtForecastColumns_.set(index, value); onChanged(); return this; } @@ -13997,24 +10466,23 @@ public Builder setTimeVariantPastOnlyColumns(int index, java.lang.String value) * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @param value The timeVariantPastOnlyColumns to add. + * @param value The unavailableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addTimeVariantPastOnlyColumns(java.lang.String value) { + public Builder addUnavailableAtForecastColumns(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.add(value); + ensureUnavailableAtForecastColumnsIsMutable(); + unavailableAtForecastColumns_.add(value); onChanged(); return this; } @@ -14022,21 +10490,20 @@ public Builder addTimeVariantPastOnlyColumns(java.lang.String value) { * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @param values The timeVariantPastOnlyColumns to add. + * @param values The unavailableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addAllTimeVariantPastOnlyColumns(java.lang.Iterable values) { - ensureTimeVariantPastOnlyColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeVariantPastOnlyColumns_); + public Builder addAllUnavailableAtForecastColumns(java.lang.Iterable values) { + ensureUnavailableAtForecastColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unavailableAtForecastColumns_); onChanged(); return this; } @@ -14044,19 +10511,18 @@ public Builder addAllTimeVariantPastOnlyColumns(java.lang.Iterable - * Column names that should be used as time variant past only columns. - * This column contains information for the given entity (identified by the - * time_series_identifier_column) that is known for the past but not the - * future (e.g. population of a city in a given year, or weather on a given - * day). + * Names of columns that are unavailable when a forecast is requested. + * This column contains information for the given entity (identified + * by the time_series_identifier_column) that is unknown before the forecast + * For example, actual weather on a given day. *
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @return This builder for chaining. */ - public Builder clearTimeVariantPastOnlyColumns() { - timeVariantPastOnlyColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearUnavailableAtForecastColumns() { + unavailableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -14065,36 +10531,35 @@ public Builder clearTimeVariantPastOnlyColumns() { * * *
-     * Column names that should be used as time variant past only columns.
-     * This column contains information for the given entity (identified by the
-     * time_series_identifier_column) that is known for the past but not the
-     * future (e.g. population of a city in a given year, or weather on a given
-     * day).
+     * Names of columns that are unavailable when a forecast is requested.
+     * This column contains information for the given entity (identified
+     * by the time_series_identifier_column) that is unknown before the forecast
+     * For example, actual weather on a given day.
      * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @param value The bytes of the timeVariantPastOnlyColumns to add. + * @param value The bytes of the unavailableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addTimeVariantPastOnlyColumnsBytes(com.google.protobuf.ByteString value) { + public Builder addUnavailableAtForecastColumnsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureTimeVariantPastOnlyColumnsIsMutable(); - timeVariantPastOnlyColumns_.add(value); + ensureUnavailableAtForecastColumnsIsMutable(); + unavailableAtForecastColumns_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList timeVariantPastAndFutureColumns_ = + private com.google.protobuf.LazyStringList availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTimeVariantPastAndFutureColumnsIsMutable() { + private void ensureAvailableAtForecastColumnsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - timeVariantPastAndFutureColumns_ = - new com.google.protobuf.LazyStringArrayList(timeVariantPastAndFutureColumns_); + availableAtForecastColumns_ = + new com.google.protobuf.LazyStringArrayList(availableAtForecastColumns_); bitField0_ |= 0x00000008; } } @@ -14102,89 +10567,99 @@ private void ensureTimeVariantPastAndFutureColumnsIsMutable() { * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return A list containing the timeVariantPastAndFutureColumns. + * @return A list containing the availableAtForecastColumns. */ - public com.google.protobuf.ProtocolStringList getTimeVariantPastAndFutureColumnsList() { - return timeVariantPastAndFutureColumns_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList getAvailableAtForecastColumnsList() { + return availableAtForecastColumns_.getUnmodifiableView(); } /** * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return The count of timeVariantPastAndFutureColumns. + * @return The count of availableAtForecastColumns. */ - public int getTimeVariantPastAndFutureColumnsCount() { - return timeVariantPastAndFutureColumns_.size(); + public int getAvailableAtForecastColumnsCount() { + return availableAtForecastColumns_.size(); } /** * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. + * @return The availableAtForecastColumns at the given index. */ - public java.lang.String getTimeVariantPastAndFutureColumns(int index) { - return timeVariantPastAndFutureColumns_.get(index); + public java.lang.String getAvailableAtForecastColumns(int index) { + return availableAtForecastColumns_.get(index); } /** * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. + * @return The bytes of the availableAtForecastColumns at the given index. */ - public com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index) { - return timeVariantPastAndFutureColumns_.getByteString(index); + public com.google.protobuf.ByteString getAvailableAtForecastColumnsBytes(int index) { + return availableAtForecastColumns_.getByteString(index); } /** * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index to set the value at. - * @param value The timeVariantPastAndFutureColumns to set. + * @param value The availableAtForecastColumns to set. * @return This builder for chaining. */ - public Builder setTimeVariantPastAndFutureColumns(int index, java.lang.String value) { + public Builder setAvailableAtForecastColumns(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.set(index, value); + ensureAvailableAtForecastColumnsIsMutable(); + availableAtForecastColumns_.set(index, value); onChanged(); return this; } @@ -14192,22 +10667,24 @@ public Builder setTimeVariantPastAndFutureColumns(int index, java.lang.String va * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @param value The timeVariantPastAndFutureColumns to add. + * @param value The availableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addTimeVariantPastAndFutureColumns(java.lang.String value) { + public Builder addAvailableAtForecastColumns(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.add(value); + ensureAvailableAtForecastColumnsIsMutable(); + availableAtForecastColumns_.add(value); onChanged(); return this; } @@ -14215,21 +10692,21 @@ public Builder addTimeVariantPastAndFutureColumns(java.lang.String value) { * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @param values The timeVariantPastAndFutureColumns to add. + * @param values The availableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addAllTimeVariantPastAndFutureColumns( - java.lang.Iterable values) { - ensureTimeVariantPastAndFutureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, timeVariantPastAndFutureColumns_); + public Builder addAllAvailableAtForecastColumns(java.lang.Iterable values) { + ensureAvailableAtForecastColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableAtForecastColumns_); onChanged(); return this; } @@ -14237,17 +10714,19 @@ public Builder addAllTimeVariantPastAndFutureColumns( * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @return This builder for chaining. */ - public Builder clearTimeVariantPastAndFutureColumns() { - timeVariantPastAndFutureColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearAvailableAtForecastColumns() { + availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; @@ -14256,105 +10735,104 @@ public Builder clearTimeVariantPastAndFutureColumns() { * * *
-     * Column names that should be used as time variant past and future columns.
-     * This column contains information for the given entity (identified by the
-     * key column) that is known for the past and the future
+     * Names of columns that are available and provided when a forecast
+     * is requested. These columns
+     * contain information for the given entity (identified by the
+     * time_series_identifier_column column) that is known at forecast.
+     * For example, predicted weather for a specific day.
      * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @param value The bytes of the timeVariantPastAndFutureColumns to add. + * @param value The bytes of the availableAtForecastColumns to add. * @return This builder for chaining. */ - public Builder addTimeVariantPastAndFutureColumnsBytes(com.google.protobuf.ByteString value) { + public Builder addAvailableAtForecastColumnsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureTimeVariantPastAndFutureColumnsIsMutable(); - timeVariantPastAndFutureColumns_.add(value); + ensureAvailableAtForecastColumnsIsMutable(); + availableAtForecastColumns_.add(value); onChanged(); return this; } private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period - period_; + .AutoMlForecastingInputs.Granularity + dataGranularity_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, + .AutoMlForecastingInputs.Granularity, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, + .AutoMlForecastingInputs.Granularity.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder> - periodBuilder_; + .AutoMlForecastingInputs.GranularityOrBuilder> + dataGranularityBuilder_; /** * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return Whether the period field is set. + * @return Whether the dataGranularity field is set. */ - public boolean hasPeriod() { - return periodBuilder_ != null || period_ != null; + public boolean hasDataGranularity() { + return dataGranularityBuilder_ != null || dataGranularity_ != null; } /** * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return The period. + * @return The dataGranularity. */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period - getPeriod() { - if (periodBuilder_ == null) { - return period_ == null + .Granularity + getDataGranularity() { + if (dataGranularityBuilder_ == null) { + return dataGranularity_ == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance() - : period_; + .AutoMlForecastingInputs.Granularity.getDefaultInstance() + : dataGranularity_; } else { - return periodBuilder_.getMessage(); + return dataGranularityBuilder_.getMessage(); } } /** * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ - public Builder setPeriod( + public Builder setDataGranularity( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity value) { - if (periodBuilder_ == null) { + if (dataGranularityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - period_ = value; + dataGranularity_ = value; onChanged(); } else { - periodBuilder_.setMessage(value); + dataGranularityBuilder_.setMessage(value); } return this; @@ -14363,23 +10841,22 @@ public Builder setPeriod( * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ - public Builder setPeriod( + public Builder setDataGranularity( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.Builder + .Granularity.Builder builderForValue) { - if (periodBuilder_ == null) { - period_ = builderForValue.build(); + if (dataGranularityBuilder_ == null) { + dataGranularity_ = builderForValue.build(); onChanged(); } else { - periodBuilder_.setMessage(builderForValue.build()); + dataGranularityBuilder_.setMessage(builderForValue.build()); } return this; @@ -14388,31 +10865,30 @@ public Builder setPeriod( * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ - public Builder mergePeriod( + public Builder mergeDataGranularity( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period + .Granularity value) { - if (periodBuilder_ == null) { - if (period_ != null) { - period_ = + if (dataGranularityBuilder_ == null) { + if (dataGranularity_ != null) { + dataGranularity_ = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.newBuilder(period_) + .AutoMlForecastingInputs.Granularity.newBuilder(dataGranularity_) .mergeFrom(value) .buildPartial(); } else { - period_ = value; + dataGranularity_ = value; } onChanged(); } else { - periodBuilder_.mergeFrom(value); + dataGranularityBuilder_.mergeFrom(value); } return this; @@ -14421,21 +10897,20 @@ public Builder mergePeriod( * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ - public Builder clearPeriod() { - if (periodBuilder_ == null) { - period_ = null; + public Builder clearDataGranularity() { + if (dataGranularityBuilder_ == null) { + dataGranularity_ = null; onChanged(); } else { - period_ = null; - periodBuilder_ = null; + dataGranularity_ = null; + dataGranularityBuilder_ = null; } return this; @@ -14444,178 +10919,112 @@ public Builder clearPeriod() { * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .Period.Builder - getPeriodBuilder() { + .Granularity.Builder + getDataGranularityBuilder() { onChanged(); - return getPeriodFieldBuilder().getBuilder(); + return getDataGranularityFieldBuilder().getBuilder(); } /** * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder - getPeriodOrBuilder() { - if (periodBuilder_ != null) { - return periodBuilder_.getMessageOrBuilder(); + .GranularityOrBuilder + getDataGranularityOrBuilder() { + if (dataGranularityBuilder_ != null) { + return dataGranularityBuilder_.getMessageOrBuilder(); } else { - return period_ == null + return dataGranularity_ == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.getDefaultInstance() - : period_; + .AutoMlForecastingInputs.Granularity.getDefaultInstance() + : dataGranularity_; } } /** * * *
-     * Expected difference in time granularity between rows in the data. If it is
-     * not set, the period is inferred from data.
+     * Expected difference in time granularity between rows in the data.
      * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, + .AutoMlForecastingInputs.Granularity, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, + .AutoMlForecastingInputs.Granularity.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder> - getPeriodFieldBuilder() { - if (periodBuilder_ == null) { - periodBuilder_ = + .AutoMlForecastingInputs.GranularityOrBuilder> + getDataGranularityFieldBuilder() { + if (dataGranularityBuilder_ == null) { + dataGranularityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period, + .AutoMlForecastingInputs.Granularity, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.Period.Builder, + .AutoMlForecastingInputs.Granularity.Builder, com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.PeriodOrBuilder>( - getPeriod(), getParentForChildren(), isClean()); - period_ = null; + .AutoMlForecastingInputs.GranularityOrBuilder>( + getDataGranularity(), getParentForChildren(), isClean()); + dataGranularity_ = null; } - return periodBuilder_; - } - - private long forecastWindowStart_; - /** - * - * - *
-     * The number of periods offset into the future as the start of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Default to 0. Inclusive.
-     * 
- * - * int64 forecast_window_start = 12; - * - * @return The forecastWindowStart. - */ - @java.lang.Override - public long getForecastWindowStart() { - return forecastWindowStart_; - } - /** - * - * - *
-     * The number of periods offset into the future as the start of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Default to 0. Inclusive.
-     * 
- * - * int64 forecast_window_start = 12; - * - * @param value The forecastWindowStart to set. - * @return This builder for chaining. - */ - public Builder setForecastWindowStart(long value) { - - forecastWindowStart_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of periods offset into the future as the start of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Default to 0. Inclusive.
-     * 
- * - * int64 forecast_window_start = 12; - * - * @return This builder for chaining. - */ - public Builder clearForecastWindowStart() { - - forecastWindowStart_ = 0L; - onChanged(); - return this; + return dataGranularityBuilder_; } - private long forecastWindowEnd_; + private long forecastHorizon_; /** * * *
-     * The number of periods offset into the future as the end of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Inclusive.
+     * The amount of time into the future for which forecasted values for the
+     * target are returned. Expressed in number of units defined by the
+     * `data_granularity` field.
      * 
* - * int64 forecast_window_end = 13; + * int64 forecast_horizon = 23; * - * @return The forecastWindowEnd. + * @return The forecastHorizon. */ @java.lang.Override - public long getForecastWindowEnd() { - return forecastWindowEnd_; + public long getForecastHorizon() { + return forecastHorizon_; } /** * * *
-     * The number of periods offset into the future as the end of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Inclusive.
+     * The amount of time into the future for which forecasted values for the
+     * target are returned. Expressed in number of units defined by the
+     * `data_granularity` field.
      * 
* - * int64 forecast_window_end = 13; + * int64 forecast_horizon = 23; * - * @param value The forecastWindowEnd to set. + * @param value The forecastHorizon to set. * @return This builder for chaining. */ - public Builder setForecastWindowEnd(long value) { + public Builder setForecastHorizon(long value) { - forecastWindowEnd_ = value; + forecastHorizon_ = value; onChanged(); return this; } @@ -14623,58 +11032,57 @@ public Builder setForecastWindowEnd(long value) { * * *
-     * The number of periods offset into the future as the end of the forecast
-     * window (the window of future values to predict, relative to the present.),
-     * where each period is one unit of granularity as defined by the `period`
-     * field above. Inclusive.
+     * The amount of time into the future for which forecasted values for the
+     * target are returned. Expressed in number of units defined by the
+     * `data_granularity` field.
      * 
* - * int64 forecast_window_end = 13; + * int64 forecast_horizon = 23; * * @return This builder for chaining. */ - public Builder clearForecastWindowEnd() { + public Builder clearForecastHorizon() { - forecastWindowEnd_ = 0L; + forecastHorizon_ = 0L; onChanged(); return this; } - private long pastHorizon_; + private long contextWindow_; /** * * *
-     * The number of periods offset into the past to restrict past sequence, where
-     * each period is one unit of granularity as defined by the `period`. Default
-     * value 0 means that it lets algorithm to define the value. Inclusive.
+     * The amount of time into the past training and prediction data is used
+     * for model training and prediction respectively. Expressed in number of
+     * units defined by the `data_granularity` field.
      * 
* - * int64 past_horizon = 14; + * int64 context_window = 24; * - * @return The pastHorizon. + * @return The contextWindow. */ @java.lang.Override - public long getPastHorizon() { - return pastHorizon_; + public long getContextWindow() { + return contextWindow_; } /** * * *
-     * The number of periods offset into the past to restrict past sequence, where
-     * each period is one unit of granularity as defined by the `period`. Default
-     * value 0 means that it lets algorithm to define the value. Inclusive.
+     * The amount of time into the past training and prediction data is used
+     * for model training and prediction respectively. Expressed in number of
+     * units defined by the `data_granularity` field.
      * 
* - * int64 past_horizon = 14; + * int64 context_window = 24; * - * @param value The pastHorizon to set. + * @param value The contextWindow to set. * @return This builder for chaining. */ - public Builder setPastHorizon(long value) { + public Builder setContextWindow(long value) { - pastHorizon_ = value; + contextWindow_ = value; onChanged(); return this; } @@ -14682,18 +11090,18 @@ public Builder setPastHorizon(long value) { * * *
-     * The number of periods offset into the past to restrict past sequence, where
-     * each period is one unit of granularity as defined by the `period`. Default
-     * value 0 means that it lets algorithm to define the value. Inclusive.
+     * The amount of time into the past training and prediction data is used
+     * for model training and prediction respectively. Expressed in number of
+     * units defined by the `data_granularity` field.
      * 
* - * int64 past_horizon = 14; + * int64 context_window = 24; * * @return This builder for chaining. */ - public Builder clearPastHorizon() { + public Builder clearContextWindow() { - pastHorizon_ = 0L; + contextWindow_ = 0L; onChanged(); return this; } @@ -15094,9 +11502,9 @@ public Builder clearQuantiles() { *
      * Validation options for the data validation component. The available options
      * are:
-     *   "fail-pipeline" - default, will validate against the validation and
-     *                     fail the pipeline if it fails.
-     *   "ignore-validation" - ignore the results of the validation and continue
+     *   * "fail-pipeline" - default, will validate against the validation and
+     *      fail the pipeline if it fails.
+     *   * "ignore-validation" - ignore the results of the validation and continue
      * 
* * string validation_options = 17; @@ -15120,9 +11528,9 @@ public java.lang.String getValidationOptions() { *
      * Validation options for the data validation component. The available options
      * are:
-     *   "fail-pipeline" - default, will validate against the validation and
-     *                     fail the pipeline if it fails.
-     *   "ignore-validation" - ignore the results of the validation and continue
+     *   * "fail-pipeline" - default, will validate against the validation and
+     *      fail the pipeline if it fails.
+     *   * "ignore-validation" - ignore the results of the validation and continue
      * 
* * string validation_options = 17; @@ -15146,9 +11554,9 @@ public com.google.protobuf.ByteString getValidationOptionsBytes() { *
      * Validation options for the data validation component. The available options
      * are:
-     *   "fail-pipeline" - default, will validate against the validation and
-     *                     fail the pipeline if it fails.
-     *   "ignore-validation" - ignore the results of the validation and continue
+     *   * "fail-pipeline" - default, will validate against the validation and
+     *      fail the pipeline if it fails.
+     *   * "ignore-validation" - ignore the results of the validation and continue
      * 
* * string validation_options = 17; @@ -15171,9 +11579,9 @@ public Builder setValidationOptions(java.lang.String value) { *
      * Validation options for the data validation component. The available options
      * are:
-     *   "fail-pipeline" - default, will validate against the validation and
-     *                     fail the pipeline if it fails.
-     *   "ignore-validation" - ignore the results of the validation and continue
+     *   * "fail-pipeline" - default, will validate against the validation and
+     *      fail the pipeline if it fails.
+     *   * "ignore-validation" - ignore the results of the validation and continue
      * 
* * string validation_options = 17; @@ -15192,9 +11600,9 @@ public Builder clearValidationOptions() { *
      * Validation options for the data validation component. The available options
      * are:
-     *   "fail-pipeline" - default, will validate against the validation and
-     *                     fail the pipeline if it fails.
-     *   "ignore-validation" - ignore the results of the validation and continue
+     *   * "fail-pipeline" - default, will validate against the validation and
+     *      fail the pipeline if it fails.
+     *   * "ignore-validation" - ignore the results of the validation and continue
      * 
* * string validation_options = 17; 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 9c459d2ab..1fc1e1d01 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 @@ -194,13 +194,13 @@ public interface AutoMlForecastingInputsOrBuilder * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -217,13 +217,13 @@ public interface AutoMlForecastingInputsOrBuilder * creates a model that optimizes the value of the objective * function over the validation set. * The supported optimization objectives: - * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - * "minimize-mae" - Minimize mean-absolute error (MAE). - * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - * "minimize-wape-mae" - Minimize the combination of weighted absolute + * * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + * * "minimize-mae" - Minimize mean-absolute error (MAE). + * * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + * * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + * * "minimize-wape-mae" - Minimize the combination of weighted absolute * percentage error (WAPE) and mean-absolute-error (MAE). - * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + * * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles * defined in `quantiles`. *
* @@ -295,276 +295,265 @@ public interface AutoMlForecastingInputsOrBuilder * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return A list containing the staticColumns. + * @return A list containing the timeSeriesAttributeColumns. */ - java.util.List getStaticColumnsList(); + java.util.List getTimeSeriesAttributeColumnsList(); /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * - * @return The count of staticColumns. + * @return The count of timeSeriesAttributeColumns. */ - int getStaticColumnsCount(); + int getTimeSeriesAttributeColumnsCount(); /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the element to return. - * @return The staticColumns at the given index. + * @return The timeSeriesAttributeColumns at the given index. */ - java.lang.String getStaticColumns(int index); + java.lang.String getTimeSeriesAttributeColumns(int index); /** * * *
-   * Column names that should be used as static columns.
-   * The value of these columns are static per time series.
+   * Column names that should be used as attribute columns.
+   * The value of these columns does not vary as a function of time.
+   * For example, store ID or item color.
    * 
* - * repeated string static_columns = 8; + * repeated string time_series_attribute_columns = 19; * * @param index The index of the value to return. - * @return The bytes of the staticColumns at the given index. + * @return The bytes of the timeSeriesAttributeColumns at the given index. */ - com.google.protobuf.ByteString getStaticColumnsBytes(int index); + com.google.protobuf.ByteString getTimeSeriesAttributeColumnsBytes(int index); /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return A list containing the timeVariantPastOnlyColumns. + * @return A list containing the unavailableAtForecastColumns. */ - java.util.List getTimeVariantPastOnlyColumnsList(); + java.util.List getUnavailableAtForecastColumnsList(); /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * - * @return The count of timeVariantPastOnlyColumns. + * @return The count of unavailableAtForecastColumns. */ - int getTimeVariantPastOnlyColumnsCount(); + int getUnavailableAtForecastColumnsCount(); /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the element to return. - * @return The timeVariantPastOnlyColumns at the given index. + * @return The unavailableAtForecastColumns at the given index. */ - java.lang.String getTimeVariantPastOnlyColumns(int index); + java.lang.String getUnavailableAtForecastColumns(int index); /** * * *
-   * Column names that should be used as time variant past only columns.
-   * This column contains information for the given entity (identified by the
-   * time_series_identifier_column) that is known for the past but not the
-   * future (e.g. population of a city in a given year, or weather on a given
-   * day).
+   * Names of columns that are unavailable when a forecast is requested.
+   * This column contains information for the given entity (identified
+   * by the time_series_identifier_column) that is unknown before the forecast
+   * For example, actual weather on a given day.
    * 
* - * repeated string time_variant_past_only_columns = 9; + * repeated string unavailable_at_forecast_columns = 20; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastOnlyColumns at the given index. + * @return The bytes of the unavailableAtForecastColumns at the given index. */ - com.google.protobuf.ByteString getTimeVariantPastOnlyColumnsBytes(int index); + com.google.protobuf.ByteString getUnavailableAtForecastColumnsBytes(int index); /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return A list containing the timeVariantPastAndFutureColumns. + * @return A list containing the availableAtForecastColumns. */ - java.util.List getTimeVariantPastAndFutureColumnsList(); + java.util.List getAvailableAtForecastColumnsList(); /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * - * @return The count of timeVariantPastAndFutureColumns. + * @return The count of availableAtForecastColumns. */ - int getTimeVariantPastAndFutureColumnsCount(); + int getAvailableAtForecastColumnsCount(); /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the element to return. - * @return The timeVariantPastAndFutureColumns at the given index. + * @return The availableAtForecastColumns at the given index. */ - java.lang.String getTimeVariantPastAndFutureColumns(int index); + java.lang.String getAvailableAtForecastColumns(int index); /** * * *
-   * Column names that should be used as time variant past and future columns.
-   * This column contains information for the given entity (identified by the
-   * key column) that is known for the past and the future
+   * Names of columns that are available and provided when a forecast
+   * is requested. These columns
+   * contain information for the given entity (identified by the
+   * time_series_identifier_column column) that is known at forecast.
+   * For example, predicted weather for a specific day.
    * 
* - * repeated string time_variant_past_and_future_columns = 10; + * repeated string available_at_forecast_columns = 21; * * @param index The index of the value to return. - * @return The bytes of the timeVariantPastAndFutureColumns at the given index. + * @return The bytes of the availableAtForecastColumns at the given index. */ - com.google.protobuf.ByteString getTimeVariantPastAndFutureColumnsBytes(int index); + com.google.protobuf.ByteString getAvailableAtForecastColumnsBytes(int index); /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return Whether the period field is set. + * @return Whether the dataGranularity field is set. */ - boolean hasPeriod(); + boolean hasDataGranularity(); /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * * - * @return The period. + * @return The dataGranularity. */ - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period - getPeriod(); + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Granularity + getDataGranularity(); /** * * *
-   * Expected difference in time granularity between rows in the data. If it is
-   * not set, the period is inferred from data.
+   * Expected difference in time granularity between rows in the data.
    * 
* * - * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period period = 11; + * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity data_granularity = 22; * */ com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs - .PeriodOrBuilder - getPeriodOrBuilder(); - - /** - * - * - *
-   * The number of periods offset into the future as the start of the forecast
-   * window (the window of future values to predict, relative to the present.),
-   * where each period is one unit of granularity as defined by the `period`
-   * field above. Default to 0. Inclusive.
-   * 
- * - * int64 forecast_window_start = 12; - * - * @return The forecastWindowStart. - */ - long getForecastWindowStart(); + .GranularityOrBuilder + getDataGranularityOrBuilder(); /** * * *
-   * The number of periods offset into the future as the end of the forecast
-   * window (the window of future values to predict, relative to the present.),
-   * where each period is one unit of granularity as defined by the `period`
-   * field above. Inclusive.
+   * The amount of time into the future for which forecasted values for the
+   * target are returned. Expressed in number of units defined by the
+   * `data_granularity` field.
    * 
* - * int64 forecast_window_end = 13; + * int64 forecast_horizon = 23; * - * @return The forecastWindowEnd. + * @return The forecastHorizon. */ - long getForecastWindowEnd(); + long getForecastHorizon(); /** * * *
-   * The number of periods offset into the past to restrict past sequence, where
-   * each period is one unit of granularity as defined by the `period`. Default
-   * value 0 means that it lets algorithm to define the value. Inclusive.
+   * The amount of time into the past training and prediction data is used
+   * for model training and prediction respectively. Expressed in number of
+   * units defined by the `data_granularity` field.
    * 
* - * int64 past_horizon = 14; + * int64 context_window = 24; * - * @return The pastHorizon. + * @return The contextWindow. */ - long getPastHorizon(); + long getContextWindow(); /** * @@ -666,9 +655,9 @@ public interface AutoMlForecastingInputsOrBuilder *
    * Validation options for the data validation component. The available options
    * are:
-   *   "fail-pipeline" - default, will validate against the validation and
-   *                     fail the pipeline if it fails.
-   *   "ignore-validation" - ignore the results of the validation and continue
+   *   * "fail-pipeline" - default, will validate against the validation and
+   *      fail the pipeline if it fails.
+   *   * "ignore-validation" - ignore the results of the validation and continue
    * 
* * string validation_options = 17; @@ -682,9 +671,9 @@ public interface AutoMlForecastingInputsOrBuilder *
    * Validation options for the data validation component. The available options
    * are:
-   *   "fail-pipeline" - default, will validate against the validation and
-   *                     fail the pipeline if it fails.
-   *   "ignore-validation" - ignore the results of the validation and continue
+   *   * "fail-pipeline" - default, will validate against the validation and
+   *      fail the pipeline if it fails.
+   *   * "ignore-validation" - ignore the results of the validation and continue
    * 
* * string validation_options = 17; 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 5443dd4d6..2ab60c8fa 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 @@ -9785,6 +9785,22 @@ public AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObject } public static final int OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Required when optimization_objective is "maximize-precision-at-recall".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectiveRecallValue() { + return additionalOptimizationObjectiveConfigCase_ == 5; + } /** * * @@ -9806,6 +9822,22 @@ public float getOptimizationObjectiveRecallValue() { } public static final int OPTIMIZATION_OBJECTIVE_PRECISION_VALUE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Required when optimization_objective is "maximize-recall-at-precision".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectivePrecisionValue() { + return additionalOptimizationObjectiveConfigCase_ == 6; + } /** * * @@ -10898,6 +10930,21 @@ public Builder clearAdditionalOptimizationObjectiveConfig() { private int bitField0_; + /** + * + * + *
+     * Required when optimization_objective is "maximize-precision-at-recall".
+     * Must be between 0 and 1, inclusive.
+     * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + public boolean hasOptimizationObjectiveRecallValue() { + return additionalOptimizationObjectiveConfigCase_ == 5; + } /** * * @@ -10956,6 +11003,21 @@ public Builder clearOptimizationObjectiveRecallValue() { return this; } + /** + * + * + *
+     * Required when optimization_objective is "maximize-recall-at-precision".
+     * Must be between 0 and 1, inclusive.
+     * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + public boolean hasOptimizationObjectivePrecisionValue() { + return additionalOptimizationObjectiveConfigCase_ == 6; + } /** * * 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 d8d20ed05..9d231473e 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 @@ -23,6 +23,19 @@ public interface AutoMlTablesInputsOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Required when optimization_objective is "maximize-precision-at-recall".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_recall_value = 5; + * + * @return Whether the optimizationObjectiveRecallValue field is set. + */ + boolean hasOptimizationObjectiveRecallValue(); /** * * @@ -37,6 +50,19 @@ public interface AutoMlTablesInputsOrBuilder */ float getOptimizationObjectiveRecallValue(); + /** + * + * + *
+   * Required when optimization_objective is "maximize-recall-at-precision".
+   * Must be between 0 and 1, inclusive.
+   * 
+ * + * float optimization_objective_precision_value = 6; + * + * @return Whether the optimizationObjectivePrecisionValue field is set. + */ + boolean hasOptimizationObjectivePrecisionValue(); /** * * 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 2e422fc03..612becf55 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 @@ -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. @@ -43,9 +43,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-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 88d97cfcf..9ed339859 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 @@ -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,6 +18,7 @@ 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"; @@ -40,8 +41,8 @@ message Annotation { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1beta1.Annotation.payload]. The - // schema is defined as an - // [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + // schema is defined as an [OpenAPI 3.0.2 Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the // chosen schema must be consistent with the parent Dataset's @@ -58,7 +59,7 @@ message Annotation { // Output only. Timestamp when this Annotation was last updated. google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. string etag = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -79,7 +80,7 @@ message Annotation { // // * "aiplatform.googleapis.com/annotation_set_name": // optional, name of the UI's annotation set this Annotation belongs to. - // If not set the Annotation is not visible in the UI. + // If not set, the Annotation is not visible in the UI. // // * "aiplatform.googleapis.com/payload_schema": // output only, its value is the [payload_schema's][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri] 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 f303b0aa5..03d535d4f 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 @@ -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. @@ -47,7 +47,7 @@ message AnnotationSpec { // Output only. Timestamp when AnnotationSpec was last updated. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. string etag = 5 [(google.api.field_behavior) = OPTIONAL]; } 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 new file mode 100644 index 000000000..205faecee --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto @@ -0,0 +1,107 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// 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; + + // The title of the schema describing the metadata. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_title = 14; + + // The version of the schema in schema_name to use. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_version = 15; + + // Properties of the Artifact. + google.protobuf.Struct metadata = 16; + + // Description of the Artifact + string description = 17; +} 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 f763df636..ddb7c0ac2 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 @@ -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. @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; +import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -97,8 +98,8 @@ message BatchPredictionJob { // containing only `code` and `message` fields. GcsDestination gcs_destination = 2; - // The BigQuery project location where the output is to be written to. - // In the given project a new dataset is created with name + // The BigQuery project or dataset location where the output is to be + // written to. If project is provided, a new dataset is created with name // `prediction__` // where is made // BigQuery-dataset-name compatible (for example, most special characters @@ -118,9 +119,8 @@ message BatchPredictionJob { BigQueryDestination bigquery_destination = 3; } - // Required. The format in which AI Platform gives the predictions, must be one of the + // Required. The format in which Vertex AI gives the predictions, must be one of the // [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] - // // [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats]. string predictions_format = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -189,7 +189,7 @@ message BatchPredictionJob { BatchDedicatedResources dedicated_resources = 7; // Immutable. Parameters configuring the batch behavior. Currently only applicable when - // [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does + // [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does // the tuning itself). ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(google.api.field_behavior) = IMMUTABLE]; @@ -206,8 +206,8 @@ message BatchPredictionJob { // conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. // * `csv`: Generating explanations for CSV format is not supported. // - // If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be - // populated. + // If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. bool generate_explanation = 23; // Explanation configuration for this BatchPredictionJob. Can be 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 cc7881eff..9e49dab97 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 @@ -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/context.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto new file mode 100644 index 000000000..2b94566fb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto @@ -0,0 +1,92 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// 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" + } + ]; + + // The title of the schema describing the metadata. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_title = 13; + + // The version of the schema in schema_name to use. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_version = 14; + + // Properties of the Context. + google.protobuf.Struct metadata = 15; + + // Description of the Context + string description = 16; +} 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 f50e56ed7..e179e5ff3 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 @@ -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. @@ -93,6 +93,8 @@ message CustomJob { // Represents the spec of a CustomJob. message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. + // All worker pools except the first one are optional and can be skipped by + // providing an empty value. repeated WorkerPoolSpec worker_pool_specs = 1 [(google.api.field_behavior) = REQUIRED]; // Scheduling options for a CustomJob. @@ -100,8 +102,9 @@ message CustomJobSpec { // Specifies the service account for workload run-as account. // Users submitting jobs must have act-as permission on this run-as account. - // If unspecified, the AI Platform Custom Code Service Agent for the - // CustomJob's project is used. + // If unspecified, the [AI Platform Custom Code Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // for the CustomJob's project is used. string service_account = 4; // The full name of the Compute Engine @@ -114,7 +117,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, @@ -123,7 +128,7 @@ message CustomJobSpec { // [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's // baseOutputDirectory. // - // The following AI Platform environment variables will be passed to + // The following Vertex AI environment variables will be passed to // containers or python modules when this field is set: // // For CustomJob: @@ -138,6 +143,17 @@ message CustomJobSpec { // * AIP_CHECKPOINT_DIR = `//checkpoints/` // * AIP_TENSORBOARD_LOG_DIR = `//logs/` GcsDestination base_output_directory = 6; + + // Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob + // will upload Tensorboard logs. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string tensorboard = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Tensorboard" + } + ]; } // Represents the spec of a worker pool in a job. @@ -180,10 +196,12 @@ message ContainerSpec { // The spec of a Python packaged code. message PythonPackageSpec { - // Required. The URI of a container image in the Container Registry that will run the - // provided python package. AI Platform provides wide range of executor images - // with pre-installed packages to meet users' various use cases. Only one of - // the provided images can be set here. + // Required. The URI of a container image in Artifact Registry that will run the + // provided Python package. Vertex AI provides a wide range of executor + // images with pre-installed packages to meet users' various use cases. See + // the list of [pre-built containers for + // training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). + // You must use an image from this list. string executor_image_uri = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The Google Cloud Storage location of the Python package files which are 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 7a96eba49..0981483d7 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 @@ -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,6 +18,7 @@ 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"; @@ -62,7 +63,7 @@ message DataItem { // [metadata schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] dataItemSchemaUri field. google.protobuf.Value payload = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. string etag = 7 [(google.api.field_behavior) = OPTIONAL]; } 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 41a4cb5d7..6e3a208e1 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 @@ -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. @@ -134,13 +134,13 @@ message DataLabelingJob { // the EncryptionSpec of the Dataset they are exported to. EncryptionSpec encryption_spec = 20; - // Parameters that configure active learning pipeline. Active learning will - // label the data incrementally via several iterations. For every iteration, - // it will select a batch of data based on the sampling strategy. + // Parameters that configure the active learning pipeline. Active learning + // will label the data incrementally via several iterations. For every + // iteration, it will select a batch of data based on the sampling strategy. ActiveLearningConfig active_learning_config = 21; } -// Parameters that configure active learning pipeline. Active learning will +// Parameters that configure the active learning pipeline. Active learning will // label the data incrementally by several iterations. For every iteration, it // will select a batch of data based on the sampling strategy. message ActiveLearningConfig { @@ -192,7 +192,7 @@ message SampleConfig { int32 following_batch_sample_percentage = 3; } - // Field to chose sampling strategy. Sampling strategy will decide which data + // Field to choose sampling strategy. Sampling strategy will decide which data // should be selected for human labeling in every batch. SampleStrategy sample_strategy = 5; } 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 6a7e46890..244cf121b 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 @@ -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. @@ -104,12 +104,13 @@ message ImportDataConfig { // considered identical if their content bytes are identical (e.g. image bytes // or pdf bytes). // These labels will be overridden by Annotation labels specified inside index - // file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + // file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. map data_item_labels = 2; // Required. Points to a YAML file stored on Google Cloud Storage describing the import // format. Validation will be done against the schema. The schema is defined - // as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + // as an [OpenAPI 3.0.2 Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string import_schema_uri = 4 [(google.api.field_behavior) = REQUIRED]; } 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 17e9eb89d..7e3f83bcb 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 @@ -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. @@ -180,8 +180,7 @@ message UpdateDatasetRequest { Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. // Updatable fields: // // * `display_name` @@ -358,7 +357,6 @@ message ListDataItemsResponse { message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. // Format: - // // `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -375,7 +373,6 @@ message GetAnnotationSpecRequest { message ListAnnotationsRequest { // Required. The resource name of the DataItem to list Annotations from. // Format: - // // `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, 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 new file mode 100644 index 000000000..22bd38d33 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto @@ -0,0 +1,40 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +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"; + +// Points to a DeployedIndex. +message DeployedIndexRef { + // Immutable. A resource name of the IndexEndpoint. + string index_endpoint = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + } + ]; + + // Immutable. The ID of the DeployedIndex in the above IndexEndpoint. + string deployed_index_id = 2 [(google.api.field_behavior) = IMMUTABLE]; +} 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 4d2cddcd2..a33a167d2 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 @@ -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/encryption_spec.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/encryption_spec.proto index b2d9f3f22..d8fb9399b 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 @@ -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/endpoint.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 19f82c5f5..86d4eb198 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 @@ -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. @@ -21,6 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; @@ -108,7 +109,7 @@ message DeployedModel { // Output only. The ID of the DeployedModel. string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The name of the Model this is the deployment of. Note that the Model + // Required. The name of the Model that this is the deployment of. Note that the Model // may be in a different location than the DeployedModel's Endpoint. string model = 2 [ (google.api.field_behavior) = REQUIRED, @@ -130,9 +131,9 @@ message DeployedModel { // overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding - // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for - // this Model is not allowed. + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. ExplanationSpec explanation_spec = 9; // The service account that the DeployedModel's container runs as. Specify the 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 8d8284b6a..f9c5a4bca 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 @@ -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. @@ -192,7 +192,7 @@ message ListEndpointsResponse { // List of Endpoints in the requested page. repeated Endpoint endpoints = 1; - // A token to retrieve next page of results. + // A token to retrieve the next page of results. // Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page. string next_page_token = 2; } @@ -202,9 +202,7 @@ message UpdateEndpointRequest { // Required. The Endpoint which replaces the resource on the server. Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. - // See - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } 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 new file mode 100644 index 000000000..cbd33b061 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -0,0 +1,84 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/feature.proto"; +import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// 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 +// driver0 is an instance of an entity type driver. +message EntityType { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/EntityType" + pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}" + }; + + // Immutable. Name of the EntityType. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + // + // The last part entity_type is assigned by the client. The entity_type can be + // up to 64 characters long and can consist only of ASCII Latin letters A-Z + // and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The + // value will be unique given a featurestore. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Description of the EntityType. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when this EntityType was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this EntityType was most recently updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels with user-defined metadata to organize your EntityTypes. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information on and examples of labels. + // No more than 64 user labels can be associated with one EntityType (System + // labels are excluded)." + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default monitoring configuration for all Features under this + // EntityType. + // + // If this is populated with + // [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot + // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is + // disabled. + FeaturestoreMonitoringConfig monitoring_config = 8 [(google.api.field_behavior) = OPTIONAL]; +} 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 2f96fc1bc..a110cf47f 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 @@ -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/event.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto new file mode 100644 index 000000000..5b7d27500 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto @@ -0,0 +1,78 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// An edge describing the relationship between an Artifact and an Execution in +// a lineage graph. +message Event { + // Describes whether an Event's Artifact is the Execution's input or output. + enum Type { + // Unspecified whether input or output of the Execution. + TYPE_UNSPECIFIED = 0; + + // An input of the Execution. + INPUT = 1; + + // An output of the Execution. + OUTPUT = 2; + } + + // Required. The relative resource name of the Artifact in the Event. + string artifact = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + } + ]; + + // Output only. The relative resource name of the Execution in the Event. + string execution = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + } + ]; + + // Output only. Time the Event occurred. + google.protobuf.Timestamp event_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The type of the Event. + Type type = 4 [(google.api.field_behavior) = REQUIRED]; + + // The labels with user-defined metadata to annotate Events. + // + // 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 Event (System + // labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 5; +} 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 new file mode 100644 index 000000000..4f83cce1e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto @@ -0,0 +1,107 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// 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; + } + + // 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]; + + // The title of the schema describing the metadata. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_title = 13; + + // The version of the schema in `schema_title` to use. + // + // Schema title and version is expected to be registered in earlier Create + // Schema calls. And both are used together as unique identifiers to identify + // schemas within the local metadata store. + string schema_version = 14; + + // Properties of the Execution. + google.protobuf.Struct metadata = 15; + + // Description of the Execution + string description = 16; +} 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 a75ee628f..7cb2d9b13 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 @@ -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,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/explanation_metadata.proto"; +import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/protobuf/struct.proto"; import "google/api/annotations.proto"; @@ -151,7 +152,7 @@ message Attribution { // increasing // [step_count][google.cloud.aiplatform.v1beta1.XraiAttribution.step_count] might reduce the error. // - // See [this introduction](/ai-platform-unified/docs/explainable-ai/overview) + // See [this introduction](/vertex-ai/docs/explainable-ai/overview) // for more information. double approximation_error = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -283,9 +284,8 @@ message SmoothGradConfig { // This is a single float value and will be used to add noise to all the // features. Use this field when all features are normalized to have the // same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where - // features are normalized to have 0-mean and 1-variance. For more details - // about normalization: - // https://tinyurl.com/dgc-normalization. + // features are normalized to have 0-mean and 1-variance. Learn more about + // [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). // // For best results the recommended value is about 10% - 20% of the standard // deviation of the input feature. Refer to section 3.2 of the SmoothGrad 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 985e4478c..5d725fb2a 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 @@ -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. @@ -30,7 +30,7 @@ message ExplanationMetadata { // Metadata of the input of a feature. // // Fields other than [InputMetadata.input_baselines][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.input_baselines] are applicable only - // for Models that are using AI Platform-provided images for Tensorflow. + // for Models that are using Vertex AI-provided images for Tensorflow. message InputMetadata { // Domain details of the input feature value. Provides numeric information // about the feature, such as its range (min, max). If the feature has been @@ -170,7 +170,7 @@ message ExplanationMetadata { float clip_percent_upperbound = 4; // Excludes attributions below the specified percentile, from the - // highlighted areas. Defaults to 35. + // highlighted areas. Defaults to 62. float clip_percent_lowerbound = 5; // How the original image is displayed in the visualization. @@ -243,12 +243,12 @@ message ExplanationMetadata { // Baseline inputs for this feature. // - // If no baseline is specified, AI Platform chooses the baseline for this - // feature. If multiple baselines are specified, AI Platform returns the + // If no baseline is specified, Vertex AI chooses the baseline for this + // feature. If multiple baselines are specified, Vertex AI returns the // average attributions across them in // [Attributions.baseline_attribution][]. // - // For AI Platform provided Tensorflow images (both 1.x and 2.x), the shape + // For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape // of each baseline must match the shape of the input tensor. If a scalar is // provided, we broadcast to the same shape as the input tensor. // @@ -262,7 +262,7 @@ message ExplanationMetadata { repeated google.protobuf.Value input_baselines = 1; // Name of the input tensor for this feature. Required and is only - // applicable to AI Platform provided images for Tensorflow. + // applicable to Vertex AI-provided images for Tensorflow. string input_tensor_name = 2; // Defines how the feature is encoded into the input tensor. Defaults to @@ -306,7 +306,7 @@ message ExplanationMetadata { // A list of baselines for the encoded tensor. // // The shape of each baseline should match the shape of the encoded tensor. - // If a scalar is provided, AI Platform broadcast to the same shape as the + // If a scalar is provided, Vertex AI broadcasts to the same shape as the // encoded tensor. repeated google.protobuf.Value encoded_baselines = 10; @@ -339,7 +339,7 @@ message ExplanationMetadata { // outputs by their values. // // The shape of the value must be an n-dimensional array of strings. The - // number of dimentions must match that of the outputs to be explained. + // number of dimensions must match that of the outputs to be explained. // The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the // mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. google.protobuf.Value index_display_name_mapping = 1; @@ -364,9 +364,9 @@ message ExplanationMetadata { // // An empty InputMetadata is valid. It describes a text feature which has the // name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - // of the empty feature is chosen by AI Platform. + // of the empty feature is chosen by Vertex AI. // - // For AI Platform provided Tensorflow images, the key can be any friendly + // For Vertex AI-provided Tensorflow images, the key can be any friendly // name of the feature. Once specified, // [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by // this key (if not grouped with another feature). @@ -377,8 +377,8 @@ message ExplanationMetadata { // Required. Map from output names to output metadata. // - // For AI Platform provided Tensorflow images, keys can be any string user - // defines. + // For Vertex AI-provided Tensorflow images, keys can be any user defined + // string that consists of any UTF-8 characters. // // For custom images, keys are the name of the output field in the prediction // to be explained. @@ -388,9 +388,9 @@ message ExplanationMetadata { // Points to a YAML file stored on Google Cloud Storage describing the format // of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML tabular Models always have this field populated by AI Platform. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML tabular Models always have this field populated by Vertex AI. // Note: The URI given on output may be different, including the URI scheme, // than the one given on input. The output URI will point to a location where // the user only has a read access. 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 new file mode 100644 index 000000000..f5a275c9e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto @@ -0,0 +1,131 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; +import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// Feature Metadata information that describes an attribute of an entity type. +// For example, apple is an entity type, and color is a feature that describes +// apple. +message Feature { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Feature" + pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}" + }; + + // An enum representing the value type of a feature. + enum ValueType { + // The value type is unspecified. + VALUE_TYPE_UNSPECIFIED = 0; + + // Used for Feature that is a boolean. + BOOL = 1; + + // Used for Feature that is a list of boolean. + BOOL_ARRAY = 2; + + // Used for Feature that is double. + DOUBLE = 3; + + // Used for Feature that is a list of double. + DOUBLE_ARRAY = 4; + + // Used for Feature that is INT64. + INT64 = 9; + + // Used for Feature that is a list of INT64. + INT64_ARRAY = 10; + + // Used for Feature that is string. + STRING = 11; + + // Used for Feature that is a list of String. + STRING_ARRAY = 12; + + // Used for Feature that is bytes. + BYTES = 13; + } + + // Immutable. Name of the Feature. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + // + // The last part feature is assigned by the client. The feature can be up to + // 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, + // underscore(_), and ASCII digits 0-9 starting with a letter. The value will + // be unique given an entity type. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Description of the Feature. + string description = 2; + + // Required. Immutable. Type of Feature value. + ValueType value_type = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Timestamp when this EntityType was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this EntityType was most recently updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels with user-defined metadata to organize your Features. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information on and examples of labels. + // No more than 64 user labels can be associated with one Feature (System + // labels are excluded)." + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Used to perform a consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 7; + + // Optional. The custom monitoring configuration for this Feature, if not set, use the + // monitoring_config defined for the EntityType this Feature belongs to. + // + // If this is populated with + // [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis + // monitoring is disabled; if + // [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot + // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring + // config is same as the EntityType's this Feature belongs to. + FeaturestoreMonitoringConfig monitoring_config = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A list of historical [Snapshot + // Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis] + // stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] + // descending. + repeated FeatureStatsAnomaly monitoring_stats = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 new file mode 100644 index 000000000..4dd851124 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto @@ -0,0 +1,84 @@ +// 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.v1beta1; + +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// 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 +// that current stats belongs to, e.g. prediction traffic is bucketed into +// prediction datasets by time window. If the Dataset is not defined by time +// window, start_time = end_time. Timestamp of the stats and anomalies always +// refers to end_time. Raw stats and anomalies are stored in stats_uri or +// anomaly_uri in the tensorflow defined protos. Field data_stats contains +// almost identical information with the raw stats in Vertex AI +// defined proto, for UI to display. +message FeatureStatsAnomaly { + // Feature importance score, only populated when cross-feature monitoring is + // enabled. For now only used to represent feature attribution score within + // range [0, 1] for + // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and + // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. + double score = 1; + + // Path of the stats file for current feature values in Cloud Storage bucket. + // Format: gs:////stats. + // Example: gs://monitoring_bucket/feature_name/stats. + // Stats are stored as binary format with Protobuf message + // [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto). + string stats_uri = 3; + + // Path of the anomaly file for current feature values in Cloud Storage + // bucket. + // Format: gs:////anomalies. + // Example: gs://monitoring_bucket/feature_name/anomalies. + // Stats are stored as binary format with Protobuf message + // Anoamlies are stored as binary format with Protobuf message + // [tensorflow.metadata.v0.AnomalyInfo] + // (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto). + string anomaly_uri = 4; + + // Deviation from the current stats to baseline stats. + // 1. For categorical feature, the distribution distance is calculated by + // L-inifinity norm. + // 2. For numerical feature, the distribution distance is calculated by + // Jensen–Shannon divergence. + double distribution_deviation = 5; + + // This is the threshold used when detecting anomalies. + // The threshold can be changed by user, so this one might be different from + // [ThresholdConfig.value][google.cloud.aiplatform.v1beta1.ThresholdConfig.value]. + double anomaly_detection_threshold = 9; + + // The start timestamp of window where stats were generated. + // For objectives where time window doesn't make sense (e.g. Featurestore + // Snapshot Monitoring), start_time is only used to indicate the monitoring + // intervals, so it always equals to (end_time - monitoring_interval). + google.protobuf.Timestamp start_time = 7; + + // The end timestamp of window where stats were generated. + // For objectives where time window doesn't make sense (e.g. Featurestore + // Snapshot Monitoring), end_time indicates the timestamp of the data used to + // generate stats (e.g. timestamp we take snapshots for feature values). + google.protobuf.Timestamp end_time = 8; +} 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 new file mode 100644 index 000000000..935e2c2dc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto @@ -0,0 +1,42 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +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"; + +// Matcher for Features of an EntityType by Feature ID. +message IdMatcher { + // Required. The following are accepted as `ids`: + // + // * A single-element list containing only `*`, which selects all Features + // in the target EntityType, or + // * A list containing only Feature IDs, which selects only Features with + // those IDs in the target EntityType. + repeated string ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Selector for Features of an EntityType. +message FeatureSelector { + // Required. Matches Features based on ID. + IdMatcher id_matcher = 1 [(google.api.field_behavior) = REQUIRED]; +} 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 new file mode 100644 index 000000000..c3f527ee5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -0,0 +1,98 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// Featurestore configuration information on how the Featurestore is configured. +message Featurestore { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Featurestore" + pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}" + }; + + // OnlineServingConfig specifies the details for provisioning online serving + // resources. + message OnlineServingConfig { + // Required. The number of nodes for each cluster. The number of nodes will not + // scale automatically but can be scaled manually by providing different + // values when updating. + int32 fixed_node_count = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Possible states a Featurestore can have. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // State when the Featurestore configuration is not being updated and the + // fields reflect the current configuration of the Featurestore. The + // Featurestore is usable in this state. + STABLE = 1; + + // State when the Featurestore configuration is being updated and the fields + // reflect the updated configuration of the Featurestore, not the current + // one. For example, `online_serving_config.fixed_node_count` can take + // minutes to update. While the update is in progress, the Featurestore + // will be in the UPDATING state and the value of `fixed_node_count` will be + // the updated value. Until the update completes, the actual number of nodes + // can still be the original value of `fixed_node_count`. The Featurestore + // is still usable in this state. + UPDATING = 2; + } + + // Output only. Name of the Featurestore. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Featurestore was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Featurestore was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels with user-defined metadata to organize your Featurestore. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information on and examples of labels. + // No more than 64 user labels can be associated with one Featurestore(System + // labels are excluded)." + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Config for online serving resources. + OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED]; + + // Output only. State of the featurestore. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 new file mode 100644 index 000000000..12c82ad9b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -0,0 +1,54 @@ +// 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.v1beta1; + +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +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"; + +// Configuration of how features in Featurestore are monitored. +message FeaturestoreMonitoringConfig { + // Configuration of the Featurestore's Snapshot Analysis Based Monitoring. + // This type of analysis generates statistics for each Feature based on a + // snapshot of the latest feature value of each entities every + // monitoring_interval. + message SnapshotAnalysis { + // The monitoring schedule for snapshot analysis. + // For EntityType-level config: + // unset / disabled = true indicates disabled by + // default for Features under it; otherwise by default enable snapshot + // analysis monitoring with monitoring_interval for Features under it. + // Feature-level config: + // disabled = true indicates disabled regardless of the EntityType-level + // config; unset monitoring_interval indicates going with EntityType-level + // config; otherwise run snapshot analysis monitoring with + // monitoring_interval regardless of the EntityType-level config. + // Explicitly Disable the snapshot analysis based monitoring. + bool disabled = 1; + + // Configuration of the snapshot analysis based monitoring pipeline + // running interval. The value is rolled up to full day. + google.protobuf.Duration monitoring_interval = 2; + } + + // The config for Snapshot Analysis Based Feature Monitoring. + SnapshotAnalysis snapshot_analysis = 1; +} 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 new file mode 100644 index 000000000..c0b714417 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto @@ -0,0 +1,219 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; +import "google/cloud/aiplatform/v1beta1/types.proto"; +import "google/protobuf/timestamp.proto"; + +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"; + +// A service for serving online feature values. +service FeaturestoreOnlineServingService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Reads Feature values of a specific entity of an EntityType. For reading + // feature values of multiple entities of an EntityType, please use + // StreamingReadFeatureValues. + rpc ReadFeatureValues(ReadFeatureValuesRequest) returns (ReadFeatureValuesResponse) { + option (google.api.http) = { + post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + } + + // Reads Feature values for multiple entities. Depending on their size, data + // for different entities may be broken + // up across multiple responses. + rpc StreamingReadFeatureValues(StreamingReadFeatureValuesRequest) returns (stream ReadFeatureValuesResponse) { + option (google.api.http) = { + post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + } +} + +// Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. +message ReadFeatureValuesRequest { + // Required. The resource name of the EntityType for the entity being read. + // Value format: `projects/{project}/locations/{location}/featurestores/ + // {featurestore}/entityTypes/{entityType}`. For example, + // for a machine learning model predicting user clicks on a website, an + // EntityType ID could be "user". + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Required. ID for a specific entity. For example, + // for a machine learning model predicting user clicks on a website, an entity + // ID could be "user_123". + string entity_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Selector choosing Features of the target EntityType. + FeatureSelector feature_selector = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. +message ReadFeatureValuesResponse { + // Metadata for requested Features. + message FeatureDescriptor { + // Feature ID. + string id = 1; + } + + // Response header with metadata for the requested + // [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.entity_type] and Features. + message Header { + // The resource name of the EntityType from the + // [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format: + // `projects/{project}/locations/{location}/featurestores/ + // {featurestore}/entityTypes/{entityType}`. + string entity_type = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + }]; + + // List of Feature metadata corresponding to each piece of + // [ReadFeatureValuesResponse.data][]. + repeated FeatureDescriptor feature_descriptors = 2; + } + + // Entity view with Feature values. + message EntityView { + // Container to hold value(s), successive in time, for one Feature from the + // request. + message Data { + oneof data { + // Feature value if a single value is requested. + FeatureValue value = 1; + + // Feature values list if values, successive in time, are requested. + // If the requested number of values is greater than the number of + // existing Feature values, nonexistent values are omitted instead of + // being returned as empty. + FeatureValueList values = 2; + } + } + + // ID of the requested entity. + string entity_id = 1; + + // Each piece of data holds the k + // requested values for one requested Feature. If no values + // for the requested Feature exist, the corresponding cell will be empty. + // This has the same size and is in the same order as the features from the + // header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header]. + repeated Data data = 2; + } + + // Response header. + Header header = 1; + + // Entity view with Feature values. This may be the entity in the + // Featurestore if values for all Features were requested, or a projection + // of the entity in the Featurestore if values for only some Features were + // requested. + EntityView entity_view = 2; +} + +// Request message for +// [FeaturestoreOnlineServingService.StreamingFeatureValuesRead][]. +message StreamingReadFeatureValuesRequest { + // Required. The resource name of the entities' type. + // Value format: `projects/{project}/locations/{location}/featurestores/ + // {featurestore}/entityTypes/{entityType}`. For example, + // for a machine learning model predicting user clicks on a website, an + // EntityType ID could be "user". + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // 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". + repeated string entity_ids = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Selector choosing Features of the target EntityType. + FeatureSelector feature_selector = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Value for a feature. +// NEXT ID: 15 +message FeatureValue { + // Metadata of feature value. + message Metadata { + // Feature generation timestamp. Typically, it is provided by user at + // feature ingestion time. If not, feature store + // will use the system timestamp when the data is ingested into feature + // store. + google.protobuf.Timestamp generate_time = 1; + } + + // Value for the feature. + oneof value { + // Bool type feature value. + bool bool_value = 1; + + // Double type feature value. + double double_value = 2; + + // Int64 feature value. + int64 int64_value = 5; + + // String feature value. + string string_value = 6; + + // A list of bool type feature value. + BoolArray bool_array_value = 7; + + // A list of double type feature value. + DoubleArray double_array_value = 8; + + // A list of int64 type feature value. + Int64Array int64_array_value = 11; + + // A list of string type feature value. + StringArray string_array_value = 12; + + // Bytes feature value. + bytes bytes_value = 13; + } + + // Output only. Metadata of feature value. + Metadata metadata = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Container for list of values. +message FeatureValueList { + // A list of feature values. All of them should be the same data type. + repeated FeatureValue values = 1; +} 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 new file mode 100644 index 000000000..6ab91fe04 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -0,0 +1,1167 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/entity_type.proto"; +import "google/cloud/aiplatform/v1beta1/feature.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; +import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; +import "google/cloud/aiplatform/v1beta1/featurestore.proto"; +import "google/cloud/aiplatform/v1beta1/io.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +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"; + +// The service that handles CRUD and List for resources for Featurestore. +service FeaturestoreService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new Featurestore in a given project and location. + rpc CreateFeaturestore(CreateFeaturestoreRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/featurestores" + body: "featurestore" + }; + option (google.api.method_signature) = "parent,featurestore"; + option (google.longrunning.operation_info) = { + response_type: "Featurestore" + metadata_type: "CreateFeaturestoreOperationMetadata" + }; + } + + // Gets details of a single Featurestore. + rpc GetFeaturestore(GetFeaturestoreRequest) returns (Featurestore) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/featurestores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Featurestores in a given project and location. + rpc ListFeaturestores(ListFeaturestoresRequest) returns (ListFeaturestoresResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/featurestores" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single Featurestore. + rpc UpdateFeaturestore(UpdateFeaturestoreRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{featurestore.name=projects/*/locations/*/featurestores/*}" + body: "featurestore" + }; + option (google.api.method_signature) = "featurestore,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Featurestore" + metadata_type: "UpdateFeaturestoreOperationMetadata" + }; + } + + // Deletes a single Featurestore. The Featurestore must not contain any + // EntityTypes or `force` must be set to true for the request to succeed. + rpc DeleteFeaturestore(DeleteFeaturestoreRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/featurestores/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a new EntityType in a given Featurestore. + rpc CreateEntityType(CreateEntityTypeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes" + body: "entity_type" + }; + option (google.api.method_signature) = "parent,entity_type"; + option (google.longrunning.operation_info) = { + response_type: "EntityType" + metadata_type: "CreateEntityTypeOperationMetadata" + }; + } + + // Gets details of a single EntityType. + rpc GetEntityType(GetEntityTypeRequest) returns (EntityType) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists EntityTypes in a given Featurestore. + rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single EntityType. + rpc UpdateEntityType(UpdateEntityTypeRequest) returns (EntityType) { + option (google.api.http) = { + patch: "/v1beta1/{entity_type.name=projects/*/locations/*/featurestores/*/entityTypes/*}" + body: "entity_type" + }; + option (google.api.method_signature) = "entity_type,update_mask"; + } + + // Deletes a single EntityType. The EntityType must not have any Features + // or `force` must be set to true for the request to succeed. + rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a new Feature in a given EntityType. + rpc CreateFeature(CreateFeatureRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features" + body: "feature" + }; + option (google.api.method_signature) = "parent,feature"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "CreateFeatureOperationMetadata" + }; + } + + // Creates a batch of Features in a given EntityType. + rpc BatchCreateFeatures(BatchCreateFeaturesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + option (google.longrunning.operation_info) = { + response_type: "BatchCreateFeaturesResponse" + metadata_type: "BatchCreateFeaturesOperationMetadata" + }; + } + + // Gets details of a single Feature. + rpc GetFeature(GetFeatureRequest) returns (Feature) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Features in a given EntityType. + rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single Feature. + rpc UpdateFeature(UpdateFeatureRequest) returns (Feature) { + option (google.api.http) = { + patch: "/v1beta1/{feature.name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}" + body: "feature" + }; + option (google.api.method_signature) = "feature,update_mask"; + } + + // Deletes a single Feature. + rpc DeleteFeature(DeleteFeatureRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Imports Feature values into the Featurestore from a source storage. + // + // The progress of the import is tracked by the returned operation. The + // imported features are guaranteed to be visible to subsequent read + // operations after the operation is marked as successfully done. + // + // If an import operation fails, the Feature values returned from + // reads and exports may be inconsistent. If consistency is + // required, the caller must retry the same import request again and wait till + // the new operation returned is marked as successfully done. + // + // There are also scenarios where the caller can cause inconsistency. + // + // - Source data for import contains multiple distinct Feature values for + // the same entity ID and timestamp. + // - Source is modified during an import. This includes adding, updating, or + // removing source data and/or metadata. Examples of updating metadata + // include but are not limited to changing storage location, storage class, + // or retention policy. + // - Online serving cluster is under-provisioned. + rpc ImportFeatureValues(ImportFeatureValuesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:importFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + option (google.longrunning.operation_info) = { + response_type: "ImportFeatureValuesResponse" + metadata_type: "ImportFeatureValuesOperationMetadata" + }; + } + + // Batch reads Feature values from a Featurestore. + // + // This API enables batch reading Feature values, where each read + // instance in the batch may read Feature values of entities from one or + // more EntityTypes. Point-in-time correctness is guaranteed for Feature + // values of each read instance as of each instance's read timestamp. + rpc BatchReadFeatureValues(BatchReadFeatureValuesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{featurestore=projects/*/locations/*/featurestores/*}:batchReadFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "featurestore"; + option (google.longrunning.operation_info) = { + response_type: "BatchReadFeatureValuesResponse" + metadata_type: "BatchReadFeatureValuesOperationMetadata" + }; + } + + // Exports Feature values from all the entities of a target EntityType. + rpc ExportFeatureValues(ExportFeatureValuesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:exportFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + option (google.longrunning.operation_info) = { + response_type: "ExportFeatureValuesResponse" + metadata_type: "ExportFeatureValuesOperationMetadata" + }; + } + + // Searches Features matching a query in a given project. + rpc SearchFeatures(SearchFeaturesRequest) returns (SearchFeaturesResponse) { + option (google.api.http) = { + get: "/v1beta1/{location=projects/*/locations/*}/featurestores:searchFeatures" + }; + option (google.api.method_signature) = "location"; + } +} + +// Request message for [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore]. +message CreateFeaturestoreRequest { + // Required. The resource name of the Location to create Featurestores. + // Format: + // `projects/{project}/locations/{location}'` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Featurestore" + } + ]; + + // Required. The Featurestore to create. + Featurestore featurestore = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for this Featurestore, which will become the final component + // of the Featurestore's resource name. + // + // This value may be up to 60 characters, and valid characters are + // `[a-z0-9_]`. The first character cannot be a number. + // + // The value must be unique within the project and location. + string featurestore_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore]. +message GetFeaturestoreRequest { + // Required. The name of the Featurestore resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Featurestore" + } + ]; +} + +// Request message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. +message ListFeaturestoresRequest { + // Required. The resource name of the Location to list Featurestores. + // Format: + // `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Featurestore" + } + ]; + + // Lists the featurestores that match the filter expression. The following + // fields are supported: + // + // * `create_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must + // be + // in RFC 3339 format. + // * `update_time`: Supports =, !=, <, >, <=, and >= comparisons. Values must + // be + // in RFC 3339 format. + // * `online_serving_config.fixed_node_count`: Supports =, !=, <, >, <=, + // and >= comparisons. + // * `labels`: Supports key-value equality and key presence. + // + // Examples: + // + // * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + // Featurestores created or updated after 2020-01-01. + // * `labels.env = "prod"` + // Featurestores with label "env" set to "prod". + string filter = 2; + + // The maximum number of Featurestores to return. The service may return fewer + // than this value. If unspecified, at most 100 Featurestores will be + // returned. The maximum value is 100; any value greater than 100 will be + // coerced to 100. + int32 page_size = 3; + + // A page token, received from a previous + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must + // match the call that provided the page token. + string page_token = 4; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported Fields: + // + // * `create_time` + // * `update_time` + // * `online_serving_config.fixed_node_count` + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. +message ListFeaturestoresResponse { + // The Featurestores matching the request. + repeated Featurestore featurestores = 1; + + // A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to + // retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore]. +message UpdateFeaturestoreRequest { + // Required. The Featurestore's `name` field is used to identify the Featurestore to be + // updated. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}` + Featurestore featurestore = 1 [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // Featurestore resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then only the non-empty fields present in the + // request will be overwritten. Set the update_mask to `*` to override all + // fields. + // + // Updatable fields: + // + // * `labels` + // * `online_serving_config.fixed_node_count` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore]. +message DeleteFeaturestoreRequest { + // Required. The name of the Featurestore to be deleted. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Featurestore" + } + ]; + + // If set to true, any EntityTypes and Features for this Featurestore will + // also be deleted. (Otherwise, the request will only work if the Featurestore + // has no EntityTypes.) + bool force = 2; +} + +// Request message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. +message ImportFeatureValuesRequest { + // Defines the Feature value(s) to import. + message FeatureSpec { + // Required. ID of the Feature to import values of. This Feature must exist in the + // target EntityType, or the request will fail. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Source column to get the Feature values from. If not set, uses the column + // with the same name as the Feature ID. + string source_field = 2; + } + + // Details about the source data, including the location of the storage and + // the format. + oneof source { + AvroSource avro_source = 2; + + BigQuerySource bigquery_source = 3; + + CsvSource csv_source = 4; + } + + // Source of Feature timestamp for all Feature values of each entity. + // Timestamps must be millisecond-aligned. + oneof feature_time_source { + // Source column that holds the Feature timestamp for all Feature + // values in each entity. + string feature_time_field = 6; + + // Single Feature timestamp for all entities being imported. The + // timestamp must not have higher than millisecond precision. + google.protobuf.Timestamp feature_time = 7; + } + + // Required. The resource name of the EntityType grouping the Features for which values + // are being imported. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Source column that holds entity IDs. If not provided, entity IDs are + // extracted from the column named `entity_id`. + string entity_id_field = 5; + + // Required. Specifications defining which Feature values to import from the entity. The + // request fails if no feature_specs are provided, and having multiple + // feature_specs for one Feature is not allowed. + repeated FeatureSpec feature_specs = 8 [(google.api.field_behavior) = REQUIRED]; + + // If set, data will not be imported for online serving. This + // is typically used for backfilling, where Feature generation timestamps are + // not in the timestamp range needed for online serving. + bool disable_online_serving = 9; + + // Specifies the number of workers that are used to write data to the + // Featurestore. Consider the online serving capacity that you require to + // achieve the desired import throughput without interfering with online + // serving. The value must be positive, and less than or equal to 100. + // If not set, defaults to using 1 worker. The low count ensures minimal + // impact on online serving performance. + int32 worker_count = 11; +} + +// Response message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. +message ImportFeatureValuesResponse { + // Number of entities that have been imported by the operation. + int64 imported_entity_count = 1; + + // Number of Feature values that have been imported by the operation. + int64 imported_feature_value_count = 2; + + // The number of rows in input source that weren't imported due to either + // * Not having any featureValues. + // * Having a null entityId. + // * Having a null timestamp. + // * Not being parsable (applicable for CSV sources). + int64 invalid_row_count = 6; +} + +// Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. +// (- Next Id: 6 -) +message BatchReadFeatureValuesRequest { + // Selects Features of an EntityType to read values of and specifies read + // settings. + message EntityTypeSpec { + // 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]; + + // Required. Selectors choosing which Feature values to read from the EntityType. + FeatureSelector feature_selector = 2 [(google.api.field_behavior) = REQUIRED]; + + // Per-Feature settings for the batch read. + repeated DestinationFeatureSetting settings = 3; + } + + oneof read_option { + // 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`. + CsvSource csv_read_instances = 3; + } + + // 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) = { + type: "aiplatform.googleapis.com/Featurestore" + } + ]; + + // Required. Specifies output location and format. + FeatureValueDestination destination = 4 [(google.api.field_behavior) = REQUIRED]; + + // 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 + // [BatchReadFeatureValuesRequest.request][] . + repeated EntityTypeSpec entity_type_specs = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. +message ExportFeatureValuesRequest { + // Describes exporting Feature values as of the snapshot timestamp. + message SnapshotExport { + // Exports Feature values as of this timestamp. If not set, + // retrieve values as of now. Timestamp, if present, must not have higher + // than millisecond precision. + google.protobuf.Timestamp snapshot_time = 1; + } + + oneof mode { + // Exports Feature values of all entities of the EntityType as of a snapshot + // time. + SnapshotExport snapshot_export = 3; + } + + // Required. The resource name of the EntityType from which to export Feature values. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Required. Specifies destination location and format. + FeatureValueDestination destination = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Selects Features to export values of. + FeatureSelector feature_selector = 5 [(google.api.field_behavior) = REQUIRED]; + + // Per-Feature export settings. + repeated DestinationFeatureSetting settings = 6; +} + +message DestinationFeatureSetting { + // Required. The ID of the Feature to apply the setting to. + string feature_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Specify the field name in the export destination. If not specified, + // Feature ID is used. + string destination_field = 2; +} + +// A destination location for Feature values and format. +message FeatureValueDestination { + oneof destination { + // Output in BigQuery format. + // [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in + // [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table. + BigQueryDestination bigquery_destination = 1; + + // Output in TFRecord format. + // + // Below are the mapping from Feature value type + // in Featurestore to Feature value type in TFRecord: + // + // Value type in Featurestore | Value type in TFRecord + // DOUBLE, DOUBLE_ARRAY | FLOAT_LIST + // INT64, INT64_ARRAY | INT64_LIST + // STRING, STRING_ARRAY, BYTES | BYTES_LIST + // true -> byte_string("true"), false -> byte_string("false") + // BOOL, BOOL_ARRAY (true, false) | BYTES_LIST + TFRecordDestination tfrecord_destination = 2; + + // Output in CSV format. Array Feature value types are not allowed in CSV + // format. + CsvDestination csv_destination = 3; + } +} + +// Response message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. +message ExportFeatureValuesResponse { + +} + +// Response message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. +message BatchReadFeatureValuesResponse { + +} + +// Request message for [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType]. +message CreateEntityTypeRequest { + // Required. The resource name of the Featurestore to create EntityTypes. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Featurestore" + } + ]; + + // The EntityType to create. + EntityType entity_type = 2; + + // Required. The ID to use for the EntityType, which will become the final component of + // the EntityType's resource name. + // + // This value may be up to 60 characters, and valid characters are + // `[a-z0-9_]`. The first character cannot be a number. + // + // The value must be unique within a featurestore. + string entity_type_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType]. +message GetEntityTypeRequest { + // Required. The name of the EntityType resource. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; +} + +// Request message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. +message ListEntityTypesRequest { + // Required. The resource name of the Featurestore to list EntityTypes. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Lists the EntityTypes that match the filter expression. The following + // filters are supported: + // + // * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + // be in RFC 3339 format. + // * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + // be in RFC 3339 format. + // * `labels`: Supports key-value equality as well as key presence. + // + // Examples: + // + // * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + // update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created + // or updated after 2020-01-31T15:30:00.000000Z. + // * `labels.active = yes AND labels.env = prod` --> EntityTypes having both + // (active: yes) and (env: prod) labels. + // * `labels.env: *` --> Any EntityType which has a label with 'env' as the + // key. + string filter = 2; + + // The maximum number of EntityTypes to return. The service may return fewer + // than this value. If unspecified, at most 1000 EntityTypes will be returned. + // The maximum value is 1000; any value greater than 1000 will be coerced to + // 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must + // match the call that provided the page token. + string page_token = 4; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // + // Supported fields: + // + // * `entity_type_id` + // * `create_time` + // * `update_time` + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. +message ListEntityTypesResponse { + // The EntityTypes matching the request. + repeated EntityType entity_types = 1; + + // A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to + // retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType]. +message UpdateEntityTypeRequest { + // Required. The EntityType's `name` field is used to identify the EntityType to be + // updated. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + EntityType entity_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // EntityType resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then only the non-empty fields present in the + // request will be overwritten. Set the update_mask to `*` to override all + // fields. + // + // Updatable fields: + // + // * `description` + // * `labels` + // * `monitoring_config.snapshot_analysis.disabled` + // * `monitoring_config.snapshot_analysis.monitoring_interval` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [FeaturestoreService.DeleteEntityTypes][]. +message DeleteEntityTypeRequest { + // Required. The name of the EntityType to be deleted. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // If set to true, any Features for this EntityType will also be deleted. + // (Otherwise, the request will only work if the EntityType has no Features.) + bool force = 2; +} + +// Request message for [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature]. +message CreateFeatureRequest { + // Required. The resource name of the EntityType to create a Feature. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Required. The Feature to create. + Feature feature = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the Feature, which will become the final component of + // the Feature's resource name. + // + // This value may be up to 60 characters, and valid characters are + // `[a-z0-9_]`. The first character cannot be a number. + // + // The value must be unique within an EntityType. + string feature_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. +message BatchCreateFeaturesRequest { + // Required. The resource name of the EntityType to create the batch of Features under. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Required. The request message specifying the Features to create. All Features must be + // created under the same parent EntityType. The `parent` field in each child + // request message can be omitted. If `parent` is set in a child request, then + // the value must match the `parent` value in this request message. + repeated CreateFeatureRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. +message BatchCreateFeaturesResponse { + // The Features created. + repeated Feature features = 1; +} + +// Request message for [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature]. +message GetFeatureRequest { + // Required. The name of the Feature resource. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Feature" + } + ]; +} + +// Request message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. +message ListFeaturesRequest { + // Required. The resource name of the Location to list Features. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Feature" + } + ]; + + // Lists the Features that match the filter expression. The following + // filters are supported: + // + // * `value_type`: Supports = and != comparisons. + // * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + // be in RFC 3339 format. + // * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + // be in RFC 3339 format. + // * `labels`: Supports key-value equality as well as key presence. + // + // Examples: + // + // * `value_type = DOUBLE` --> Features whose type is DOUBLE. + // * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + // update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created + // or updated after 2020-01-31T15:30:00.000000Z. + // * `labels.active = yes AND labels.env = prod` --> Features having both + // (active: yes) and (env: prod) labels. + // * `labels.env: *` --> Any Feature which has a label with 'env' as the + // key. + string filter = 2; + + // The maximum number of Features to return. The service may return fewer + // than this value. If unspecified, at most 1000 Features will be returned. + // The maximum value is 1000; any value greater than 1000 will be coerced to + // 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must + // match the call that provided the page token. + string page_token = 4; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // + // * `feature_id` + // * `value_type` + // * `create_time` + // * `update_time` + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; + + // If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count] + // of stats for each Feature in response. Valid value is [0, 10]. If number of + // stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all + // existing stats. + int32 latest_stats_count = 7; +} + +// Response message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. +message ListFeaturesResponse { + // The Features matching the request. + repeated Feature features = 1; + + // A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to + // retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. +message SearchFeaturesRequest { + // Required. The resource name of the Location to search Features. + // Format: + // `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Query string that is a conjunction of field-restricted queries and/or + // field-restricted filters. Field-restricted queries and filters can be + // combined using `AND` to form a conjunction. + // + // A field query is in the form FIELD:QUERY. This implicitly checks if QUERY + // exists as a substring within Feature's FIELD. The QUERY + // and the FIELD are converted to a sequence of words (i.e. tokens) for + // comparison. This is done by: + // + // * Removing leading/trailing whitespace and tokenizing the search value. + // Characters that are not one of alphanumeric [a-zA-Z0-9], underscore [_], + // or asterisk [*] are treated as delimiters for tokens. (*) is treated as a + // wildcard that matches characters within a token. + // * Ignoring case. + // * Prepending an asterisk to the first and appending an asterisk to the + // last token in QUERY. + // + // A QUERY must be either a singular token or a phrase. A phrase is one or + // multiple words enclosed in double quotation marks ("). With phrases, the + // order of the words is important. Words in the phrase must be matching in + // order and consecutively. + // + // Supported FIELDs for field-restricted queries: + // + // * `feature_id` + // * `description` + // * `entity_type_id` + // + // Examples: + // + // * `feature_id: foo` --> Matches a Feature with ID containing the substring + // `foo` (eg. `foo`, `foofeature`, `barfoo`). + // * `feature_id: foo*feature` --> Matches a Feature with ID containing the + // substring `foo*feature` (eg. `foobarfeature`). + // * `feature_id: foo AND description: bar` --> Matches a Feature with ID + // containing the substring `foo` and description containing the substring + // `bar`. + // + // + // Besides field queries, the following exact-match filters are + // supported. The exact-match filters do not support wildcards. Unlike + // field-restricted queries, exact-match filters are case-sensitive. + // + // * `feature_id`: Supports = comparisons. + // * `description`: Supports = comparisons. Multi-token filters should be + // enclosed in quotes. + // * `entity_type_id`: Supports = comparisons. + // * `value_type`: Supports = and != comparisons. + // * `labels`: Supports key-value equality as well as key presence. + // * `featurestore_id`: Supports = comparisons. + // + // Examples: + // * `description = "foo bar"` --> Any Feature with description exactly equal + // to `foo bar` + // * `value_type = DOUBLE` --> Features whose type is DOUBLE. + // * `labels.active = yes AND labels.env = prod` --> Features having both + // (active: yes) and (env: prod) labels. + // * `labels.env: *` --> Any Feature which has a label with `env` as the + // key. + string query = 3; + + // The maximum number of Features to return. The service may return fewer + // than this value. If unspecified, at most 100 Features will be returned. + // The maximum value is 100; any value greater than 100 will be coerced to + // 100. + int32 page_size = 4; + + // A page token, received from a previous + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must + // match the call that provided the page token. + string page_token = 5; +} + +// Response message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. +message SearchFeaturesResponse { + // The Features matching the request. + // + // Fields returned: + // + // * `name` + // * `description` + // * `labels` + // * `create_time` + // * `update_time` + repeated Feature features = 1; + + // A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to + // retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature]. +message UpdateFeatureRequest { + // Required. The Feature's `name` field is used to identify the Feature to be + // updated. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + Feature feature = 1 [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // Features resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then only the non-empty fields present in the + // request will be overwritten. Set the update_mask to `*` to override all + // fields. + // + // Updatable fields: + // + // * `description` + // * `labels` + // * `monitoring_config.snapshot_analysis.disabled` + // * `monitoring_config.snapshot_analysis.monitoring_interval` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature]. +message DeleteFeatureRequest { + // Required. The name of the Features to be deleted. + // Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Feature" + } + ]; +} + +// Details of operations that perform create Featurestore. +message CreateFeaturestoreOperationMetadata { + // Operation metadata for Featurestore. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update Featurestore. +message UpdateFeaturestoreOperationMetadata { + // Operation metadata for Featurestore. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform import feature values. +message ImportFeatureValuesOperationMetadata { + // Operation metadata for Featurestore import feature values. + GenericOperationMetadata generic_metadata = 1; + + // Number of entities that have been imported by the operation. + int64 imported_entity_count = 2; + + // Number of feature values that have been imported by the operation. + int64 imported_feature_value_count = 3; + + // The number of rows in input source that weren't imported due to either + // * Not having any featureValues. + // * Having a null entityId. + // * Having a null timestamp. + // * Not being parsable (applicable for CSV sources). + int64 invalid_row_count = 6; +} + +// Details of operations that exports Features values. +message ExportFeatureValuesOperationMetadata { + // Operation metadata for Featurestore export Feature values. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that batch reads Feature values. +message BatchReadFeatureValuesOperationMetadata { + // Operation metadata for Featurestore batch read Features values. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform create EntityType. +message CreateEntityTypeOperationMetadata { + // Operation metadata for EntityType. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform create Feature. +message CreateFeatureOperationMetadata { + // Operation metadata for Feature. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform batch create Features. +message BatchCreateFeaturesOperationMetadata { + // Operation metadata for Feature. + GenericOperationMetadata generic_metadata = 1; +} 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 fc6181e95..f3fd3d1c9 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 @@ -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. @@ -60,7 +60,7 @@ message HyperparameterTuningJob { // The number of failed Trials that need to be seen before failing // the HyperparameterTuningJob. // - // If set to 0, AI Platform decides how many Trials must fail + // If set to 0, Vertex AI decides how many Trials must fail // before the whole job fails. int32 max_failed_trial_count = 7; 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 new file mode 100644 index 000000000..a730c3c6a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -0,0 +1,94 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/deployed_index_ref.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// A representation of a collection of database items organized in a way that +// allows for approximate nearest neighbor (a.k.a ANN) algorithms search. +message Index { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Index" + pattern: "projects/{project}/locations/{location}/indexes/{index}" + }; + + // Output only. The resource name of the Index. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the Index. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the Index. + string description = 3; + + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional + // information about the Index, that is specific to it. Unset if the Index + // does not have any additional information. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string metadata_schema_uri = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // An additional information about the Index; the schema of the metadata can + // be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri]. + google.protobuf.Value metadata = 6; + + // Output only. The pointers to DeployedIndexes created from this Index. + // An Index can be only deleted if all its DeployedIndexes had been undeployed + // first. + repeated DeployedIndexRef deployed_indexes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 Indexes. + // + // 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 = 9; + + // Output only. Timestamp when this Index was created. + google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Index was most recently updated. + // This also includes any update to the contents of the Index. + // Note that Operations working on this Index may have their + // [Operations.metadata.generic_metadata.update_time] + // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this + // timestamp, yet that does not mean their results are not already reflected + // in the Index. Result of any successfully completed Operation on the Index + // is reflected in it. + google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 new file mode 100644 index 000000000..c5d988483 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -0,0 +1,190 @@ +// 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.v1beta1; + +import "google/cloud/aiplatform/v1beta1/index.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// Indexes are deployed into it. An IndexEndpoint can have multiple +// DeployedIndexes. +message IndexEndpoint { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + pattern: "projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}" + }; + + // Output only. The resource name of the IndexEndpoint. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the IndexEndpoint. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the IndexEndpoint. + string description = 3; + + // Output only. The indexes deployed in this endpoint. + repeated DeployedIndex deployed_indexes = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 5; + + // The labels with user-defined metadata to organize your IndexEndpoints. + // + // 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 = 6; + + // Output only. Timestamp when this IndexEndpoint was created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this IndexEndpoint was last updated. + // This timestamp is not updated when the endpoint's DeployedIndexes are + // updated, e.g. due to updates of the original Indexes they are the + // deployments of. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The full name of the Google Compute Engine + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the IndexEndpoint 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 = 9 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. +message DeployedIndex { + // Required. The user specified ID of the DeployedIndex. + // The ID can be up to 128 characters long and must start with a letter and + // only contain letters, numbers, and underscores. + // The ID must be unique within the project it is created in. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the Index this is the deployment of. + // We may refer to this Index as the DeployedIndex's "original" Index. + string index = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; + + // The display name of the DeployedIndex. If not provided upon creation, + // the Index's display_name is used. + string display_name = 3; + + // Output only. Timestamp when the DeployedIndex was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides paths for users to send requests directly to the deployed index + // services running on Cloud via private services access. This field is + // populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured. + IndexPrivateEndpoints private_endpoints = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The DeployedIndex may depend on various data on its original Index. + // Additionally when certain changes to the original Index are being done + // (e.g. when what the Index contains is being changed) the DeployedIndex may + // be asynchronously updated in the background to reflect this changes. + // If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the + // original Index, it means that this DeployedIndex and the original Index are + // in sync. If this timestamp is older, then to see which updates this + // DeployedIndex already contains (and which not), one must + // [list][Operations.ListOperations] [Operations][Operation] + // [working][Operation.name] on the original Index. Only + // the successfully completed Operations with + // [Operations.metadata.generic_metadata.update_time] + // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] + // equal or before this sync time are contained in this DeployedIndex. + google.protobuf.Timestamp index_sync_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A description of resources that the DeployedIndex uses, which to large + // degree are decided by Vertex AI, and optionally allows only a modest + // additional configuration. + // If min_replica_count is not set, the default value is 1. If + // max_replica_count is not set, the default value is min_replica_count. The + // max allowed replica count is 1000. + // + // The user is billed for the resources (at least their minimal amount) even + // if the DeployedIndex receives no traffic. + AutomaticResources automatic_resources = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, private endpoint's access logs are sent to StackDriver Logging. + // + // These logs are like standard server access logs, containing + // information like timestamp and latency for each MatchRequest. + // + // Note that Stackdriver logs may incur a cost, especially if the deployed + // index receives a high queries per second rate (QPS). + // Estimate your costs before enabling this option. + bool enable_access_logging = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the authentication is enabled for the private endpoint. + DeployedIndexAuthConfig deployed_index_auth_config = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Used to set up the auth on the DeployedIndex's private endpoint. +message DeployedIndexAuthConfig { + // Configuration for an authentication provider, including support for + // [JSON Web Token + // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). + message AuthProvider { + // The list of JWT + // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + // that are allowed to access. A JWT containing any of these audiences will + // be accepted. + repeated string audiences = 1; + + // A list of allowed JWT issuers. Each entry must be a valid Google + // service account, in the following format: + // + // `service-account-name@project-id.iam.gserviceaccount.com` + repeated string allowed_issuers = 2; + } + + // Defines the authentication provider that the DeployedIndex uses. + AuthProvider auth_provider = 1; +} + +// IndexPrivateEndpoints proto is used to provide paths for users to send +// requests via private services access. +message IndexPrivateEndpoints { + // Output only. The ip address used to send match gRPC requests. + string match_grpc_address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 new file mode 100644 index 000000000..e32ddb062 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto @@ -0,0 +1,282 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/index_endpoint.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +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"; + +// A service for managing Vertex AI's IndexEndpoints. +service IndexEndpointService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an IndexEndpoint. + rpc CreateIndexEndpoint(CreateIndexEndpointRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/indexEndpoints" + body: "index_endpoint" + }; + option (google.api.method_signature) = "parent,index_endpoint"; + option (google.longrunning.operation_info) = { + response_type: "IndexEndpoint" + metadata_type: "CreateIndexEndpointOperationMetadata" + }; + } + + // Gets an IndexEndpoint. + rpc GetIndexEndpoint(GetIndexEndpointRequest) returns (IndexEndpoint) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists IndexEndpoints in a Location. + rpc ListIndexEndpoints(ListIndexEndpointsRequest) returns (ListIndexEndpointsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/indexEndpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an IndexEndpoint. + rpc UpdateIndexEndpoint(UpdateIndexEndpointRequest) returns (IndexEndpoint) { + option (google.api.http) = { + patch: "/v1beta1/{index_endpoint.name=projects/*/locations/*/indexEndpoints/*}" + body: "index_endpoint" + }; + option (google.api.method_signature) = "index_endpoint,update_mask"; + } + + // Deletes an IndexEndpoint. + rpc DeleteIndexEndpoint(DeleteIndexEndpointRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Deploys an Index into this IndexEndpoint, creating a DeployedIndex within + // it. + // Only non-empty Indexes can be deployed. + rpc DeployIndex(DeployIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:deployIndex" + body: "*" + }; + option (google.api.method_signature) = "index_endpoint,deployed_index"; + option (google.longrunning.operation_info) = { + response_type: "DeployIndexResponse" + metadata_type: "DeployIndexOperationMetadata" + }; + } + + // Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, + // and freeing all resources it's using. + rpc UndeployIndex(UndeployIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:undeployIndex" + body: "*" + }; + option (google.api.method_signature) = "index_endpoint,deployed_index_id"; + option (google.longrunning.operation_info) = { + response_type: "UndeployIndexResponse" + metadata_type: "UndeployIndexOperationMetadata" + }; + } +} + +// Request message for [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint]. +message CreateIndexEndpointRequest { + // Required. The resource name of the Location to create the IndexEndpoint 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 IndexEndpoint to create. + IndexEndpoint index_endpoint = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for +// [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint]. +message CreateIndexEndpointOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint] +message GetIndexEndpointRequest { + // Required. The name of the IndexEndpoint resource. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + } + ]; +} + +// Request message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. +message ListIndexEndpointsRequest { + // Required. The resource name of the Location from which to list the IndexEndpoints. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `index_endpoint` supports = and !=. `index_endpoint` represents the + // IndexEndpoint ID, ie. the last segment of the IndexEndpoint's + // [resourcename][google.cloud.aiplatform.v1beta1.IndexEndpoint.name]. + // * `display_name` supports =, != and regex() + // (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* or labels:key - key existence + // A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `index_endpoint="1"` + // * `display_name="myDisplayName"` + // * `regex(display_name, "^A") -> The display name starts with an A. + // * `labels.myKey="myValue"` + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous + // [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. +message ListIndexEndpointsResponse { + // List of IndexEndpoints in the requested page. + repeated IndexEndpoint index_endpoints = 1; + + // A token to retrieve next page of results. + // Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint]. +message UpdateIndexEndpointRequest { + // Required. The IndexEndpoint which replaces the resource on the server. + IndexEndpoint index_endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint]. +message DeleteIndexEndpointRequest { + // Required. The name of the IndexEndpoint resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + } + ]; +} + +// Request message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +message DeployIndexRequest { + // Required. The name of the IndexEndpoint resource into which to deploy an Index. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string index_endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + } + ]; + + // Required. The DeployedIndex to be created within the IndexEndpoint. + DeployedIndex deployed_index = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +message DeployIndexResponse { + // The DeployedIndex that had been deployed in the IndexEndpoint. + DeployedIndex deployed_index = 1; +} + +// Runtime operation information for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +message DeployIndexOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +message UndeployIndexRequest { + // Required. The name of the IndexEndpoint resource from which to undeploy an Index. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string index_endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/IndexEndpoint" + } + ]; + + // Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint. + string deployed_index_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +message UndeployIndexResponse { + +} + +// Runtime operation information for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +message UndeployIndexOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} 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 new file mode 100644 index 000000000..00974fd94 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_service.proto @@ -0,0 +1,271 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/index.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +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"; + +// A service for creating and managing Vertex AI's Index resources. +service IndexService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an Index. + rpc CreateIndex(CreateIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/indexes" + body: "index" + }; + option (google.api.method_signature) = "parent,index"; + option (google.longrunning.operation_info) = { + response_type: "Index" + metadata_type: "CreateIndexOperationMetadata" + }; + } + + // Gets an Index. + rpc GetIndex(GetIndexRequest) returns (Index) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/indexes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Indexes in a Location. + rpc ListIndexes(ListIndexesRequest) returns (ListIndexesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/indexes" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an Index. + rpc UpdateIndex(UpdateIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{index.name=projects/*/locations/*/indexes/*}" + body: "index" + }; + option (google.api.method_signature) = "index,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Index" + metadata_type: "UpdateIndexOperationMetadata" + }; + } + + // Deletes an Index. + // An Index can only be deleted when all its + // [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + rpc DeleteIndex(DeleteIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/indexes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } +} + +// Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. +message CreateIndexRequest { + // Required. The resource name of the Location to create the Index 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 Index to create. + Index index = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. +message CreateIndexOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; + + // The operation metadata with regard to Matching Engine Index operation. + NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; +} + +// Request message for [IndexService.GetIndex][google.cloud.aiplatform.v1beta1.IndexService.GetIndex] +message GetIndexRequest { + // Required. The name of the Index resource. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; +} + +// Request message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. +message ListIndexesRequest { + // Required. The resource name of the Location from which to list the Indexes. + // 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. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous + // [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. +message ListIndexesResponse { + // List of indexes in the requested page. + repeated Index indexes = 1; + + // A token to retrieve next page of results. + // Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. +message UpdateIndexRequest { + // Required. The Index which updates the resource on the server. + Index index = 1 [(google.api.field_behavior) = REQUIRED]; + + // The update mask applies to the resource. + // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. + google.protobuf.FieldMask update_mask = 2; +} + +// Runtime operation information for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. +message UpdateIndexOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; + + // The operation metadata with regard to Matching Engine Index operation. + NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; +} + +// Request message for [IndexService.DeleteIndex][google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex]. +message DeleteIndexRequest { + // Required. The name of the Index resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Index" + } + ]; +} + +// Runtime operation metadata with regard to Matching Engine Index. +message NearestNeighborSearchOperationMetadata { + message RecordError { + enum RecordErrorType { + // Default, shall not be used. + ERROR_TYPE_UNSPECIFIED = 0; + + // The record is empty. + EMPTY_LINE = 1; + + // Invalid json format. + INVALID_JSON_SYNTAX = 2; + + // Invalid csv format. + INVALID_CSV_SYNTAX = 3; + + // Invalid avro format. + INVALID_AVRO_SYNTAX = 4; + + // The embedding id is not valid. + INVALID_EMBEDDING_ID = 5; + + // The size of the embedding vectors does not match with the specified + // dimension. + EMBEDDING_SIZE_MISMATCH = 6; + + // The `namespace` field is missing. + NAMESPACE_MISSING = 7; + } + + // The error type of this record. + RecordErrorType error_type = 1; + + // A human-readable message that is shown to the user to help them fix the + // error. Note that this message may change from time to time, your code + // should check against error_type as the source of truth. + string error_message = 2; + + // Cloud Storage URI pointing to the original file in user's bucket. + string source_gcs_uri = 3; + + // Empty if the embedding id is failed to parse. + string embedding_id = 4; + + // The original content of this record. + string raw_record = 5; + } + + message ContentValidationStats { + // Cloud Storage URI pointing to the original file in user's bucket. + string source_gcs_uri = 1; + + // Number of records in this file that were successfully processed. + int64 valid_record_count = 2; + + // Number of records in this file we skipped due to validate errors. + int64 invalid_record_count = 3; + + // The detail information of the partial failures encountered for those + // invalid records that couldn't be parsed. + // Up to 50 partial errors will be reported. + repeated RecordError partial_errors = 4; + } + + // The validation stats of the content (per file) to be inserted or + // updated on the Matching Engine Index resource. Populated if + // contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note + // that, currently for those files that are broken or has unsupported file + // format, we will not have the stats for those files. + repeated ContentValidationStats content_validation_stats = 1; +} 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 83e0f5dfe..69a773b0f 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 @@ -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. @@ -24,6 +24,18 @@ option java_multiple_files = true; option java_outer_classname = "IoProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +// The storage details for Avro input content. +message AvroSource { + // Required. Google Cloud Storage location. + GcsSource gcs_source = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The storage details for CSV input content. +message CsvSource { + // Required. Google Cloud Storage location. + GcsSource gcs_source = 1 [(google.api.field_behavior) = REQUIRED]; +} + // The Google Cloud Storage location for the input content. message GcsSource { // Required. Google Cloud Storage URI(-s) to the input file(s). May contain @@ -53,9 +65,9 @@ message BigQuerySource { message BigQueryDestination { // Required. BigQuery URI to a project or table, up to 2000 characters long. // - // When only project is specified, Dataset and Table is created. - // When full table reference is specified, Dataset must exist and table must - // not exist. + // When only the project is specified, the Dataset and Table is created. + // When the full table reference is specified, the Dataset must exist and + // table must not exist. // // Accepted forms: // @@ -64,7 +76,19 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } -// The Container Regsitry location for the container image. +// The storage details for CSV output content. +message CsvDestination { + // Required. Google Cloud Storage location. + GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The storage details for TFRecord output content. +message TFRecordDestination { + // Required. Google Cloud Storage location. + GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The Container Registry location for the container image. message ContainerRegistryDestination { // Required. Container Registry URI of a container image. // Only Google Container Registry and Artifact Registry are supported now. 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 01bf83e07..a5e24a452 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 @@ -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. @@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1beta1/batch_prediction_job.proto"; import "google/cloud/aiplatform/v1beta1/custom_job.proto"; import "google/cloud/aiplatform/v1beta1/data_labeling_job.proto"; import "google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto"; +import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -35,7 +36,7 @@ option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; -// A service for creating and managing AI Platform's jobs. +// A service for creating and managing Vertex AI's jobs. service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -253,6 +254,88 @@ service JobService { }; option (google.api.method_signature) = "name"; } + + // Creates a ModelDeploymentMonitoringJob. It will run periodically on a + // configured interval. + rpc CreateModelDeploymentMonitoringJob(CreateModelDeploymentMonitoringJobRequest) returns (ModelDeploymentMonitoringJob) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/modelDeploymentMonitoringJobs" + body: "model_deployment_monitoring_job" + }; + option (google.api.method_signature) = "parent,model_deployment_monitoring_job"; + } + + // Searches Model Monitoring Statistics generated within a given time window. + rpc SearchModelDeploymentMonitoringStatsAnomalies(SearchModelDeploymentMonitoringStatsAnomaliesRequest) returns (SearchModelDeploymentMonitoringStatsAnomaliesResponse) { + option (google.api.http) = { + post: "/v1beta1/{model_deployment_monitoring_job=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:searchModelDeploymentMonitoringStatsAnomalies" + body: "*" + }; + option (google.api.method_signature) = "model_deployment_monitoring_job,deployed_model_id"; + } + + // Gets a ModelDeploymentMonitoringJob. + rpc GetModelDeploymentMonitoringJob(GetModelDeploymentMonitoringJobRequest) returns (ModelDeploymentMonitoringJob) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists ModelDeploymentMonitoringJobs in a Location. + rpc ListModelDeploymentMonitoringJobs(ListModelDeploymentMonitoringJobsRequest) returns (ListModelDeploymentMonitoringJobsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/modelDeploymentMonitoringJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a ModelDeploymentMonitoringJob. + rpc UpdateModelDeploymentMonitoringJob(UpdateModelDeploymentMonitoringJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{model_deployment_monitoring_job.name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}" + body: "model_deployment_monitoring_job" + }; + option (google.api.method_signature) = "model_deployment_monitoring_job,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ModelDeploymentMonitoringJob" + metadata_type: "UpdateModelDeploymentMonitoringJobOperationMetadata" + }; + } + + // Deletes a ModelDeploymentMonitoringJob. + rpc DeleteModelDeploymentMonitoringJob(DeleteModelDeploymentMonitoringJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Pauses a ModelDeploymentMonitoringJob. If the job is running, the server + // makes a best effort to cancel the job. Will mark + // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'. + rpc PauseModelDeploymentMonitoringJob(PauseModelDeploymentMonitoringJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Resumes a paused ModelDeploymentMonitoringJob. It will start to run from + // next scheduled time. A deleted ModelDeploymentMonitoringJob can't be + // resumed. + rpc ResumeModelDeploymentMonitoringJob(ResumeModelDeploymentMonitoringJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume" + body: "*" + }; + option (google.api.method_signature) = "name"; + } } // Request message for [JobService.CreateCustomJob][google.cloud.aiplatform.v1beta1.JobService.CreateCustomJob]. @@ -331,7 +414,7 @@ message ListCustomJobsResponse { // List of CustomJobs in the requested page. repeated CustomJob custom_jobs = 1; - // A token to retrieve next page of results. + // A token to retrieve the next page of results. // Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page. string next_page_token = 2; } @@ -362,7 +445,7 @@ message CancelCustomJobRequest { ]; } -// Request message for [DataLabelingJobService.CreateDataLabelingJob][]. +// Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob]. message CreateDataLabelingJobRequest { // Required. The parent of the DataLabelingJob. // Format: `projects/{project}/locations/{location}` @@ -377,11 +460,10 @@ message CreateDataLabelingJobRequest { DataLabelingJob data_labeling_job = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [DataLabelingJobService.GetDataLabelingJob][]. +// Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob]. message GetDataLabelingJobRequest { // Required. The name of the DataLabelingJob. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -391,7 +473,7 @@ message GetDataLabelingJobRequest { ]; } -// Request message for [DataLabelingJobService.ListDataLabelingJobs][]. +// Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs]. message ListDataLabelingJobsRequest { // Required. The parent of the DataLabelingJob. // Format: `projects/{project}/locations/{location}` @@ -453,7 +535,6 @@ message ListDataLabelingJobsResponse { message DeleteDataLabelingJobRequest { // Required. The name of the DataLabelingJob to be deleted. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -463,11 +544,10 @@ message DeleteDataLabelingJobRequest { ]; } -// Request message for [DataLabelingJobService.CancelDataLabelingJob][]. +// Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob]. message CancelDataLabelingJobRequest { // Required. The name of the DataLabelingJob. // Format: - // // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -496,7 +576,6 @@ message CreateHyperparameterTuningJobRequest { message GetHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob resource. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -555,7 +634,7 @@ message ListHyperparameterTuningJobsResponse { // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials] of the jobs will be not be returned. repeated HyperparameterTuningJob hyperparameter_tuning_jobs = 1; - // A token to retrieve next page of results. + // A token to retrieve the next page of results. // Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that // page. string next_page_token = 2; @@ -565,7 +644,6 @@ message ListHyperparameterTuningJobsResponse { message DeleteHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -579,7 +657,6 @@ message DeleteHyperparameterTuningJobRequest { message CancelHyperparameterTuningJobRequest { // Required. The name of the HyperparameterTuningJob to cancel. // Format: - // // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -608,7 +685,6 @@ message CreateBatchPredictionJobRequest { message GetBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob resource. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -637,6 +713,8 @@ message ListBatchPredictionJobsRequest { // // * `state` supports = and !=. // + // * `model_display_name` supports = and != + // // Some examples of using the filter are: // // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` @@ -666,7 +744,7 @@ message ListBatchPredictionJobsResponse { // List of BatchPredictionJobs in the requested page. repeated BatchPredictionJob batch_prediction_jobs = 1; - // A token to retrieve next page of results. + // A token to retrieve the next page of results. // Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that // page. string next_page_token = 2; @@ -676,7 +754,6 @@ message ListBatchPredictionJobsResponse { message DeleteBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -690,7 +767,6 @@ message DeleteBatchPredictionJobRequest { message CancelBatchPredictionJobRequest { // Required. The name of the BatchPredictionJob to cancel. // Format: - // // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -699,3 +775,200 @@ message CancelBatchPredictionJobRequest { } ]; } + +// Request message for +// [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJob]. +message CreateModelDeploymentMonitoringJobRequest { + // Required. The parent of the ModelDeploymentMonitoringJob. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The ModelDeploymentMonitoringJob to create + ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]. +message SearchModelDeploymentMonitoringStatsAnomaliesRequest { + // Stats requested for specific objective. + message StatsAnomaliesObjective { + ModelDeploymentMonitoringObjectiveType type = 1; + + // If set, all attribution scores between + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are + // fetched, and page token doesn't take affect in this case. + // Only used to retrieve attribution score for the top Features which has + // the highest attribution score in the latest monitoring run. + int32 top_feature_count = 4; + } + + // Required. ModelDeploymentMonitoring Job resource name. + // Format: + // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job} + string model_deployment_monitoring_job = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + ]; + + // Required. The DeployedModel ID of the + // [google.cloud.aiplatform.master.ModelDeploymentMonitoringObjectiveConfig.deployed_model_id]. + string deployed_model_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // The feature display name. If specified, only return the stats belonging to + // this feature. Format: + // [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name], + // example: "user_destination". + string feature_display_name = 3; + + // Required. Objectives of the stats to retrieve. + repeated StatsAnomaliesObjective objectives = 4 [(google.api.field_behavior) = REQUIRED]; + + // The standard list page size. + int32 page_size = 5; + + // A page token received from a previous + // [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies] + // call. + string page_token = 6; + + // The earliest timestamp of stats being generated. + // If not set, indicates fetching stats till the earliest possible one. + google.protobuf.Timestamp start_time = 7; + + // The latest timestamp of stats being generated. + // If not set, indicates feching stats till the latest possible one. + google.protobuf.Timestamp end_time = 8; +} + +// Response message for +// [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies]. +message SearchModelDeploymentMonitoringStatsAnomaliesResponse { + // Stats retrieved for requested objectives. + // There are at most 1000 + // [ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats][google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.prediction_stats] + // in the response. + repeated ModelMonitoringStatsAnomalies monitoring_stats = 1; + + // The page token that can be used by the next + // [JobService.SearchModelDeploymentMonitoringStatsAnomalies][google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies] + // call. + string next_page_token = 2; +} + +// Request message for +// [JobService.GetModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJob]. +message GetModelDeploymentMonitoringJobRequest { + // Required. The resource name of the ModelDeploymentMonitoringJob. + // Format: + // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + ]; +} + +// Request message for +// [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs]. +message ListModelDeploymentMonitoringJobsRequest { + // Required. The parent of the ModelDeploymentMonitoringJob. + // 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. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for +// [JobService.ListModelDeploymentMonitoringJobs][google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs]. +message ListModelDeploymentMonitoringJobsResponse { + // A list of ModelDeploymentMonitoringJobs that matches the specified filter + // in the request. + repeated ModelDeploymentMonitoringJob model_deployment_monitoring_jobs = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for +// [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob]. +message UpdateModelDeploymentMonitoringJobRequest { + // Required. The model monitoring configuration which replaces the resource on the + // server. + ModelDeploymentMonitoringJob model_deployment_monitoring_job = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.DeleteModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJob]. +message DeleteModelDeploymentMonitoringJobRequest { + // Required. The resource name of the model monitoring job to delete. + // Format: + // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + ]; +} + +// Request message for +// [JobService.PauseModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJob]. +message PauseModelDeploymentMonitoringJobRequest { + // Required. The resource name of the ModelDeploymentMonitoringJob to pause. + // Format: + // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + ]; +} + +// Request message for +// [JobService.ResumeModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJob]. +message ResumeModelDeploymentMonitoringJobRequest { + // Required. The resource name of the ModelDeploymentMonitoringJob to resume. + // Format: + // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + ]; +} + +// Runtime operation information for +// [JobService.UpdateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob]. +message UpdateModelDeploymentMonitoringJobOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} 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 44ac573b9..c2ac30819 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 @@ -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. @@ -52,4 +52,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-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 new file mode 100644 index 000000000..911918e04 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto @@ -0,0 +1,45 @@ +// 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.v1beta1; + +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/artifact.proto"; +import "google/cloud/aiplatform/v1beta1/event.proto"; +import "google/cloud/aiplatform/v1beta1/execution.proto"; +import "google/api/annotations.proto"; + +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"; + +// A subgraph of the overall lineage graph. Event edges connect Artifact and +// Execution nodes. +message LineageSubgraph { + // The Artifact nodes in the subgraph. + repeated Artifact artifacts = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + }]; + + // The Execution nodes in the subgraph. + repeated Execution executions = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + }]; + + // The Event edges between Artifacts and Executions in the subgraph. + repeated Event events = 3; +} 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 3cb131c24..a37bd073f 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 @@ -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. @@ -27,10 +27,13 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; // Specification of a single machine. message MachineSpec { - // Immutable. The type of the machine. For the machine types supported for prediction, - // see https://tinyurl.com/aip-docs/predictions/machine-types. - // For machine types supported for creating a custom training job, see - // https://tinyurl.com/aip-docs/training/configure-compute. + // Immutable. The type of the machine. + // + // See the [list of machine types supported for + // prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) + // + // See the [list of machine types supported for custom + // training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). // // For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default // value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of @@ -67,7 +70,7 @@ message DedicatedResources { ]; // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If requested value is too large, + // the traffic against it increases. If the requested value is too large, // the deployment will error, but if deployment succeeds then the ability // to scale the model to that many replicas is guaranteed (barring service // outages). If traffic against the DeployedModel increases beyond what its @@ -75,9 +78,31 @@ message DedicatedResources { // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AutoscalingMetricSpec.metric_name] + // to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.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 AI Platform, +// A description of resources that to large degree are decided by Vertex AI, // and require only a modest additional configuration. // Each Model supporting these resources documents its specific guidelines. message AutomaticResources { @@ -85,17 +110,17 @@ message AutomaticResources { // on. If traffic against it increases, it may dynamically be deployed onto // more replicas up to [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count], and as traffic decreases, some // of these extra replicas may be freed. - // If requested value is too large, the deployment will error. + // If the requested value is too large, the deployment will error. int32 min_replica_count = 1 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If requested value is too large, + // the traffic against it increases. If the requested value is too large, // the deployment will error, but if deployment succeeds then the ability // to scale the model to that many replicas is guaranteed (barring service // outages). If traffic against the DeployedModel increases beyond what its // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, a no upper bound for scaling under heavy - // traffic will be assume, though AI Platform may be unable to scale beyond + // traffic will be assume, though Vertex AI may be unable to scale beyond // certain replica number. int32 max_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; } @@ -110,7 +135,7 @@ message BatchDedicatedResources { ]; // Immutable. The number of machine replicas used at the start of the batch operation. - // If not set, AI Platform decides starting number, not greater than + // If not set, Vertex AI decides starting number, not greater than // [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count] int32 starting_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; @@ -137,3 +162,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-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 17182cbd1..67ff72228 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 @@ -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/metadata_schema.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto new file mode 100644 index 000000000..adbbc878a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto @@ -0,0 +1,77 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// Instance of a general MetadataSchema. +message MetadataSchema { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/MetadataSchema" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + }; + + // Describes the type of the MetadataSchema. + enum MetadataSchemaType { + // Unspecified type for the MetadataSchema. + METADATA_SCHEMA_TYPE_UNSPECIFIED = 0; + + // A type indicating that the MetadataSchema will be used by Artifacts. + ARTIFACT_TYPE = 1; + + // A typee indicating that the MetadataSchema will be used by Executions. + EXECUTION_TYPE = 2; + + // A state indicating that the MetadataSchema will be used by Contexts. + CONTEXT_TYPE = 3; + } + + // Output only. The resource name of the MetadataSchema. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The version of the MetadataSchema. The version's format must match + // the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would + // allow to order/compare different versions.Example: 1.0.0, 1.0.1, etc. + string schema_version = 2; + + // Required. The raw YAML string representation of the MetadataSchema. The combination + // of [MetadataSchema.version] and the schema name given by `title` in + // [MetadataSchema.schema] must be unique within a MetadataStore. + // + // The schema is defined as an OpenAPI 3.0.2 + // [MetadataSchema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject) + string schema = 3 [(google.api.field_behavior) = REQUIRED]; + + // The type of the MetadataSchema. This is a property that identifies which + // metadata types will use the MetadataSchema. + MetadataSchemaType schema_type = 4; + + // Output only. Timestamp when this MetadataSchema was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Description of the Metadata Schema + string description = 6; +} 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 new file mode 100644 index 000000000..366bf450e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -0,0 +1,1023 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/artifact.proto"; +import "google/cloud/aiplatform/v1beta1/context.proto"; +import "google/cloud/aiplatform/v1beta1/event.proto"; +import "google/cloud/aiplatform/v1beta1/execution.proto"; +import "google/cloud/aiplatform/v1beta1/lineage_subgraph.proto"; +import "google/cloud/aiplatform/v1beta1/metadata_schema.proto"; +import "google/cloud/aiplatform/v1beta1/metadata_store.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +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"; + +// Service for reading and writing metadata entries. +service MetadataService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Initializes a MetadataStore, including allocation of resources. + rpc CreateMetadataStore(CreateMetadataStoreRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/metadataStores" + body: "metadata_store" + }; + option (google.api.method_signature) = "parent,metadata_store,metadata_store_id"; + option (google.longrunning.operation_info) = { + response_type: "MetadataStore" + metadata_type: "CreateMetadataStoreOperationMetadata" + }; + } + + // Retrieves a specific MetadataStore. + rpc GetMetadataStore(GetMetadataStoreRequest) returns (MetadataStore) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists MetadataStores for a Location. + rpc ListMetadataStores(ListMetadataStoresRequest) returns (ListMetadataStoresResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/metadataStores" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a single MetadataStore. + rpc DeleteMetadataStore(DeleteMetadataStoreRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteMetadataStoreOperationMetadata" + }; + } + + // Creates an Artifact associated with a MetadataStore. + rpc CreateArtifact(CreateArtifactRequest) returns (Artifact) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" + body: "artifact" + }; + option (google.api.method_signature) = "parent,artifact,artifact_id"; + } + + // Retrieves a specific Artifact. + rpc GetArtifact(GetArtifactRequest) returns (Artifact) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Artifacts in the MetadataStore. + rpc ListArtifacts(ListArtifactsRequest) returns (ListArtifactsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a stored Artifact. + rpc UpdateArtifact(UpdateArtifactRequest) returns (Artifact) { + option (google.api.http) = { + patch: "/v1beta1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}" + body: "artifact" + }; + option (google.api.method_signature) = "artifact,update_mask"; + } + + // Creates a Context associated with a MetadataStore. + rpc CreateContext(CreateContextRequest) returns (Context) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/contexts" + body: "context" + }; + option (google.api.method_signature) = "parent,context,context_id"; + } + + // Retrieves a specific Context. + rpc GetContext(GetContextRequest) returns (Context) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/contexts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Contexts on the MetadataStore. + rpc ListContexts(ListContextsRequest) returns (ListContextsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/contexts" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a stored Context. + rpc UpdateContext(UpdateContextRequest) returns (Context) { + option (google.api.http) = { + patch: "/v1beta1/{context.name=projects/*/locations/*/metadataStores/*/contexts/*}" + body: "context" + }; + option (google.api.method_signature) = "context,update_mask"; + } + + // Deletes a stored Context. + rpc DeleteContext(DeleteContextRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/contexts/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // 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. + rpc AddContextArtifactsAndExecutions(AddContextArtifactsAndExecutionsRequest) returns (AddContextArtifactsAndExecutionsResponse) { + option (google.api.http) = { + post: "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:addContextArtifactsAndExecutions" + body: "*" + }; + option (google.api.method_signature) = "context,artifacts,executions"; + } + + // Adds a set of Contexts as children to a parent Context. If any of the + // child Contexts have already been added to the parent Context, they are + // simply skipped. If this call would create a cycle or cause any Context to + // have more than 10 parents, the request will fail with an INVALID_ARGUMENT + // error. + rpc AddContextChildren(AddContextChildrenRequest) returns (AddContextChildrenResponse) { + option (google.api.http) = { + post: "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:addContextChildren" + body: "*" + }; + option (google.api.method_signature) = "context,child_contexts"; + } + + // Retrieves Artifacts and Executions within the specified Context, connected + // by Event edges and returned as a LineageSubgraph. + rpc QueryContextLineageSubgraph(QueryContextLineageSubgraphRequest) returns (LineageSubgraph) { + option (google.api.http) = { + get: "/v1beta1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:queryContextLineageSubgraph" + }; + option (google.api.method_signature) = "context"; + } + + // Creates an Execution associated with a MetadataStore. + rpc CreateExecution(CreateExecutionRequest) returns (Execution) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/executions" + body: "execution" + }; + option (google.api.method_signature) = "parent,execution,execution_id"; + } + + // Retrieves a specific Execution. + rpc GetExecution(GetExecutionRequest) returns (Execution) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Executions in the MetadataStore. + rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/executions" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a stored Execution. + rpc UpdateExecution(UpdateExecutionRequest) returns (Execution) { + option (google.api.http) = { + patch: "/v1beta1/{execution.name=projects/*/locations/*/metadataStores/*/executions/*}" + body: "execution" + }; + option (google.api.method_signature) = "execution,update_mask"; + } + + // 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 + // skipped. + rpc AddExecutionEvents(AddExecutionEventsRequest) returns (AddExecutionEventsResponse) { + option (google.api.http) = { + post: "/v1beta1/{execution=projects/*/locations/*/metadataStores/*/executions/*}:addExecutionEvents" + body: "*" + }; + option (google.api.method_signature) = "execution,events"; + } + + // Obtains the set of input and output Artifacts for this Execution, in the + // form of LineageSubgraph that also contains the Execution and connecting + // Events. + rpc QueryExecutionInputsAndOutputs(QueryExecutionInputsAndOutputsRequest) returns (LineageSubgraph) { + option (google.api.http) = { + get: "/v1beta1/{execution=projects/*/locations/*/metadataStores/*/executions/*}:queryExecutionInputsAndOutputs" + }; + option (google.api.method_signature) = "execution"; + } + + // Creates a MetadataSchema. + rpc CreateMetadataSchema(CreateMetadataSchemaRequest) returns (MetadataSchema) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/metadataSchemas" + body: "metadata_schema" + }; + option (google.api.method_signature) = "parent,metadata_schema,metadata_schema_id"; + } + + // Retrieves a specific MetadataSchema. + rpc GetMetadataSchema(GetMetadataSchemaRequest) returns (MetadataSchema) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/metadataSchemas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists MetadataSchemas. + rpc ListMetadataSchemas(ListMetadataSchemasRequest) returns (ListMetadataSchemasResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/metadataSchemas" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves lineage of an Artifact represented through Artifacts and + // Executions connected by Event edges and returned as a LineageSubgraph. + rpc QueryArtifactLineageSubgraph(QueryArtifactLineageSubgraphRequest) returns (LineageSubgraph) { + option (google.api.http) = { + get: "/v1beta1/{artifact=projects/*/locations/*/metadataStores/*/artifacts/*}:queryArtifactLineageSubgraph" + }; + option (google.api.method_signature) = "artifact"; + } +} + +// Request message for [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. +message CreateMetadataStoreRequest { + // Required. The resource name of the Location where the MetadataStore should + // be created. + // Format: projects/{project}/locations/{location}/ + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The MetadataStore to create. + MetadataStore metadata_store = 2 [(google.api.field_behavior) = REQUIRED]; + + // The {metadatastore} portion of the resource name with the format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + // If not provided, the MetadataStore's ID will be a UUID generated by the + // service. + // Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/. + // Must be unique across all MetadataStores in the parent Location. + // (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + // if the caller can't view the preexisting MetadataStore.) + string metadata_store_id = 3; +} + +// Details of operations that perform [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. +message CreateMetadataStoreOperationMetadata { + // Operation metadata for creating a MetadataStore. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore]. +message GetMetadataStoreRequest { + // Required. The resource name of the MetadataStore to retrieve. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; +} + +// Request message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. +message ListMetadataStoresRequest { + // Required. The Location whose MetadataStores should be listed. + // Format: + // projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of Metadata Stores to return. The service may return + // fewer. + // Must be in range 1-1000, inclusive. Defaults to 100. + int32 page_size = 2; + + // A page token, received from a previous + // [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other provided parameters must match the call that + // provided the page token. (Otherwise the request will fail with + // INVALID_ARGUMENT error.) + string page_token = 3; +} + +// Response message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. +message ListMetadataStoresResponse { + // The MetadataStores found for the Location. + repeated MetadataStore metadata_stores = 1; + + // A token, which can be sent as + // [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next + // page. If this field is not populated, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. +message DeleteMetadataStoreRequest { + // Required. The resource name of the MetadataStore to delete. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; + + // If set to true, any child resources of this MetadataStore will be deleted. + // (Otherwise, the request will fail with a FAILED_PRECONDITION error if the + // MetadataStore has any child resources.) + bool force = 2; +} + +// Details of operations that perform [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. +message DeleteMetadataStoreOperationMetadata { + // Operation metadata for deleting a MetadataStore. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [MetadataService.CreateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact]. +message CreateArtifactRequest { + // Required. The resource name of the MetadataStore where the Artifact should + // be created. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; + + // Required. The Artifact to create. + Artifact artifact = 2 [(google.api.field_behavior) = REQUIRED]; + + // The {artifact} portion of the resource name with the format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + // If not provided, the Artifact's ID will be a UUID generated by the service. + // Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/. + // Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + // the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + // caller can't view the preexisting Artifact.) + string artifact_id = 3; +} + +// Request message for [MetadataService.GetArtifact][google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact]. +message GetArtifactRequest { + // Required. The resource name of the Artifact to retrieve. + // 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" + } + ]; +} + +// Request message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. +message ListArtifactsRequest { + // Required. The MetadataStore whose Artifacts should be listed. + // 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" + } + ]; + + // The maximum number of Artifacts to return. The service may return fewer. + // Must be in range 1-1000, inclusive. Defaults to 100. + int32 page_size = 2; + + // A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other provided parameters must match the call that + // provided the page token. (Otherwise the request will fail with + // INVALID_ARGUMENT error.) + string page_token = 3; + + // Filter specifying the boolean condition for the Artifacts to satisfy in + // order to be part of the result set. + // The syntax to define filter query is based on https://google.aip.dev/160. + // The supported set of filters include the following: + // + // * **Attribute filtering**: + // For example: `display_name = "test"`. + // Supported fields include: `name`, `display_name`, `uri`, `state`, + // `schema_title`, `create_time`, and `update_time`. + // Time fields, such as `create_time` and `update_time`, require values + // specified in RFC-3339 format. + // For example: `create_time = "2020-11-19T11:30:00-04:00"` + // * **Metadata field**: + // To filter on metadata fields use traversal operation as follows: + // `metadata..`. + // For example: `metadata.field_1.number_value = 10.0` + // * **Context based filtering**: + // To filter Artifacts based on the contexts to which they belong, use the + // function operator with the full resource name + // `in_context()`. + // For example: + // `in_context("projects//locations//metadataStores//contexts/")` + // + // Each of the above supported filter types can be combined together using + // logical operators (`AND` & `OR`). + // + // For example: `display_name = "test" AND metadata.field1.bool_value = true`. + string filter = 4; +} + +// Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. +message ListArtifactsResponse { + // The Artifacts retrieved from the MetadataStore. + repeated Artifact artifacts = 1; + + // A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token] + // to retrieve the next page. + // If this field is not populated, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact]. +message UpdateArtifactRequest { + // Required. The Artifact containing updates. + // The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to + // be updated. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A FieldMask indicating which fields should be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] will + // be created. In this situation, `update_mask` is ignored. + bool allow_missing = 3; +} + +// 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 + // created. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; + + // Required. The Context to create. + Context context = 2 [(google.api.field_behavior) = REQUIRED]; + + // The {context} portion of the resource name with the format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}. + // If not provided, the Context's ID will be a UUID generated by the service. + // Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/. + // Must be unique across all Contexts in the parent MetadataStore. (Otherwise + // the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + // caller can't view the preexisting Context.) + string context_id = 3; +} + +// Request message for [MetadataService.GetContext][google.cloud.aiplatform.v1beta1.MetadataService.GetContext]. +message GetContextRequest { + // Required. The resource name of the Context to retrieve. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; +} + +// Request message for [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] +message ListContextsRequest { + // Required. The MetadataStore whose Contexts should be listed. + // 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" + } + ]; + + // The maximum number of Contexts to return. The service may return fewer. + // Must be in range 1-1000, inclusive. Defaults to 100. + int32 page_size = 2; + + // A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other provided parameters must match the call that + // provided the page token. (Otherwise the request will fail with + // INVALID_ARGUMENT error.) + string page_token = 3; + + // Filter specifying the boolean condition for the Contexts to satisfy in + // order to be part of the result set. + // The syntax to define filter query is based on https://google.aip.dev/160. + // Following are the supported set of filters: + // + // * **Attribute filtering**: + // For example: `display_name = "test"`. + // Supported fields include: `name`, `display_name`, `schema_title`, + // `create_time`, and `update_time`. + // Time fields, such as `create_time` and `update_time`, require values + // specified in RFC-3339 format. + // For example: `create_time = "2020-11-19T11:30:00-04:00"`. + // * **Metadata field**: + // To filter on metadata fields use traversal operation as follows: + // `metadata..`. + // For example: `metadata.field_1.number_value = 10.0`. + // * **Parent Child filtering**: + // To filter Contexts based on parent-child relationship use the HAS + // operator as follows: + // + // ``` + // parent_contexts: + // "projects//locations//metadataStores//contexts/" + // child_contexts: + // "projects//locations//metadataStores//contexts/" + // ``` + // + // Each of the above supported filters can be combined together using + // logical operators (`AND` & `OR`). + // + // For example: `display_name = "test" AND metadata.field1.bool_value = true`. + string filter = 4; +} + +// Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]. +message ListContextsResponse { + // The Contexts retrieved from the MetadataStore. + repeated Context contexts = 1; + + // A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token] + // to retrieve the next page. + // If this field is not populated, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [MetadataService.UpdateContext][google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext]. +message UpdateContextRequest { + // Required. The Context containing updates. + // The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be + // updated. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + Context context = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A FieldMask indicating which fields should be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] will be + // created. In this situation, `update_mask` is ignored. + bool allow_missing = 3; +} + +// Request message for [MetadataService.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext]. +message DeleteContextRequest { + // Required. The resource name of the Context to retrieve. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; + + // 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). + bool force = 2; +} + +// Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. +message AddContextArtifactsAndExecutionsRequest { + // Required. The resource name of the Context that the Artifacts and Executions + // belong to. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + string context = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; + + // The resource names of the Artifacts to attribute to the Context. + // + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + repeated string artifacts = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + }]; + + // The resource names of the Executions to associate with the + // Context. + // + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + repeated string executions = 3 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + }]; +} + +// Response message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. +message AddContextArtifactsAndExecutionsResponse { + +} + +// Request message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. +message AddContextChildrenRequest { + // Required. The resource name of the parent Context. + // + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + string context = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; + + // The resource names of the child Contexts. + repeated string child_contexts = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + }]; +} + +// Response message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. +message AddContextChildrenResponse { + +} + +// Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph]. +message QueryContextLineageSubgraphRequest { + // Required. The resource name of the Context whose Artifacts and Executions + // should be retrieved as a LineageSubgraph. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + // + // The request may error with FAILED_PRECONDITION if the number of Artifacts, + // the number of Executions, or the number of Events that would be returned + // for the Context exceeds 1000. + string context = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; +} + +// Request message for [MetadataService.CreateExecution][google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution]. +message CreateExecutionRequest { + // Required. The resource name of the MetadataStore where the Execution should + // be created. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; + + // Required. The Execution to create. + Execution execution = 2 [(google.api.field_behavior) = REQUIRED]; + + // The {execution} portion of the resource name with the format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + // If not provided, the Execution's ID will be a UUID generated by the + // service. + // Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/. + // Must be unique across all Executions in the parent MetadataStore. + // (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + // if the caller can't view the preexisting Execution.) + string execution_id = 3; +} + +// Request message for [MetadataService.GetExecution][google.cloud.aiplatform.v1beta1.MetadataService.GetExecution]. +message GetExecutionRequest { + // Required. The resource name of the Execution to retrieve. + // 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" + } + ]; +} + +// Request message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. +message ListExecutionsRequest { + // Required. The MetadataStore whose Executions should be listed. + // 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" + } + ]; + + // The maximum number of Executions to return. The service may return fewer. + // Must be in range 1-1000, inclusive. Defaults to 100. + int32 page_size = 2; + + // A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other provided parameters must match the call that + // provided the page token. (Otherwise the request will fail with an + // INVALID_ARGUMENT error.) + string page_token = 3; + + // Filter specifying the boolean condition for the Executions to satisfy in + // order to be part of the result set. + // The syntax to define filter query is based on https://google.aip.dev/160. + // Following are the supported set of filters: + // + // * **Attribute filtering**: + // For example: `display_name = "test"`. + // Supported fields include: `name`, `display_name`, `state`, + // `schema_title`, `create_time`, and `update_time`. + // Time fields, such as `create_time` and `update_time`, require values + // specified in RFC-3339 format. + // For example: `create_time = "2020-11-19T11:30:00-04:00"`. + // * **Metadata field**: + // To filter on metadata fields use traversal operation as follows: + // `metadata..` + // For example: `metadata.field_1.number_value = 10.0` + // * **Context based filtering**: + // To filter Executions based on the contexts to which they belong use + // the function operator with the full resource name: + // `in_context()`. + // For example: + // `in_context("projects//locations//metadataStores//contexts/")` + // + // Each of the above supported filters can be combined together using + // logical operators (`AND` & `OR`). + // For example: `display_name = "test" AND metadata.field1.bool_value = true`. + string filter = 4; +} + +// Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. +message ListExecutionsResponse { + // The Executions retrieved from the MetadataStore. + repeated Execution executions = 1; + + // A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token] + // to retrieve the next page. + // If this field is not populated, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [MetadataService.UpdateExecution][google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution]. +message UpdateExecutionRequest { + // Required. The Execution containing updates. + // The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution + // to be updated. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + Execution execution = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A FieldMask indicating which fields should be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution] + // will be created. In this situation, `update_mask` is ignored. + bool allow_missing = 3; +} + +// Request message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. +message AddExecutionEventsRequest { + // Required. The resource name of the Execution that the Events connect + // Artifacts with. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + string execution = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + } + ]; + + // The Events to create and add. + repeated Event events = 2; +} + +// Response message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. +message AddExecutionEventsResponse { + +} + +// Request message for [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs]. +message QueryExecutionInputsAndOutputsRequest { + // Required. The resource name of the Execution whose input and output Artifacts should + // be retrieved as a LineageSubgraph. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + string execution = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + } + ]; +} + +// Request message for [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema]. +message CreateMetadataSchemaRequest { + // Required. The resource name of the MetadataStore where the MetadataSchema should + // be created. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataStore" + } + ]; + + // Required. The MetadataSchema to create. + MetadataSchema metadata_schema = 2 [(google.api.field_behavior) = REQUIRED]; + + // The {metadata_schema} portion of the resource name with the format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + // If not provided, the MetadataStore's ID will be a UUID generated by the + // service. + // Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/. + // Must be unique across all MetadataSchemas in the parent Location. + // (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + // if the caller can't view the preexisting MetadataSchema.) + string metadata_schema_id = 3; +} + +// Request message for [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema]. +message GetMetadataSchemaRequest { + // Required. The resource name of the MetadataSchema to retrieve. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/MetadataSchema" + } + ]; +} + +// Request message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. +message ListMetadataSchemasRequest { + // Required. The MetadataStore whose MetadataSchemas should be listed. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/MetadataSchema" + } + ]; + + // The maximum number of MetadataSchemas to return. The service may return + // fewer. + // Must be in range 1-1000, inclusive. Defaults to 100. + int32 page_size = 2; + + // A page token, received from a previous + // [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the + // next page. + // + // When paginating, all other provided parameters must match the call that + // provided the page token. (Otherwise the request will fail with + // INVALID_ARGUMENT error.) + string page_token = 3; + + // A query to filter available MetadataSchemas for matching results. + string filter = 4; +} + +// Response message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. +message ListMetadataSchemasResponse { + // The MetadataSchemas found for the MetadataStore. + repeated MetadataSchema metadata_schemas = 1; + + // A token, which can be sent as + // [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next + // page. If this field is not populated, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph]. +message QueryArtifactLineageSubgraphRequest { + // Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + // LineageSubgraph. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + // + // The request may error with FAILED_PRECONDITION if the number of Artifacts, + // the number of Executions, or the number of Events that would be returned + // for the Context exceeds 1000. + string artifact = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + } + ]; + + // Specifies the size of the lineage graph in terms of number of hops from the + // specified artifact. + // Negative Value: INVALID_ARGUMENT error is returned + // 0: Only input artifact is returned. + // No value: Transitive closure is performed to return the complete graph. + int32 max_hops = 2; + + // Filter specifying the boolean condition for the Artifacts to satisfy in + // order to be part of the Lineage Subgraph. + // The syntax to define filter query is based on https://google.aip.dev/160. + // The supported set of filters include the following: + // + // * **Attribute filtering**: + // For example: `display_name = "test"` + // Supported fields include: `name`, `display_name`, `uri`, `state`, + // `schema_title`, `create_time`, and `update_time`. + // Time fields, such as `create_time` and `update_time`, require values + // specified in RFC-3339 format. + // For example: `create_time = "2020-11-19T11:30:00-04:00"` + // * **Metadata field**: + // To filter on metadata fields use traversal operation as follows: + // `metadata..`. + // For example: `metadata.field_1.number_value = 10.0` + // + // Each of the above supported filter types can be combined together using + // logical operators (`AND` & `OR`). + // + // For example: `display_name = "test" AND metadata.field1.bool_value = true`. + string filter = 3; +} 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 new file mode 100644 index 000000000..571e8a8a5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto @@ -0,0 +1,63 @@ +// 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.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 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"; + +// Instance of a metadata store. Contains a set of metadata that can be +// queried. +message MetadataStore { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/MetadataStore" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}" + }; + + // Represents state information for a MetadataStore. + message MetadataStoreState { + // The disk utilization of the MetadataStore in bytes. + int64 disk_utilization_bytes = 1; + } + + // Output only. The resource name of the MetadataStore instance. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this MetadataStore was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this MetadataStore was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Customer-managed encryption key spec for a Metadata Store. If set, this + // Metadata Store and all sub-resources of this Metadata Store are secured + // using this key. + EncryptionSpec encryption_spec = 5; + + // Description of the MetadataStore. + string description = 6; + + // Output only. State information of the MetadataStore. + MetadataStoreState state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 411105027..ace0c4736 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 @@ -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. @@ -100,7 +100,6 @@ message MigratableResource { message DataLabelingAnnotatedDataset { // Full resource name of data labeling AnnotatedDataset. // Format: - // // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. string annotated_dataset = 1 [(google.api.resource_reference) = { type: "datalabeling.googleapis.com/AnnotatedDataset" @@ -139,8 +138,9 @@ message MigratableResource { DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Output only. Timestamp when last migrate attempt on this MigratableResource started. - // Will not be set if there's no migrate attempt on this MigratableResource. + // Output only. Timestamp when the last migration attempt on this MigratableResource + // started. Will not be set if there's no migration attempt on this + // MigratableResource. google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp when this MigratableResource was last updated. 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 e96f96e2f..76ad14b27 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 @@ -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. @@ -33,14 +33,14 @@ option java_outer_classname = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; // A service that migrates resources from automl.googleapis.com, -// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +// datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. service MigrationService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Searches all of the resources in automl.googleapis.com, // datalabeling.googleapis.com and ml.googleapis.com that can be migrated to - // AI Platform's given location. + // Vertex AI's given location. rpc SearchMigratableResources(SearchMigratableResourcesRequest) returns (SearchMigratableResourcesResponse) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/migratableResources:search" @@ -50,7 +50,7 @@ service MigrationService { } // Batch migrates resources from ml.googleapis.com, automl.googleapis.com, - // and datalabeling.googleapis.com to AI Platform (Unified). + // and datalabeling.googleapis.com to Vertex AI. rpc BatchMigrateResources(BatchMigrateResourcesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/migratableResources:batchMigrate" @@ -67,7 +67,7 @@ service MigrationService { // Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. message SearchMigratableResourcesRequest { // Required. The location that the migratable resources should be searched from. - // It's the AI Platform location that the resources can be migrated to, not + // It's the Vertex AI location that the resources can be migrated to, not // the resources' original location. // Format: // `projects/{project}/locations/{location}` @@ -85,15 +85,18 @@ message SearchMigratableResourcesRequest { // The standard page token. string page_token = 3; - // Supported filters are: - // * Resource type: For a specific type of MigratableResource. - // * `ml_engine_model_version:*` - // * `automl_model:*`, - // * `automl_dataset:*` - // * `data_labeling_dataset:*`. - // * Migrated or not: Filter migrated resource or not by last_migrate_time. - // * `last_migrate_time:*` will filter migrated resources. - // * `NOT last_migrate_time:*` will filter not yet migrated resource. + // A filter for your search. You can use the following types of filters: + // + // * Resource type filters. The following strings filter for a specific type + // of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]: + // * `ml_engine_model_version:*` + // * `automl_model:*` + // * `automl_dataset:*` + // * `data_labeling_dataset:*` + // * "Migrated or not" filters. The following strings filter for resources + // that either have or have not already been migrated: + // * `last_migrate_time:*` filters for migrated resources. + // * `NOT last_migrate_time:*` filters for not yet migrated resources. string filter = 4; } @@ -127,9 +130,9 @@ message BatchMigrateResourcesRequest { } // Config of migrating one resource from automl.googleapis.com, -// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +// datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. message MigrateResourceRequest { - // Config for migrating version in ml.googleapis.com to AI Platform's Model. + // Config for migrating version in ml.googleapis.com to Vertex AI's Model. message MigrateMlEngineModelVersionConfig { // Required. The ml.googleapis.com endpoint that this model version should be migrated // from. @@ -153,12 +156,12 @@ message MigrateResourceRequest { } ]; - // Required. Display name of the model in AI Platform. + // Required. Display name of the model in Vertex AI. // System will pick a display name if unspecified. string model_display_name = 3 [(google.api.field_behavior) = REQUIRED]; } - // Config for migrating Model in automl.googleapis.com to AI Platform's Model. + // Config for migrating Model in automl.googleapis.com to Vertex AI's Model. message MigrateAutomlModelConfig { // Required. Full resource name of automl Model. // Format: @@ -170,12 +173,12 @@ message MigrateResourceRequest { } ]; - // Optional. Display name of the model in AI Platform. + // Optional. Display name of the model in Vertex AI. // System will pick a display name if unspecified. string model_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Config for migrating Dataset in automl.googleapis.com to Vertex AI's // Dataset. message MigrateAutomlDatasetConfig { // Required. Full resource name of automl Dataset. @@ -188,7 +191,7 @@ message MigrateResourceRequest { } ]; - // Required. Display name of the Dataset in AI Platform. + // Required. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. string dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -197,11 +200,10 @@ message MigrateResourceRequest { // Platform's Dataset. message MigrateDataLabelingDatasetConfig { // Config for migrating AnnotatedDataset in datalabeling.googleapis.com to - // AI Platform's SavedQuery. + // Vertex AI's SavedQuery. message MigrateDataLabelingAnnotatedDatasetConfig { // Required. Full resource name of data labeling AnnotatedDataset. // Format: - // // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. string annotated_dataset = 1 [ (google.api.field_behavior) = REQUIRED, @@ -221,30 +223,30 @@ message MigrateResourceRequest { } ]; - // Optional. Display name of the Dataset in AI Platform. + // Optional. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. string dataset_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to - // AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong + // Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong // to the datalabeling Dataset. repeated MigrateDataLabelingAnnotatedDatasetConfig migrate_data_labeling_annotated_dataset_configs = 3 [(google.api.field_behavior) = OPTIONAL]; } oneof request { - // Config for migrating Version in ml.googleapis.com to AI Platform's Model. + // Config for migrating Version in ml.googleapis.com to Vertex AI's Model. MigrateMlEngineModelVersionConfig migrate_ml_engine_model_version_config = 1; - // Config for migrating Model in automl.googleapis.com to AI Platform's + // Config for migrating Model in automl.googleapis.com to Vertex AI's // Model. MigrateAutomlModelConfig migrate_automl_model_config = 2; - // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Config for migrating Dataset in automl.googleapis.com to Vertex AI's // Dataset. MigrateAutomlDatasetConfig migrate_automl_dataset_config = 3; // Config for migrating Dataset in datalabeling.googleapis.com to - // AI Platform's Dataset. + // Vertex AI's Dataset. MigrateDataLabelingDatasetConfig migrate_data_labeling_dataset_config = 4; } } @@ -257,7 +259,7 @@ message BatchMigrateResourcesResponse { // Describes a successfully migrated resource. message MigrateResourceResponse { - // After migration, the resource name in AI Platform. + // After migration, the resource name in Vertex AI. oneof migrated_resource { // Migrated Dataset's resource name. string dataset = 1 [(google.api.resource_reference) = { @@ -277,7 +279,7 @@ message MigrateResourceResponse { // Runtime operation information for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. message BatchMigrateResourcesOperationMetadata { - // Represents a partial result in batch migration opreation for one + // Represents a partial result in batch migration operation for one // [MigrateResourceRequest][google.cloud.aiplatform.v1beta1.MigrateResourceRequest]. message PartialResult { // If the resource's migration is ongoing, none of the result will be set. @@ -306,6 +308,6 @@ message BatchMigrateResourcesOperationMetadata { // The common part of the operation metadata. GenericOperationMetadata generic_metadata = 1; - // Partial results that reflects the latest migration operation progress. + // Partial results that reflect the latest migration operation progress. repeated PartialResult partial_results = 2; } 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 e69027e90..e77f6a94d 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 @@ -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. @@ -39,7 +39,7 @@ message Model { pattern: "projects/{project}/locations/{location}/models/{model}" }; - // Represents a supported by the Model export format. + // Represents export format supported by the Model. // All formats export to Google Cloud Storage. message ExportFormat { // The Model content that can be exported. @@ -94,7 +94,7 @@ message Model { // higher degree of manual configuration. DEDICATED_RESOURCES = 1; - // Resources that to large degree are decided by AI Platform, and require + // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. AUTOMATIC_RESOURCES = 2; } @@ -118,10 +118,10 @@ message Model { // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional // information about the Model, that is specific to it. Unset if the Model // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform, if no - // additional metadata is needed this field is set to an empty string. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI, if no + // additional metadata is needed, this field is set to an empty string. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. @@ -147,7 +147,7 @@ message Model { // Input only. The specification of the container that is to be used when deploying // this Model. The specification is ingested upon // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - // and stored internally by AI Platform. + // and stored internally by Vertex AI. // Not present for AutoML Models. ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; @@ -243,7 +243,7 @@ message Model { // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. repeated string supported_output_storage_formats = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Timestamp when this Model was uploaded into AI Platform. + // Output only. Timestamp when this Model was uploaded into Vertex AI. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp when this Model was most recently updated. @@ -257,15 +257,24 @@ message Model { // // The Model can be used for [requesting // explanation][PredictionService.Explain] after being - // [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] iff it is populated. + // [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. // The Model can be used for [batch - // explanation][BatchPredictionJob.generate_explanation] iff it is populated. + // explanation][BatchPredictionJob.generate_explanation] if it is populated. // // All fields of the explanation_spec can be overridden by // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + // + // If the default explanation specification is not set for this Model, this + // Model can still be used for [requesting + // explanation][PredictionService.Explain] by setting + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of + // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch + // explanation][BatchPredictionJob.generate_explanation] by setting + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. ExplanationSpec explanation_spec = 23; // Used to perform consistent read-modify-write updates. If not set, a blind @@ -294,9 +303,9 @@ message PredictSchemata { // of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], // [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. @@ -306,10 +315,10 @@ message PredictSchemata { // parameters of prediction and explanation via // [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and // [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform, if no - // parameters are supported it is set to an empty string. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI, if no + // parameters are supported, then it is set to an empty string. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. @@ -319,31 +328,35 @@ message PredictSchemata { // of a single prediction produced by this Model, which are returned via // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. - // The schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). - // AutoML Models always have this field populated by AI Platform. + // The schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + // AutoML Models always have this field populated by Vertex AI. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. string prediction_schema_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; } -// Specification of a container for serving predictions. This message is a -// subset of the Kubernetes Container v1 core -// [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). +// Specification of a container for serving predictions. Some fields in this +// message correspond to fields in the [Kubernetes Container v1 core +// specification](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). message ModelContainerSpec { // Required. Immutable. URI of the Docker image to be used as the custom container for serving // predictions. This URI must identify an image in Artifact Registry or - // Container Registry. Learn more about the container publishing - // requirements, including permissions requirements for the AI Platform - // Service Agent, - // [here](https://tinyurl.com/cust-cont-reqs#publishing). + // Container Registry. Learn more about the [container publishing + // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing), + // including permissions requirements for the AI Platform Service Agent. // // The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored // internally, and this original path is afterwards not used. // // To learn about the requirements for the Docker image itself, see - // [Custom container requirements](https://tinyurl.com/cust-cont-reqs). + // [Custom container + // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#). + // + // You can use the URI to one of Vertex AI's [pre-built container images for + // prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers) + // in this field. string image_uri = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -359,19 +372,19 @@ message ModelContainerSpec { // in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the // container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), // if either exists. If this field is not specified and the container does not - // have an `ENTRYPOINT`, then refer to the Docker documentation about how + // have an `ENTRYPOINT`, then refer to the Docker documentation about [how // `CMD` and `ENTRYPOINT` - // [interact](https://tinyurl.com/h3kdcgs). + // interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). // // If you specify this field, then you can also specify the `args` field to // provide additional arguments for this command. However, if you specify this // field, then the container's `CMD` is ignored. See the - // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // [Kubernetes documentation about how the // `command` and `args` fields interact with a container's `ENTRYPOINT` and - // `CMD`. + // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // - // In this field, you can reference environment variables - // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // In this field, you can reference [environment variables set by Vertex + // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) // and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. // You cannot reference environment variables set in the Docker image. In // order for environment variables to be expanded, reference them by using the @@ -383,7 +396,8 @@ message ModelContainerSpec { // syntax with `$$`; for example: // $$(VARIABLE_NAME) // This field corresponds to the `command` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated string command = 2 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Specifies arguments for the command that runs when the container starts. @@ -395,19 +409,20 @@ message ModelContainerSpec { // If you don't specify this field but do specify the // [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the // `command` field runs without any additional arguments. See the - // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // [Kubernetes documentation about how the // `command` and `args` fields interact with a container's `ENTRYPOINT` and - // `CMD`. + // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // // If you don't specify this field and don't specify the `command` field, // then the container's // [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and // `CMD` determine what runs based on their default behavior. See the Docker - // documentation about how `CMD` and `ENTRYPOINT` - // [interact](https://tinyurl.com/h3kdcgs). + // documentation about [how `CMD` and `ENTRYPOINT` + // interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). // - // In this field, you can reference environment variables - // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // In this field, you can reference [environment variables + // set by Vertex + // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) // and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. // You cannot reference environment variables set in the Docker image. In // order for environment variables to be expanded, reference them by using the @@ -419,7 +434,8 @@ message ModelContainerSpec { // syntax with `$$`; for example: // $$(VARIABLE_NAME) // This field corresponds to the `args` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated string args = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. List of environment variables to set in the container. After the container @@ -448,13 +464,15 @@ message ModelContainerSpec { // does not occur. // // This field corresponds to the `env` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated EnvVar env = 4 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. List of ports to expose from the container. AI Platform sends any + // Immutable. List of ports to expose from the container. Vertex AI sends any // prediction requests that it receives to the first port on this list. AI // Platform also sends - // [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health) + // [liveness and health + // checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#liveness) // to this port. // // If you do not specify this field, it defaults to following value: @@ -467,18 +485,19 @@ message ModelContainerSpec { // ] // ``` // - // AI Platform does not use ports other than the first one listed. This field + // Vertex AI does not use ports other than the first one listed. This field // corresponds to the `ports` field of the Kubernetes Containers - // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + // [v1 core + // API](https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core). repeated Port ports = 5 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. HTTP path on the container to send prediction requests to. AI Platform + // Immutable. HTTP path on the container to send prediction requests to. Vertex AI // forwards requests sent using // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this - // path on the container's IP address and port. AI Platform then returns the + // path on the container's IP address and port. Vertex AI then returns the // container's response in the API response. // - // For example, if you set this field to `/foo`, then when AI Platform + // For example, if you set this field to `/foo`, then when Vertex AI // receives a prediction request, it forwards the request body in a POST // request to the `/foo` path on the port of your container specified by the // first value of this `ModelContainerSpec`'s @@ -491,24 +510,23 @@ message ModelContainerSpec { // // * ENDPOINT: The last segment (following `endpoints/`)of the // Endpoint.name][] field of the Endpoint where this Model has been - // deployed. (AI Platform makes this value available to your container code - // as the - // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // deployed. (Vertex AI makes this value available to your container code + // as the [`AIP_ENDPOINT_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`. - // (AI Platform makes this value available to your container code + // (Vertex AI makes this value available to your container code // as the [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://tinyurl.com/cust-cont-reqs#aip-variables).) + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string predict_route = 6 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. HTTP path on the container to send health checkss to. AI Platform + // Immutable. HTTP path on the container to send health checks to. Vertex AI // intermittently sends GET requests to this path on the container's IP // address and port to check that the container is healthy. Read more about // [health - // checks](https://tinyurl.com/cust-cont-reqs#checks). + // checks](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#health). // - // For example, if you set this field to `/bar`, then AI Platform + // For example, if you set this field to `/bar`, then Vertex AI // intermittently sends a GET request to the `/bar` path on the port of your // container specified by the first value of this `ModelContainerSpec`'s // [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field. @@ -520,15 +538,14 @@ message ModelContainerSpec { // // * ENDPOINT: The last segment (following `endpoints/`)of the // Endpoint.name][] field of the Endpoint where this Model has been - // deployed. (AI Platform makes this value available to your container code - // as the - // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // deployed. (Vertex AI makes this value available to your container code + // as the [`AIP_ENDPOINT_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`. - // (AI Platform makes this value available to your container code as the - // [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) - // environment variable.) + // (Vertex AI makes this value available to your container code as the + // [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; } 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 new file mode 100644 index 000000000..260b20c65 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -0,0 +1,268 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.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"; +import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// The Model Monitoring Objective types. +enum ModelDeploymentMonitoringObjectiveType { + // Default value, should not be set. + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0; + + // Raw feature values' stats to detect skew between Training-Prediction + // datasets. + RAW_FEATURE_SKEW = 1; + + // Raw feature values' stats to detect drift between Serving-Prediction + // datasets. + RAW_FEATURE_DRIFT = 2; + + // Feature attribution scores to detect skew between Training-Prediction + // datasets. + FEATURE_ATTRIBUTION_SKEW = 3; + + // Feature attribution scores to detect skew between Prediction datasets + // collected within different time windows. + FEATURE_ATTRIBUTION_DRIFT = 4; +} + +// Represents a job that runs periodically to monitor the deployed models in an +// endpoint. It will analyze the logged training & prediction data to detect any +// abnormal behaviors. +message ModelDeploymentMonitoringJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + pattern: "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" + }; + + // The state to Specify the monitoring pipeline. + enum MonitoringScheduleState { + // Unspecified state. + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0; + + // The pipeline is picked up and wait to run. + PENDING = 1; + + // The pipeline is offline and will be scheduled for next run. + OFFLINE = 2; + + // The pipeline is running. + RUNNING = 3; + } + + // Output only. Resource name of a ModelDeploymentMonitoringJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the ModelDeploymentMonitoringJob. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + // Display name of a ModelDeploymentMonitoringJob. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Endpoint resource name. + // Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Output only. The detailed state of the monitoring job. + // When the job is still creating, the state will be 'PENDING'. + // Once the job is successfully created, the state will be 'RUNNING'. + // Pause the job, the state will be 'PAUSED'. + // Resume the job, the state will return to 'RUNNING'. + JobState state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Schedule state when the monitoring job is in Running state. + 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. + repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Schedule config for running the monitoring job. + ModelDeploymentMonitoringScheduleConfig model_deployment_monitoring_schedule_config = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Sample Strategy for logging. + SamplingStrategy logging_sampling_strategy = 8 [(google.api.field_behavior) = REQUIRED]; + + // Alert config for model monitoring. + ModelMonitoringAlertConfig model_monitoring_alert_config = 15; + + // YAML schema file uri describing the format of a single instance, + // which are given to format this Endpoint's prediction (and explanation). + // If not set, we will generate predict schema from collected predict + // requests. + string predict_instance_schema_uri = 9; + + // Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], + // this can be set as a replacement of + // [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set, + // we will generate predict schema from collected predict requests. + google.protobuf.Value sample_predict_instance = 19; + + // YAML schema file uri describing the format of a single instance that you + // want Tensorflow Data Validation (TFDV) to analyze. + // + // If this field is empty, all the feature data types are inferred from + // [predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri], + // meaning that TFDV will use the data in the exact format(data type) as + // prediction request/response. + // If there are any data type differences between predict instance and TFDV + // instance, this field can be used to override the schema. + // For models trained with Vertex AI, this field must be set as all the + // fields in predict instance formatted as string. + string analysis_instance_schema_uri = 16; + + // Output only. The created bigquery tables for the job under customer project. Customer + // could do their own query & analysis. There could be 4 log tables in + // maximum: + // 1. Training data logging predict request/response + // 2. Serving data logging predict request/response + repeated ModelDeploymentMonitoringBigQueryTable bigquery_tables = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The TTL of BigQuery tables in user projects which stores logs. + // A day is the basic unit of the TTL and we take the ceil of TTL/86400(a + // day). e.g. { second: 3600} indicates ttl = 1 day. + google.protobuf.Duration log_ttl = 17; + + // The labels with user-defined metadata to organize your + // ModelDeploymentMonitoringJob. + // + // 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; + + // Output only. Timestamp when this ModelDeploymentMonitoringJob was created. + google.protobuf.Timestamp create_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently. + google.protobuf.Timestamp update_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this monitoring pipeline will be scheduled to run for the + // next round. + google.protobuf.Timestamp next_schedule_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Stats anomalies base folder path. + GcsDestination stats_anomalies_base_directory = 20; +} + +// ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name +// as well as some information of the logs stored in this table. +message ModelDeploymentMonitoringBigQueryTable { + // Indicates where does the log come from. + enum LogSource { + // Unspecified source. + LOG_SOURCE_UNSPECIFIED = 0; + + // Logs coming from Training dataset. + TRAINING = 1; + + // Logs coming from Serving traffic. + SERVING = 2; + } + + // Indicates what type of traffic does the log belong to. + enum LogType { + // Unspecified type. + LOG_TYPE_UNSPECIFIED = 0; + + // Predict logs. + PREDICT = 1; + + // Explain logs. + EXPLAIN = 2; + } + + // The source of log. + LogSource log_source = 1; + + // The type of log. + LogType log_type = 2; + + // The created BigQuery table to store logs. Customer could do their own query + // & analysis. Format: + // `bq://.model_deployment_monitoring_._` + string bigquery_table_path = 3; +} + +// ModelDeploymentMonitoringObjectiveConfig contains the pair of +// deployed_model_id to ModelMonitoringObjectiveConfig. +message ModelDeploymentMonitoringObjectiveConfig { + // The DeployedModel ID of the objective config. + string deployed_model_id = 1; + + // The objective config of for the modelmonitoring job of this deployed model. + ModelMonitoringObjectiveConfig objective_config = 2; +} + +// The config for scheduling monitoring job. +message ModelDeploymentMonitoringScheduleConfig { + // Required. The model monitoring job running interval. It will be rounded up to next + // full hour. + google.protobuf.Duration monitor_interval = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Statistics and anomalies generated by Model Monitoring. +message ModelMonitoringStatsAnomalies { + // Historical Stats (and Anomalies) for a specific Feature. + message FeatureHistoricStatsAnomalies { + // Display Name of the Feature. + string feature_display_name = 1; + + // Threshold for anomaly detection. + ThresholdConfig threshold = 3; + + // Stats calculated for the Training Dataset. + FeatureStatsAnomaly training_stats = 4; + + // A list of historical stats generated by different time window's + // Prediction Dataset. + repeated FeatureStatsAnomaly prediction_stats = 5; + } + + // Model Monitoring Objective those stats and anomalies belonging to. + ModelDeploymentMonitoringObjectiveType objective = 1; + + // Deployed Model ID. + string deployed_model_id = 2; + + // Number of anomalies within all stats. + int32 anomaly_count = 3; + + // A list of historical Stats and Anomalies generated for all Features. + repeated FeatureHistoricStatsAnomalies feature_stats = 4; +} 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 d91d4b181..09e33a824 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 @@ -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. @@ -54,8 +54,8 @@ message ModelEvaluation { // Output only. Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is - // defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string metrics_schema_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in 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 a0c0b89cb..0ac81cddc 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 @@ -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. @@ -56,8 +56,8 @@ message ModelEvaluationSlice { // Output only. Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The - // schema is defined as an OpenAPI 3.0.2 - // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // schema is defined as an OpenAPI 3.0.2 [Schema + // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). string metrics_schema_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored 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 new file mode 100644 index 000000000..a5e8717e7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -0,0 +1,140 @@ +// 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.v1beta1; + +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/io.proto"; +import "google/api/annotations.proto"; + +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"; + +// Next ID: 6 +message ModelMonitoringObjectiveConfig { + // Training Dataset information. + message TrainingDataset { + oneof data_source { + // The resource name of the Dataset used to train this Model. + string dataset = 3 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + }]; + + // The Google Cloud Storage uri of the unmanaged Dataset used to train + // this Model. + GcsSource gcs_source = 4; + + // The BigQuery table of the unmanaged Dataset used to train this + // Model. + BigQuerySource bigquery_source = 5; + } + + // Data format of the dataset, only applicable if the input is from + // Google Cloud Storage. + // The possible formats are: + // + // "tf-record" + // The source file is a TFRecord file. + // + // "csv" + // The source file is a CSV file. + string data_format = 2; + + // The target field name the model is to predict. + // This field will be excluded when doing Predict and (or) Explain for the + // training data. + string target_field = 6; + + // Strategy to sample data from Training Dataset. + // If not set, we process the whole dataset. + SamplingStrategy logging_sampling_strategy = 7; + } + + // The config for Training & Prediction data skew detection. It specifies the + // 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 + // feature. The threshold here is against feature distribution distance + // between the training and prediction feature. + map skew_thresholds = 1; + } + + // 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 + // feature. The threshold here is against feature distribution distance + // between different time windws. + map drift_thresholds = 1; + } + + // Training dataset for models. This field has to be set only if + // TrainingPredictionSkewDetectionConfig is specified. + TrainingDataset training_dataset = 1; + + // The config for skew between training data and prediction data. + TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2; + + // The config for drift of prediction data. + PredictionDriftDetectionConfig prediction_drift_detection_config = 3; +} + +// Next ID: 2 +message ModelMonitoringAlertConfig { + // The config for email alert. + message EmailAlertConfig { + // The email addresses to send the alert. + repeated string user_emails = 1; + } + + oneof alert { + // Email alert config. + EmailAlertConfig email_alert_config = 1; + } +} + +// The config for feature monitoring threshold. +// Next ID: 3 +message ThresholdConfig { + oneof threshold { + // Specify a threshold value that can trigger the alert. + // If this threshold config is for feature distribution distance: + // 1. For categorical feature, the distribution distance is calculated by + // L-inifinity norm. + // 2. For numerical feature, the distribution distance is calculated by + // Jensen–Shannon divergence. + // Each feature must have a non-zero threshold if they need to be monitored. + // Otherwise no alert will be triggered for that feature. + double value = 1; + } +} + +// Sampling Strategy for logging, can be for both training and prediction +// dataset. +// Next ID: 2 +message SamplingStrategy { + // Requests are randomly selected. + message RandomSampleConfig { + // Sample rate (0, 1] + double sample_rate = 1; + } + + // Random sample config. Will support more sampling strategies later. + RandomSampleConfig random_sample_config = 1; +} 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 219ed2f90..0e8299363 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 @@ -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. @@ -33,12 +33,12 @@ option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; -// A service for managing AI Platform's machine learning Models. +// A service for managing Vertex AI's machine learning Models. service ModelService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Uploads a Model artifact into AI Platform. + // Uploads a Model artifact into Vertex AI. rpc UploadModel(UploadModelRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/models:upload" @@ -237,8 +237,7 @@ message UpdateModelRequest { Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -325,7 +324,6 @@ message ExportModelResponse { message GetModelEvaluationRequest { // Required. The name of the ModelEvaluation resource. // Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -376,7 +374,6 @@ message ListModelEvaluationsResponse { message GetModelEvaluationSliceRequest { // Required. The name of the ModelEvaluationSlice resource. // Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -390,7 +387,6 @@ message GetModelEvaluationSliceRequest { message ListModelEvaluationSlicesRequest { // Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices // from. Format: - // // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, 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 123e99099..89702b868 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 @@ -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/pipeline_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto new file mode 100644 index 000000000..a17cd2427 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -0,0 +1,286 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/artifact.proto"; +import "google/cloud/aiplatform/v1beta1/context.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/execution.proto"; +import "google/cloud/aiplatform/v1beta1/pipeline_state.proto"; +import "google/cloud/aiplatform/v1beta1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +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 (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.v1beta1.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. + Context pipeline_context = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The context of the current pipeline run. + 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 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.v1beta1.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. + 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.v1beta1.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.v1beta1.CustomJob] for the pre-caching-check container + // execution. This job will be available if the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.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.v1beta1.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-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 31b7e3875..a73292b29 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 @@ -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. @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/pipeline_job.proto"; import "google/cloud/aiplatform/v1beta1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -30,7 +31,9 @@ option java_multiple_files = true; option java_outer_classname = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; -// A service for creating and managing AI Platform's pipelines. +// A service for creating and managing Vertex AI's pipelines. This includes both +// `TrainingPipeline` resources (used for AutoML and custom training) and +// `PipelineJob` resources (used for Vertex Pipelines). service PipelineService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -90,6 +93,61 @@ service PipelineService { }; option (google.api.method_signature) = "name"; } + + // Creates a PipelineJob. A PipelineJob will run immediately when created. + rpc CreatePipelineJob(CreatePipelineJobRequest) returns (PipelineJob) { + option (google.api.http) = { + post: "/v1beta1/{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 (PipelineJob) { + option (google.api.http) = { + get: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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.v1beta1.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.v1beta1.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.v1beta1.PipelineJob.state] is set to + // `CANCELLED`. + rpc CancelPipelineJob(CancelPipelineJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } } // Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline]. @@ -111,7 +169,6 @@ message CreateTrainingPipelineRequest { message GetTrainingPipelineRequest { // Required. The name of the TrainingPipeline resource. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -168,7 +225,7 @@ message ListTrainingPipelinesResponse { // List of TrainingPipelines in the requested page. repeated TrainingPipeline training_pipelines = 1; - // A token to retrieve next page of results. + // A token to retrieve the next page of results. // Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page. string next_page_token = 2; } @@ -177,7 +234,6 @@ message ListTrainingPipelinesResponse { message DeleteTrainingPipelineRequest { // Required. The name of the TrainingPipeline resource to be deleted. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -191,7 +247,6 @@ message DeleteTrainingPipelineRequest { message CancelTrainingPipelineRequest { // Required. The name of the TrainingPipeline to cancel. // Format: - // // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -200,3 +255,110 @@ message CancelTrainingPipelineRequest { } ]; } + +// Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1beta1.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. + 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.v1beta1.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.v1beta1.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.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous + // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] call. + string page_token = 4; +} + +// Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] +message ListPipelineJobsResponse { + // List of PipelineJobs in the requested page. + repeated PipelineJob pipeline_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1beta1.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.v1beta1.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-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 8c0f20b3a..a94a825f3 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 @@ -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. @@ -28,7 +28,7 @@ enum PipelineState { // The pipeline state is unspecified. PIPELINE_STATE_UNSPECIFIED = 0; - // The pipeline has been just created or resumed and processing has not yet + // The pipeline has been created or resumed, and processing has not yet // begun. PIPELINE_STATE_QUEUED = 1; @@ -44,7 +44,7 @@ enum PipelineState { // The pipeline failed. PIPELINE_STATE_FAILED = 5; - // The pipeline is being cancelled. From this state the pipeline may only go + // The pipeline is being cancelled. From this state, the pipeline may only go // to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or // PIPELINE_STATE_CANCELLED. PIPELINE_STATE_CANCELLING = 6; 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 d20ed3899..29e123d37 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 @@ -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/annotation_payload.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto index 8e355f9a6..a57a99728 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.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/annotation_spec_color.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto index f5893a90a..bd57636fa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.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/data_item_payload.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto index 5519d1ae8..b9c0c6656 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.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/dataset_metadata.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto index 480b18689..6970d5abf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.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/geometry.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto index 24c596f38..4c0061040 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.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/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 408f995fd..619b33324 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 @@ -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/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 37467912f..3c0cc3fec 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 @@ -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/predict/instance/text_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto index 8f6de3e63..8a09ff2dd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_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/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 bb592d2d1..4f0f994d1 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 @@ -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/predict/instance/text_sentiment.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto index 8b12f9686..204858212 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.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/predict/instance/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto index 6fbe91668..888ae402f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.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/predict/instance/video_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto index 326770b26..5f7df37e3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_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/predict/instance/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto index 75ce85de0..fec8b4d19 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.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/predict/params/image_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto index c480a26e8..4c7742cfc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/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/predict/params/image_object_detection.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto index 5a7d6f2b4..f77a9676d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.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/predict/params/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto index 12a2e0a3b..e70d6ff66 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.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/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 3fbd50741..142ffad68 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 @@ -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/predict/params/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto index bd8cde0bb..d51305104 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.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/predict/prediction/classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto index d86f17ce5..07a0e3416 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 @@ -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/predict/prediction/image_object_detection.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto index 6100bd86f..519f525af 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.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/predict/prediction/tabular_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto index 06dcbeb37..f9b5dc88a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_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/predict/prediction/tabular_regression.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto index 521b270d3..8f2ad6a5e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.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/predict/prediction/text_extraction.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto index f8f153526..7b4b43aef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.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/predict/prediction/text_sentiment.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto index 58c51cfbf..41a6c2a90 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.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/predict/prediction/time_series_forecasting.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto index e06417366..8f435b68d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.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. @@ -27,10 +27,4 @@ option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.predic message TimeSeriesForecastingPredictionResult { // The regression value. float value = 1; - - // The lower bound of the prediction interval. - float lower_bound = 2; - - // The upper bound of the prediction interval. - float upper_bound = 3; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto index 05bd7db93..779f2a0ae 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.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/predict/prediction/video_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto index 49e3f9767..bef4dcb0f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_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/predict/prediction/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto index 2047a302e..1d443a06e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.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_image_object_detection.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto index c83d8e3be..5e757987b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.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 8cf8eeb99..03650b2f9 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 @@ -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_text_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto index 8cc60b00b..ae28f9c26 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_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_text_extraction.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto index f979c0350..074b18974 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.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_text_sentiment.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto index a54a344e8..ce85d9ec1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.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_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 8098d18f7..d5d9304ab 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 @@ -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. @@ -42,31 +42,32 @@ message AutoMlForecastingInputs { } // Training pipeline will perform following transformation functions. + // // * The value converted to float32. + // // * The z_score of the value. + // // * log(value+1) when the value is greater than or equal to 0. Otherwise, // this transformation is not applied and the value is considered a // missing value. + // // * z_score of log(value+1) when the value is greater than or equal to 0. // Otherwise, this transformation is not applied and the value is // considered a missing value. + // // * A boolean value that indicates whether the value is valid. message NumericTransformation { string column_name = 1; - - // If invalid values is allowed, the training pipeline will create a - // boolean feature that indicated whether the value is valid. - // Otherwise, the training pipeline will discard the input row from - // trainining data. - bool invalid_values_allowed = 2; } // Training pipeline will perform following transformation functions. + // // * The categorical string as is--no change to case, punctuation, - // spelling, - // tense, and so on. + // spelling, tense, and so on. + // // * Convert the category name to a dictionary lookup index and generate an // embedding for each index. + // // * Categories that appear less than 5 times in the training dataset are // treated as the "unknown" category. The "unknown" category gets its own // special lookup index and resulting embedding. @@ -75,9 +76,12 @@ message AutoMlForecastingInputs { } // Training pipeline will perform following transformation functions. + // // * Apply the transformation functions for Numerical columns. + // // * Determine the year, month, day,and weekday. Treat each value from the - // * timestamp as a Categorical column. + // timestamp as a Categorical column. + // // * Invalid numerical values (for example, values that fall outside of a // typical timestamp range, or are extreme values) receive no special // treatment and are not removed. @@ -86,77 +90,37 @@ message AutoMlForecastingInputs { // The format in which that time field is expressed. The time_format must // either be one of: + // // * `unix-seconds` + // // * `unix-milliseconds` + // // * `unix-microseconds` + // // * `unix-nanoseconds` + // // (for respectively number of seconds, milliseconds, microseconds and // nanoseconds since start of the Unix epoch); - // or be written in `strftime` syntax. If time_format is not set, then the + // + // or be written in `strftime` syntax. + // + // If time_format is not set, then the // default format is RFC 3339 `date-time` format, where // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) string time_format = 2; - - // If invalid values is allowed, the training pipeline will create a - // boolean feature that indicated whether the value is valid. - // Otherwise, the training pipeline will discard the input row from - // trainining data. - bool invalid_values_allowed = 3; } // Training pipeline will perform following transformation functions. + // // * The text as is--no change to case, punctuation, spelling, tense, and - // so - // on. - // * Tokenize text to words. Convert each words to a dictionary lookup - // index - // and generate an embedding for each index. Combine the embedding of all - // elements into a single embedding using the mean. - // * Tokenization is based on unicode script boundaries. - // * Missing values get their own lookup index and resulting embedding. - // * Stop-words receive no special treatment and are not removed. + // so on. + // + // * Convert the category name to a dictionary lookup index and generate an + // embedding for each index. message TextTransformation { string column_name = 1; } - // Treats the column as numerical array and performs following - // transformation functions. - // * All transformations for Numerical types applied to the average of the - // all elements. - // * The average of empty arrays is treated as zero. - message NumericArrayTransformation { - string column_name = 1; - - // If invalid values is allowed, the training pipeline will create a - // boolean feature that indicated whether the value is valid. - // Otherwise, the training pipeline will discard the input row from - // trainining data. - bool invalid_values_allowed = 2; - } - - // Treats the column as categorical array and performs following - // transformation functions. - // * For each element in the array, convert the category name to a - // dictionary - // lookup index and generate an embedding for each index. - // Combine the embedding of all elements into a single embedding using - // the mean. - // * Empty arrays treated as an embedding of zeroes. - message CategoricalArrayTransformation { - string column_name = 1; - } - - // Treats the column as text array and performs following transformation - // functions. - // * Concatenate all text values in the array into a single text value - // using - // a space (" ") as a delimiter, and then treat the result as a single - // text value. Apply the transformations for Text columns. - // * Empty arrays treated as an empty text. - message TextArrayTransformation { - string column_name = 1; - } - // The transformation that the training pipeline will apply to the input // columns. oneof transformation_detail { @@ -169,28 +133,31 @@ message AutoMlForecastingInputs { TimestampTransformation timestamp = 4; TextTransformation text = 5; - - NumericArrayTransformation repeated_numeric = 6; - - CategoricalArrayTransformation repeated_categorical = 7; - - TextArrayTransformation repeated_text = 8; } } // A duration of time expressed in time granularity units. - message Period { + message Granularity { // The time granularity unit of this time period. - // The supported unit are: - // "minute" - // "hour" - // "day" - // "week" - // "month" - // "year" + // The supported units are: + // + // * "minute" + // + // * "hour" + // + // * "day" + // + // * "week" + // + // * "month" + // + // * "year" string unit = 1; - // The number of units per period, e.g. 3 weeks or 2 months. + // The number of granularity_units between data points in the training + // data. If `granularity_unit` is `minute`, + // can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`, + // must be 1. int64 quantity = 2; } @@ -214,13 +181,19 @@ message AutoMlForecastingInputs { // function over the validation set. // // The supported optimization objectives: - // "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). - // "minimize-mae" - Minimize mean-absolute error (MAE). - // "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). - // "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). - // "minimize-wape-mae" - Minimize the combination of weighted absolute + // + // * "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + // + // * "minimize-mae" - Minimize mean-absolute error (MAE). + // + // * "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + // + // * "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + // + // * "minimize-wape-mae" - Minimize the combination of weighted absolute // percentage error (WAPE) and mean-absolute-error (MAE). - // "minimize-quantile-loss" - Minimize the quantile loss at the quantiles + // + // * "minimize-quantile-loss" - Minimize the quantile loss at the quantiles // defined in `quantiles`. string optimization_objective = 5; @@ -248,42 +221,36 @@ message AutoMlForecastingInputs { // of 1. string weight_column = 7; - // Column names that should be used as static columns. - // The value of these columns are static per time series. - repeated string static_columns = 8; - - // Column names that should be used as time variant past only columns. - // This column contains information for the given entity (identified by the - // time_series_identifier_column) that is known for the past but not the - // future (e.g. population of a city in a given year, or weather on a given - // day). - repeated string time_variant_past_only_columns = 9; - - // Column names that should be used as time variant past and future columns. - // This column contains information for the given entity (identified by the - // key column) that is known for the past and the future - repeated string time_variant_past_and_future_columns = 10; - - // Expected difference in time granularity between rows in the data. If it is - // not set, the period is inferred from data. - Period period = 11; - - // The number of periods offset into the future as the start of the forecast - // window (the window of future values to predict, relative to the present.), - // where each period is one unit of granularity as defined by the `period` - // field above. Default to 0. Inclusive. - int64 forecast_window_start = 12; - - // The number of periods offset into the future as the end of the forecast - // window (the window of future values to predict, relative to the present.), - // where each period is one unit of granularity as defined by the `period` - // field above. Inclusive. - int64 forecast_window_end = 13; - - // The number of periods offset into the past to restrict past sequence, where - // each period is one unit of granularity as defined by the `period`. Default - // value 0 means that it lets algorithm to define the value. Inclusive. - int64 past_horizon = 14; + // Column names that should be used as attribute columns. + // The value of these columns does not vary as a function of time. + // For example, store ID or item color. + repeated string time_series_attribute_columns = 19; + + // Names of columns that are unavailable when a forecast is requested. + // This column contains information for the given entity (identified + // by the time_series_identifier_column) that is unknown before the forecast + // For example, actual weather on a given day. + repeated string unavailable_at_forecast_columns = 20; + + // Names of columns that are available and provided when a forecast + // is requested. These columns + // contain information for the given entity (identified by the + // time_series_identifier_column column) that is known at forecast. + // For example, predicted weather for a specific day. + repeated string available_at_forecast_columns = 21; + + // Expected difference in time granularity between rows in the data. + Granularity data_granularity = 22; + + // The amount of time into the future for which forecasted values for the + // target are returned. Expressed in number of units defined by the + // `data_granularity` field. + int64 forecast_horizon = 23; + + // The amount of time into the past training and prediction data is used + // for model training and prediction respectively. Expressed in number of + // units defined by the `data_granularity` field. + int64 context_window = 24; // Configuration for exporting test set predictions to a BigQuery table. If // this configuration is absent, then the export is not performed. @@ -297,9 +264,11 @@ message AutoMlForecastingInputs { // Validation options for the data validation component. The available options // are: - // "fail-pipeline" - default, will validate against the validation and - // fail the pipeline if it fails. - // "ignore-validation" - ignore the results of the validation and continue + // + // * "fail-pipeline" - default, will validate against the validation and + // fail the pipeline if it fails. + // + // * "ignore-validation" - ignore the results of the validation and continue string validation_options = 17; } 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 53ed93d40..e63ea704d 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 @@ -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_video_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto index 772886d65..8b49b4336 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_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_video_object_tracking.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto index 84f945e28..ea04cedd2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.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/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 d9b9e4d83..087dfa142 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 @@ -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/specialist_pool.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto index fe3ca942c..10863d09c 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 @@ -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/specialist_pool_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto index 606e55d69..e6d95210c 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 @@ -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. @@ -121,7 +121,6 @@ message CreateSpecialistPoolOperationMetadata { message GetSpecialistPoolRequest { // Required. The name of the SpecialistPool resource. // The form is - // // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -195,7 +194,6 @@ message UpdateSpecialistPoolRequest { message UpdateSpecialistPoolOperationMetadata { // Output only. The name of the SpecialistPool to which the specialists are being added. // Format: - // // `projects/{project_id}/locations/{location_id}/specialistPools/{specialist_pool}` string specialist_pool = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, 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 2d0a8f878..f4a997f39 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 @@ -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. @@ -29,6 +29,50 @@ option java_multiple_files = true; option java_outer_classname = "StudyProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +// A message representing a Study. +message Study { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Study" + pattern: "projects/{project}/locations/{location}/studies/{study}" + }; + + // Describes the Study state. + enum State { + // The study state is unspecified. + STATE_UNSPECIFIED = 0; + + // The study is active. + ACTIVE = 1; + + // The study is stopped due to an internal error. + INACTIVE = 2; + + // The study is done when the service exhausts the parameter search space + // or max_trial_count is reached. + COMPLETED = 3; + } + + // Output only. The name of a study. The study's globally unique identifier. + // Format: `projects/{project}/locations/{location}/studies/{study}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Describes the Study, default value is empty string. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration of the Study. + StudySpec study_spec = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The detailed state of a Study. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the study was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A human readable reason why the Study is inactive. + // This should be empty if a study is ACTIVE or COMPLETED. + string inactive_reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // 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 // running the Trial. @@ -76,6 +120,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 +135,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 [ @@ -258,9 +324,73 @@ message StudySpec { repeated ConditionalParameterSpec conditional_parameter_specs = 10; } + // The decay curve automated stopping rule builds a Gaussian Process + // Regressor to predict the final objective value of a Trial based on the + // already completed Trials and the intermediate measurements of the current + // Trial. Early stopping is requested for the current Trial if there is very + // low probability to exceed the optimal value found so far. + message DecayCurveAutomatedStoppingSpec { + // True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each + // Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used + // as the x-axis. + bool use_elapsed_duration = 1; + } + + // The median automated stopping rule stops a pending Trial if the Trial's + // best objective_value is strictly below the median 'performance' of all + // completed Trials reported up to the Trial's last measurement. + // Currently, 'performance' refers to the running average of the objective + // values reported by the Trial in each measurement. + message MedianAutomatedStoppingSpec { + // True if median automated stopping rule applies on + // [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration + // field of latest measurement of current Trial is used to compute median + // objective value for each completed Trials. + bool use_elapsed_duration = 1; + } + + // Configuration for ConvexStopPolicy. + message ConvexStopConfig { + // Steps used in predicting the final objective for early stopped trials. In + // general, it's set to be the same as the defined steps in training / + // tuning. When use_steps is false, this field is set to the maximum elapsed + // seconds. + int64 max_num_steps = 1; + + // Minimum number of steps for a trial to complete. Trials which do not have + // a measurement with num_steps > min_num_steps won't be considered for + // early stopping. It's ok to set it to 0, and a trial can be early stopped + // at any stage. By default, min_num_steps is set to be one-tenth of the + // max_num_steps. + // When use_steps is false, this field is set to the minimum elapsed + // seconds. + int64 min_num_steps = 2; + + // The number of Trial measurements used in autoregressive model for + // value prediction. A trial won't be considered early stopping if has fewer + // measurement points. + int64 autoregressive_order = 3; + + // The hyper-parameter name used in the tuning job that stands for learning + // rate. Leave it blank if learning rate is not in a parameter in tuning. + // The learning_rate is used to estimate the objective value of the ongoing + // trial. + string learning_rate_parameter_name = 4; + + // This bool determines whether or not the rule is applied based on + // elapsed_secs or steps. If use_seconds==false, the early stopping decision + // is made according to the predicted objective values according to the + // target steps. If use_seconds==true, elapsed_secs is used instead of + // steps. Also, in this case, the parameters max_num_steps and min_num_steps + // are overloaded to contain max_elapsed_seconds and min_elapsed_seconds. + bool use_seconds = 5; + } + // The available search algorithms for the Study. enum Algorithm { - // The default algorithm used by AI Platform Optimization service. + // The default algorithm used by Vertex AI for [hyperparameter + // tuning](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview) + // and [Vertex Vizier](https://cloud.google.com/vertex-ai/docs/vizier). ALGORITHM_UNSPECIFIED = 0; // Simple grid search within the feasible space. To use grid search, @@ -276,15 +406,15 @@ message StudySpec { // "Noisy" means that the repeated observations with the same Trial parameters // may lead to different metric evaluations. enum ObservationNoise { - // The default noise level chosen by the AI Platform service. + // The default noise level chosen by Vertex AI. OBSERVATION_NOISE_UNSPECIFIED = 0; - // AI Platform Vizier assumes that the objective function is (nearly) + // Vertex AI assumes that the objective function is (nearly) // perfectly reproducible, and will never repeat the same Trial // parameters. LOW = 1; - // AI Platform Vizier will estimate the amount of noise in metric + // Vertex AI will estimate the amount of noise in metric // evaluations, it may repeat the same Trial parameters more than once. HIGH = 2; } @@ -313,6 +443,17 @@ message StudySpec { BEST_MEASUREMENT = 2; } + oneof automated_stopping_spec { + // The automated early stopping spec using decay curve rule. + DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4; + + // The automated early stopping spec using median rule. + MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + + // The automated early stopping using convex stopping rule. + ConvexStopConfig convex_stop_config = 8; + } + // Required. Metric specs for the Study. repeated MetricSpec metrics = 1 [(google.api.field_behavior) = REQUIRED]; @@ -345,6 +486,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-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 new file mode 100644 index 000000000..d19d280fd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -0,0 +1,84 @@ +// 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.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 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"; + +// Tensorboard is a physical database that stores users' training metrics. +// A default Tensorboard is provided in each region of a GCP project. +// If needed users can also create extra Tensorboards in their projects. +message Tensorboard { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Tensorboard" + pattern: "projects/{project}/locations/{location}/tensorboards/{tensorboard}" + }; + + // Output only. Name of the Tensorboard. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. User provided name of this Tensorboard. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Description of this Tensorboard. + string description = 3; + + // Customer-managed encryption key spec for a Tensorboard. If set, this + // Tensorboard and all sub-resources of this Tensorboard will be secured by + // this key. + EncryptionSpec encryption_spec = 11; + + // Output only. Consumer project Cloud Storage path prefix used to store blob data, which + // can either be a bucket or directory. Does not end with a '/'. + string blob_storage_path_prefix = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of Runs stored in this Tensorboard. + int32 run_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Tensorboard was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Tensorboard was last updated. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize your Tensorboards. + // + // 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 Tensorboard + // (System labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 8; + + // Used to perform a consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 9; +} 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 new file mode 100644 index 000000000..793ce91d2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto @@ -0,0 +1,99 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// All the data stored in a TensorboardTimeSeries. +message TimeSeriesData { + // Required. The ID of the TensorboardTimeSeries, which will become the final component + // of the TensorboardTimeSeries' resource name + string tensorboard_time_series_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The value type of this time series. All the values in this time series data + // must match this value type. + TensorboardTimeSeries.ValueType value_type = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Data points in this time series. + repeated TimeSeriesDataPoint values = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A TensorboardTimeSeries data point. +message TimeSeriesDataPoint { + // Value of this time series data point. + oneof value { + // A scalar value. + Scalar scalar = 3; + + // A tensor value. + TensorboardTensor tensor = 4; + + // A blob sequence value. + TensorboardBlobSequence blobs = 5; + } + + // Wall clock timestamp when this data point is generated by the end user. + google.protobuf.Timestamp wall_time = 1; + + // Step index of this data point within the run. + int64 step = 2; +} + +// One point viewable on a scalar metric plot. +message Scalar { + // Value of the point at this step / timestamp. + double value = 1; +} + +// One point viewable on a tensor metric plot. +message TensorboardTensor { + // Required. Serialized form of + // https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto + bytes value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value]. + int32 version_number = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// One point viewable on a blob metric plot, but mostly just a wrapper message +// to work around repeated fields can't be used directly within `oneof` fields. +message TensorboardBlobSequence { + // List of blobs contained within the sequence. + repeated TensorboardBlob values = 1; +} + +// One blob (e.g, image, graph) viewable on a blob metric plot. +message TensorboardBlob { + // Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob + // stored in the Cloud Storage bucket of the consumer project. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The bytes of the blob is not present unless it's returned by the + // ReadTensorboardBlobData endpoint. + bytes data = 2 [(google.api.field_behavior) = OPTIONAL]; +} 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 new file mode 100644 index 000000000..6d8b330fd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto @@ -0,0 +1,76 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// A TensorboardExperiment is a group of TensorboardRuns, that are typically the +// results of a training job run, in a Tensorboard. +message TensorboardExperiment { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/TensorboardExperiment" + pattern: "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}" + }; + + // Output only. Name of the TensorboardExperiment. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided name of this TensorboardExperiment. + string display_name = 2; + + // Description of this TensorboardExperiment. + string description = 3; + + // Output only. Timestamp when this TensorboardExperiment was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this TensorboardExperiment was last updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize your Datasets. + // + // 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 Dataset (System + // labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. Following system labels exist for each Dataset: + // * "aiplatform.googleapis.com/dataset_metadata_schema": + // - output only, its value is the + // [metadata_schema's][metadata_schema_uri] title. + map labels = 6; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 7; + + // Immutable. Source of the TensorboardExperiment. Example: a custom training job. + string source = 8 [(google.api.field_behavior) = IMMUTABLE]; +} 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 new file mode 100644 index 000000000..db946ecd7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto @@ -0,0 +1,61 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// TensorboardRun maps to a specific execution of a training job with a given +// set of hyperparameter values, model definition, dataset, etc +message TensorboardRun { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/TensorboardRun" + pattern: "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}" + }; + + // Output only. Name of the TensorboardRun. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. User provided name of this TensorboardRun. + // This value must be unique among all TensorboardRuns + // belonging to the same parent TensorboardExperiment. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Description of this TensorboardRun. + string description = 3; + + // Output only. Timestamp when this TensorboardRun was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this TensorboardRun was last updated. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + map labels = 8; + + // Used to perform a consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 9; +} 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 new file mode 100644 index 000000000..3046133f5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto @@ -0,0 +1,856 @@ +// 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.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard_data.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard_run.proto"; +import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +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"; + +// TensorboardService +service TensorboardService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a Tensorboard. + rpc CreateTensorboard(CreateTensorboardRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/tensorboards" + body: "tensorboard" + }; + option (google.api.method_signature) = "parent,tensorboard"; + option (google.longrunning.operation_info) = { + response_type: "Tensorboard" + metadata_type: "CreateTensorboardOperationMetadata" + }; + } + + // Gets a Tensorboard. + rpc GetTensorboard(GetTensorboardRequest) returns (Tensorboard) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/tensorboards/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a Tensorboard. + rpc UpdateTensorboard(UpdateTensorboardRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{tensorboard.name=projects/*/locations/*/tensorboards/*}" + body: "tensorboard" + }; + option (google.api.method_signature) = "tensorboard,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Tensorboard" + metadata_type: "UpdateTensorboardOperationMetadata" + }; + } + + // Lists Tensorboards in a Location. + rpc ListTensorboards(ListTensorboardsRequest) returns (ListTensorboardsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/tensorboards" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a Tensorboard. + rpc DeleteTensorboard(DeleteTensorboardRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/tensorboards/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a TensorboardExperiment. + rpc CreateTensorboardExperiment(CreateTensorboardExperimentRequest) returns (TensorboardExperiment) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*}/experiments" + body: "tensorboard_experiment" + }; + option (google.api.method_signature) = "parent,tensorboard_experiment,tensorboard_experiment_id"; + } + + // Gets a TensorboardExperiment. + rpc GetTensorboardExperiment(GetTensorboardExperimentRequest) returns (TensorboardExperiment) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a TensorboardExperiment. + rpc UpdateTensorboardExperiment(UpdateTensorboardExperimentRequest) returns (TensorboardExperiment) { + option (google.api.http) = { + patch: "/v1beta1/{tensorboard_experiment.name=projects/*/locations/*/tensorboards/*/experiments/*}" + body: "tensorboard_experiment" + }; + option (google.api.method_signature) = "tensorboard_experiment,update_mask"; + } + + // Lists TensorboardExperiments in a Location. + rpc ListTensorboardExperiments(ListTensorboardExperimentsRequest) returns (ListTensorboardExperimentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*}/experiments" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a TensorboardExperiment. + rpc DeleteTensorboardExperiment(DeleteTensorboardExperimentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a TensorboardRun. + rpc CreateTensorboardRun(CreateTensorboardRunRequest) returns (TensorboardRun) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runs" + body: "tensorboard_run" + }; + option (google.api.method_signature) = "parent,tensorboard_run,tensorboard_run_id"; + } + + // Gets a TensorboardRun. + rpc GetTensorboardRun(GetTensorboardRunRequest) returns (TensorboardRun) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a TensorboardRun. + rpc UpdateTensorboardRun(UpdateTensorboardRunRequest) returns (TensorboardRun) { + option (google.api.http) = { + patch: "/v1beta1/{tensorboard_run.name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}" + body: "tensorboard_run" + }; + option (google.api.method_signature) = "tensorboard_run,update_mask"; + } + + // Lists TensorboardRuns in a Location. + rpc ListTensorboardRuns(ListTensorboardRunsRequest) returns (ListTensorboardRunsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a TensorboardRun. + rpc DeleteTensorboardRun(DeleteTensorboardRunRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a TensorboardTimeSeries. + rpc CreateTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest) returns (TensorboardTimeSeries) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/timeSeries" + body: "tensorboard_time_series" + }; + option (google.api.method_signature) = "parent,tensorboard_time_series"; + } + + // Gets a TensorboardTimeSeries. + rpc GetTensorboardTimeSeries(GetTensorboardTimeSeriesRequest) returns (TensorboardTimeSeries) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a TensorboardTimeSeries. + rpc UpdateTensorboardTimeSeries(UpdateTensorboardTimeSeriesRequest) returns (TensorboardTimeSeries) { + option (google.api.http) = { + patch: "/v1beta1/{tensorboard_time_series.name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}" + body: "tensorboard_time_series" + }; + option (google.api.method_signature) = "tensorboard_time_series,update_mask"; + } + + // Lists TensorboardTimeSeries in a Location. + rpc ListTensorboardTimeSeries(ListTensorboardTimeSeriesRequest) returns (ListTensorboardTimeSeriesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/timeSeries" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a TensorboardTimeSeries. + rpc DeleteTensorboardTimeSeries(DeleteTensorboardTimeSeriesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Reads a TensorboardTimeSeries' data. Data is returned in paginated + // responses. By default, if the number of data points stored is less than + // 1000, all data will be returned. Otherwise, 1000 data points will be + // randomly selected from this time series and returned. This value can be + // changed by changing max_data_points. + rpc ReadTensorboardTimeSeriesData(ReadTensorboardTimeSeriesDataRequest) returns (ReadTensorboardTimeSeriesDataResponse) { + option (google.api.http) = { + get: "/v1beta1/{tensorboard_time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:read" + }; + option (google.api.method_signature) = "tensorboard_time_series"; + } + + // Gets bytes of TensorboardBlobs. + // This is to allow reading blob data stored in consumer project's Cloud + // Storage bucket without users having to obtain Cloud Storage access + // permission. + rpc ReadTensorboardBlobData(ReadTensorboardBlobDataRequest) returns (stream ReadTensorboardBlobDataResponse) { + option (google.api.http) = { + get: "/v1beta1/{time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:readBlobData" + }; + option (google.api.method_signature) = "time_series"; + } + + // Write time series data points into multiple TensorboardTimeSeries under + // a TensorboardRun. If any data fail to be ingested, an error will be + // returned. + rpc WriteTensorboardRunData(WriteTensorboardRunDataRequest) returns (WriteTensorboardRunDataResponse) { + option (google.api.http) = { + post: "/v1beta1/{tensorboard_run=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}:write" + body: "*" + }; + option (google.api.method_signature) = "tensorboard_run,time_series_data"; + } + + // Exports a TensorboardTimeSeries' data. Data is returned in paginated + // responses. + rpc ExportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest) returns (ExportTensorboardTimeSeriesDataResponse) { + option (google.api.http) = { + post: "/v1beta1/{tensorboard_time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:exportTensorboardTimeSeries" + body: "*" + }; + option (google.api.method_signature) = "tensorboard_time_series"; + } +} + +// Request message for [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard]. +message CreateTensorboardRequest { + // Required. The resource name of the Location to create the Tensorboard in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Tensorboard" + } + ]; + + // Required. The Tensorboard to create. + Tensorboard tensorboard = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard]. +message GetTensorboardRequest { + // Required. The name of the Tensorboard resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Tensorboard" + } + ]; +} + +// Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. +message ListTensorboardsRequest { + // Required. The resource name of the Location to list Tensorboards. + // Format: + // 'projects/{project}/locations/{location}' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Tensorboard" + } + ]; + + // Lists the Tensorboards that match the filter expression. + string filter = 2; + + // The maximum number of Tensorboards to return. The service may return + // fewer than this value. If unspecified, at most 100 Tensorboards will be + // returned. The maximum value is 100; values above 100 will be coerced to + // 100. + int32 page_size = 3; + + // A page token, received from a previous + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must + // match the call that provided the page token. + string page_token = 4; + + // Field to use to sort the list. + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. +message ListTensorboardsResponse { + // The Tensorboards mathching the request. + repeated Tensorboard tensorboards = 1; + + // A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard]. +message UpdateTensorboardRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // Tensorboard resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten if new + // values are specified. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Tensorboard's `name` field is used to identify the + // Tensorboard to be updated. Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + Tensorboard tensorboard = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard]. +message DeleteTensorboardRequest { + // Required. The name of the Tensorboard to be deleted. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Tensorboard" + } + ]; +} + +// Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment]. +message CreateTensorboardExperimentRequest { + // Required. The resource name of the Tensorboard to create the TensorboardExperiment + // in. Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardExperiment" + } + ]; + + // The TensorboardExperiment to create. + TensorboardExperiment tensorboard_experiment = 2; + + // Required. The ID to use for the Tensorboard experiment, which will become the final + // component of the Tensorboard experiment's resource name. + // + // This value should be 1-128 characters, and valid characters + // are /[a-z][0-9]-/. + string tensorboard_experiment_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment]. +message GetTensorboardExperimentRequest { + // Required. The name of the TensorboardExperiment resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardExperiment" + } + ]; +} + +// Request message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. +message ListTensorboardExperimentsRequest { + // Required. The resource name of the Tensorboard to list TensorboardExperiments. + // Format: + // 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/TensorboardExperiment" + } + ]; + + // Lists the TensorboardExperiments that match the filter expression. + string filter = 2; + + // The maximum number of TensorboardExperiments to return. The service may + // return fewer than this value. If unspecified, at most 50 + // TensorboardExperiments will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must + // match the call that provided the page token. + string page_token = 4; + + // Field to use to sort the list. + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. +message ListTensorboardExperimentsResponse { + // The TensorboardExperiments mathching the request. + repeated TensorboardExperiment tensorboard_experiments = 1; + + // A token, which can be sent as + // [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment]. +message UpdateTensorboardExperimentRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // TensorboardExperiment resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten if new + // values are specified. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The TensorboardExperiment's `name` field is used to identify the + // TensorboardExperiment to be updated. Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + TensorboardExperiment tensorboard_experiment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment]. +message DeleteTensorboardExperimentRequest { + // Required. The name of the TensorboardExperiment to be deleted. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardExperiment" + } + ]; +} + +// Request message for [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun]. +message CreateTensorboardRunRequest { + // Required. The resource name of the Tensorboard to create the TensorboardRun in. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardRun" + } + ]; + + // Required. The TensorboardRun to create. + TensorboardRun tensorboard_run = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the Tensorboard run, which will become the final + // component of the Tensorboard run's resource name. + // + // This value should be 1-128 characters, and valid characters + // are /[a-z][0-9]-/. + string tensorboard_run_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun]. +message GetTensorboardRunRequest { + // Required. The name of the TensorboardRun resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardRun" + } + ]; +} + +// Request message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. +message ReadTensorboardBlobDataRequest { + // Required. The resource name of the TensorboardTimeSeries to list Blobs. + // Format: + // 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + string time_series = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; + + // IDs of the blobs to read. + repeated string blob_ids = 2; +} + +// Response message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. +message ReadTensorboardBlobDataResponse { + // Blob messages containing blob bytes. + repeated TensorboardBlob blobs = 1; +} + +// Request message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. +message ListTensorboardRunsRequest { + // Required. The resource name of the Tensorboard to list TensorboardRuns. + // Format: + // 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/TensorboardRun" + } + ]; + + // Lists the TensorboardRuns that match the filter expression. + string filter = 2; + + // The maximum number of TensorboardRuns to return. The service may return + // fewer than this value. If unspecified, at most 50 TensorboardRuns will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must + // match the call that provided the page token. + string page_token = 4; + + // Field to use to sort the list. + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. +message ListTensorboardRunsResponse { + // The TensorboardRuns mathching the request. + repeated TensorboardRun tensorboard_runs = 1; + + // A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to + // retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun]. +message UpdateTensorboardRunRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // TensorboardRun resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten if new + // values are specified. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to + // be updated. Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + TensorboardRun tensorboard_run = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun]. +message DeleteTensorboardRunRequest { + // Required. The name of the TensorboardRun to be deleted. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardRun" + } + ]; +} + +// Request message for [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries]. +message CreateTensorboardTimeSeriesRequest { + // Required. The resource name of the TensorboardRun to create the + // TensorboardTimeSeries in. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; + + // Optional. The user specified unique ID to use for the TensorboardTimeSeries, which + // will become the final component of the TensorboardTimeSeries's resource + // name. Ref: go/ucaip-user-specified-id + // + // This value should match "[a-z0-9][a-z0-9-]{0, 127}" + string tensorboard_time_series_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The TensorboardTimeSeries to create. + TensorboardTimeSeries tensorboard_time_series = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries]. +message GetTensorboardTimeSeriesRequest { + // Required. The name of the TensorboardTimeSeries resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; +} + +// Request message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. +message ListTensorboardTimeSeriesRequest { + // Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. + // Format: + // 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; + + // Lists the TensorboardTimeSeries that match the filter expression. + string filter = 2; + + // The maximum number of TensorboardTimeSeries to return. The service may + // return fewer than this value. If unspecified, at most 50 + // TensorboardTimeSeries will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must + // match the call that provided the page token. + string page_token = 4; + + // Field to use to sort the list. + string order_by = 5; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 6; +} + +// Response message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. +message ListTensorboardTimeSeriesResponse { + // The TensorboardTimeSeries mathching the request. + repeated TensorboardTimeSeries tensorboard_time_series = 1; + + // A token, which can be sent as + // [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries]. +message UpdateTensorboardTimeSeriesRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // TensorboardTimeSeries resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten if new + // values are specified. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The TensorboardTimeSeries' `name` field is used to identify the + // TensorboardTimeSeries to be updated. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + TensorboardTimeSeries tensorboard_time_series = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries]. +message DeleteTensorboardTimeSeriesRequest { + // Required. The name of the TensorboardTimeSeries to be deleted. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; +} + +// Request message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. +message ReadTensorboardTimeSeriesDataRequest { + // Required. The resource name of the TensorboardTimeSeries to read data from. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + string tensorboard_time_series = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; + + // The maximum number of TensorboardTimeSeries' data to return. + // + // This value should be a positive integer. + // This value can be set to -1 to return all data. + int32 max_data_points = 2; + + // Reads the TensorboardTimeSeries' data that match the filter expression. + string filter = 3; +} + +// Response message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. +message ReadTensorboardTimeSeriesDataResponse { + // The returned time series data. + TimeSeriesData time_series_data = 1; +} + +// Request message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. +message WriteTensorboardRunDataRequest { + // Required. The resource name of the TensorboardRun to write data to. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + string tensorboard_run = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardRun" + } + ]; + + // Required. The TensorboardTimeSeries data to write. + // Values with in a time series are indexed by their step value. + // Repeated writes to the same step will overwrite the existing value for that + // step. + // The upper limit of data points per write request is 5000. + repeated TimeSeriesData time_series_data = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. +message WriteTensorboardRunDataResponse { + +} + +// Request message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. +message ExportTensorboardTimeSeriesDataRequest { + // Required. The resource name of the TensorboardTimeSeries to export data from. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + string tensorboard_time_series = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + } + ]; + + // Exports the TensorboardTimeSeries' data that match the filter expression. + string filter = 2; + + // The maximum number of data points to return per page. + // The default page_size will be 1000. Values must be between 1 and 10000. + // Values above 10000 will be coerced to 10000. + int32 page_size = 3; + + // A page token, received from a previous + // [TensorboardService.ExportTensorboardTimeSeries][] call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [TensorboardService.ExportTensorboardTimeSeries][] must + // match the call that provided the page token. + string page_token = 4; + + // Field to use to sort the TensorboardTimeSeries' data. + // By default, TensorboardTimeSeries' data will be returned in a pseudo random + // order. + string order_by = 5; +} + +// Response message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. +message ExportTensorboardTimeSeriesDataResponse { + // The returned time series data points. + repeated TimeSeriesDataPoint time_series_data_points = 1; + + // A token, which can be sent as + // [ExportTensorboardTimeSeriesRequest.page_token][] to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Details of operations that perform create Tensorboard. +message CreateTensorboardOperationMetadata { + // Operation metadata for Tensorboard. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update Tensorboard. +message UpdateTensorboardOperationMetadata { + // Operation metadata for Tensorboard. + GenericOperationMetadata generic_metadata = 1; +} 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 new file mode 100644 index 000000000..1a37dd96c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto @@ -0,0 +1,104 @@ +// 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.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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"; + +// TensorboardTimeSeries maps to times series produced in training runs +message TensorboardTimeSeries { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/TensorboardTimeSeries" + pattern: "projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}" + }; + + // Describes metadata for a TensorboardTimeSeries. + message Metadata { + // Output only. Max step index of all data points within a TensorboardTimeSeries. + int64 max_step = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Max wall clock timestamp of all data points within a + // TensorboardTimeSeries. + google.protobuf.Timestamp max_wall_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The largest blob sequence length (number of blobs) of all data points in + // this time series, if its ValueType is BLOB_SEQUENCE. + int64 max_blob_sequence_length = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // An enum representing the value type of a TensorboardTimeSeries. + enum ValueType { + // The value type is unspecified. + VALUE_TYPE_UNSPECIFIED = 0; + + // Used for TensorboardTimeSeries that is a list of scalars. + // E.g. accuracy of a model over epochs/time. + SCALAR = 1; + + // Used for TensorboardTimeSeries that is a list of tensors. + // E.g. histograms of weights of layer in a model over epoch/time. + TENSOR = 2; + + // Used for TensorboardTimeSeries that is a list of blob sequences. + // E.g. set of sample images with labels over epochs/time. + BLOB_SEQUENCE = 3; + } + + // Output only. Name of the TensorboardTimeSeries. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. User provided name of this TensorboardTimeSeries. + // This value should be unique among all TensorboardTimeSeries resources + // belonging to the same TensorboardRun resource (parent resource). + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Description of this TensorboardTimeSeries. + string description = 3; + + // Required. Immutable. Type of TensorboardTimeSeries value. + ValueType value_type = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Timestamp when this TensorboardTimeSeries was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this TensorboardTimeSeries was last updated. + google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform a consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 7; + + // Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor, + // Blob + string plugin_name = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Data of the current plugin, with the size limited to 65KB. + bytes plugin_data = 9; + + // Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries. + Metadata metadata = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 26568518e..6495149d9 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 @@ -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. @@ -36,8 +36,8 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also -// export data from AI Platform's Dataset which becomes the training input, -// [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to AI Platform, and evaluate the +// export data from Vertex AI's Dataset which becomes the training input, +// [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the // Model. message TrainingPipeline { option (google.api.resource) = { @@ -51,7 +51,7 @@ message TrainingPipeline { // Required. The user-defined name of this TrainingPipeline. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Specifies AI Platform owned input data that may be used for training the + // Specifies Vertex AI owned input data that may be used for training the // Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make // clear whether this config is used and if there are any special requirements // on how it should be filled. If nothing about this config is mentioned in @@ -90,7 +90,7 @@ message TrainingPipeline { // a need of this information, or that training task does not support // uploading a Model as part of the pipeline. // When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and - // the trained Model had been uploaded into AI Platform, then the + // the trained Model had been uploaded into Vertex AI, then the // model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model // is always uploaded into the Project and Location in which this pipeline // is. @@ -135,7 +135,7 @@ message TrainingPipeline { EncryptionSpec encryption_spec = 18; } -// Specifies AI Platform owned input data to be used for training, and +// Specifies Vertex AI owned input data to be used for training, and // possibly evaluating, the Model. message InputDataConfig { // The instructions how the input data should be split between the @@ -167,7 +167,7 @@ message InputDataConfig { // * For non-tabular data: "jsonl". // * For tabular data: "csv" and "bigquery". // - // The following AI Platform environment variables are passed to containers + // The following Vertex AI environment variables are passed to containers // or python modules of the training task when this field is set: // // * AIP_DATA_FORMAT : Exported data format. @@ -182,21 +182,18 @@ message InputDataConfig { // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. // All training input data is written into that directory. // - // The AI Platform environment variables representing Cloud Storage + // The Vertex AI environment variables representing Cloud Storage // data URIs are represented in the Cloud Storage wildcard // format to support sharded data. e.g.: "gs://.../training-*.jsonl" // // * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data // * AIP_TRAINING_DATA_URI = - // // "gcs_destination/dataset---